mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-01-05 01:20:39 +02:00
75 lines
1.4 KiB
SCSS
75 lines
1.4 KiB
SCSS
.grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
list-style: none;
|
|
margin: 1.5rem;
|
|
padding: 0;
|
|
@media (min-width: 720px) {
|
|
margin: 3rem;
|
|
}
|
|
@supports (display: grid) {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(9rem,1fr));
|
|
grid-auto-rows: 6rem;
|
|
grid-column-gap: 0.375rem;
|
|
grid-row-gap: 0.375rem;
|
|
grid-auto-flow: dense;
|
|
}
|
|
}
|
|
|
|
.grid-item {
|
|
background-color: #757575;
|
|
text-align: center;
|
|
@supports not (display: grid) {
|
|
border: 0.1875rem solid #FFF;
|
|
padding: 0 0 0.75rem;
|
|
width: 20%;
|
|
}
|
|
}
|
|
|
|
.grid-item--ad {
|
|
background-color: #EEE;
|
|
grid-column: -2 / -1;
|
|
grid-row-end: span 2;
|
|
height: auto;
|
|
@media (min-width: 21.75rem) {
|
|
// 21.75rem is the minimum viewport
|
|
// width with multiple columns
|
|
grid-column: -3 / -1;
|
|
}
|
|
@supports not (display: grid) {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.grid-item__link {
|
|
color: $color-white;
|
|
display: block;
|
|
padding: 1rem 1rem 0;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.grid-item__image {
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
}
|
|
|
|
.grid-item__title {
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
line-height: 1rem;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.grid-item__subtitle {
|
|
color: $color-white;
|
|
font-size: 0.75rem;
|
|
line-height: 1rem;
|
|
margin: 0;
|
|
opacity: 0.5;
|
|
}
|