initial commit

This commit is contained in:
timurgordon
2022-08-11 12:27:46 +03:00
commit 5f162f0d37
72 changed files with 3858 additions and 0 deletions

361
css/admonition.css Normal file
View File

@@ -0,0 +1,361 @@
:root {
--md-admonition-icon--note: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z'/></svg>");
--md-admonition-icon--abstract: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17 9H7V7h10m0 6H7v-2h10m-3 6H7v-2h7M12 3a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1m7 0h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z'/></svg>");
--md-admonition-icon--info: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z'/></svg>");
--md-admonition-icon--tip: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.66 11.2c-.23-.3-.51-.56-.77-.82-.67-.6-1.43-1.03-2.07-1.66C13.33 7.26 13 4.85 13.95 3c-.95.23-1.78.75-2.49 1.32-2.59 2.08-3.61 5.75-2.39 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.23.1-.47.04-.66-.12a.58.58 0 0 1-.14-.17c-1.13-1.43-1.31-3.48-.55-5.12C5.78 10 4.87 12.3 5 14.47c.06.5.12 1 .29 1.5.14.6.41 1.2.71 1.73 1.08 1.73 2.95 2.97 4.96 3.22 2.14.27 4.43-.12 6.07-1.6 1.83-1.66 2.47-4.32 1.53-6.6l-.13-.26c-.21-.46-.77-1.26-.77-1.26m-3.16 6.3c-.28.24-.74.5-1.1.6-1.12.4-2.24-.16-2.9-.82 1.19-.28 1.9-1.16 2.11-2.05.17-.8-.15-1.46-.28-2.23-.12-.74-.1-1.37.17-2.06.19.38.39.76.63 1.06.77 1 1.98 1.44 2.24 2.8.04.14.06.28.06.43.03.82-.33 1.72-.93 2.27z'/></svg>");
--md-admonition-icon--success: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m9 20.42-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z'/></svg>");
--md-admonition-icon--question: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='m15.07 11.25-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 0 0-2-2 2 2 0 0 0-2 2H8a4 4 0 0 1 4-4 4 4 0 0 1 4 4 3.2 3.2 0 0 1-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10c0-5.53-4.5-10-10-10z'/></svg>");
--md-admonition-icon--warning: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 14h-2V9h2m0 9h-2v-2h2M1 21h22L12 2 1 21z'/></svg>");
--md-admonition-icon--failure: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6.91 17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z'/></svg>");
--md-admonition-icon--danger: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 15H6l7-14v8h5l-7 14v-8z'/></svg>");
--md-admonition-icon--bug: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 0 0-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z'/></svg>");
--md-admonition-icon--example: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 0 1 .75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z'/></svg>");
--md-admonition-icon--quote: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z'/></svg>");
--md-details-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='%23000000'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
}
:is(.admonition) {
display: flow-root;
margin: 1.5625em 0;
padding: 0 1.2rem;
color: var(--fg);
page-break-inside: avoid;
background-color: var(--bg);
border: 0 solid black;
border-inline-start-width: 0.4rem;
border-radius: 0.2rem;
box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05), 0 0 0.1rem rgba(0, 0, 0, 0.1);
}
.admonition p {
display: block;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-size: 0.8rem;
}
@media print {
:is(.admonition) {
box-shadow: none;
}
}
:is(.admonition) > * {
box-sizing: border-box;
}
:is(.admonition) :is(.admonition) {
margin-top: 1em;
margin-bottom: 1em;
}
:is(.admonition) > .tabbed-set:only-child {
margin-top: 0;
}
html :is(.admonition) > :last-child {
margin-bottom: 1.2rem;
}
:is(.admonition-title, summary) {
position: relative;
margin-block: 0;
margin-inline: -1.6rem -1.2rem;
padding-block: 0.8rem;
padding-inline: 4rem 1.2rem;
font-weight: 700;
background-color: rgba(68, 138, 255, 0.1);
border: 0 solid #448aff;
border-inline-start-width: 0.4rem;
border-start-start-radius: 0.2rem;
display: flex;
}
:is(.admonition-title, summary) > p {
margin: 0;
}
html :is(.admonition-title, summary):last-child {
margin-bottom: 0;
}
:is(.admonition-title, summary)::before {
position: absolute;
top: 0.625em;
inset-inline-start: 1.2rem;
width: 1.4rem;
height: 1.4rem;
background-color: #448aff;
mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
-webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-size: contain;
content: "";
}
:is(.admonition):is(.note) {
border-color: #448aff;
}
:is(.note) > :is(.admonition-title, summary) {
background-color: rgba(68, 138, 255, 0.1);
border-color: #448aff;
}
:is(.note) > :is(.admonition-title, summary)::before {
background-color: #448aff;
mask-image: var(--md-admonition-icon--note);
-webkit-mask-image: var(--md-admonition-icon--note);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.abstract, .summary, .tldr) {
border-color: #00b0ff;
}
:is(.abstract, .summary, .tldr) > :is(.admonition-title, summary) {
background-color: rgba(0, 176, 255, 0.1);
border-color: #00b0ff;
}
:is(.abstract, .summary, .tldr) > :is(.admonition-title, summary)::before {
background-color: #00b0ff;
mask-image: var(--md-admonition-icon--abstract);
-webkit-mask-image: var(--md-admonition-icon--abstract);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.info, .todo) {
border-color: #00b8d4;
}
:is(.info, .todo) > :is(.admonition-title, summary) {
background-color: rgba(0, 184, 212, 0.1);
border-color: #00b8d4;
}
:is(.info, .todo) > :is(.admonition-title, summary)::before {
background-color: #00b8d4;
mask-image: var(--md-admonition-icon--info);
-webkit-mask-image: var(--md-admonition-icon--info);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.tip, .hint, .important) {
border-color: #00bfa5;
}
:is(.tip, .hint, .important) > :is(.admonition-title, summary) {
background-color: rgba(0, 191, 165, 0.1);
border-color: #00bfa5;
}
:is(.tip, .hint, .important) > :is(.admonition-title, summary)::before {
background-color: #00bfa5;
mask-image: var(--md-admonition-icon--tip);
-webkit-mask-image: var(--md-admonition-icon--tip);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.success, .check, .done) {
border-color: #00c853;
}
:is(.success, .check, .done) > :is(.admonition-title, summary) {
background-color: rgba(0, 200, 83, 0.1);
border-color: #00c853;
}
:is(.success, .check, .done) > :is(.admonition-title, summary)::before {
background-color: #00c853;
mask-image: var(--md-admonition-icon--success);
-webkit-mask-image: var(--md-admonition-icon--success);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.question, .help, .faq) {
border-color: #64dd17;
}
:is(.question, .help, .faq) > :is(.admonition-title, summary) {
background-color: rgba(100, 221, 23, 0.1);
border-color: #64dd17;
}
:is(.question, .help, .faq) > :is(.admonition-title, summary)::before {
background-color: #64dd17;
mask-image: var(--md-admonition-icon--question);
-webkit-mask-image: var(--md-admonition-icon--question);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.warning, .caution, .attention) {
border-color: #ff9100;
}
:is(.warning, .caution, .attention) > :is(.admonition-title, summary) {
background-color: rgba(255, 145, 0, 0.1);
border-color: #ff9100;
}
:is(.warning, .caution, .attention) > :is(.admonition-title, summary)::before {
background-color: #ff9100;
mask-image: var(--md-admonition-icon--warning);
-webkit-mask-image: var(--md-admonition-icon--warning);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.failure, .fail, .missing) {
border-color: #ff5252;
}
:is(.failure, .fail, .missing) > :is(.admonition-title, summary) {
background-color: rgba(255, 82, 82, 0.1);
border-color: #ff5252;
}
:is(.failure, .fail, .missing) > :is(.admonition-title, summary)::before {
background-color: #ff5252;
mask-image: var(--md-admonition-icon--failure);
-webkit-mask-image: var(--md-admonition-icon--failure);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.danger, .error) {
border-color: #ff1744;
}
:is(.danger, .error) > :is(.admonition-title, summary) {
background-color: rgba(255, 23, 68, 0.1);
border-color: #ff1744;
}
:is(.danger, .error) > :is(.admonition-title, summary)::before {
background-color: #ff1744;
mask-image: var(--md-admonition-icon--danger);
-webkit-mask-image: var(--md-admonition-icon--danger);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.bug) {
border-color: #f50057;
}
:is(.bug) > :is(.admonition-title, summary) {
background-color: rgba(245, 0, 87, 0.1);
border-color: #f50057;
}
:is(.bug) > :is(.admonition-title, summary)::before {
background-color: #f50057;
mask-image: var(--md-admonition-icon--bug);
-webkit-mask-image: var(--md-admonition-icon--bug);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.example) {
border-color: #7c4dff;
}
:is(.example) > :is(.admonition-title, summary) {
background-color: rgba(124, 77, 255, 0.1);
border-color: #7c4dff;
}
:is(.example) > :is(.admonition-title, summary)::before {
background-color: #7c4dff;
mask-image: var(--md-admonition-icon--example);
-webkit-mask-image: var(--md-admonition-icon--example);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
:is(.admonition):is(.quote, .cite) {
border-color: #9e9e9e;
}
:is(.quote, .cite) > :is(.admonition-title, summary) {
background-color: rgba(158, 158, 158, 0.1);
border-color: #9e9e9e;
}
:is(.quote, .cite) > :is(.admonition-title, summary)::before {
background-color: #9e9e9e;
mask-image: var(--md-admonition-icon--quote);
-webkit-mask-image: var(--md-admonition-icon--quote);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
}
.navy :is(.admonition) {
background-color: var(--sidebar-bg);
}
.ayu :is(.admonition),
.coal :is(.admonition) {
background-color: var(--theme-hover);
}
.rust :is(.admonition) {
background-color: var(--sidebar-bg);
color: var(--sidebar-fg);
}
:is(.admonition-title) {
font-feature-settings: "kern", "liga";
font-weight: 600;
font-size: 0.84rem;
border: none;
padding: 10px 50px;
}
:is(summary)::after {
position: absolute;
top: 0.625em;
width: 1.4rem;
height: 1.4rem;
mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
-webkit-mask-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"></svg>');
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-size: contain;
content: "";
}
:is(summary)::after {
background-color: black;
mask-image: var(--md-details-icon);
-webkit-mask-image: var(--md-details-icon);
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
position: absolute;
transform: rotate(-90deg);
transition: transform 0.25s;
right: 0.4rem;
}
details[open] > summary::after {
transform: rotate(0deg);
}

90
css/code.css Normal file
View File

@@ -0,0 +1,90 @@
code.language-html,
code.language-css,
code.language-md,
code.language-cmd,
code.language-bash,
code.language-text,
code.language-js,
span.o,
span.nx {
color: rgb(255, 255, 255);
line-height: 1.4;
}
span.c {
color: hsl(120, 100%, 20%);
}
span.p,
span.s1,
span.s2,
span.nt {
color: hsl(40, 100%, 30%);
}
span.gs,
span.gh,
span.ge {
color: hsl(208, 100%, 50%);
}
span.gs {
font-weight: bold;
}
span.ge {
font-style: italic;
}
pre,
code {
@apply font-mono;
}
code {
background-color: hsl(0, 0%, 98%);
border-radius: 3px;
color: hsl(120, 100%, 20%);
font-size: 85%;
}
pre {
margin: 0;
margin: 0;
padding: 1rem;
overflow: scroll;
}
pre code {
background-color: transparent;
color: inherit;
font-size: 100%;
padding: 0;
}
.highlight {
background-color: transparent;
border-radius: 3px;
margin: 0 0 0.5rem;
padding: 0;
& pre {
margin-bottom: 0;
overflow-x: auto;
}
& .lineno {
color: hsla(0, 0%, 67%, 0.72);
display: inline-block; /* Ensures the null space also isn't selectable */
padding: 0 0.75rem 0 0.25rem;
/* Make sure numbers aren't selectable */
}
}
/* TODO: dark theme for future
@media (prefers-color-scheme: dark) {
code {
color: #fff;
background: hsl(200, 63%, 15%);
}
}
*/

361
css/index.css Normal file
View File

@@ -0,0 +1,361 @@
/*! purgecss start ignore */
@import "code.css";
/*! purgecss end ignore */
@import "tailwindcss/base";
@import "layout.css";
@import "tailwindcss/components";
@import "admonition.css";
@import "tailwindcss/utilities";
/* Custom CSS for header partial */
.backdrop-blur {
-webkit-backdrop-filter: blur(40px);
}
@font-face {
font-family: "CercoDEMO";
font-weight: 500;
src: url("https://www2.freeflow.life/fonts/CercoDEMO-Medium.otf") format("opentype");
src: url("../fonts/CercoDEMO-Medium.otf") format("opentype");
}
@font-face {
font-family: "CercoDEMO";
font-weight: 600;
src: url("https://www2.freeflow.life/fonts/CercoDEMO-Bold.otf") format("opentype");
src: url("../fonts/CercoDEMO-Bold.otf") format("opentype");
}
@font-face {
font-family: "CercoDEMO";
font-weight: 400;
src: url("https://www2.freeflow.life/fonts/CercoDEMO-Light.otf") format("opentype");
src: url("../fonts/CercoDEMO-Light.otf") format("opentype");
}
* {
font-family: "CercoDEMO", sans-serif;
}
a {
font-family: "CercoDEMO", sans-serif;
}
.bg-semi-white {
background-color: rgba(255, 255, 255, 0.75);
}
/* Custom css allowing image styling in markdown */
img[src*="#mx-auto"] {
margin: auto;
}
img[src*="#small"] {
width: 68px;
}
img[src*="#md"] {
width: 300px;
}
img[src*="#medium"] {
width: 400px;
}
img[src*="#logo"] {
max-width: min(250px, 100%);
margin: auto;
}
img[src*="#large"] {
width: min(60vw, 100vh);
margin: auto;
}
img[src*="#tft_img"] {
width: 150px;
margin: 8px;
}
.logo_size {
width: 200px;
}
@layer components {
h1 {
@apply text-4xl md:text-5xl lg:text-6xl leading-none font-normal;
}
h1 strong {
@apply font-medium;
}
h2 {
@apply text-3xl md:text-4xl lg:text-5xl xl:text-5xl font-normal leading-none;
}
h2 strong {
@apply font-medium;
}
h3 {
@apply text-xl md:text-2xl lg:text-3xl font-light;
}
h3 strong {
@apply font-medium;
}
h4 {
@apply text-xl lg:text-2xl font-normal;
}
h5 {
@apply text-xl lg:text-xl font-normal;
}
h6 {
@apply text-lg not-italic font-normal my-1;
}
p {
@apply text-lg lg:text-xl leading-tight tracking-normal font-normal;
font-family: "CercoDEMO", sans-serif;
}
blockquote {
@apply border-l-4 border-gray-400 mx-2 my-2 p-2;
}
li {
@apply text-lg lg:text-xl font-normal;
}
li li {
@apply text-sm lg:text-sm font-light;
}
button {
@apply inline-block
text-base
lg:text-lg
px-12
py-1
mr-5
my-10
border-2
shadow
capitalize;
}
}
button:hover :is(:where(a)) {
color: #c6f8ff;
}
button :is(:where(p)) {
color: #3d3b39;
font-weight: 400;
}
header .freeflow {
background-color: transparent;
position: absolute;
}
footer .freeflow {
width: 100vw;
background-color: #eae8e3;
display: flex;
flex-direction: column;
align-items: center;
padding: 40px;
}
footer .freeflow img {
width: 200px;
margin-bottom: 20px;
}
header .freeflow div {
box-shadow: none;
text-transform: uppercase;
font-weight: 700 !important;
}
button {
background-color: #1a1a1a;
border-radius: 20px;
border: 2px solid white;
box-shadow: none;
font-size: 20px;
}
button {
background-color: #1a1a1a;
border-radius: 10px;
border: none;
box-shadow: none;
font-size: 20px;
}
button a {
color: white;
}
a {
border: none;
}
header {
font-family: "Work Sans";
}
.nav_btn {
margin: 0 !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
}
.quicklinks {
box-sizing: border-box;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: auto;
display: inline-block;
margin: 0 auto;
border-radius: 10px;
margin-top: 30px;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-bottom: 20px;
}
.quicklinks img {
height: auto;
max-width: 200px;
display: inline-block;
padding: 10px;
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
position: relative;
margin-right: 30px;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
opacity: 0.5;
}
.quicklinks img:hover {
opacity: 1;
-webkit-transition: all 0.2s ease;
transition: all 0.2s ease;
-webkit-filter: grayscale(0%);
filter: grayscale(0%);
}
.banner {
width: 100%;
margin: 0;
padding: 120px 0;
text-align: center;
position: relative;
display: block;
color: #fff !important;
letter-spacing: 0.5px;
overflow: hidden;
background: #00838d;
transition: 1.5s;
}
.header {
height: auto;
background: none;
padding: 200px 0;
}
.banner h2,
.header h1 {
margin: auto;
color: #fff;
position: relative;
transition: 0.3s;
z-index: 1;
white-space: nowrap;
}
.header h1 {
color: #000;
transition: none;
}
.banner h2 svg {
font-size: 40px;
margin-left: 15px;
position: absolute;
top: 55%;
transform: translateY(-50%) scale(0.5);
opacity: 0;
transition: 0.3s;
}
.banner .back {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-position: center;
background-size: cover;
filter: grayscale(1) contrast(1.4);
opacity: 0.25;
transition: 1.5s;
}
.header .back {
filter: none;
opacity: 1;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.banner:hover {
background: #4b3a92;
}
.header:hover {
background: none;
}
.banner:hover h2 svg {
transform: translateY(-50%) scale(1);
opacity: 1;
}
.banner:hover h2 {
padding-right: 40px;
}
.header:hover h1 {
padding-right: 0;
}
.banner:hover .back {
transform: scale(1.03);
}
.header:hover .back {
transform: none;
}
@media (max-width: 640px) {
.banner h2 {
font: 600 7vw/10vw;
}
.header h1 {
font-size: 35px;
}
.banner h2 svg {
font-size: 30px;
}
}
@media (max-width: 480px) {
.banner,
.header {
padding: 80px 0;
}
}

468
css/layout.css Normal file
View File

@@ -0,0 +1,468 @@
main {
@apply pt-0;
}
#text-1xl { @apply text-xl }
#text-2xl { @apply text-2xl }
#text-3xl { @apply text-3xl }
#text-4xl { @apply text-4xl }
#text-5xl { @apply text-5xl }
#text-6xl { @apply text-6xl }
#text-7xl { @apply text-7xl }
#text-8xl { @apply text-8xl }
/*
html, body {
@apply dark:bg-black;
body {
@apply font-serif dark:text-gray-200;
}
*/
p {
/* for handling Markdown-created <p> and <li> */
@apply text-lg;
}
pre,
code {
font-feature-settings: normal;
}
.navWhite,
.navWhite:visited {
@apply text-white;
}
.navWhite:focus,
.navWhite:active {
@apply text-gray-400;
}
.text-blue-light {
@apply text-blue-500;
}
.text-blue-dark {
/* for dark mode
@apply text-blue-200;
*/
}
.text-shadow-titles {
text-shadow: 4px 4px 2px #000;
}
.gradient-titles {
@apply bg-gradient-to-b from-blue-700 to-black;
}
.ctr {
@apply text-center;
}
.legal {
@apply text-xs;
}
nav h4 a:hover {
@apply border-0 text-blue-300 font-light;
}
nav h4 a,
nav h4 a:focus,
nav h4 a:active {
@apply border-0 text-black font-light;
}
a h2 {
@apply text-black;
}
a:focus,
a:hover {
@apply border-none text-blue-300;
}
a:active {
@apply text-blue-800 border-blue-500;
}
h5 a {
@apply text-gray-900 font-normal;
}
/*
a:hover {
@apply dark:text-blue-300;
}
*/
sup a,
a.previous,
a.next,
.footnote-return {
@apply border-b-0;
}
#nav-toggle:checked + #navMenu {
@apply block;
}
a.navborderless {
@apply border-b-0;
}
/*
.dateInfo {
@apply text-gray-700 dark:text-gray-400;
}
*/
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
}
h1,
.h1 {
@apply text-4xl font-extrabold;
}
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
@apply font-bold;
}
h2,
.h2 {
@apply text-4xl;
}
h4,
.h4 {
@apply text-2xl;
}
h5 {
@apply not-italic;
}
h5,
.h5,
h6,
.h6 {
@apply text-lg;
}
.height-hero {
height: 45vh;
max-height: 45vh;
overflow: hidden;
}
.height-post {
height: 35vh;
max-height: 35vh;
}
.imgCover {
@apply object-cover object-center h-full w-full;
}
.background-hero-image-div {
@apply relative overflow-hidden w-full bg-black;
/* Have to allow for mobile browsers' own "chrome"; can't go by Inspector simulations of smaller breakpoints */
height: 80vh;
max-height: 80vh;
}
.background-hero-title-block-fit {
@apply block w-full absolute bottom-0 px-4 pt-3 pb-6 bg-gradient-to-t from-black;
}
.background-hero-title-text {
text-shadow: 4px 4px 2px #000;
}
@media screen and (min-width: 768px) {
.background-hero-title-block-fit {
@apply px-12;
}
.background-hero-image-div {
height: 85vh;
max-height: 85vh;
}
}
@media screen and (min-width: 1024px) {
.background-hero-title-block-fit {
@apply px-16;
}
.background-hero-image-div {
height: 95vh;
max-height: 95vh;
}
}
.text-nowrap,
.text-nobrk {
@apply whitespace-nowrap;
}
article h1,
article h2,
article h3,
article h4 {
@apply tracking-tight mt-8 mb-6;
}
article p {
@apply text-lg leading-relaxed;
}
article img.containedImage {
min-width: 100%;
max-width: 100%;
@apply w-full h-auto;
}
@media screen and (min-width: 768px) {
.height-hero {
height: 70vh;
max-height: 70vh;
}
.height-post {
height: 40vh;
max-height: 40vh;
}
}
@media screen and (min-width: 768px) {
article p {
@apply text-xl leading-relaxed;
}
}
@media screen and (min-width: 1920px) {
article p {
@apply text-2xl leading-relaxed;
}
}
/*
.yellowBox {
@apply font-sans bg-yellow-200 border border-gray-900 border-solid mx-auto my-2 w-full px-6 py-2 dark:bg-gray-800 dark:border-gray-500;
}
*/
.yellowbox p {
@apply w-full p-2 m-0;
}
ul,
ol {
@apply pl-8;
}
ul {
@apply list-disc;
}
ol {
@apply list-decimal;
}
.twitter-tweet {
@apply mt-4 mx-auto mb-0;
}
table.leagues {
@apply w-11/12 mt-4 mx-auto mb-0 border-0 border-collapse;
}
table.leagues td.col {
@apply w-1/2;
}
@media (min-width: 900px) {
table.leagues {
@apply w-3/5;
}
table.noborders {
@apply w-11/12;
}
}
table.noborders {
@apply w-full border-0 border-collapse mt-6 mx-auto mb-4;
}
table.noborders td {
@apply text-gray-800 text-left align-middle py-1 pr-0 pl-2;
/* text-align: left !important; */
}
table.noborders td img {
@apply inline-block align-middle m-0;
}
table.noborders tr {
@apply bg-blue-100;
}
table.noborders tr:nth-child(even) {
@apply bg-gray-200;
}
table.noborders thead tr {
@apply bg-blue-700;
}
table.noborders thead td {
@apply text-white font-bold;
}
table.noborders td.td70 {
width: 70%;
}
table.noborders td.td70 img {
@apply block w-1/2 h-auto;
max-width: 50%;
}
table.noborders td.td30 {
width: 30%;
}
/*
blockquote {
@apply px-6 text-gray-700 dark:text-gray-400;
}
*/
/* start, footnotes */
.footnote-definition,
.footnote-reference {
@apply font-sans;
}
.footnote-reference {
font-size: 0.65em;
top: -0.5em;
}
.footnote-sim {
font-size: 0.65em;
color: #0000ff;
@media (prefers-color-scheme: dark) {
color: #00aaff;
}
}
.footnotes {
& ol {
padding-inline-start: 1.5rem;
}
& ol li {
margin-bottom: 0.5rem;
font-size: $pokey;
}
& li p {
font-size: 100%;
line-height: 1.4;
}
& .footnote-backref {
font-size: 75%;
}
}
a.footnote-return {
font-size: 50%;
}
article > .footnote-definition {
border-top: 1px solid black;
padding-top: 1em;
margin-top: 1em;
}
article > .footnote-definition ~ .footnote-definition {
border-top: 0;
padding-top: 0;
margin-top: 0;
}
.footnote-definition-label {
top: -0.4em;
font-size: 0.65em;
}
.footnote-definition-label + p {
font-size: 75%;
margin-top: -1.75em;
margin-left: 1em;
line-height: 1.35;
}
.footnote-definition-label::after {
content: ".";
}
/* == end, footnotes */
.aspect-16x9 {
padding-bottom: 56.25%;
}
/*
hr {
@apply border-solid border-gray-900 dark:border-gray-100;
}
*/
footer {
@apply font-sans;
}
.lazypicturecaption {
@apply text-sm p-0 mt-2 leading-snug text-center;
}
.home-colOne p {
@apply leading-8 mb-4;
}
.home-colOne img {
@apply my-4;
}
.container-comments {
margin: 0 auto;
font-size: 85%;
width: 85%;
max-width: 720px !important;
margin-bottom: 0;
}
@media screen and (min-width: 900px) {
.container-comments {
width: 40%;
}
}