blog-static/themes/vanilla/assets/scss/style.scss

280 lines
3.9 KiB
SCSS
Raw Normal View History

@import "variables.scss";
@import "mixins.scss";
@import "margin.scss";
body {
font-family: $font-body;
font-size: 1.0rem;
line-height: 1.5;
2019-12-27 23:12:35 -08:00
margin-bottom: 1rem;
2019-11-02 17:53:31 -07:00
text-align: justify;
@include below-container-width {
text-align: left;
}
}
h1, h2, h3, h4, h5, h6 {
2019-12-27 23:12:35 -08:00
margin-bottom: .1rem;
margin-top: .5rem;
font-family: $font-heading;
font-weight: normal;
2020-05-04 03:23:55 -07:00
text-align: center;
a {
2020-05-04 03:23:55 -07:00
border-bottom: none;
&:hover {
color: $primary-color;
}
}
}
code {
font-family: $font-code;
2019-11-02 17:53:31 -07:00
background-color: $code-color;
}
pre code {
display: block;
2019-12-27 23:12:35 -08:00
padding: 0.5rem;
overflow-x: auto;
2020-06-30 21:31:16 -07:00
border: $code-border;
}
2020-06-30 21:31:16 -07:00
div.highlight table {
border: $code-border !important;
pre {
margin: 0;
}
code {
border: none;
}
2020-05-04 03:23:55 -07:00
}
.container {
position: relative;
margin: auto;
width: 100%;
max-width: $container-width;
box-sizing: border-box;
@include below-container-width {
padding: 0rem 1rem 0rem 1rem;
}
@include below-two-margins {
left: -($margin-width + $margin-offset)/2;
}
@include below-one-margin {
position: initial;
}
}
.button, input[type="submit"] {
2019-12-27 23:12:35 -08:00
padding: 0.5rem;
background-color: $primary-color;
border: none;
color: white;
transition: color 0.25s;
transition: background-color 0.25s;
text-align: left;
&:focus {
outline: none;
}
&:hover, &:focus {
background-color: white;
color: $primary-color;
}
}
nav {
width: 100%;
2020-05-04 03:23:55 -07:00
margin: 0rem 0rem 1rem 0rem;
2020-05-04 03:23:55 -07:00
.container {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
2020-05-04 03:23:55 -07:00
a {
padding: 0.25rem 0.75rem 0.25rem .75rem;
text-decoration: none;
color: black;
display: inline-block;
border-bottom: none;
white-space: nowrap;
}
}
.post-subscript {
color: #8f8f8f;
2020-05-04 03:23:55 -07:00
text-align: center;
}
.post-content {
2019-12-27 23:12:35 -08:00
margin-top: .5rem;
}
h1 {
font-size: 3.0rem;
}
h2 {
font-size: 2.6rem;
}
h3 {
font-size: 2.2rem;
}
h4 {
font-size: 1.8rem;
}
h5 {
font-size: 1.4rem;
}
h6 {
font-size: 1.0rem;
}
a {
2020-05-04 03:23:55 -07:00
color: black;
text-decoration: none;
2020-05-04 03:23:55 -07:00
border-bottom: .2rem solid $primary-color;
transition: color 0.25s;
&:hover {
color: $primary-color;
}
}
img {
max-width: 100%
}
2020-02-29 20:16:57 -08:00
table {
@include bordered-block;
margin: auto;
padding: 0.5rem;
}
tr {
@include below-container-width {
display: flex;
flex-direction: column;
}
}
2020-02-29 20:16:57 -08:00
td {
@include below-container-width {
overflow-x: auto;
}
2020-02-29 20:16:57 -08:00
padding: 0.5rem;
}
div.highlight tr {
display: table-row;
}
2020-05-04 03:23:55 -07:00
hr.header-divider {
background-color: $primary-color;
height: 0.3rem;
border: none;
border-radius: 0.15rem;
}
2020-05-09 01:41:10 -07:00
ul.post-list {
list-style: none;
padding: 0;
li {
@include bordered-block;
margin-bottom: 1rem;
2020-05-17 22:00:10 -07:00
padding: 1rem;
}
2020-05-09 01:45:53 -07:00
p {
margin: 0;
}
2020-05-09 01:41:10 -07:00
a.post-title {
border-bottom: none;
2020-05-09 17:53:55 -07:00
font-size: 1.4rem;
font-family: $font-heading;
2020-05-09 01:45:53 -07:00
text-align: center;
2020-05-09 01:41:10 -07:00
display: block;
}
2020-05-09 01:45:53 -07:00
p.post-wordcount {
text-align: center;
margin-bottom: 0.6rem;
}
2020-05-04 03:23:55 -07:00
}
.katex-html {
white-space: nowrap;
}
2020-04-22 00:30:22 -07:00
figure {
img {
max-width: 70%;
display: block;
margin: auto;
@include below-container-width {
max-width: 100%;
}
}
figcaption {
text-align: center;
}
}
2020-06-24 22:46:22 -07:00
.table-of-contents {
@include margin-content;
@include margin-content-left;
display: flex;
flex-direction: column;
align-items: end;
em {
font-style: normal;
font-weight: bold;
font-size: 1.2em;
display: block;
margin-bottom: 1rem;
}
#TableOfContents > ul {
padding-left: 0;
}
nav {
width: auto;
}
ul {
position: relative;
list-style: none;
padding-left: 2rem;
}
li {
position: relative;
}
a {
padding: 0;
}
}