Use grid for projects listing

This commit is contained in:
Fabien Freling 2019-06-11 13:56:18 +02:00
parent 7b63a99226
commit 21527466ce
2 changed files with 17 additions and 37 deletions

View file

@ -95,38 +95,18 @@ div#fabs-icon a:hover {
color: #268bd2; color: #268bd2;
} }
ul#projects { .projects {
margin: 1em 0; display: grid;
list-style: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
padding-left: 0; grid-auto-rows: minmax(100px, auto);
margin-left: 0; gap: 10px;
display: block; grid-gap: var(gap); /* fallback */
text-align: center;
} }
#projects li { .project {
/* display: inline; border: 1pt solid #ddd;
*/ display: block; font-size: 14pt;
} text-align: center;
#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 li a:hover {
background-position: 2em;
border: 1px solid #ccc;
} }
#footer { #footer {

View file

@ -2,10 +2,10 @@
title: Projects title: Projects
--- ---
<ul id="projects"> <div class="projects">
<li><a href="projects/oboy/index.html">OBoy</a></li> <div class="project"><a href="projects/oboy/index.html">OBoy</a></div>
<li><a href="projects/trailr/index.html">Trailr</a></li> <div class="project"><a href="projects/trailr/index.html">Trailr</a></div>
<li><a href="projects/whereiscar/index.html">Where is my car?</a></li> <div class="project"><a href="projects/whereiscar/index.html">Where is my car?</a></div>
<li><a href="projects/maestro/index.html">Maestro</a></li> <div class="project"><a href="projects/maestro/index.html">Maestro</a></div>
<li><a href="projects/dawnchaos/index.html">Dawn of Chaos</a></li> <div class="project"><a href="projects/dawnchaos/index.html">Dawn of Chaos</a></div>
</ul> </div>