remove sub module theme and add our own theme

This commit is contained in:
2025-01-17 10:25:57 +01:00
parent 53dfed0093
commit 75b4e46f92
162 changed files with 9368 additions and 4 deletions

View File

@@ -0,0 +1,14 @@
// CSS variables
@import "./variables.scss";
// Theme layout and skelet styling
@import "./theme.scss";
// Content-related styles
@import "./content.scss";
// Media queries for responsiveness (optimizations for various screen sizes)
@import "./responsiveness.scss";
// Custom CSS
@import "./custom.scss";

View File

@@ -0,0 +1,291 @@
html {
height: 100%;
max-height: 100%;
font-size: 62.5%;
overflow-x: hidden;
scroll-behavior: smooth;
}
body {
height: 100%;
max-height: 100%;
font-family: "Roboto Slab", serif;
font-size: 2rem;
line-height: 1.6em;
color: var(--section-light-text-color);
}
::-moz-selection {
color: #222;
background: #d6edff;
text-shadow: none;
}
::selection {
color: #222;
background: #d6edff;
text-shadow: none;
}
/** =========== Headings =========== */
h1,h2,h3,h4,h5,h6 {
text-rendering: optimizeLegibility;
line-height: 1;
margin-top: 0;
margin-bottom: 10px;
font-family: "Open Sans", sans-serif;
}
h3,h4,h5,h6 {
text-rendering: optimizeLegibility;
line-height: 120%;
margin-top: 0;
font-family: "Open Sans", sans-serif;
margin-bottom: 0%;
}
h1 {
font-size: 5rem;
line-height: 1.2em;
letter-spacing: -2px;
text-indent: -3px;
}
h2 {
font-size: 4rem;
line-height: 1.2em;
letter-spacing: -1px;
text-indent: -2px;
}
h3 {
font-size: 3.5rem;
}
h4 {
font-size: 3rem;
}
h5 {
font-size: 2.5rem;
}
h6 {
font-size: 2rem;
}
p{
margin: 1em 0;
}
/** ======== Links ========= */
a {
color: inherit;
transition: all ease 0.3s;
-webkit-transition: all ease 0.3s;
-moz-transition: all ease 0.3s;
&:hover {
color: var(--sticky-menu-text-color);
}
// Fix font awesome icons
&.fa {
text-decoration: none;
}
}
/** ======== Lists ====================== */
dl {
margin: 1.6em 0;
dt {
float: left;
width: 180px;
overflow: hidden;
clear: left;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
margin-bottom: 1em;
}
dd {
margin-left: 200px;
margin-bottom: 1em;
}
}
ul, ol {
margin: 1em 0;
// Second level of lists
ol, ul {
margin: 0.4em 0;
}
}
li {
margin-left: 30px;
}
/** ======== Content semantics ============= */
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid var(--color-text);
margin: 1.5em 0;
padding: 0;
}
/** Helper to be inserted by JS before quotations*/
.quo {
margin-right: 10px;
margin-left: 10px;
font-size: 20px;
}
blockquote {
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 1em 0 1em -2.2em;
padding: 0 0 0 1em;
color: var(--section-uni-quote);
p {
margin: 0.8em 0;
}
small {
display: inline-block;
margin: 0.8em 0 0.8em 1.5em;
font-size: 0.9em;
color: #ccc;
&:before {
content: "\2014 \00A0";
}
}
cite {
font-weight: bold;
a {
font-weight: normal;
}
}
}
mark {
background-color: var(--sticky-menu-text-color);
filter: brightness(125%);
}
code, tt {
color: var(--section-light-text-color);
background-color: var(--section-uni-code-bg-color);
border-radius: 3px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.75em;
padding: 3px 5px;
}
code {
color: var(--section-light-text-color);
background-color: var(--section-uni-code-bg-color);
border-radius: 3px;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.75em;
padding: 3px 5px;
}
pre {
background: var(--section-light-text-color);
color: #e2e2e2;
border: 1px solid #343434;
border-radius: 3px;
box-sizing: border-box;
-moz-box-sizing: border-box;
font-family: Inconsolata, monospace, sans-serif;
font-size: 0.9em;
margin: 1.6em 0;
padding: 10px;
white-space: pre;
overflow-x: scroll;
width: 100%;
code, tt {
color: inherit;
background: transparent;
font-size: inherit;
white-space: -moz-pre-wrap;
white-space: pre-wrap;
border: none;
padding: 0;
}
}
kbd {
color: var(--section-light-text-color);
background: var(--section-uni-code-bg-color);
border: var(--section-light-text-color) 1px solid;
border-radius: 4px;
display: inline-block;
font-size: 0.9em;
font-weight: bold;
margin-bottom: 0.4em;
padding: 1px 8px;
text-shadow: #fff 0 1px 0;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 0 #fff inset;
}
/** ======== Tables ========= */
table {
-moz-box-sizing: border-box;
box-sizing: border-box;
border-spacing: 0;
margin: 1.6em 0;
width: 100%;
max-width: 100%;
background-color: transparent;
th,
td {
padding: 2rem;
line-height: 20px;
text-align: left;
vertical-align: top;
}
thead {
th,
td {
border-bottom: 1px solid var(--color-text);
}
}
tbody>tr:nth-child(even) {
background-color: #fff5;
background-blend-mode: lighten;
}
&.plain tbody>tr:nth-child(odd)>td,
&.plain tbody>tr:nth-child(odd)>th {
background: transparent;
}
}
/** ======== Github integration ========= */
.gist {
table {
margin: 0;
font-size: 1.4rem;
}
.line-number {
min-width: 25px;
font-size: 1.1rem;
}
}

View File

@@ -0,0 +1,57 @@
table.cv img {
max-width: 24px;
vertical-align: middle;
}
table.cv{
border-color: var(--section-dark-bg-color);
}
table.cv td, table th {
padding: 1rem;
}
/*table.cv thead {
background-color: var(--section-dark-bg-color);
color: var(--section-dark-text-color);
}*/
.table {
border: 1px solid;
font-size: 80%;
border-color: var(--section-light-bg-color);
//background-color: var(--section-light-bg-color);
background-color: var(--highlight-inverse-contrast);
color: var(--section-light-text-color);
}
.table td, table th {
border: 1px solid;
border-color: var(--section-light-bg-color);
}
.table thead {
//background-color: var(--section-dark-bg-color);
background-color: var(--highlight);
//color: var(--section-dark-text-color);
color: var(--section-light-text-color);
}
.about-me .about-me-img img {
float: left ;
padding: 0 2rem;
max-height: 180px;
vertical-align: middle;
}
div.about-me {
display: inline-block;
padding: 2rem 0;
}

View File

@@ -0,0 +1,165 @@
Fonticons, Inc. (https://fontawesome.com)
--------------------------------------------------------------------------------
Font Awesome Free License
Font Awesome Free is free, open source, and GPL friendly. You can use it for
commercial projects, open source projects, or really almost whatever you want.
Full Font Awesome Free license: https://fontawesome.com/license/free.
--------------------------------------------------------------------------------
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
The Font Awesome Free download is licensed under a Creative Commons
Attribution 4.0 International License and applies to all icons packaged
as SVG and JS file types.
--------------------------------------------------------------------------------
# Fonts: SIL OFL 1.1 License
In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files.
Copyright (c) 2024 Fonticons, Inc. (https://fontawesome.com)
with Reserved Font Name: "Font Awesome".
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
SIL OPEN FONT LICENSE
Version 1.1 - 26 February 2007
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting — in part or in whole — any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
--------------------------------------------------------------------------------
# Code: MIT License (https://opensource.org/licenses/MIT)
In the Font Awesome Free download, the MIT license applies to all non-font and
non-icon files.
Copyright 2024 Fonticons, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
# Attribution
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
Awesome Free files already contain embedded comments with sufficient
attribution, so you shouldn't need to do anything additional when using these
files normally.
We've kept attribution comments terse, so we ask that you do not actively work
to remove them from files, especially code. They're a great way for folks to
learn about Font Awesome.
--------------------------------------------------------------------------------
# Brand Icons
All brand icons are trademarks of their respective owners. The use of these
trademarks does not indicate endorsement of the trademark holder by Font
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
to represent the company, product, or service to which they refer.**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}

View File

@@ -0,0 +1,328 @@
/* ==========================================================================
Table of Contents
========================================================================== */
/*
1. Open Sans 300italic,400italic,600italic,700italic,800italic,300,400,600,700,800
2. Open Sans Condensed 300,300italic,700
3. Oswald 300,400,700
4. Roboto Slab 100,300,400,700
*/
/* ==========================================================================
1. Open Sans
========================================================================== */
/* open-sans-300 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-300.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-300.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-300.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-regular - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-600 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-600.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-600.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-600.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-600.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-700.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-800 - latin */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 800;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-800.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-800.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-800.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-300italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-300italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-300italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-300italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-600italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 600;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-600italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-600italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-600italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-700italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-800italic - latin */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 800;
font-display: swap;
src: url('../webfonts/open-sans-v27-latin-800italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-v27-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-v27-latin-800italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-v27-latin-800italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-v27-latin-800italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-v27-latin-800italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* ==========================================================================
2. Open Sans Condensed
========================================================================== */
/* open-sans-condensed-300 - latin */
@font-face {
font-family: 'Open Sans Condensed';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../webfonts/open-sans-condensed-v21-latin-300.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-condensed-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-condensed-v21-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-300.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-condensed-v21-latin-300.svg#OpenSansCondensed') format('svg'); /* Legacy iOS */
}
/* open-sans-condensed-300italic - latin */
@font-face {
font-family: 'Open Sans Condensed';
font-style: italic;
font-display: swap;
font-weight: 300;
src: url('../webfonts/open-sans-condensed-v21-latin-300italic.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-condensed-v21-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-condensed-v21-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-300italic.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-condensed-v21-latin-300italic.svg#OpenSansCondensed') format('svg'); /* Legacy iOS */
}
/* open-sans-condensed-700 - latin */
@font-face {
font-family: 'Open Sans Condensed';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../webfonts/open-sans-condensed-v21-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/open-sans-condensed-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/open-sans-condensed-v21-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-700.woff') format('woff'), /* Modern Browsers */
url('../webfonts/open-sans-condensed-v21-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/open-sans-condensed-v21-latin-700.svg#OpenSansCondensed') format('svg'); /* Legacy iOS */
}
/* ==========================================================================
3. Oswald
========================================================================== */
/* oswald-300 - latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../webfonts/oswald-v40-latin-300.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/oswald-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/oswald-v40-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/oswald-v40-latin-300.woff') format('woff'), /* Modern Browsers */
url('../webfonts/oswald-v40-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/oswald-v40-latin-300.svg#Oswald') format('svg'); /* Legacy iOS */
}
/* oswald-regular - latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../webfonts/oswald-v40-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/oswald-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/oswald-v40-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/oswald-v40-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../webfonts/oswald-v40-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/oswald-v40-latin-regular.svg#Oswald') format('svg'); /* Legacy iOS */
}
/* oswald-700 - latin */
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../webfonts/oswald-v40-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/oswald-v40-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/oswald-v40-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/oswald-v40-latin-700.woff') format('woff'), /* Modern Browsers */
url('../webfonts/oswald-v40-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/oswald-v40-latin-700.svg#Oswald') format('svg'); /* Legacy iOS */
}
/* ==========================================================================
4. Roboto Slab
========================================================================== */
/* roboto-slab-100 - latin */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 100;
font-display: swap;
src: url('../webfonts/roboto-slab-v16-latin-100.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/roboto-slab-v16-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/roboto-slab-v16-latin-100.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-100.woff') format('woff'), /* Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-100.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/roboto-slab-v16-latin-100.svg#RobotoSlab') format('svg'); /* Legacy iOS */
}
/* roboto-slab-300 - latin */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('../webfonts/roboto-slab-v16-latin-300.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/roboto-slab-v16-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/roboto-slab-v16-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-300.woff') format('woff'), /* Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/roboto-slab-v16-latin-300.svg#RobotoSlab') format('svg'); /* Legacy iOS */
}
/* roboto-slab-regular - latin */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('../webfonts/roboto-slab-v16-latin-regular.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/roboto-slab-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/roboto-slab-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/roboto-slab-v16-latin-regular.svg#RobotoSlab') format('svg'); /* Legacy iOS */
}
/* roboto-slab-700 - latin */
@font-face {
font-family: 'Roboto Slab';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('../webfonts/roboto-slab-v16-latin-700.eot'); /* IE9 Compat Modes */
src: local(''),
url('../webfonts/roboto-slab-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('../webfonts/roboto-slab-v16-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-700.woff') format('woff'), /* Modern Browsers */
url('../webfonts/roboto-slab-v16-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('../webfonts/roboto-slab-v16-latin-700.svg#RobotoSlab') format('svg'); /* Legacy iOS */
}

View File

@@ -0,0 +1,43 @@
/* Utilities - These things get used a lot */
/**
Hides stuff
*/
.hidden {
text-indent: -9999px;
visibility: hidden;
display: none;
}
/**
Creates a responsive wrapper that makes our content scale nicely
*/
.inner {
position: relative;
width: 80%;
max-width: 800px;
margin: 0 auto;
}
/**
Centres vertically yo. (IE8+)
*/
.vertical {
display: table-cell;
vertical-align: middle;
}
/**
Floating tools
*/
.left {
float: left;
}
.right {
float: right;
}
.clear {
clear: both;
}

349
themes/tse/assets/css/normalize.css vendored Normal file
View File

@@ -0,0 +1,349 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

View File

@@ -0,0 +1,167 @@
/* ==========================================================================
8. Media Queries - Smaller than 1130px
========================================================================== */
@media only screen and (max-width: 1130px) {
/* makes it a top sticky menu */
.fixed-nav {
opacity: 1;
position: fixed;
top: 0px;
left: 0px;
flex-wrap: wrap;
flex-direction: row;
width: 100vw;
z-index: 99999;
background: var(--color-background);
border-radius: 0;
text-align: center;
padding: 4px;
}
a.fn-item {
display: inline;
margin-left: 10px;
}
blockquote {
margin-left: 0;
}
.post-holder {
padding-top: 20px;
}
#site-head {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
min-height: 240px;
padding: 15% 0;
height: 100%;
margin-bottom: 0rem;
}
.blog-title {
font-size: 4rem;
letter-spacing: -1px;
}
.blog-description {
font-size: 2.2rem;
line-height: 1.5em;
}
.post {
font-size: 0.9em;
line-height: 1.6em;
}
/* skip the top menu when scrolling */
.post-holder .post {
scroll-margin-top: 48px;
}
.post-template .post {
padding-bottom: 1rem;
}
.post-template .post-header {
padding: 40px 0;
}
h1 {
font-size: 4.8rem;
text-indent: -2px;
}
h2 {
font-size: 3.8rem;
}
h3 {
font-size: 3.3rem;
}
h4 {
font-size: 2.8rem;
}
}
/* ==========================================================================
9. Media Queries - Smaller than 500px
========================================================================== */
@media only screen and (max-width: 500px) {
.post-holder {
padding-top: 20px;
}
#blog-logo {
max-height: 80px;
}
.inner,
.pagination {
width: auto;
margin-left: 16px;
margin-right: 16px;
}
.post {
width: auto;
margin-left: 16px;
margin-right: 16px;
font-size: 0.8em;
line-height: 1.6em;
}
#site-head {
padding: 10% 0;
height: 65%;
}
#header-arrow {
display: none;
}
a.btn {
margin-top: 10px;
}
.blog-title {
font-size: 3rem;
}
.blog-description {
font-size: 2.2rem;
}
h1,
h2 {
font-size: 3rem;
line-height: 1.1em;
letter-spacing: -1px;
}
h3 {
font-size: 2.8rem;
}
h4 {
font-size: 2.3rem;
}
.post-template .post {
padding-bottom: 0;
}
.post-template .post-header {
padding: 30px 0;
}
.site-footer {
font-size: 1.1rem;
}
}

View File

@@ -0,0 +1,372 @@
body {
--color-text: var(--section-light-text-color);
--color-background: var(--section-light-bg-color);
width: 100%;
}
/* ===== Cover =======*/
#blog-logo {
//display: flex;
max-height: 160px;
width: auto;
margin: 0 auto;
line-height: 0;
}
#flag-logo {
height: 24px;
vertical-align: middle;
}
#site-head.withCenteredImage{
/* can't be used together with video */
background: var(--section-light-bg-color) no-repeat center center;
}
#site-head, #site-head.withCenteredImage {
position: relative;
display: table;
width: 100%;
height: 100%;
margin-bottom: 0rem;
text-align: center;
color: var(--highlight);
background-size: cover;
/* Big cover video at the landing area */
video {
bottom: 0;
height: 100%;
min-width: 100%;
-o-object-fit: cover;
object-fit: cover;
position: absolute;
right: 0;
top: 0;
width: auto;
z-index: -100;
}
.title-and-description-guard {
margin: auto;
padding: 0.6em;
background-color: var(--cover-title-and-description-guard-bg-color);
width: 100%;
}
.blog-title {
margin: 10px 0 10px 0;
font-size: 5rem;
letter-spacing: -1px;
//text-shadow: var(--cover-title-text-shadow);
//-webkit-text-fill-color: white; /* Will override color (regardless of order) */
//-webkit-text-stroke: 1px var(--cover-title-text-shadow);
-webkit-text-stroke: 3px black;
}
.blog-description {
margin: 0;
font-size: 3rem;
line-height: 1.5em;
font-weight: 400;
font-family: "Roboto Slab", serif;
letter-spacing: 0;
text-shadow: var(--cover-title-text-shadow);
//-webkit-text-fill-color: white; /* Will override color (regardless of order) */
//-webkit-text-stroke: 2px var(--cover-title-text-shadow);
-webkit-text-stroke: 5px var(--section-dark-bg-color);
paint-order: stroke fill;
}
#top-banner {
position: absolute;
top: 0px;
left: 0px;
max-width: 100%;
width: 100%;
height: fit-content;
background-color: var(--cover-title-and-description-guard-bg-color);
}
#site-languages {
//text-align: right;
width: fit-content;
height: 100%;
position: relative;
float: right;
}
#site-menu {
position: relative;
float: left;
width: fit-content;
height: 100%;
}
#site-languages .btn-lang {
text-decoration: none;
background-color: var(--highlight);
color: var(--highlight-contrast);
border-radius: 3px;
-webkit-border-radius: 3px;
display: inline-block;
font-size: 70%;
margin: 2rem 0.3rem;
padding: 0.0rem 0.7rem;
position: relative;
text-transform: uppercase;
&.active,
&:hover {
color: var(--highlight-inverse-contrast);
background-color: var(--highlight-inverse);
}
}
#site-head-content {
position: absolute;
bottom: 200px;
max-width: 100%;
align-content: center;
}
// Landing screen menu
a.btn, #site-languages .btn-lang {
font-family: "Oswald", sans-serif;
}
a.btn {
text-decoration: none;
background-color: var(--highlight);
color: var(--highlight-contrast);
border-radius: 4px;
-webkit-border-radius: 4px;
display: inline-block;
font-size: 16px;
letter-spacing: 1px;
margin: 1rem;
overflow: visible;
padding: 10px 20px 10px 20px;
position: relative;
cursor: pointer;
text-transform: uppercase;
font-weight:normal;
border: solid 1px var(--highlight-contrast);
&:hover {
color: var(--highlight-inverse-contrast);
background-color: var(--highlight-inverse);
}
}
/** The arrow button to scroll to content */
#header-arrow {
font-size: 140px;
margin: -10px auto;
text-align: center;
position: relative;
width: 100%;
left: 0;
bottom: -20px;
cursor: pointer;
opacity: 0.6;
transition: all ease 0.3s;
-webkit-transition: all ease 0.3s;
-moz-transition: all ease 0.3s;
&:hover {
color: inherit;
opacity: 0.9;
}
}
}
// ========== Sticky menus ===========
/* Left sticky menu */
.fixed-nav {
background-color: var(--section-light-bg-color);
border-radius: 0 25px 20px 0;
padding: 1em 1.5em;
display: none;
flex-direction: column;
position: fixed;
top: 40px;
z-index: 99999;
font-family: "Open Sans Condensed", sans-serif;
text-transform: uppercase;
font-size: 1.5rem;
line-height: 130%;
font-weight: bold;
box-shadow: var(--cover-title-text-shadow);
}
a.fn-item {
display: block;
cursor: pointer;
opacity: 0.7;
text-decoration: none;
&:hover,
&.active {
color: var(--sticky-menu-text-color);
}
&.active {
opacity: 1;
}
}
/* ========= Content ==========*/
.post-title {
margin: 0;
a {
text-decoration: none;
}
}
.post-holder {
width: 100%;
height: 100%;
background-color: var(--color-background);
color: var(--color-text);
position: relative;
&.dark {
// override variables for alternative style
--color-text: var(--section-dark-text-color);
--color-background: var(--section-dark-bg-color);
background-color: var(--section-dark-bg-color);
color: var(--section-dark-text-color);
// Fix <hr> color
hr {
border-color: var(--section-dark-text-color);
}
// On alt posts move the triangle to the right and match the background the color
.post-after {
left: unset;
right: 6%;
border-top-color: var(--section-dark-bg-color);
}
}
/* The triangular parts between posts */
.post-after {
position: absolute;
bottom: -40px;
z-index: 1;
left: 6%;
width: 0;
height: 0;
border-left: 60px solid transparent;
border-right: 60px solid transparent;
border-top: 50px solid var(--color-background);
border-radius: 25px;
}
}
/* Every post, on every page, gets this style on its <article> tag
Not inside the post holder as this also applies for single pages
*/
.post {
position: relative;
width: calc(100% - 8rem);
max-width: 1200px;
/*max-width: 700px;*/
margin: 0rem auto;
/*padding-bottom: 4rem;
padding-top: 4rem;*/
padding: 4rem 0;
height: 70%;
word-break: break-word;
hyphens: auto;
}
/* ======= Single pages =========== */
.page-template {
background-color: var(--single-page-bg-color);
color: var(--single-page-text-color);
// to remove the white space after the footer on pages shorter
// than actually would fit into the browser window
min-height: calc(100vh - 2em);
// Tweak the .post wrapper style
.post {
margin-top: 0;
border-bottom: none;
padding-bottom: 0;
// to account for the margin of content elements
padding-bottom: 1em;
}
// Kill that stylish little circle that was on the border
.post:after {
display: none;
}
// Insert some mad padding up in the header for better spacing
.post-header {
padding: 60px 0;
}
}
// Keep large images within the bounds of the post-width
.post-content img {
display: block;
max-width: 100%;
margin: 0 auto;
}
/** ========== Site footer ============ */
.site-footer {
background: var(--footer-color-background);
color: var(--footer-color);
font-family: "Open Sans", sans-serif;
font-size: 1.3rem;
position: relative;
margin: 0rem 0 0 0;
padding: 1rem 0;
line-height: 1.5em;
text-align: center;
}
.site-footer a {
color: var(--footer-color);
text-decoration: underline;
}
.site-footer a:hover {
color: var(--sticky-menu-text-color);
}
/* Footer Icons */
.icons {
display: flex;
justify-content: center;
gap: 30px;
padding: 8px;
}
/* Footer Links */
.site-footer .links {
text-align: center;
ol {
list-style-type: none;
list-style-position: inside;
padding-left: 0;
}
li {
margin-left: unset;
}
}

View File

@@ -0,0 +1,48 @@
:root {
/* === Cover / Landing area === */
--cover-text-color: rgb(0, 52, 141);
/* Used for Landing screen menu buttons, but potentially usable for highlighting other things */
--highlight: #ffc800;
--highlight-contrast: var(--cover-text-color);
/*inverse colors used for :hover */
--highlight-inverse: var(--cover-text-color);
--highlight-inverse-contrast: rgb(249, 238, 187);
/* visual guard around title and description, when the feature is enabled */
--cover-title-and-description-guard-bg-color: rgba(85, 27, 2, 0.67);
--cover-title-text-shadow: rgb(119, 45, 0) 1px 1px 5px;
/* === sticky top/left navigation menus === */
--sticky-menu-text-color: #d65301ea;
/* === Alternating content (post) sections === */
/* Light section - text color */
--section-light-text-color:rgb(119, 45, 0);
/* Light section - background color */
--section-light-bg-color: #ebbc4f;
/* Dark section - text color */
--section-dark-text-color: var(--section-light-bg-color);
/* Dark section - background color */
--section-dark-bg-color: #652200;
/* Light&Dark section >quote. Suppressive color, compared to 'Light section - text color'*/
--section-uni-quote: grey;
/* Light&Dark section `code` a bit darker than 'Light section - background color' */
--section-uni-code-bg-color: #e0ded7;
/* === Single pages=== */
--single-page-text-color: var(--section-light-text-color);
--single-page-bg-color: var(--section-light-bg-color);
/* === Footer === */
--footer-color-background: #22343a;
--footer-color: #bbc7cc;
/* === Lists === */
/* define list element for unnumbered lists, leave empty for default list element */
--ul-li-icon: fa-asterisk;
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,99 @@
/**
* Main JS file for GhostScroll behaviours
*/
var $post = $(".post");
var $first = $(".post.first");
var $last = $(".post.last");
var $fnav = $(".fixed-nav");
var $postholder = $(".post-holder");
var $sitehead = $("#site-head");
/* Globals jQuery, document */
(function ($) {
"use strict";
function srcTo(el, dur = 1000) {
$("html, body").animate(
{
scrollTop: el.offset().top,
},
dur,
function() {
window.location.hash = el.attr("id");
}
);
}
function srcToAnchorWithTitle(str) {
var $el = $("#" + str);
if ($el.length) {
srcTo($el);
}
}
$(document).ready(function () {
// fallback to jQuery animate if smooth scrolling is not supported
if (!"scrollBehavior" in document.documentElement.style) {
// Cover buttons
$("a.btn.site-menu").click(function (e) {
e.preventDefault();
srcToAnchorWithTitle($(e.target).data("title-anchor"));
});
// cover arrow button
$("#header-arrow").click(function (e) {
e.preventDefault()
srcTo($first);
});
}
$(".post.last").next(".post-after").hide();
if ($sitehead.length) {
$(window).scroll(function () {
var w = $(window).scrollTop();
var g = $sitehead.offset().top;
var h = $sitehead.offset().top + $sitehead.height() - 100;
if (w >= Math.floor(g) && w <= Math.ceil(h)) {
$(".fixed-nav").fadeOut("fast");
} else {
$(".fixed-nav").css("display", "flex").fadeIn("fast");
}
$post.each(function () {
if (($(window).height() + w) > ($(document).height() - $(".site-footer").height())) {
var l = $postholder.length;
$(".fn-item").removeClass("active")
$(".fn-item[item_index='" + (l) + "']").addClass("active")
} else {
var f = $(this).offset().top;
var b = $(this).offset().top + $(this).height();
var t = $(this).parent(".post-holder").index();
var i = $(".fn-item[item_index='" + t + "']");
var a = $(this)
.parent(".post-holder")
.prev(".post-holder")
.find(".post-after");
$(this).attr("item_index", t);
if (w >= f && w <= b) {
i.addClass("active");
a.fadeOut("slow");
} else {
i.removeClass("active");
a.fadeIn("slow");
}
}
});
});
}
var ulLiIcon = getComputedStyle(document.documentElement).getPropertyValue('--ul-li-icon');
if (ulLiIcon.length > 0) {
$('ul').addClass("fa-ul");
$("ul li").prepend('<span class="fa-li"><i class="fa ' + ulLiIcon + '"></i></span>');
}
$("blockquote p").prepend('<span class="quo fa fa-quote-left"></span>');
$("blockquote p").append('<span class="quo fa fa-quote-right"></span>');
});
})(jQuery);

File diff suppressed because one or more lines are too long