mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-30 05:50:34 +03:00
Fix grid item overflow due to text
Fixed the bug reported in #682 where grid items could overflow due to long titles. Solved the problem by allowing for wrapping in grid item titles, and centering the contents of grid-items using flexbox. Also slightly increased the size of grid-items.
This commit is contained in:
parent
a1ea7ab889
commit
712c84bbc3
@ -349,7 +349,7 @@
|
|||||||
.grid {
|
.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: 6.25rem;
|
||||||
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;
|
||||||
@ -367,6 +367,10 @@
|
|||||||
|
|
||||||
.grid-item {
|
.grid-item {
|
||||||
background-color: #757575;
|
background-color: #757575;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.grid-item--light {
|
.grid-item--light {
|
||||||
@ -405,7 +409,6 @@
|
|||||||
|
|
||||||
.grid-item__link {
|
.grid-item__link {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 1rem 1rem 0;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -422,7 +425,6 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-item__subtitle {
|
.grid-item__subtitle {
|
||||||
|
Loading…
Reference in New Issue
Block a user