mirror of
https://github.com/metagov/govarch-website.git
synced 2025-06-19 01:23:10 +00:00
initial commit
This commit is contained in:
32
_sass/_article.scss
Normal file
32
_sass/_article.scss
Normal file
@ -0,0 +1,32 @@
|
||||
article > * {
|
||||
margin: auto;
|
||||
max-width: 36rem;
|
||||
}
|
||||
|
||||
article > h1 {
|
||||
font-size: 2em;
|
||||
max-width: 48rem;
|
||||
padding: 2em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
article p {
|
||||
text-align: justify;
|
||||
text-indent: 1.5em;
|
||||
text-justify: inter-word;
|
||||
&:first-of-type {
|
||||
text-indent: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.article-meta {
|
||||
margin-bottom: 2em;
|
||||
margin-top: 2em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
padding: $spacing-unit;
|
||||
text-decoration: none;
|
||||
}
|
68
_sass/_base.scss
Normal file
68
_sass/_base.scss
Normal file
@ -0,0 +1,68 @@
|
||||
body {
|
||||
color: $text-color;
|
||||
font-family: Baskerville, "Times New Roman", serif;
|
||||
font-size: 1.25em;
|
||||
line-height: 1.325;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $text-color;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
height: 0;
|
||||
&:after {
|
||||
@include divider;
|
||||
}
|
||||
}
|
||||
|
||||
.home {
|
||||
max-width: 30em;
|
||||
margin: auto;
|
||||
padding: ($spacing-unit * 4) $spacing-unit;
|
||||
}
|
||||
|
||||
.home h1 {
|
||||
font-size: 2em;
|
||||
padding: 2em 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.post-list {
|
||||
margin: 1em 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.post-link {
|
||||
color: $text-color;
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
text-decoration: none;
|
||||
padding: .25em 0;
|
||||
.post-title {
|
||||
display: block;
|
||||
padding: .25em 0;
|
||||
}
|
||||
&:hover .post-title,
|
||||
&:focus .post-title {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media (min-width: $on-tablet) {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
.post-title {
|
||||
margin-right: 4em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.post-date {
|
||||
color: $muted-text-color;
|
||||
display: block;
|
||||
font-size: .825em;
|
||||
padding: .5em 0;
|
||||
white-space: nowrap;
|
||||
text-transform: uppercase;
|
||||
}
|
28
_sass/_masthead.scss
Normal file
28
_sass/_masthead.scss
Normal file
@ -0,0 +1,28 @@
|
||||
.site-masthead {
|
||||
background: $brand-color;
|
||||
min-height: 100vh;
|
||||
box-sizing: border-box;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: $spacing-unit * 2;
|
||||
}
|
||||
|
||||
.site-masthead h1 {
|
||||
font-size: 3em;
|
||||
margin-bottom: .125em;
|
||||
@media (min-width: $on-tablet) {
|
||||
font-size: 6em;
|
||||
}
|
||||
}
|
||||
|
||||
.site-masthead h2 {
|
||||
color: $muted-text-color;
|
||||
font-size: 1.5em;
|
||||
@media (min-width: $on-tablet) {
|
||||
font-size: 3em;
|
||||
}
|
||||
}
|
4
_sass/_mixins.scss
Normal file
4
_sass/_mixins.scss
Normal file
@ -0,0 +1,4 @@
|
||||
@mixin divider {
|
||||
content: "\0FC0 \27A4";
|
||||
|
||||
}
|
1
_sass/_reset.scss
Normal file
1
_sass/_reset.scss
Normal file
@ -0,0 +1 @@
|
||||
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}ins{background-color:#ff9;color:#000;text-decoration:none}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:700}del{text-decoration:line-through}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}table{border-collapse:collapse;border-spacing:0}hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}input,select{vertical-align:middle} .clearfix:after{clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0}.clearfix{display:inline-block}* html .clearfix{height:1%}.clearfix{display:block}
|
10
_sass/_variables.scss
Normal file
10
_sass/_variables.scss
Normal file
@ -0,0 +1,10 @@
|
||||
$brand-color: #f2e300;
|
||||
$text-color: #0b0404;
|
||||
$muted-text-color: #79785b;
|
||||
|
||||
$spacing-unit: 1rem;
|
||||
|
||||
$on-bigphone: 375px;
|
||||
$on-tablet: 768px;
|
||||
$on-laptop: 928px;
|
||||
$on-desktop: 1024px;
|
Reference in New Issue
Block a user