2021-12-24 16:50:58 -06:00
|
|
|
{{ $colors := .Site.Data.colors | default dict }}
|
|
|
|
|
|
|
|
$dark_bg: {{ $colors.dark.bg | default "#242629" }};
|
|
|
|
$dark_hl_bg: {{ $colors.dark.hl_bg | default "#34363b" }};
|
|
|
|
$dark_fg: {{ $colors.dark.fg | default "white" }};
|
|
|
|
$dark_dim_fg: {{ $colors.dark.dim_fg | default "#bababa" }};
|
|
|
|
$dark_stroke: {{ $colors.dark.stroke | default "#4f4f4f" }};
|
|
|
|
$dark_accent: {{ $colors.dark.accent | default "#db5793" }};
|
|
|
|
$dark_sidebar_bg: {{ $colors.dark.sidebar.bg | default "#34363b" }};
|
|
|
|
$dark_sidebar_fg: {{ $colors.dark.sidebar.fg | default "white" }};
|
|
|
|
|
|
|
|
$light_bg: {{ $colors.light.bg | default "#f5f5f5" }};
|
|
|
|
$light_hl_bg: {{ $colors.light.hl_bg | default "#e6e6e6" }};
|
|
|
|
$light_fg: {{ $colors.light.fg | default "#262625" }};
|
|
|
|
$light_dim_fg: {{ $colors.light.dim_fg | default "#40403e" }};
|
|
|
|
$light_stroke: {{ $colors.light.stroke | default "#575754" }};
|
|
|
|
$light_accent: {{ $colors.light.accent | default "#db5793" }};
|
|
|
|
$light_sidebar_bg: {{ $colors.light.sidebar.bg | default "#e6e6e6" }};
|
|
|
|
$light_sidebar_fg: {{ $colors.light.sidebar.fg | default "#121211" }};
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--dark_bg: #{$dark_bg};
|
|
|
|
--dark_hl_bg: #{$dark_hl_bg};
|
|
|
|
--dark_fg: #{$dark_fg};
|
|
|
|
--dark_dim_fg: #{$dark_dim_fg};
|
|
|
|
--dark_stroke: #{$dark_stroke};
|
|
|
|
--dark_accent: #{$dark_accent};
|
|
|
|
--dark_sidebar_bg: #{$dark_sidebar_bg};
|
|
|
|
--dark_sidebar_fg: #{$dark_sidebar_fg};
|
|
|
|
|
|
|
|
--light_bg: #{$light_bg};
|
|
|
|
--light_hl_bg: #{$light_hl_bg};
|
|
|
|
--light_fg: #{$light_fg};
|
|
|
|
--light_dim_fg: #{$light_dim_fg};
|
|
|
|
--light_stroke: #{$light_stroke};
|
|
|
|
--light_accent: #{$light_accent};
|
|
|
|
--light_sidebar_bg: #{$light_sidebar_bg};
|
|
|
|
--light_sidebar_fg: #{$light_sidebar_fg};
|
|
|
|
|
|
|
|
{{ if eq .Site.Data.colors.default "light" }}
|
|
|
|
--default_bg: #{$light_bg};
|
|
|
|
--default_hl_bg: #{$light_hl_bg};
|
|
|
|
--default_fg: #{$light_fg};
|
|
|
|
--default_dim_fg: #{$light_dim_fg};
|
|
|
|
--default_stroke: #{$light_stroke};
|
|
|
|
--default_accent: #{$light_accent};
|
|
|
|
--default_sidebar_bg: #{$light_sidebar_bg};
|
|
|
|
--default_sidebar_fg: #{$light_sidebar_fg};
|
|
|
|
{{ else }}
|
|
|
|
--default_bg: #{$dark_bg};
|
|
|
|
--default_hl_bg: #{$dark_hl_bg};
|
|
|
|
--default_fg: #{$dark_fg};
|
|
|
|
--default_dim_fg: #{$dark_dim_fg};
|
|
|
|
--default_stroke: #{$dark_stroke};
|
|
|
|
--default_accent: #{$dark_accent};
|
|
|
|
--default_sidebar_bg: #{$dark_sidebar_bg};
|
|
|
|
--default_sidebar_fg: #{$dark_sidebar_fg};
|
|
|
|
{{ end }}
|
|
|
|
}
|
|
|
|
|
2021-12-24 17:08:51 -06:00
|
|
|
{{ if ($colors.auto_switch | default false) }}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--default_bg: #{$dark_bg};
|
|
|
|
--default_hl_bg: #{$dark_hl_bg};
|
|
|
|
--default_fg: #{$dark_fg};
|
|
|
|
--default_dim_fg: #{$dark_dim_fg};
|
|
|
|
--default_stroke: #{$dark_stroke};
|
|
|
|
--default_accent: #{$dark_accent};
|
|
|
|
--default_sidebar_bg: #{$dark_sidebar_bg};
|
|
|
|
--default_sidebar_fg: #{$dark_sidebar_fg};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
:root {
|
|
|
|
--default_bg: #{$light_bg};
|
|
|
|
--default_hl_bg: #{$light_hl_bg};
|
|
|
|
--default_fg: #{$light_fg};
|
|
|
|
--default_dim_fg: #{$light_dim_fg};
|
|
|
|
--default_stroke: #{$light_stroke};
|
|
|
|
--default_accent: #{$light_accent};
|
|
|
|
--default_sidebar_bg: #{$light_sidebar_bg};
|
|
|
|
--default_sidebar_fg: #{$light_sidebar_fg};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-12-24 16:50:58 -06:00
|
|
|
|
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-12-28 02:55:29 -06:00
|
|
|
$symbols_font: "Symbols Nerd Font";
|
2021-04-14 17:12:30 -05:00
|
|
|
$content_width: {{ .Site.Params.contentWidth | default "1000px" }};
|
|
|
|
$border_radius: 10px;
|
2021-12-28 04:26:11 -06:00
|
|
|
$margin: 15px;
|
2020-08-24 01:48:03 -05:00
|
|
|
|
2021-12-13 03:55:11 -06:00
|
|
|
$base_font_size: 16px;
|
|
|
|
$title_font_mult: {{ .Site.Params.titleFontSizeMultiplier | default 1.0 }};
|
|
|
|
$main_font_mult: {{ .Site.Params.mainFontSizeMultiplier | default 1.0 }};
|
|
|
|
$mono_font_mult: {{ .Site.Params.monoFontSizeMultiplier | default 1.0 }};
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
{{ if (.Site.Params.enableShadow | default false) }}
|
|
|
|
$shadow: 0 0 5px 0 rgba(0, 0, 0, .2);
|
|
|
|
{{ else }}
|
|
|
|
$shadow: 0 0 0 0 transparent;
|
|
|
|
{{ end }}
|
|
|
|
|
2020-09-05 03:47:45 -05:00
|
|
|
::selection, ::-moz-selection {
|
2021-12-24 16:50:58 -06:00
|
|
|
background: var(--default_accent);
|
|
|
|
color: var(--default_fg);
|
2020-09-05 03:47:45 -05:00
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
body, html {
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $main_font, monospace;
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: $base_font_size * $main_font_mult;
|
2020-08-24 01:48:03 -05:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_bg);
|
|
|
|
color: var(--default_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
2021-01-05 02:38:10 -06:00
|
|
|
body {
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
@mixin linkLike {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
text-decoration: none;
|
2021-12-25 08:05:50 -06:00
|
|
|
background-color: transparent;
|
|
|
|
border-radius: 0;
|
2021-12-24 16:50:58 -06:00
|
|
|
border-bottom: 2px solid var(--default_fg);
|
2021-04-13 08:21:40 -05:00
|
|
|
&:hover, &:focus {
|
2021-12-24 16:50:58 -06:00
|
|
|
border-color: var(--default_accent) !important;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-27 01:46:31 -06:00
|
|
|
@mixin roundButtonLike {
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: $border_radius;
|
|
|
|
background-color: var(--default_hl_bg);
|
|
|
|
color: var(--default_fg);
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: ($margin / 2);
|
|
|
|
margin: ($margin / 6) 0;
|
2021-12-27 01:46:31 -06:00
|
|
|
transition: background-color .15s ease-in-out !important;
|
|
|
|
border-bottom: none;
|
|
|
|
&:hover, &:focus {
|
|
|
|
background-color: var(--default_accent);
|
|
|
|
}
|
|
|
|
box-shadow: $shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin buttonLike {
|
|
|
|
{{ if eq (site.Params.navtype | default "standard") "circles" }}
|
|
|
|
@include roundButtonLike;
|
|
|
|
{{ else }}
|
|
|
|
@include linkLike;
|
|
|
|
{{ end }}
|
|
|
|
font-size: #{1.2 * $base_font_size};
|
|
|
|
}
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
a {
|
|
|
|
@include linkLike;
|
|
|
|
}
|
|
|
|
|
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;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
2021-05-04 08:32:15 -05:00
|
|
|
}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
footer {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_dim_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
a {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_dim_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
2021-01-03 14:38:54 -06:00
|
|
|
hr {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin-top: (2 * $margin);
|
2021-01-03 14:38:54 -06:00
|
|
|
}
|
2021-04-14 16:53:36 -05:00
|
|
|
.footerColumns {
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: .9 * $base_font_size * $main_font_mult;
|
2021-04-14 16:53:36 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
ul {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: ($margin / 2);
|
2021-04-14 16:53:36 -05:00
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
li > strong {
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 1rem * $main_font_mult;
|
2021-04-14 16:53:36 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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 {
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 1px solid var(--default_stroke);
|
2020-08-24 01:48:03 -05:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $mono_font, monospace;
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: $base_font_size * .8 * $mono_font_mult;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 1px solid var(--default_stroke);
|
2021-11-25 07:24:56 -06:00
|
|
|
border-radius: 3px
|
2021-11-25 06:59:57 -06:00
|
|
|
}
|
|
|
|
code, table {
|
|
|
|
padding: 2px;
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
border: none;
|
|
|
|
border-radius: none;
|
|
|
|
padding: 0
|
|
|
|
}
|
|
|
|
|
2021-11-25 06:59:57 -06:00
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
overflow-x: auto;
|
|
|
|
display: block;
|
|
|
|
td, th {
|
|
|
|
padding: 6px;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 1px solid var(--default_stroke);
|
2021-11-25 06:59:57 -06:00
|
|
|
}
|
2021-12-24 16:50:58 -06:00
|
|
|
th, tr:nth-child(even) {
|
|
|
|
filter: brightness(105%);
|
2021-11-25 06:59:57 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-03 06:15:46 -06:00
|
|
|
.date, .date a {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_dim_fg);
|
|
|
|
border-color: var(--default_dim_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
font-size: .9em;
|
|
|
|
}
|
|
|
|
|
2021-12-16 06:29:08 -06:00
|
|
|
#pageNavigation, .nerdlink, nav:not(#TableOfContents) {
|
2020-08-24 01:48:03 -05:00
|
|
|
a {
|
|
|
|
border-bottom: none;
|
|
|
|
&:hover {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pageNavigation {
|
|
|
|
text-align: right;
|
|
|
|
a {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_accent);
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
2021-12-21 03:04:57 -06:00
|
|
|
a, span {
|
|
|
|
// appropriately sized tap targets
|
|
|
|
display: inline-block;
|
|
|
|
padding: 6px;
|
|
|
|
}
|
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;
|
2021-12-24 16:50:58 -06:00
|
|
|
padding: unset;
|
2021-01-04 06:20:55 -06:00
|
|
|
border-radius: 100%;
|
2021-12-25 08:05:50 -06:00
|
|
|
transition: background-color .15s ease-in-out;
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_hl_bg);
|
|
|
|
color: var(--default_fg);
|
2021-12-25 08:05:50 -06:00
|
|
|
box-shadow: $shadow;
|
2021-01-04 06:20:55 -06:00
|
|
|
}
|
|
|
|
span {
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_accent);
|
2021-01-04 06:20:55 -06:00
|
|
|
}
|
|
|
|
a:hover {
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_accent);
|
2021-01-04 06:20:55 -06:00
|
|
|
}
|
|
|
|
}
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $title_font;
|
2020-08-24 01:48:03 -05:00
|
|
|
a {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_accent);
|
2021-12-13 04:09:21 -06:00
|
|
|
{{ if not (.Site.Params.underlineTitleLinks | default false) }}
|
|
|
|
border-bottom: none;
|
|
|
|
{{ end }}
|
2020-08-24 01:48:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-13 03:55:11 -06:00
|
|
|
h1 {font-size: 2.0 * $base_font_size * $title_font_mult;}
|
|
|
|
h2 {font-size: 1.5 * $base_font_size * $title_font_mult;}
|
|
|
|
h3 {font-size: 1.3 * $base_font_size * $title_font_mult;}
|
|
|
|
h4 {font-size: 1.0 * $base_font_size * $title_font_mult;}
|
|
|
|
h5 {font-size: 0.8 * $base_font_size * $title_font_mult;}
|
|
|
|
h6 {font-size: 0.7 * $base_font_size * $title_font_mult;}
|
|
|
|
|
2020-08-24 01:48:03 -05:00
|
|
|
.nerd {
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $main_font;
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 1.2 * $base_font_size;
|
2020-08-24 01:48:03 -05:00
|
|
|
margin: 5px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nerdlink {
|
|
|
|
@extend .nerd;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2020-08-24 01:48:03 -05:00
|
|
|
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-12-24 16:50:58 -06:00
|
|
|
fill: var(--default_fg);
|
2021-01-26 02:06:01 -06:00
|
|
|
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;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 1px solid var(--default_stroke);
|
2020-09-05 04:03:07 -05:00
|
|
|
border-radius: 3px;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2020-09-05 04:03:07 -05:00
|
|
|
display: none;
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_bg);
|
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 {
|
2021-12-24 16:50:58 -06:00
|
|
|
fill: var(--default_accent);
|
2021-01-26 02:06:01 -06:00
|
|
|
}
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_accent);
|
2020-08-24 01:48:03 -05:00
|
|
|
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-12-28 04:26:11 -06:00
|
|
|
padding-bottom: $margin;
|
2021-01-05 02:38:10 -06:00
|
|
|
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_hl_bg);
|
2021-04-14 17:12:30 -05:00
|
|
|
border-radius: $border_radius;
|
2021-12-25 08:05:50 -06:00
|
|
|
box-shadow: $shadow;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
2021-01-05 02:38:10 -06:00
|
|
|
padding-top: 1px;
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ end }}
|
2021-04-19 05:01:09 -05:00
|
|
|
|
|
|
|
&.single {
|
|
|
|
{{ if (.Site.Params.bigArticleTitle | default false) }}
|
|
|
|
h1 {
|
2021-12-26 02:42:44 -06:00
|
|
|
font-size: #{2.2 * $base_font_size * $title_font_mult};
|
2021-04-19 05:01:09 -05:00
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
}
|
2021-01-05 02:38:10 -06:00
|
|
|
}
|
|
|
|
|
2021-04-12 16:49:04 -05:00
|
|
|
.postlist {
|
2021-12-13 03:55:11 -06:00
|
|
|
display: grid;
|
2021-12-28 04:26:11 -06:00
|
|
|
grid-gap: $margin;
|
|
|
|
margin-bottom: $margin;
|
2021-12-13 03:55:11 -06:00
|
|
|
grid-template-columns: 1fr;
|
2021-04-12 16:49:04 -05:00
|
|
|
&.gridView {
|
2021-12-28 04:26:11 -06:00
|
|
|
grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
|
2021-04-12 16:49:04 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-12-28 03:46:29 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
|
|
|
.postlistitem.card {
|
|
|
|
hr { display: none; }
|
|
|
|
}
|
|
|
|
{{ end}}
|
2021-03-10 02:25:37 -06:00
|
|
|
|
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;
|
2021-12-28 04:32:54 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
|
|
|
min-width: calc(100% + #{2*$margin});
|
|
|
|
margin: 0 #{-$margin};
|
|
|
|
{{ else }}
|
|
|
|
min-width: 100%;
|
|
|
|
{{ end }}
|
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;
|
|
|
|
}
|
2021-06-29 11:09:56 -05:00
|
|
|
> li > div {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 100px auto;
|
|
|
|
}
|
2021-01-04 06:31:36 -06:00
|
|
|
}
|
|
|
|
|
2020-08-24 04:30:00 -05:00
|
|
|
#commento {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin-top: $margin;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $main_font, monospace;
|
2020-08-24 04:30:00 -05:00
|
|
|
textarea, #commento-markdown-help-root {
|
|
|
|
background: rgba(255, 255, 255, .05);
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2020-08-24 04:30:00 -05:00
|
|
|
border-radius: 0;
|
|
|
|
border: none;
|
|
|
|
td, td>*, td>*>* {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2020-08-24 04:30:00 -05:00
|
|
|
pre {
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $mono_font, monospace;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_dim_fg);
|
2020-08-24 04:30:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#commento-submit-button-root {
|
2021-12-24 16:50:58 -06:00
|
|
|
background: var(--default_accent);
|
|
|
|
color: var(--default_fg);
|
2020-08-24 04:30:00 -05:00
|
|
|
}
|
|
|
|
.commento-name {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_dim_fg);
|
2020-08-24 04:30:00 -05:00
|
|
|
}
|
|
|
|
.commento-sort-policy-buttons {
|
|
|
|
a {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
.commento-sort-policy-button-selected {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_accent);
|
2020-08-24 04:30:00 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.commento-card {
|
|
|
|
border-top: none;
|
|
|
|
margin: 25px 0;
|
|
|
|
}
|
|
|
|
.commento-body {
|
|
|
|
>*, *>*, >*>*>*, >*>*>*>*, >*>*>*>*>* {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $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-12-28 04:26:11 -06:00
|
|
|
margin: $margin 0;
|
2021-04-13 08:21:40 -05:00
|
|
|
.nerdlink {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2021-12-21 03:04:57 -06:00
|
|
|
padding: 0 6px; // appropriately sized tap targets
|
2021-04-13 08:21:40 -05:00
|
|
|
}
|
|
|
|
#searchbar {
|
|
|
|
width: 100%;
|
2021-12-16 05:37:20 -06:00
|
|
|
min-width: 150px;
|
2021-04-13 08:21:40 -05:00
|
|
|
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;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
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;
|
|
|
|
}
|
|
|
|
}
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
2021-04-14 17:12:30 -05:00
|
|
|
border-radius: $border_radius;
|
2021-04-13 16:30:34 -05:00
|
|
|
padding: 0;
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ end }}
|
2021-04-13 16:30:34 -05:00
|
|
|
}
|
|
|
|
}
|
2021-04-14 17:00:53 -05:00
|
|
|
|
|
|
|
.loadMoreButton {
|
|
|
|
text-align: center;
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 1.2em;
|
2021-04-14 17:00:53 -05:00
|
|
|
font-weight: bold;
|
|
|
|
&.buttonLike {
|
|
|
|
a {
|
2021-12-25 08:05:50 -06:00
|
|
|
@include roundButtonLike;
|
2021-04-14 17:00:53 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-15 00:46:53 -05:00
|
|
|
|
|
|
|
.relatedArticlesContainer {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: $margin 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;
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 1.6 * $base_font_size * $title_font_mult;
|
2021-04-18 06:04:19 -05:00
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin-right: ($margin / 2);
|
2021-04-18 06:04:19 -05:00
|
|
|
margin-top: 7px;
|
|
|
|
align-self: flex-start;
|
|
|
|
width: 50px;
|
|
|
|
max-height: 50px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-16 06:29:08 -06:00
|
|
|
nav:not(#TableOfContents), #links {
|
2021-04-18 06:04:19 -05:00
|
|
|
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;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
|
|
|
margin-bottom: $margin;
|
2021-12-16 05:37:20 -06:00
|
|
|
.rightOfLogo {
|
|
|
|
width: 100%;
|
|
|
|
.titleAndHamburger {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
2021-12-16 06:29:08 -06:00
|
|
|
nav:not(#TableOfContents) {
|
2021-04-18 06:04:19 -05:00
|
|
|
font-size: .9em;
|
|
|
|
ul {
|
|
|
|
li {
|
2021-12-27 01:46:31 -06:00
|
|
|
{{ if eq .Site.Params.menuStyle "buttons" }}
|
|
|
|
margin: 5px 2px;
|
|
|
|
margin-right: 5px;
|
|
|
|
&:last-child {
|
|
|
|
margin-right: none;
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
2021-12-27 01:46:31 -06:00
|
|
|
a {
|
|
|
|
{{ if eq (site.Params.navtype | default "standard") "circles" }}
|
|
|
|
@include roundButtonLike;
|
|
|
|
{{ else }}
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $main_font;
|
2021-12-27 01:46:31 -06:00
|
|
|
background-color: var(--default_hl_bg);
|
|
|
|
transition: background-color .15s ease-in-out;
|
|
|
|
&:hover, &:active {
|
|
|
|
background-color: var(--default_accent);
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: var(--default_fg);
|
|
|
|
margin: 0;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: #{$margin/2} $margin;
|
2021-12-27 01:46:31 -06:00
|
|
|
}
|
|
|
|
{{ else }}
|
|
|
|
border-right: 1px solid var(--default_accent);
|
|
|
|
&:last-child {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
a {
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: 2px $margin;
|
2021-12-27 01:46:31 -06:00
|
|
|
color: var(--default_accent);
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 04:14:05 -05:00
|
|
|
.articleTagsContainer {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: $margin 0;
|
2021-04-19 04:14:05 -05:00
|
|
|
}
|
|
|
|
|
2021-12-28 03:46:29 -06:00
|
|
|
a.buttonTag {
|
2021-12-25 08:05:50 -06:00
|
|
|
@include roundButtonLike;
|
2021-04-19 04:14:05 -05:00
|
|
|
}
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
.cactus-button, .cactus-login-buttons > button {
|
|
|
|
font-family: $main_font;
|
|
|
|
padding: 0;
|
2021-12-28 15:53:18 -06:00
|
|
|
margin: 5px 0 5px $margin !important;
|
2021-12-25 08:05:50 -06:00
|
|
|
@include buttonLike;
|
|
|
|
transition-property: border-color, background-color !important;
|
|
|
|
transition-duration: .15s;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
opacity: 1 !important;
|
|
|
|
&[disabled] {
|
|
|
|
opacity: .5 !important;
|
|
|
|
border-color: transparent !important;
|
|
|
|
background-color: transparent !important;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.shareBtn, button {
|
|
|
|
@include buttonLike;
|
2021-06-28 03:20:05 -05:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
input, textarea, textarea.cactus-editor-textarea {
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ if (site.Params.paperCards | default false) }}
|
2021-12-25 08:05:50 -06:00
|
|
|
@include buttonLike;
|
|
|
|
{{ else }}
|
|
|
|
border-radius: 0 !important;
|
2021-06-28 03:20:05 -05:00
|
|
|
{{ end }}
|
2021-12-25 08:05:50 -06:00
|
|
|
box-sizing: border-box;
|
2021-12-28 02:55:29 -06:00
|
|
|
font-family: $symbols_font, $main_font;
|
2021-12-25 08:05:50 -06:00
|
|
|
background-color: var(--default_hl_bg) !important;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg);
|
2021-12-27 01:46:31 -06:00
|
|
|
max-width: 100%;
|
|
|
|
min-width: 10px;
|
2021-12-25 08:05:50 -06:00
|
|
|
padding: 12px;
|
|
|
|
border: 2px solid transparent !important;
|
|
|
|
border-color: transparent;
|
|
|
|
transition: border-color .15s ease-in-out !important;
|
2021-06-28 03:20:05 -05:00
|
|
|
&:focus, &:active {
|
2021-12-25 08:05:50 -06:00
|
|
|
border-color: var(--default_accent) !important;
|
2021-06-28 03:20:05 -05:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-25 08:05:50 -06:00
|
|
|
.cactus-editor-name {
|
|
|
|
box-sizing: border-box;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.cactus-login-form {
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
2021-12-25 08:05:50 -06:00
|
|
|
border-radius: $border_radius;
|
|
|
|
{{ else }}
|
|
|
|
border-radius: 0;
|
|
|
|
{{ end }}
|
|
|
|
{{ if (.Site.Params.enableShadow | default false) }}
|
|
|
|
box-shadow: $shadow;
|
|
|
|
{{ else }}
|
|
|
|
box-shadow: none;
|
|
|
|
border: 2px solid var(--default_stroke);
|
|
|
|
{{ end }}
|
2021-12-25 12:37:07 -06:00
|
|
|
max-width: 600px;
|
|
|
|
min-width: 200px;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
transform: none;
|
2021-12-28 04:26:11 -06:00
|
|
|
top: #{$margin*2};
|
2021-12-25 12:37:07 -06:00
|
|
|
left: 0; right: 0;
|
2021-12-25 08:05:50 -06:00
|
|
|
background-color: var(--default_bg) !important;
|
|
|
|
color: var(--default_fg) !important;
|
2021-12-25 12:37:07 -06:00
|
|
|
z-index: 9999;
|
2021-12-25 08:05:50 -06:00
|
|
|
> a { // "Use a Matrix client" button
|
|
|
|
@include buttonLike;
|
2021-12-25 12:37:07 -06:00
|
|
|
align-self: flex-end;
|
2021-12-25 08:05:50 -06:00
|
|
|
> button {
|
|
|
|
background-color: transparent !important;
|
|
|
|
border: none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.cactus-login-buttons {
|
|
|
|
margin: 0;
|
2021-12-25 12:37:07 -06:00
|
|
|
justify-content: flex-end;
|
|
|
|
> button {
|
|
|
|
flex-grow: 0;
|
|
|
|
white-space: nowrap; // otherwise labels go 1 line per word
|
|
|
|
}
|
2021-12-25 08:05:50 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-28 03:20:05 -05:00
|
|
|
#fediInstanceDialog {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0; bottom: 0; left: 0; right: 0;
|
|
|
|
|
|
|
|
.dialog {
|
2021-12-25 08:05:50 -06:00
|
|
|
{{ if (.Site.Params.enableShadow | default false) }}
|
|
|
|
box-shadow: $shadow;
|
|
|
|
{{ else }}
|
|
|
|
box-shadow: none;
|
|
|
|
border: 2px solid var(--default_stroke);
|
|
|
|
{{ end }}
|
|
|
|
box-sizing: border-box;
|
2021-06-28 03:20:05 -05:00
|
|
|
position: absolute;
|
|
|
|
display: flex; flex-direction: column;
|
2021-12-28 04:26:11 -06:00
|
|
|
top: #{$margin*2};
|
2021-06-28 03:20:05 -05:00
|
|
|
left: 50%; transform: translateX(-50%);
|
|
|
|
z-index: 9999;
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_bg);
|
2021-06-28 03:20:05 -05:00
|
|
|
width: 450px;
|
|
|
|
max-width: 100%;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: $margin;
|
2021-12-28 03:46:29 -06:00
|
|
|
{{ if (.Site.Params.paperCards | default false) }}
|
2021-06-28 03:20:05 -05:00
|
|
|
border-radius: $border_radius;
|
|
|
|
{{ end }}
|
|
|
|
h1, h2, h3, h4 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.buttons {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: $margin 0;
|
2021-06-28 03:20:05 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: end;
|
|
|
|
> * {
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: 5px 2px;
|
|
|
|
display: block;
|
2021-06-28 03:20:05 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.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 {
|
2021-12-26 16:43:30 -06:00
|
|
|
@extend .nerdlink;
|
|
|
|
display: none !important;
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
2021-12-26 16:43:30 -06:00
|
|
|
#main-nav-toggler {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 520px) {
|
|
|
|
header {
|
|
|
|
.titleAndSearchContainer {
|
|
|
|
z-index: 9999999 !important;
|
|
|
|
}
|
|
|
|
#hamburger-menu {
|
|
|
|
display: block !important;
|
|
|
|
font-size: 1.2em;
|
|
|
|
cursor: pointer;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: ($margin / 4);
|
2021-12-26 16:43:30 -06:00
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
nav:not(#TableOfContents) {
|
|
|
|
ul#main-nav {
|
|
|
|
&, li, li a {text-shadow: none !important;}
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 99999;
|
2021-12-28 04:26:11 -06:00
|
|
|
right: $margin;
|
2021-12-27 01:46:31 -06:00
|
|
|
padding: 2px 5px;
|
2021-12-26 16:43:30 -06:00
|
|
|
width: 120px;
|
|
|
|
{{ if eq .Site.Params.navtype "circles" }}
|
|
|
|
border-radius: $border_radius;
|
|
|
|
{{ end }}
|
2021-12-27 01:46:31 -06:00
|
|
|
border: 2px solid var(--default_stroke);
|
2021-12-26 16:43:30 -06:00
|
|
|
background-color: var(--default_hl_bg);
|
|
|
|
flex-direction: column;
|
|
|
|
li {
|
|
|
|
border-right: none !important;
|
2021-07-06 08:57:07 -05:00
|
|
|
display: block;
|
2021-12-26 16:43:30 -06:00
|
|
|
text-align: center;
|
2021-12-27 01:46:31 -06:00
|
|
|
margin: 0;
|
2021-12-26 16:43:30 -06:00
|
|
|
a {
|
2021-12-27 01:46:31 -06:00
|
|
|
box-shadow: none;
|
|
|
|
box-sizing: border-box;
|
2021-12-26 16:43:30 -06:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
2021-12-27 01:46:31 -06:00
|
|
|
padding: 10px;
|
|
|
|
margin: 3px 0;
|
2021-12-26 16:43:30 -06:00
|
|
|
}
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
}
|
2021-12-26 16:43:30 -06:00
|
|
|
#main-nav-toggler:checked ~ #main-nav {
|
|
|
|
display: flex;
|
|
|
|
}
|
2021-04-18 06:04:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|
2021-05-04 08:21:14 -05:00
|
|
|
|
2021-12-16 05:37:20 -06:00
|
|
|
{{ if and
|
|
|
|
(.Site.Params.enableJumbotron | default false)
|
|
|
|
.Site.Data.jumbotron
|
|
|
|
}}
|
2021-07-06 08:57:07 -05:00
|
|
|
{{
|
|
|
|
$jumbo_fullscreen := (or
|
|
|
|
(.Site.Data.jumbotron.fullscreen | default false)
|
|
|
|
(.Site.Data.jumbotron.backgroundVideo)
|
|
|
|
)
|
|
|
|
}}
|
2021-05-04 08:21:14 -05:00
|
|
|
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 {
|
2021-07-06 10:38:44 -05:00
|
|
|
{{ if (.Site.Data.jumbotron.whiteText | default false) }}
|
|
|
|
&, *, > * {
|
|
|
|
color: white !important;
|
|
|
|
}
|
2021-12-26 02:15:00 -06:00
|
|
|
#searchbar {
|
|
|
|
color: var(--default_fg) !important;
|
|
|
|
}
|
2021-07-06 12:13:33 -05:00
|
|
|
#main-nav a, .nerdlink:hover {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_accent) !important;
|
2021-07-06 10:41:13 -05:00
|
|
|
}
|
2021-07-06 12:13:33 -05:00
|
|
|
.nerdlink span {
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_fg) !important;
|
2021-07-06 12:13:33 -05:00
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
.arrow {
|
|
|
|
border-color: white !important;
|
|
|
|
svg , svg * {
|
|
|
|
fill: white !important;
|
|
|
|
}
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
background-color: rgba(0, 0, 0, .7);
|
|
|
|
svg, svg * {
|
|
|
|
fill: white !important;
|
|
|
|
}
|
|
|
|
}
|
2021-07-06 10:41:13 -05:00
|
|
|
}
|
2021-07-06 10:38:44 -05:00
|
|
|
{{ end }}
|
2021-07-06 08:57:07 -05:00
|
|
|
{{ if (.Site.Data.jumbotron.textShadow | default false) }}
|
|
|
|
&, * {
|
2021-12-26 02:11:28 -06:00
|
|
|
text-shadow: 0 0 5px transparentize($light_fg, .3);
|
2021-07-06 08:57:07 -05:00
|
|
|
}
|
|
|
|
{{ end }}
|
2021-07-06 07:16:32 -05:00
|
|
|
> *:first-child {
|
2021-12-28 04:26:11 -06:00
|
|
|
padding-top: $margin;
|
2021-07-06 07:16:32 -05:00
|
|
|
}
|
|
|
|
padding-bottom: 0;
|
|
|
|
padding-top: 0;
|
2021-05-04 08:21:14 -05:00
|
|
|
.jumbotron { display: flex; }
|
2021-12-16 05:37:20 -06:00
|
|
|
{{ if and
|
|
|
|
.Site.Data.jumbotron.background
|
|
|
|
(not .Site.Data.jumbotron.backgroundVideo)
|
|
|
|
}}
|
2021-05-04 08:21:14 -05:00
|
|
|
background:
|
|
|
|
linear-gradient(
|
2021-12-24 16:50:58 -06:00
|
|
|
transparentize(var(--default_bg), 0.2),
|
|
|
|
transparentize(var(--default_bg), 0.2)
|
2021-05-04 08:21:14 -05:00
|
|
|
),
|
|
|
|
url({{ .Site.Data.jumbotron.background }});
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
2021-07-06 08:57:07 -05:00
|
|
|
{{ else if .Site.Data.jumbotron.backgroundVideo }}
|
|
|
|
background: transparent;
|
|
|
|
> * {
|
|
|
|
position: relative;
|
|
|
|
z-index: 9999;
|
|
|
|
}
|
|
|
|
overflow: hidden;
|
|
|
|
.video_container {
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
top: 0; bottom: 0; left: 0; right: 0;
|
|
|
|
z-index: 0;
|
2021-07-06 12:13:33 -05:00
|
|
|
background-color: black;
|
2021-07-06 08:57:07 -05:00
|
|
|
.jumbotron_video {
|
2021-07-06 12:13:33 -05:00
|
|
|
opacity: {{ .Site.Data.jumbotron.videoOpacity | default 1.0 }};
|
2021-07-06 08:57:07 -05:00
|
|
|
position: absolute;
|
|
|
|
z-index: 0;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
overflow: hidden;
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
{{ else }}
|
|
|
|
background-color: rgba(0, 0, 0, .3);
|
|
|
|
{{ end }}
|
2021-07-06 08:57:07 -05:00
|
|
|
{{ if $jumbo_fullscreen }}
|
2021-07-05 07:00:51 -05:00
|
|
|
height: 100vh;
|
|
|
|
{{ if (.Site.Data.jumbotron.downArrow | default false) }}
|
2021-07-06 08:57:07 -05:00
|
|
|
margin-bottom: 100px;
|
2021-07-05 07:00:51 -05:00
|
|
|
.arrow {
|
2021-07-06 08:57:07 -05:00
|
|
|
position: absolute;
|
|
|
|
bottom: 24px;
|
|
|
|
left: 50%; transform: translateX(-50%);
|
2021-07-05 07:00:51 -05:00
|
|
|
cursor: pointer;
|
|
|
|
&, svg {
|
|
|
|
height: 64px;
|
|
|
|
width: 64px;
|
|
|
|
}
|
|
|
|
opacity: .7;
|
|
|
|
border-radius: 100%;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 2px solid var(--default_fg);
|
2021-07-05 07:00:51 -05:00
|
|
|
padding: 3px;
|
|
|
|
// display: flex; flex-direction: row; justify-content: center;
|
|
|
|
background-color: transparent;
|
|
|
|
transition: background-color .15s ease-in-out;
|
|
|
|
svg {
|
|
|
|
margin-top: 5px;
|
|
|
|
&, * {
|
2021-12-24 16:50:58 -06:00
|
|
|
fill: var(--default_fg);
|
2021-07-05 07:00:51 -05:00
|
|
|
transition: fill .15s ease-in-out;
|
|
|
|
}
|
|
|
|
@keyframes bounce {
|
|
|
|
0% {
|
|
|
|
transform: translateY(3px);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(-3px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
animation: bounce 2s infinite ease-in-out alternate both;
|
|
|
|
|
|
|
|
}
|
|
|
|
&:hover, &:focus, &:active {
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_fg);
|
2021-07-05 07:00:51 -05:00
|
|
|
svg, svg * {
|
2021-12-24 16:50:58 -06:00
|
|
|
fill: var(--default_bg);
|
2021-07-05 07:00:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2021-05-04 08:21:14 -05:00
|
|
|
}
|
|
|
|
.jumbotron {
|
|
|
|
width: 100%;
|
2021-07-06 08:57:07 -05:00
|
|
|
{{ if $jumbo_fullscreen }}
|
2021-07-05 07:00:51 -05:00
|
|
|
height: 80vh;
|
|
|
|
{{ else }}
|
|
|
|
min-height: 40vh;
|
|
|
|
{{ end }}
|
|
|
|
flex-wrap: no-wrap;
|
2021-05-04 08:21:14 -05:00
|
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-07-06 08:57:07 -05:00
|
|
|
align-content: center;
|
2021-12-16 05:37:20 -06:00
|
|
|
{{ $jumbotronImagePosition := (
|
|
|
|
.Site.Data.jumbotron.imagePosition | default "left"
|
|
|
|
) }}
|
2021-07-05 07:00:51 -05:00
|
|
|
{{ if (eq $jumbotronImagePosition "left") }}
|
|
|
|
flex-direction: row;
|
|
|
|
{{ else if (eq $jumbotronImagePosition "right") }}
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
{{ else if (eq $jumbotronImagePosition "top") }}
|
|
|
|
flex-direction: column;
|
|
|
|
{{ else if (eq $jumbotronImagePosition "bottom") }}
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
{{ end }}
|
|
|
|
.main_box {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
text-align: center;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-basis: 55%;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
img {
|
|
|
|
flex-basis: 45%;
|
|
|
|
flex-grow: 1;
|
2021-07-06 08:57:07 -05:00
|
|
|
max-width: 100vw;
|
|
|
|
min-width: 200px;
|
2021-07-05 07:00:51 -05:00
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
h1 {
|
|
|
|
font-weight: 300;
|
2021-07-05 07:00:51 -05:00
|
|
|
&.huge {
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 4 * $base_font_size * $title_font_mult;
|
2021-07-05 07:00:51 -05:00
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
}
|
2021-07-06 08:57:07 -05:00
|
|
|
h1, h2 {
|
|
|
|
margin: 12px;
|
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
li {
|
|
|
|
margin: 3px;
|
|
|
|
a {
|
2021-07-06 12:13:33 -05:00
|
|
|
&.huge {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
2021-07-06 08:57:07 -05:00
|
|
|
{{ if eq .Site.Params.navtype "circles" }}
|
2021-12-25 08:05:50 -06:00
|
|
|
@include roundButtonLike;
|
2021-07-06 12:13:33 -05:00
|
|
|
background-color: transparent;
|
2021-12-24 16:50:58 -06:00
|
|
|
border: 2px solid var(--default_accent);
|
2021-05-04 08:21:14 -05:00
|
|
|
{{ end }}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-05 07:00:51 -05:00
|
|
|
@media only screen and (max-width: 520px) {
|
|
|
|
.jumbotron {
|
|
|
|
flex-wrap: wrap;
|
2021-07-06 08:57:07 -05:00
|
|
|
h1.huge {
|
2021-12-13 03:55:11 -06:00
|
|
|
font-size: 3 * $base_font_size * $title_font_mult !important;
|
2021-07-06 08:57:07 -05:00
|
|
|
}
|
|
|
|
h1, h2 {
|
|
|
|
margin: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media only screen and (max-height: 800px) {
|
|
|
|
.jumbotron {
|
|
|
|
height: auto;
|
|
|
|
img {
|
|
|
|
max-height: 120px;
|
|
|
|
}
|
2021-07-05 07:00:51 -05:00
|
|
|
}
|
|
|
|
}
|
2021-05-04 08:21:14 -05:00
|
|
|
{{ end }}
|
2021-12-16 05:37:20 -06:00
|
|
|
|
|
|
|
{{ if .Site.Params.enableSidebarLayout | default false }}
|
|
|
|
$sidebar_width: 350px;
|
|
|
|
|
|
|
|
header {
|
2021-12-16 06:29:08 -06:00
|
|
|
#sidebar_nav, .sidebarToc {
|
2021-12-16 05:37:20 -06:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#wide_nav {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: 950px) {
|
|
|
|
html{{if .Site.Params.enableJumbotron}}:not(.home){{end}} {
|
2021-12-16 06:29:08 -06:00
|
|
|
position: fixed; top: 0; bottom: 0; left: 0; right: 0;
|
2021-12-24 16:50:58 -06:00
|
|
|
color: var(--default_sidebar_fg);
|
2021-12-16 05:37:20 -06:00
|
|
|
#baseContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
max-height: 100vh;
|
|
|
|
header {
|
|
|
|
margin-left: unset; margin-right: unset;
|
2021-12-24 16:50:58 -06:00
|
|
|
background-color: var(--default_sidebar_bg);
|
2021-12-16 05:37:20 -06:00
|
|
|
max-width: $sidebar_width;
|
|
|
|
min-width: $sidebar_width;
|
|
|
|
height: 100vh;
|
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
|
|
|
margin-bottom: 0;
|
2021-12-28 04:26:11 -06:00
|
|
|
padding: 0 $margin;
|
2021-12-25 08:05:50 -06:00
|
|
|
box-shadow: $shadow;
|
2021-12-27 01:46:31 -06:00
|
|
|
> *:first-child {
|
2021-12-28 04:26:11 -06:00
|
|
|
padding-bottom: $margin;
|
|
|
|
padding-top: $margin;
|
2021-12-16 05:37:20 -06:00
|
|
|
}
|
|
|
|
.rightOfLogo {
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
#sidebar_nav {
|
|
|
|
display: block;
|
2021-12-28 04:26:11 -06:00
|
|
|
margin: $margin 0;
|
2021-12-16 05:37:20 -06:00
|
|
|
width: 100%;
|
2021-12-16 06:29:08 -06:00
|
|
|
nav:not(#TableOfContents) {
|
2021-12-16 05:37:20 -06:00
|
|
|
font-size: 1.1em;
|
|
|
|
ul#main-nav {
|
|
|
|
flex-direction: column;
|
|
|
|
li {
|
|
|
|
border-right: none;
|
|
|
|
a {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#wide_nav {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-12-16 06:29:08 -06:00
|
|
|
.sidebarToc {
|
|
|
|
display: block;
|
|
|
|
nav#TableOfContents {
|
|
|
|
ul {
|
|
|
|
padding-left: 24px;
|
|
|
|
a:not(:hover) {
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-16 05:37:20 -06:00
|
|
|
}
|
|
|
|
#contentContainer {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
}
|
2021-12-16 06:29:08 -06:00
|
|
|
.articleToc {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-12-16 05:37:20 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
// transitions at the end so that loading css doens't cause animations
|
|
|
|
|
|
|
|
a {
|
|
|
|
transition-property: color, border-color;
|
|
|
|
transition-duration: .15s;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nerdlink {
|
|
|
|
&, .pseudofond {
|
|
|
|
transition: all .15s ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
transition: .15s border ease-in-out;
|
|
|
|
}
|