2020-08-24 01:48:03 -05:00
|
|
|
$bg_color: {{ .Site.Params.backgroundColor | default "#242629" }};
|
|
|
|
$fg_color: {{ .Site.Params.foregroundColor | default "white" }};
|
|
|
|
$dim_fg_color: {{ .Site.Params.dimForegroundColor | default "#bababa" }};
|
|
|
|
$stroke_color: {{ .Site.Params.strokeColor | default "#4f4f4f" }};
|
|
|
|
$accent_color: {{ .Site.Params.accentColor | default "#db5793" }};
|
2021-01-04 06:27:07 -06:00
|
|
|
$main_font: {{ .Site.Params.fontFamily | default "JetBrains Mono" }};
|
2021-06-16 03:50:10 -05:00
|
|
|
$title_font: {{ .Site.Params.titleFontFamily | default "$main_font" }};
|
2021-04-12 17:12:57 -05:00
|
|
|
$mono_font: {{ .Site.Params.monospaceFontFamily | default "JetBrains Mono" }};
|
2021-01-05 02:38:10 -06:00
|
|
|
$highlight_bg_color: {{ .Site.Params.highlightBgColor | default "#34363b" }};
|
2021-04-14 17:12:30 -05:00
|
|
|
$content_width: {{ .Site.Params.contentWidth | default "1000px" }};
|
|
|
|
$border_radius: 10px;
|
2021-04-19 04:14:05 -05:00
|
|
|
$content_spacing: 25px;
|
2020-08-24 01:48:03 -05:00
|
|
|
|
2020-09-05 03:47:45 -05:00
|
|
|
::selection, ::-moz-selection {
|
|
|
|
background: $accent_color;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
2021-01-04 07:59:09 -06:00
|
|
|
a {
|
2021-01-04 06:20:55 -06:00
|
|
|
transition: all .15s ease-in-out;
|
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
body, html {
|
2021-01-04 06:27:07 -06:00
|
|
|
font-family: "Symbols Nerd Font", $main_font, monospace;
|
2020-08-24 01:48:03 -05:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background-color: $bg_color;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
|
2021-01-05 02:38:10 -06:00
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
a {
|
|
|
|
color: $fg_color;
|
|
|
|
text-decoration: none;
|
|
|
|
border-bottom: 2px solid $fg_color;
|
2021-04-13 08:21:40 -05:00
|
|
|
&:hover, &:focus {
|
2021-01-03 06:15:46 -06:00
|
|
|
border-color: $accent_color !important;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-04 08:32:15 -05:00
|
|
|
@mixin limitWidth {
|
2021-04-12 16:49:04 -05:00
|
|
|
max-width: $content_width;
|
2021-05-05 03:00:29 -05:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
2021-05-04 08:32:15 -05:00
|
|
|
#content {
|
|
|
|
@include limitWidth;
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
footer {
|
|
|
|
color: $dim_fg_color;
|
|
|
|
a {
|
|
|
|
color: $dim_fg_color;
|
|
|
|
}
|
2021-01-03 14:38:54 -06:00
|
|
|
hr {
|
2021-04-19 04:14:05 -05:00
|
|
|
margin-top: (2 * $content_spacing);
|
2021-01-03 14:38:54 -06:00
|
|
|
}
|
2021-04-14 16:53:36 -05:00
|
|
|
.footerColumns {
|
|
|
|
font-size: .9rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
ul {
|
2021-04-19 04:14:05 -05:00
|
|
|
margin: ($content_spacing / 2);
|
2021-04-14 16:53:36 -05:00
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
li > strong {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#links {
|
2021-04-19 04:14:05 -05:00
|
|
|
padding: 5px 0;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
article, .articlePreview {
|
|
|
|
img {
|
|
|
|
margin: auto;
|
|
|
|
display: block;
|
2021-04-12 16:49:04 -05:00
|
|
|
max-width: 100%;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
pre {
|
|
|
|
padding: 20px;
|
|
|
|
border: 1px solid $stroke_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
2021-04-12 17:12:57 -05:00
|
|
|
font-family: $mono_font, monospace;
|
2020-08-24 01:48:03 -05:00
|
|
|
font-size: .8em;
|
|
|
|
padding: 2px;
|
|
|
|
border: 1px solid $stroke_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
border: none;
|
|
|
|
border-radius: none;
|
|
|
|
padding: 0
|
|
|
|
}
|
|
|
|
|
2021-01-03 06:15:46 -06:00
|
|
|
.date, .date a {
|
2020-08-24 01:48:03 -05:00
|
|
|
color: $dim_fg_color;
|
2021-01-03 06:15:46 -06:00
|
|
|
border-color: $dim_fg_color;
|
2020-08-24 01:48:03 -05:00
|
|
|
font-size: .9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#pageNavigation, .nerdlink, nav {
|
|
|
|
a {
|
|
|
|
border-bottom: none;
|
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pageNavigation {
|
|
|
|
text-align: right;
|
|
|
|
a {
|
|
|
|
color: $accent_color;
|
|
|
|
}
|
2021-01-04 06:20:55 -06:00
|
|
|
&.nav-circles {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
|
|
|
a, span {
|
|
|
|
margin: 5px;
|
|
|
|
text-align: center;
|
|
|
|
display: inline-block;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
line-height: 40px;
|
|
|
|
padding: auto;
|
|
|
|
border-radius: 100%;
|
2021-01-05 02:38:10 -06:00
|
|
|
background-color: $highlight_bg_color;
|
2021-01-04 06:20:55 -06:00
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
background-color: $accent_color;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
background-color: $accent_color;
|
|
|
|
}
|
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2021-06-09 15:35:33 -05:00
|
|
|
font-family: $title_font;
|
2020-08-24 01:48:03 -05:00
|
|
|
a {
|
|
|
|
color: $accent_color;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nerd {
|
2021-04-12 17:12:57 -05:00
|
|
|
font-family: "Symbols Nerd Font", $mono_font;
|
2020-08-24 01:48:03 -05:00
|
|
|
font-size: 1.2em;
|
|
|
|
margin: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nerdlink {
|
2021-04-18 06:04:19 -05:00
|
|
|
transition: all .15s ease-in-out;
|
2020-08-24 01:48:03 -05:00
|
|
|
@extend .nerd;
|
|
|
|
color: $fg_color;
|
|
|
|
border-bottom: none;
|
2020-09-05 04:03:07 -05:00
|
|
|
position: relative;
|
2021-01-26 02:06:01 -06:00
|
|
|
width: 1em;
|
|
|
|
height: 1.2em;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
.pseudofont {
|
2021-04-18 06:04:19 -05:00
|
|
|
transition: all .15s ease-in-out;
|
2021-01-26 02:06:01 -06:00
|
|
|
fill: $fg_color;
|
|
|
|
display: inline;
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
}
|
2020-09-05 04:03:07 -05:00
|
|
|
span {
|
|
|
|
position: absolute;
|
|
|
|
top: 1.5em;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
padding: 2px;
|
|
|
|
border: 1px solid $stroke_color;
|
|
|
|
border-radius: 3px;
|
|
|
|
color: $fg_color;
|
|
|
|
display: none;
|
2021-04-14 04:19:13 -05:00
|
|
|
background-color: $bg_color;
|
2021-04-14 06:00:20 -05:00
|
|
|
z-index: 900;
|
|
|
|
text-align: center;
|
2020-09-05 04:03:07 -05:00
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
&:hover {
|
2021-01-26 02:06:01 -06:00
|
|
|
.pseudofont {
|
|
|
|
fill: $accent_color;
|
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
color: $accent_color;
|
|
|
|
text-decoration: none;
|
|
|
|
border-bottom: none;
|
2020-09-05 04:03:07 -05:00
|
|
|
span {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.card {
|
2021-05-05 03:00:29 -05:00
|
|
|
display: block;
|
2021-04-12 16:07:16 -05:00
|
|
|
padding-bottom: 25px;
|
2021-01-05 02:38:10 -06:00
|
|
|
|
|
|
|
&.discrete {
|
2021-04-13 16:30:34 -05:00
|
|
|
background-color: $highlight_bg_color;
|
2021-04-14 17:12:30 -05:00
|
|
|
border-radius: $border_radius;
|
2021-01-05 02:38:10 -06:00
|
|
|
padding: 20px;
|
|
|
|
padding-top: 1px;
|
|
|
|
}
|
2021-04-19 05:01:09 -05:00
|
|
|
|
|
|
|
&.single {
|
|
|
|
{{ if (.Site.Params.bigArticleTitle | default false) }}
|
|
|
|
h1 {
|
|
|
|
font-size: 2.2em;
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
}
|
2021-01-05 02:38:10 -06:00
|
|
|
}
|
|
|
|
|
2021-04-12 16:49:04 -05:00
|
|
|
.postlist {
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 25px;
|
2021-04-19 04:14:05 -05:00
|
|
|
margin-bottom: $content_spacing;
|
2021-04-12 16:49:04 -05:00
|
|
|
grid-template-columns: 1fr;
|
|
|
|
&.gridView {
|
2021-04-14 17:10:33 -05:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
2021-04-12 16:49:04 -05:00
|
|
|
.card {
|
|
|
|
&.discrete {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-05 02:38:10 -06:00
|
|
|
// only hide hr in cards if they are in the article list
|
|
|
|
// cards in list are divs, cards as in full-blown articles use the article tag
|
2021-03-10 02:25:37 -06:00
|
|
|
.postlistitem.card.discrete {
|
|
|
|
hr { display: none; }
|
|
|
|
}
|
|
|
|
|
2021-03-11 06:19:00 -06:00
|
|
|
.postlistitem.card div {
|
2021-03-10 02:25:37 -06:00
|
|
|
img {
|
2021-04-12 16:49:04 -05:00
|
|
|
height: 250px;
|
|
|
|
min-width: 100%;
|
2021-06-12 08:11:59 -05:00
|
|
|
object-fit:
|
|
|
|
{{ if .Site.Params.FitImageInArticlePreview }}
|
|
|
|
contain
|
|
|
|
{{ else }}
|
|
|
|
cover
|
|
|
|
{{ end }};
|
2021-03-10 02:25:37 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
margin: 5px 0;
|
|
|
|
}
|
|
|
|
}
|
2020-08-24 04:30:00 -05:00
|
|
|
|
2021-01-04 06:31:36 -06:00
|
|
|
ul.list {
|
|
|
|
.date {
|
|
|
|
display: inline-block;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-24 04:30:00 -05:00
|
|
|
#commento {
|
2021-04-12 16:49:04 -05:00
|
|
|
margin-top: 25px;
|
2020-08-24 04:30:00 -05:00
|
|
|
color: $fg_color;
|
2021-01-04 06:27:07 -06:00
|
|
|
font-family: $main_font, monospace;
|
2020-08-24 04:30:00 -05:00
|
|
|
textarea, #commento-markdown-help-root {
|
|
|
|
background: rgba(255, 255, 255, .05);
|
|
|
|
color: $fg_color;
|
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
td, td>*, td>*>* {
|
|
|
|
color: $fg_color;
|
|
|
|
pre {
|
2021-04-12 17:12:57 -05:00
|
|
|
font-family: $mono_font, monospace;
|
2020-08-24 04:30:00 -05:00
|
|
|
color: $dim_fg_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#commento-submit-button-root {
|
|
|
|
background: $accent_color;
|
|
|
|
color: $fg_color;
|
|
|
|
}
|
|
|
|
.commento-name {
|
|
|
|
color: $dim_fg_color;
|
|
|
|
}
|
|
|
|
.commento-sort-policy-buttons {
|
|
|
|
a {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
.commento-sort-policy-button-selected {
|
|
|
|
color: $accent_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.commento-card {
|
|
|
|
border-top: none;
|
|
|
|
margin: 25px 0;
|
|
|
|
}
|
|
|
|
.commento-body {
|
|
|
|
>*, *>*, >*>*>*, >*>*>*>*, >*>*>*>*>* {
|
|
|
|
color: $fg_color;
|
2021-01-04 06:27:07 -06:00
|
|
|
font-family: $main_font, monospace;
|
2020-08-24 04:30:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-13 08:21:40 -05:00
|
|
|
|
|
|
|
.search {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
2021-04-13 09:04:16 -05:00
|
|
|
margin: 12px 0;
|
2021-04-13 08:21:40 -05:00
|
|
|
.nerdlink {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
#searchbar {
|
|
|
|
@extend a;
|
|
|
|
width: 100%;
|
|
|
|
display: inline-block;
|
|
|
|
background-color: transparent;
|
|
|
|
border-top: none;
|
|
|
|
border-left: none;
|
|
|
|
border-right: none;
|
|
|
|
padding: 6px 0;
|
|
|
|
font-family: $main_font;
|
|
|
|
font-size: 1.3em;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
2021-04-13 09:04:16 -05:00
|
|
|
|
|
|
|
.titleAndSearchContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
2021-04-18 06:04:19 -05:00
|
|
|
#titleContainer {
|
|
|
|
flex-grow: 99;
|
|
|
|
}
|
2021-04-13 09:04:16 -05:00
|
|
|
.search {
|
2021-04-18 06:04:19 -05:00
|
|
|
flex-grow: 1;
|
2021-04-13 09:04:16 -05:00
|
|
|
&, #searchbar {font-size: 1em;}
|
|
|
|
}
|
|
|
|
}
|
2021-04-13 16:30:34 -05:00
|
|
|
|
|
|
|
.featuredCardLink {
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
.featuredCard {
|
|
|
|
@extend .card;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
position: relative;
|
|
|
|
height: 250px;
|
|
|
|
.contentArea {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 15px;
|
2021-04-14 06:28:59 -05:00
|
|
|
&, h2, .date {color: white;}
|
2021-04-13 16:30:34 -05:00
|
|
|
h2 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.date {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.discrete {
|
2021-04-14 17:12:30 -05:00
|
|
|
border-radius: $border_radius;
|
2021-04-13 16:30:34 -05:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-14 17:00:53 -05:00
|
|
|
|
2021-04-19 04:14:05 -05:00
|
|
|
@mixin buttonLikeLink {
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: $border_radius;
|
|
|
|
background-color: $highlight_bg_color;
|
2021-04-19 04:20:08 -05:00
|
|
|
padding: ($content_spacing / 2);
|
|
|
|
margin: ($content_spacing / 6) 0;
|
2021-04-19 04:14:05 -05:00
|
|
|
border-bottom: none;
|
|
|
|
&:hover, &:focus {
|
|
|
|
background-color: $accent_color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-14 17:00:53 -05:00
|
|
|
.loadMoreButton {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
font-weight: bold;
|
|
|
|
&.buttonLike {
|
|
|
|
a {
|
2021-04-19 04:14:05 -05:00
|
|
|
@include buttonLikeLink;
|
2021-04-14 17:00:53 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-15 00:46:53 -05:00
|
|
|
|
|
|
|
.relatedArticlesContainer {
|
2021-04-19 04:14:05 -05:00
|
|
|
margin: $content_spacing 0;
|
2021-04-15 00:46:53 -05:00
|
|
|
#relatedArticles .postlistitem {
|
|
|
|
@extend .featuredCard;
|
|
|
|
}
|
|
|
|
}
|
2021-04-18 06:04:19 -05:00
|
|
|
|
|
|
|
#titleContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 1.6em;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
2021-04-19 04:14:05 -05:00
|
|
|
margin-right: ($content_spacing / 2);
|
2021-04-18 06:04:19 -05:00
|
|
|
margin-top: 7px;
|
|
|
|
align-self: flex-start;
|
|
|
|
width: 50px;
|
|
|
|
max-height: 50px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nav, #links {
|
|
|
|
ul {
|
|
|
|
list-style-type: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
2021-05-04 08:32:15 -05:00
|
|
|
@include limitWidth;
|
|
|
|
padding: 15px;
|
2021-04-19 04:14:05 -05:00
|
|
|
margin-bottom: $content_spacing;
|
2021-04-18 06:04:19 -05:00
|
|
|
.titleAndHamburger {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: flex-start;
|
2021-04-19 04:14:05 -05:00
|
|
|
justify-content: space-between;
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
nav {
|
|
|
|
font-size: .9em;
|
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
border-right: 1px solid $accent_color;
|
|
|
|
&:last-child {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
padding: 2px 20px;
|
|
|
|
color: $accent_color;
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 04:14:05 -05:00
|
|
|
.articleTagsContainer {
|
|
|
|
margin: $content_spacing 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.discreteTag {
|
|
|
|
@include buttonLikeLink;
|
|
|
|
}
|
|
|
|
|
2021-06-28 03:20:05 -05:00
|
|
|
.shareBtn {
|
|
|
|
{{ if eq (site.Params.navType | default "standard") "circles" }}
|
|
|
|
@include buttonLikeLink;
|
|
|
|
{{ end }}
|
|
|
|
font-size: 1.2em;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
{{ if or (site.Params.discreteCards | default false) (eq (site.Params.navType | default "standard") "circles") }}
|
|
|
|
@include buttonLikeLink;
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
background-color: $highlight_bg_color;
|
|
|
|
}
|
|
|
|
{{ end }}
|
2021-06-28 04:02:21 -05:00
|
|
|
font-family: $main_font;
|
2021-06-28 03:20:05 -05:00
|
|
|
background-color: $highlight_bg_color;
|
|
|
|
padding: 12px;
|
|
|
|
color: $fg_color;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
transition: .15s border ease-in-out;
|
|
|
|
&:focus, &:active {
|
|
|
|
border: 2px solid $accent_color;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#fediInstanceDialog {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0; bottom: 0; left: 0; right: 0;
|
|
|
|
|
|
|
|
.dialog {
|
|
|
|
position: absolute;
|
|
|
|
display: flex; flex-direction: column;
|
|
|
|
top: 24px;
|
|
|
|
left: 50%; transform: translateX(-50%);
|
|
|
|
z-index: 9999;
|
|
|
|
background-color: $bg_color;
|
|
|
|
width: 450px;
|
|
|
|
max-width: 100%;
|
|
|
|
padding: 24px;
|
|
|
|
{{ if site.Params.discreteCards }}
|
|
|
|
border-radius: $border_radius;
|
|
|
|
{{ end }}
|
|
|
|
h1, h2, h3, h4 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.buttons {
|
|
|
|
margin: 12px 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: end;
|
|
|
|
> * {
|
|
|
|
margin-left: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.bg {
|
|
|
|
z-index: 99;
|
|
|
|
position: absolute;
|
|
|
|
top: 0; bottom: 0; left: 0; right: 0;
|
|
|
|
background-color: rgba(0, 0, 0, .4);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
&.open {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-18 06:04:19 -05:00
|
|
|
{{ if .Site.Params.mobileHamburgerNav | default false }}
|
|
|
|
header {
|
|
|
|
#hamburger-menu {
|
|
|
|
@extend .nerdlink;
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
#main-nav-toggler {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 520px) {
|
|
|
|
header {
|
|
|
|
#hamburger-menu {
|
|
|
|
display: block !important;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
cursor: pointer;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
2021-04-19 04:14:05 -05:00
|
|
|
padding: ($content_spacing / 4);
|
|
|
|
align-self: center;
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
nav {
|
|
|
|
ul#main-nav {
|
|
|
|
display: none;
|
|
|
|
flex-direction: column;
|
|
|
|
li {
|
|
|
|
border-right: none !important;
|
|
|
|
display: block;
|
|
|
|
text-align: right;
|
|
|
|
a {
|
|
|
|
padding-left: 0;
|
2021-04-19 04:14:05 -05:00
|
|
|
padding-right: ($content_spacing / 4);
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#main-nav-toggler:checked ~ #main-nav {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|
2021-05-04 08:21:14 -05:00
|
|
|
|
|
|
|
{{ if (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }}
|
|
|
|
header {
|
|
|
|
.jumbotron { display: none; }
|
2021-05-04 08:32:15 -05:00
|
|
|
max-width: 100%;
|
|
|
|
> * {
|
|
|
|
@include limitWidth;
|
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
}
|
|
|
|
header.jumbotronContainer {
|
|
|
|
.jumbotron { display: flex; }
|
|
|
|
{{ if .Site.Data.jumbotron.background }}
|
|
|
|
background:
|
|
|
|
linear-gradient(
|
|
|
|
transparentize($bg_color, 0.2),
|
|
|
|
transparentize($bg_color, 0.2)
|
|
|
|
),
|
|
|
|
url({{ .Site.Data.jumbotron.background }});
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
{{ else }}
|
|
|
|
background-color: rgba(0, 0, 0, .3);
|
|
|
|
{{ end }}
|
|
|
|
}
|
|
|
|
.jumbotron {
|
|
|
|
width: 100%;
|
|
|
|
min-height: 40vh;
|
|
|
|
flex-direction: column;
|
|
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
h1 {
|
|
|
|
font-weight: 300;
|
|
|
|
}
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
li {
|
|
|
|
margin: 3px;
|
|
|
|
a {
|
|
|
|
{{ if eq .Site.Params.navType "circles" }}
|
|
|
|
@include buttonLikeLink;
|
|
|
|
background-color: transparentize($highlight_bg_color, .3);
|
|
|
|
{{ end }}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|