First commit of the theme
This commit is contained in:
commit
360f7ecd96
24 changed files with 525 additions and 0 deletions
259
static/css/base.css
Normal file
259
static/css/base.css
Normal file
|
@ -0,0 +1,259 @@
|
|||
/******************* Constants *******************/
|
||||
:root {
|
||||
--font-color: #000000;
|
||||
--background-color: #FFFFFF;
|
||||
|
||||
--max-width: 800px;
|
||||
--max-width-full: 1000px;
|
||||
--icon-size: 1em;
|
||||
|
||||
--footer-height-inline: 4em;
|
||||
--footer-height-block: 8em;
|
||||
}
|
||||
|
||||
/******************* Base *******************/
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing:inherit
|
||||
}
|
||||
a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
body {
|
||||
padding-top: 4em;
|
||||
font-family: Roboto, Ubuntu, Oxygen, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
line-height: 1.62;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
.page-icon {
|
||||
display: inline-block;
|
||||
max-width: var(--icon-size);
|
||||
max-height: var(--icon-size);
|
||||
}
|
||||
|
||||
/******************* Post *******************/
|
||||
.post {
|
||||
min-height: 100%;
|
||||
padding-top: 3em;
|
||||
padding-bottom: 3em;
|
||||
margin-bottom: calc(-1 * var(--footer-height-inline));
|
||||
}
|
||||
.post:after {
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
.post_header {
|
||||
margin: 0 auto;
|
||||
width: 80%;
|
||||
text-align: center;
|
||||
max-width: var(--max-width);
|
||||
}
|
||||
.post_header .post_title {
|
||||
font-size: 2em;
|
||||
font-weight: normal;
|
||||
}
|
||||
.post_body {
|
||||
margin: 0 auto;
|
||||
width: 80%;
|
||||
max-width: var(--max-width);
|
||||
}
|
||||
.post a {
|
||||
text-decoration: underline dotted;
|
||||
}
|
||||
.post a:hover {
|
||||
text-decoration: underline solid;
|
||||
}
|
||||
.post:after {
|
||||
height: var(--footer-height-inline);
|
||||
}
|
||||
/******************* Footer *******************/
|
||||
.footer {
|
||||
height: var(--footer-height-inline);
|
||||
}
|
||||
.footer {
|
||||
background-color: grey;
|
||||
color: white;
|
||||
}
|
||||
.footer .footer_link {
|
||||
color: white;
|
||||
}
|
||||
.footer .footer_link:hover {
|
||||
color: black;
|
||||
}
|
||||
.footer address {
|
||||
margin: auto;
|
||||
width: 90%;
|
||||
max-width: var(--max-width-full);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: var(--footer-height-inline);
|
||||
}
|
||||
.footer p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/******************* Navbar *******************/
|
||||
.navbar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
padding: 0 5vw;
|
||||
line-height: 4em;
|
||||
z-index: 50;
|
||||
background: white;
|
||||
}
|
||||
#navigation {
|
||||
max-width: var(--max-width-full);
|
||||
margin: auto;
|
||||
}
|
||||
.navigation-item a {
|
||||
color: var(--primary-text);
|
||||
padding: 0.5rem 0;
|
||||
position: relative;
|
||||
}
|
||||
.navigation-item a:hover,
|
||||
.navigation-item a:focus {
|
||||
color: var(--primary-text);
|
||||
}
|
||||
.navigation-item a::before {
|
||||
bottom: 0;
|
||||
content: "";
|
||||
display: inline-block;
|
||||
height: 3px;
|
||||
position: absolute;
|
||||
transition: all 0.25s ease-in-out;
|
||||
width: 0%;
|
||||
}
|
||||
.navigation-item a::before {
|
||||
background-color: black;
|
||||
}
|
||||
.navigation-item a:hover::before,
|
||||
.navigation-item a:focus::before {
|
||||
opacity: 1;
|
||||
width: 100%;
|
||||
}
|
||||
.navigation-item.active a::before {
|
||||
opacity: 1;
|
||||
width: 100%;
|
||||
}
|
||||
.navbar_title_logo {
|
||||
max-width: 7rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/******************* Navbar Toggle *******************/
|
||||
#menu-toggle {
|
||||
display: none;
|
||||
}
|
||||
#navigation .menu-button {
|
||||
float: right;
|
||||
position:relative;
|
||||
display: none;
|
||||
width: 4em;
|
||||
height: 4em;
|
||||
}
|
||||
#navigation .menu-button-inner {
|
||||
width: 3em;
|
||||
height: 3em;
|
||||
position:relative;
|
||||
top: 0.5em;
|
||||
left: 0.5em;
|
||||
text-align:center
|
||||
}
|
||||
#navigation .menu-button .menu-button-image {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
height: 20px;
|
||||
width: 24px;
|
||||
top: 14px;
|
||||
background-image: url(../svg/bars.svg);
|
||||
background-size: contain;
|
||||
margin: auto;
|
||||
vertical-align: top;
|
||||
}
|
||||
#menu-toggle:checked + .menu-button .menu-button-image {
|
||||
opacity: 40%;
|
||||
}
|
||||
#navigation-list {
|
||||
position: absolute;
|
||||
top: 6rem;
|
||||
right: 0;
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
max-height: 0;
|
||||
width: 100%;
|
||||
font-size: 1.5em;
|
||||
background-color: var(--background-color);
|
||||
border-top: solid 2px var(--font-color);
|
||||
border-bottom: solid 2px var(--font-color);
|
||||
transition: opacity .5s, max-height .35s linear;
|
||||
padding: 0;
|
||||
}
|
||||
#navigation-list .navigation-item {
|
||||
float: none !important;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
#navigation-list .navigation-item,
|
||||
#navigation-list .navigation-item span {
|
||||
line-height: 5rem;
|
||||
margin: 0 1.5rem;
|
||||
}
|
||||
#menu-toggle:checked + label + ul {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
max-height: max-content;
|
||||
}
|
||||
#navigation .menu-button {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/******************* Front-screen *******************/
|
||||
.front-screen {
|
||||
height: 90vh;
|
||||
position: relative;
|
||||
padding-left: 3em;
|
||||
margin: auto;
|
||||
max-width: var(--max-width-full);
|
||||
}
|
||||
.front-screen_caption {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
.front-screen_caption h1 {
|
||||
font-weight: normal;
|
||||
font-size: 4rem;
|
||||
}
|
||||
.front-screen_caption h2 {
|
||||
font-weight: normal;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
/******************* Main - Sections *******************/
|
||||
.section, .separator {
|
||||
width: 60%;
|
||||
max-width: var(--max-width);
|
||||
margin: auto;
|
||||
}
|
||||
.separator {
|
||||
text-align: center;
|
||||
}
|
||||
.separator img {
|
||||
width: .5em;
|
||||
}
|
||||
.section:last-of-type {
|
||||
margin-bottom: 3em;
|
||||
}
|
62
static/css/media-queries.css
Normal file
62
static/css/media-queries.css
Normal file
|
@ -0,0 +1,62 @@
|
|||
/******************* Main layout *******************/
|
||||
@media screen and (max-width: 768px) {
|
||||
.post {
|
||||
margin-bottom: calc(-1 * var(--footer-height-block));
|
||||
}
|
||||
.post_body {
|
||||
margin: 0 1em;
|
||||
}
|
||||
.post:after {
|
||||
height: var(--footer-height-block);
|
||||
}
|
||||
.footer {
|
||||
height: var(--footer-height-block);
|
||||
padding: 1em 0;
|
||||
}
|
||||
.footer address {
|
||||
display: block;
|
||||
}
|
||||
.footer p {
|
||||
line-height: 2em;
|
||||
}
|
||||
.front-screen {
|
||||
margin-left: 1em;
|
||||
padding-left: 0;
|
||||
}
|
||||
.section {
|
||||
width: 100%;
|
||||
padding: 1em 1em;
|
||||
}
|
||||
}
|
||||
|
||||
/******************* Navbar Menu *******************/
|
||||
@media only screen and (min-width: 768px) {
|
||||
#navigation-list {
|
||||
position: relative;
|
||||
float: right;
|
||||
top: 0;
|
||||
max-height: none;
|
||||
visibility: visible;
|
||||
opacity: 100;
|
||||
width: auto;
|
||||
border: none;
|
||||
font-size: 1em;
|
||||
margin-top: 0;
|
||||
}
|
||||
#navigation-list .navigation-item {
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
line-height: 4rem;
|
||||
}
|
||||
#navigation-list .navigation-item a,
|
||||
#navigation-list .navigation-item span {
|
||||
line-height: 1rem;
|
||||
}
|
||||
#menu-toggle:checked + label + ul {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
#navigation .menu-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue