Use grid for projects listing
This commit is contained in:
parent
7b63a99226
commit
21527466ce
2 changed files with 17 additions and 37 deletions
|
@ -95,38 +95,18 @@ div#fabs-icon a:hover {
|
|||
color: #268bd2;
|
||||
}
|
||||
|
||||
ul#projects {
|
||||
margin: 1em 0;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-left: 0;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#projects li {
|
||||
/* display: inline;
|
||||
*/ display: block;
|
||||
}
|
||||
|
||||
#projects li a {
|
||||
list-style: none;
|
||||
display: block;
|
||||
margin: 1em 4em 1em 4em;
|
||||
padding: 1em 1em 1em 10em;
|
||||
border: 1px solid #ddd;
|
||||
font-family: Helvetica, sans-serif;
|
||||
/* font-size: 11px;
|
||||
*/ text-transform: uppercase;
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
background-position: 2em;
|
||||
.projects {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
grid-auto-rows: minmax(100px, auto);
|
||||
gap: 10px;
|
||||
grid-gap: var(gap); /* fallback */
|
||||
}
|
||||
|
||||
#projects li a:hover {
|
||||
background-position: 2em;
|
||||
border: 1px solid #ccc;
|
||||
.project {
|
||||
border: 1pt solid #ddd;
|
||||
font-size: 14pt;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#footer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue