mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-11-26 01:00:27 +02: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 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
||||
grid-auto-rows: 6rem;
|
||||
grid-auto-rows: 6.25rem;
|
||||
grid-column-gap: 0.375rem;
|
||||
grid-row-gap: 0.375rem;
|
||||
grid-auto-flow: dense;
|
||||
@ -367,6 +367,10 @@
|
||||
|
||||
.grid-item {
|
||||
background-color: #757575;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
}
|
||||
.grid-item--light {
|
||||
@ -405,7 +409,6 @@
|
||||
|
||||
.grid-item__link {
|
||||
display: block;
|
||||
padding: 1rem 1rem 0;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
@ -422,7 +425,6 @@
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.grid-item__subtitle {
|
||||
|
Loading…
Reference in New Issue
Block a user