Improved projects styling
This commit is contained in:
parent
71e6b91da8
commit
eea218229a
@ -132,6 +132,7 @@ function getProjects($params) {
|
|||||||
$project = array(
|
$project = array(
|
||||||
"title" => $meta["title"],
|
"title" => $meta["title"],
|
||||||
"status" => $meta["status"],
|
"status" => $meta["status"],
|
||||||
|
"urlrel" => "/projects/".$meta["slug"],
|
||||||
"url" => "https://yarmo.eu/projects/".$meta["slug"],
|
"url" => "https://yarmo.eu/projects/".$meta["slug"],
|
||||||
"slug" => $meta["slug"],
|
"slug" => $meta["slug"],
|
||||||
"date" => $meta["date"],
|
"date" => $meta["date"],
|
||||||
|
|||||||
@ -303,64 +303,6 @@ table.music th:nth-child(3) {
|
|||||||
font-size: 90%;
|
font-size: 90%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Notes */
|
|
||||||
.notes_list {
|
|
||||||
margin: 64px 0 0;
|
|
||||||
}
|
|
||||||
.notes_list__item {
|
|
||||||
margin: 16px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notes__header {
|
|
||||||
font-size: 0.9em;
|
|
||||||
color: var(--clr-subheader);
|
|
||||||
}
|
|
||||||
.notes__content {
|
|
||||||
margin: 64px 0 0;
|
|
||||||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
|
||||||
font-size: 1.2em;
|
|
||||||
line-height: 1.8em;
|
|
||||||
color: var(--clr-text-long);
|
|
||||||
}
|
|
||||||
.notes__content p {
|
|
||||||
margin: 1.5em 0;
|
|
||||||
}
|
|
||||||
.notes__content code {
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
.notes__content ul li {
|
|
||||||
list-style-type: "- ";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Projects */
|
|
||||||
.projects_list {
|
|
||||||
margin: 64px 0 0;
|
|
||||||
}
|
|
||||||
.projects_list__item {
|
|
||||||
margin: 16px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.projects__header {
|
|
||||||
font-size: 0.9em;
|
|
||||||
color: var(--clr-subheader);
|
|
||||||
}
|
|
||||||
.projects__content {
|
|
||||||
margin: 64px 0 0;
|
|
||||||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
|
||||||
font-size: 1.2em;
|
|
||||||
line-height: 1.8em;
|
|
||||||
color: var(--clr-text-long);
|
|
||||||
}
|
|
||||||
.projects__content p {
|
|
||||||
margin: 1.5em 0;
|
|
||||||
}
|
|
||||||
.projects__content code {
|
|
||||||
font-size: 0.8em;
|
|
||||||
}
|
|
||||||
.projects__content ul li {
|
|
||||||
list-style-type: "- ";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Vinyl */
|
/* Vinyl */
|
||||||
.vinyl_list {
|
.vinyl_list {
|
||||||
margin: 64px 0 0;
|
margin: 64px 0 0;
|
||||||
@ -373,11 +315,3 @@ footer {
|
|||||||
margin: 64px 0 0;
|
margin: 64px 0 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a.svg-stroke:hover path {
|
|
||||||
stroke: #fff;
|
|
||||||
fill: #fff;
|
|
||||||
}
|
|
||||||
a:hover path {
|
|
||||||
fill: #fff;
|
|
||||||
} */
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
mixin proj($item)
|
mixin entry($item)
|
||||||
.projects_list__item
|
.longform_list__item
|
||||||
p
|
p
|
||||||
a(href="{$item['url']}") !{$item['title']}
|
a(href="{$item['urlrel']}") !{$item['title']}
|
||||||
| (!{$item['status']})
|
| (!{$item['status']})
|
||||||
|
|
||||||
block content
|
block content
|
||||||
@ -12,6 +12,6 @@ block content
|
|||||||
a(href="/") yarmo.eu
|
a(href="/") yarmo.eu
|
||||||
h1 Yarmo's projects
|
h1 Yarmo's projects
|
||||||
|
|
||||||
.projects_list
|
.longform_list
|
||||||
each $item in $projects
|
each $item in $projects
|
||||||
+proj($item)
|
+entry($item)
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
extends layout
|
extends layout
|
||||||
|
|
||||||
block content
|
block content
|
||||||
.projects
|
.longform
|
||||||
p
|
p
|
||||||
| Back to:
|
| Back to:
|
||||||
a(href="/") yarmo.eu
|
a(href="/") yarmo.eu
|
||||||
@ -11,7 +11,6 @@ block content
|
|||||||
p
|
p
|
||||||
| Got an idea or a comment?
|
| Got an idea or a comment?
|
||||||
a(href="/contact") Feel free to contact me!
|
a(href="/contact") Feel free to contact me!
|
||||||
p.projects__header
|
p.longform__header
|
||||||
.projects__content
|
.longform__content
|
||||||
| !{$project['content']}
|
| !{$project['content']}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user