mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-02-07 17:54:42 +03:00
Adds basic fallback for CSS grid
This commit is contained in:
parent
a013624c49
commit
716d24cc29
@ -8,7 +8,7 @@ SVG icons for popular brands. [See them all on one page at **simpleicons.org**](
|
|||||||
- [x] Jekyll code for sorting icons by hue
|
- [x] Jekyll code for sorting icons by hue
|
||||||
- [ ] JS search function
|
- [ ] JS search function
|
||||||
- [ ] Analytics tracking for icon clicks
|
- [ ] Analytics tracking for icon clicks
|
||||||
- [ ] CSS grid fallback
|
- [x] CSS grid fallback
|
||||||
- [x] Social sharing tags
|
- [x] Social sharing tags
|
||||||
- [ ] AMP support
|
- [ ] AMP support
|
||||||
- [ ] New README.md
|
- [ ] New README.md
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
.grid {
|
.grid {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
list-style: none;
|
||||||
|
margin: 1.5rem;
|
||||||
|
padding: 0;
|
||||||
|
@supports (display: grid) {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(9rem,1fr));
|
grid-template-columns: repeat(auto-fill, minmax(9rem,1fr));
|
||||||
grid-auto-rows: 6rem;
|
grid-auto-rows: 6rem;
|
||||||
grid-column-gap: 0.375rem;
|
grid-column-gap: 0.375rem;
|
||||||
grid-row-gap: 0.375rem;
|
grid-row-gap: 0.375rem;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
list-style: none;
|
}
|
||||||
margin: 1.5rem;
|
|
||||||
padding: 0;
|
|
||||||
@media (min-width: 720px) {
|
@media (min-width: 720px) {
|
||||||
margin: 3rem;
|
margin: 3rem;
|
||||||
}
|
}
|
||||||
@ -16,6 +20,11 @@
|
|||||||
.grid-item {
|
.grid-item {
|
||||||
background-color: #757575;
|
background-color: #757575;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@supports not (display: grid) {
|
||||||
|
border: 0.1875rem solid #FFF;
|
||||||
|
padding: 0 0 0.75rem;
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
svg {
|
svg {
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
@ -30,6 +39,9 @@
|
|||||||
grid-column: -2 / -1;
|
grid-column: -2 / -1;
|
||||||
grid-row-end: span 2;
|
grid-row-end: span 2;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
@supports not (display: grid) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
@media (min-width: 21.75rem) {
|
@media (min-width: 21.75rem) {
|
||||||
// 21.75rem is the minimum viewport
|
// 21.75rem is the minimum viewport
|
||||||
// width with multiple columns
|
// width with multiple columns
|
||||||
|
Loading…
Reference in New Issue
Block a user