mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-22 11:27:29 +01:00
42 lines
643 B
CSS
42 lines
643 B
CSS
.flag-wrapper {
|
|
width: 100%;
|
|
display: inline-block;
|
|
position: relative;
|
|
box-shadow: 0 0 2px black;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.flag-wrapper:after {
|
|
padding-top: 75%; /*1160/2000 ratio*/
|
|
display: block;
|
|
content: '';
|
|
}
|
|
|
|
.flag-wrapper .flag {
|
|
position: absolute;
|
|
top: 0; bottom: 0; right: 0; left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
}
|
|
|
|
footer {
|
|
margin-top: 30px;
|
|
padding: 30px 0;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 300;
|
|
}
|
|
|
|
#examples h1, h2, h3, h4, h5, h6, p{
|
|
white-space: nowrap;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#examples {
|
|
overflow: hidden;
|
|
}
|