Update site styles, better layout, new fonts, some colours
This commit is contained in:
parent
c20a2f403c
commit
e649c2ebac
4 changed files with 81 additions and 67 deletions
55
public/assets/app.css
vendored
55
public/assets/app.css
vendored
|
@ -52,38 +52,23 @@ body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column; }
|
flex-direction: column; }
|
||||||
|
|
||||||
#top-header {
|
main {
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center; }
|
|
||||||
#top-header h1 {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center; }
|
|
||||||
#top-header nav {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap; }
|
|
||||||
#top-header nav a {
|
|
||||||
margin: 0 0.5rem; }
|
|
||||||
|
|
||||||
@media screen and (max-width: 699px) {
|
|
||||||
main {
|
|
||||||
margin-left: 5px;
|
|
||||||
margin-right: 5px; } }
|
|
||||||
|
|
||||||
main .h-feed {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin: auto; }
|
margin: auto; }
|
||||||
main .h-feed img {
|
@media screen and (max-width: 699px) {
|
||||||
|
main {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px; } }
|
||||||
|
main img {
|
||||||
max-width: 100%; }
|
max-width: 100%; }
|
||||||
@media screen and (min-width: 700px) {
|
@media screen and (min-width: 700px) {
|
||||||
main .h-feed {
|
main {
|
||||||
max-width: 700px; }
|
max-width: 700px; }
|
||||||
main .h-feed > .note,
|
main > .note,
|
||||||
main .h-feed > .h-entry {
|
main > .h-entry {
|
||||||
padding: 0 1rem; } }
|
padding: 0 1rem; } }
|
||||||
main .h-feed .h-entry:first-child > .bookmark-link {
|
main .h-entry:first-child > .bookmark-link {
|
||||||
padding-top: 2rem; }
|
padding-top: 2rem; }
|
||||||
|
|
||||||
.note {
|
.note {
|
||||||
|
@ -101,6 +86,12 @@ main .h-feed {
|
||||||
.note > .e-content > .naked-link .u-photo {
|
.note > .e-content > .naked-link .u-photo {
|
||||||
margin: 2rem 0; }
|
margin: 2rem 0; }
|
||||||
|
|
||||||
|
article header > h1 {
|
||||||
|
margin-bottom: 0; }
|
||||||
|
|
||||||
|
article header .post-info {
|
||||||
|
font-size: 1.4rem; }
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -126,6 +117,20 @@ footer {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px; } }
|
margin-right: 5px; } }
|
||||||
|
|
||||||
|
#top-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center; }
|
||||||
|
#top-header h1 {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center; }
|
||||||
|
#top-header nav {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap; }
|
||||||
|
#top-header nav a {
|
||||||
|
margin: 0 0.5rem; }
|
||||||
|
|
||||||
.post-info a {
|
.post-info a {
|
||||||
text-decoration: none; }
|
text-decoration: none; }
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
90
resources/sass/_layout-main.scss
vendored
90
resources/sass/_layout-main.scss
vendored
|
@ -3,55 +3,32 @@ body {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
#top-header {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
|
|
||||||
a {
|
|
||||||
margin: 0 0.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@media screen and (max-width: 699px) {
|
@media screen and (max-width: 699px) {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.h-feed {
|
display: flex;
|
||||||
display: flex;
|
flex-direction: column;
|
||||||
flex-direction: column;
|
margin: auto;
|
||||||
margin: auto;
|
|
||||||
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 700px) {
|
||||||
|
max-width: 700px;
|
||||||
|
|
||||||
|
> .note,
|
||||||
|
> .h-entry {
|
||||||
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 700px) {
|
.h-entry:first-child {
|
||||||
max-width: 700px;
|
> .bookmark-link {
|
||||||
|
padding-top: 2rem;
|
||||||
> .note,
|
|
||||||
> .h-entry {
|
|
||||||
padding: 0 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.h-entry:first-child {
|
|
||||||
> .bookmark-link {
|
|
||||||
padding-top: 2rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -86,6 +63,18 @@ main {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article {
|
||||||
|
header {
|
||||||
|
> h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.post-info {
|
||||||
|
font-size: 1.4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -119,3 +108,24 @@ footer {
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#top-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
|
||||||
|
a {
|
||||||
|
margin: 0 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -46,6 +46,5 @@
|
||||||
|
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
|
<link rel="stylesheet" href="/assets/highlight/zenburn.css">
|
||||||
<script defer src="/assets/js/links.js"></script>
|
|
||||||
@include('templates.mapbox-links')
|
@include('templates.mapbox-links')
|
||||||
@stop
|
@stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue