Use grid for projects listing
This commit is contained in:
parent
7b63a99226
commit
21527466ce
|
@ -95,40 +95,20 @@ 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 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.project {
|
||||||
|
border: 1pt solid #ddd;
|
||||||
|
font-size: 14pt;
|
||||||
text-align: center;
|
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 li a:hover {
|
|
||||||
background-position: 2em;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
14
projects.md
14
projects.md
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue