Compare commits

...

3 Commits

Author SHA1 Message Date
8727fd33a6 Sidebar element 2021-01-25 21:52:33 +02:00
869ad66b21 Shuffle css elements 2021-01-25 21:24:15 +02:00
97afd713df Link to github 2021-01-25 21:21:06 +02:00
3 changed files with 44 additions and 11 deletions

View File

@ -39,6 +39,13 @@ h2 {
font-size: 2rem; font-size: 2rem;
} }
.projectlist {
display: flex;
align-items: center;
justify-content: space-between;
}
article .header { article .header {
font-size: 1.4rem; font-size: 1.4rem;
font-style: italic; font-style: italic;
@ -51,6 +58,7 @@ article .header {
text-decoration: none; text-decoration: none;
} }
@media (max-width: 319px) { @media (max-width: 319px) {
body { body {
width: 90%; width: 90%;
@ -107,20 +115,36 @@ article .header {
display: inline; display: inline;
margin: 0 0.6rem; margin: 0 0.6rem;
} }
div.sidebar-container {
/* display: grid; */
/* grid-template-columns: minmax(60%, 85%) 1fr; */
}
div.sidebar-container > div.sidebar {
padding-top: 2rem;
border-top: 0.2rem solid #000;
}
} }
.projectlist {
display: flex;
align-items: center;
justify-content: space-between;
}
@media (min-width: 640px) { @media (min-width: 640px) {
body { body {
width: 60rem; width: 100rem;
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
} }
div.sidebar-container {
display: grid;
grid-template-columns: minmax(60%, 85%) 1fr;
}
div.sidebar-container > div.sidebar {
padding-top: 0px;
padding-left: 2rem;
border-left: 0.2rem solid #000;
border-top: none;
}
article {
width: 60rem;
}
header { header {
margin: 0 0 3rem; margin: 0 0 3rem;
padding: 1.2rem 0; padding: 1.2rem 0;

View File

@ -1,7 +1,10 @@
<ul> <ul>
$for(items)$ $for(items)$
<li> <li>
<div class="projectlist"><a href="$url$">$title$</a>$if(badge)$<img src="$badge$" />$endif$</div> <div class="projectlist">
<a href="$url$">$title$</a>
<a href="$github$">$if(badge)$<img src="$badge$" />$else$ Github $endif$</a>
</div>
</li> </li>
$endfor$ $endfor$
</ul> </ul>

View File

@ -1,6 +1,12 @@
<div class="sidebar-container">
<article> <article>
<section> <section>
$body$ $body$
</section> </section>
</article> </article>
<div class="sidebar">
<a href="$github$">Github</a>
<a href="$issues$">Issues</a>
$if(badge)$<img src="$badge$" />$endif$
</div>
</div>