Grid fixes and such.
This commit is contained in:
parent
2199a5a693
commit
c020aa9b78
10 changed files with 387 additions and 275 deletions
|
|
@ -1,7 +1,7 @@
|
|||
@import "colors";
|
||||
|
||||
button {
|
||||
// padding: 0.75rem 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: map-get($dark, "button");
|
||||
|
|
@ -12,8 +12,8 @@ button {
|
|||
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
|
||||
padding: 2em;
|
||||
font-size: 12px;
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(map-get($dark, "buttonActive"), 10%);
|
||||
|
|
@ -24,6 +24,7 @@ button {
|
|||
}
|
||||
|
||||
&.small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
|
|
@ -34,6 +35,7 @@ button {
|
|||
&:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten(map-get($dark, "buttonActive"), 10%);
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
&:active {
|
||||
|
|
@ -45,6 +47,7 @@ button {
|
|||
&.white {
|
||||
background-color: $foreground;
|
||||
color: $background;
|
||||
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($foreground, 10%);
|
||||
|
|
|
|||
|
|
@ -1,47 +1,5 @@
|
|||
@import "colors";
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
b,
|
||||
i,
|
||||
body,
|
||||
button {
|
||||
font-family: "Spartan";
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
.code {
|
||||
font-family: "Fira Code";
|
||||
font-variant-ligatures: common-ligatures;
|
||||
background-color: lighten($background, 10%);
|
||||
border: 2px solid lighten($background, 5%);
|
||||
padding: 0.4rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
p.code,
|
||||
pre {
|
||||
display: inline-block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: "Fira Code";
|
||||
font-variant-ligatures: common-ligatures;
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: $background;
|
||||
color: $foreground;
|
||||
|
|
@ -56,64 +14,11 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: $mastColor;
|
||||
color: $background;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.gradient {
|
||||
background: url("../../../Resources/img/cover.png"), $mastColor;
|
||||
background: url("../../../Resources/img/cover.png"), -webkit-linear-gradient(to bottom left, $cyan, $green);
|
||||
background: url("../../../Resources/img/cover.png"), linear-gradient(to bottom left, $cyan, $green);
|
||||
}
|
||||
|
||||
p.content {
|
||||
font-size: 64px;
|
||||
font-weight: 900;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
|
||||
.subheader {
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.down {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
i {
|
||||
font-size: 64px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 90vw;
|
||||
margin: 2rem 5vw;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.in-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
img.centered {
|
||||
display: block;
|
||||
}
|
||||
|
|
@ -185,20 +90,12 @@ img {
|
|||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-inline-start: 0;
|
||||
padding-inline-end: 40px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.color-demo {
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
transition: all ease-in-out 150ms;
|
||||
|
||||
&.red {
|
||||
background-color: $red;
|
||||
|
|
@ -220,4 +117,9 @@ li {
|
|||
background-color: $foreground;
|
||||
color: $background;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
margin-top: -1rem;
|
||||
transition: all ease-in-out 150ms;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
86
Libraries/css/themekit/_masthead.scss
Normal file
86
Libraries/css/themekit/_masthead.scss
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
@import "colors";
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: $mastColor;
|
||||
color: $background;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.gradient {
|
||||
background: url("../../../Resources/img/cover.png"), $mastColor;
|
||||
background: url("../../../Resources/img/cover.png"), -webkit-linear-gradient(to bottom left, $cyan, $green);
|
||||
background: url("../../../Resources/img/cover.png"), linear-gradient(to bottom left, $cyan, $green);
|
||||
|
||||
&.rainbow {
|
||||
background: linear-gradient(45deg, #ff0000, #ffb200, #f2ff00, #00c00c, #00d2d0, #0040d2, #a400f6, #f600f1);
|
||||
background-size: 1600% 1600%;
|
||||
|
||||
-webkit-animation: RainbowGradient 30s ease infinite;
|
||||
-moz-animation: RainbowGradient 30s ease infinite;
|
||||
animation: RainbowGradient 30s ease infinite;
|
||||
|
||||
@-webkit-keyframes RainbowGradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 51%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
@-moz-keyframes RainbowGradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 51%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
@keyframes RainbowGradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 51%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p.content {
|
||||
font-size: 64px;
|
||||
font-weight: 900;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
|
||||
.subheader {
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.down {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
i {
|
||||
font-size: 64px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,4 @@
|
|||
.modal {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
|
@ -15,8 +12,7 @@
|
|||
height: 100vh;
|
||||
overflow: auto;
|
||||
background-color: $background;
|
||||
background-color: rgba($background, 0.4);
|
||||
transition: visibility 0s, opacity 150ms ease-in-out;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
|
|
@ -28,7 +24,6 @@
|
|||
border-radius: 8px;
|
||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -36,14 +31,14 @@
|
|||
|
||||
/* The Close Button */
|
||||
.close {
|
||||
color: #aaaaaa;
|
||||
color: #eeeeee;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: #000;
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
|||
65
Libraries/css/themekit/_text.scss
Normal file
65
Libraries/css/themekit/_text.scss
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
@import "colors";
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
b,
|
||||
i,
|
||||
body,
|
||||
button {
|
||||
font-family: "Spartan";
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
.code {
|
||||
font-family: "Fira Code";
|
||||
font-variant-ligatures: common-ligatures;
|
||||
background-color: lighten($background, 10%);
|
||||
border: 2px solid lighten($background, 5%);
|
||||
padding: 0.4rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
p.code,
|
||||
pre {
|
||||
display: inline-block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: "Fira Code";
|
||||
font-variant-ligatures: common-ligatures;
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.in-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding-inline-start: 0;
|
||||
padding-inline-end: 40px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
button {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: #3a3a3a;
|
||||
|
|
@ -14,8 +15,9 @@ button {
|
|||
border-radius: 0.3em;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
|
||||
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
|
||||
padding: 2em;
|
||||
font-size: 12px;
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
|
|
@ -27,6 +29,7 @@ button:active {
|
|||
}
|
||||
|
||||
button.small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
|
|
@ -38,6 +41,8 @@ button.outlined {
|
|||
button.outlined:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid #5a5a5a;
|
||||
-webkit-transition: all 150ms ease-in-out;
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
button.outlined:active {
|
||||
|
|
@ -48,6 +53,8 @@ button.outlined:active {
|
|||
button.white {
|
||||
background-color: #eeeeee;
|
||||
color: #252525;
|
||||
-webkit-box-shadow: 0px 0px 10px 0px rgba(238, 238, 238, 0.5);
|
||||
box-shadow: 0px 0px 10px 0px rgba(238, 238, 238, 0.5);
|
||||
}
|
||||
|
||||
button.white:hover {
|
||||
|
|
@ -349,8 +356,6 @@ body {
|
|||
}
|
||||
|
||||
.modal {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
|
|
@ -372,9 +377,7 @@ body {
|
|||
height: 100vh;
|
||||
overflow: auto;
|
||||
background-color: #252525;
|
||||
background-color: rgba(37, 37, 37, 0.4);
|
||||
-webkit-transition: visibility 0s, opacity 150ms ease-in-out;
|
||||
transition: visibility 0s, opacity 150ms ease-in-out;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
|
|
@ -395,66 +398,18 @@ body {
|
|||
}
|
||||
|
||||
.modal-content .close {
|
||||
color: #aaaaaa;
|
||||
color: #eeeeee;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.modal-content .close:hover, .modal-content .close:focus {
|
||||
color: #000;
|
||||
color: #ffffff;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
b,
|
||||
i,
|
||||
body,
|
||||
button {
|
||||
font-family: "Spartan";
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
.code {
|
||||
font-family: "Fira Code";
|
||||
-webkit-font-variant-ligatures: common-ligatures;
|
||||
font-variant-ligatures: common-ligatures;
|
||||
background-color: #3f3f3f;
|
||||
border: 2px solid #323232;
|
||||
padding: 0.4rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
p.code,
|
||||
pre {
|
||||
display: inline-block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: "Fira Code";
|
||||
-webkit-font-variant-ligatures: common-ligatures;
|
||||
font-variant-ligatures: common-ligatures;
|
||||
white-space: pre-wrap;
|
||||
/* css-3 */
|
||||
white-space: -moz-pre-wrap;
|
||||
/* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap;
|
||||
/* Opera 4-6 */
|
||||
white-space: -o-pre-wrap;
|
||||
/* Opera 7 */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #252525;
|
||||
color: #eeeeee;
|
||||
|
|
@ -470,88 +425,11 @@ a:hover {
|
|||
color: #ff110d;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: #7cb342;
|
||||
color: #252525;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.masthead.gradient {
|
||||
background: url("../../../Resources/img/cover.png"), #7cb342;
|
||||
background: url("../../../Resources/img/cover.png"), -webkit-gradient(linear, right top, left bottom, from(#00bee0), to(#7cb342));
|
||||
background: url("../../../Resources/img/cover.png"), linear-gradient(to bottom left, #00bee0, #7cb342);
|
||||
}
|
||||
|
||||
.masthead p.content {
|
||||
font-size: 64px;
|
||||
font-weight: 900;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.masthead p.content .subheader {
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.masthead .down {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.masthead .down i {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 90vw;
|
||||
margin: 2rem 5vw;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.in-center {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-box-orient: horizontal;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: row;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
img.centered {
|
||||
display: block;
|
||||
}
|
||||
|
|
@ -647,22 +525,13 @@ img.large {
|
|||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
-webkit-padding-start: 0;
|
||||
padding-inline-start: 0;
|
||||
-webkit-padding-end: 40px;
|
||||
padding-inline-end: 40px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.color-demo {
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding: 3rem;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
-webkit-transition: all ease-in-out 150ms;
|
||||
transition: all ease-in-out 150ms;
|
||||
}
|
||||
|
||||
.color-demo.red {
|
||||
|
|
@ -686,6 +555,12 @@ li {
|
|||
color: #252525;
|
||||
}
|
||||
|
||||
.color-demo:hover {
|
||||
margin-top: -1rem;
|
||||
-webkit-transition: all ease-in-out 150ms;
|
||||
transition: all ease-in-out 150ms;
|
||||
}
|
||||
|
||||
.embed {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
|
@ -712,4 +587,173 @@ li {
|
|||
grid-gap: 2rem;
|
||||
grid-auto-flow: dense;
|
||||
}
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: #7cb342;
|
||||
color: #252525;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.masthead.gradient {
|
||||
background: url("../../../Resources/img/cover.png"), #7cb342;
|
||||
background: url("../../../Resources/img/cover.png"), -webkit-gradient(linear, right top, left bottom, from(#00bee0), to(#7cb342));
|
||||
background: url("../../../Resources/img/cover.png"), linear-gradient(to bottom left, #00bee0, #7cb342);
|
||||
}
|
||||
|
||||
.masthead.gradient.rainbow {
|
||||
background: linear-gradient(45deg, #ff0000, #ffb200, #f2ff00, #00c00c, #00d2d0, #0040d2, #a400f6, #f600f1);
|
||||
background-size: 1600% 1600%;
|
||||
-webkit-animation: RainbowGradient 30s ease infinite;
|
||||
animation: RainbowGradient 30s ease infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes RainbowGradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 51%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes RainbowGradient {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 51%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.masthead p.content {
|
||||
font-size: 64px;
|
||||
font-weight: 900;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.masthead p.content .subheader {
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.masthead .down {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.masthead .down i {
|
||||
font-size: 64px;
|
||||
}
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
b,
|
||||
i,
|
||||
body,
|
||||
button {
|
||||
font-family: "Spartan";
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
.code {
|
||||
font-family: "Fira Code";
|
||||
-webkit-font-variant-ligatures: common-ligatures;
|
||||
font-variant-ligatures: common-ligatures;
|
||||
background-color: #3f3f3f;
|
||||
border: 2px solid #323232;
|
||||
padding: 0.4rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
p.code,
|
||||
pre {
|
||||
display: inline-block;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: "Fira Code";
|
||||
-webkit-font-variant-ligatures: common-ligatures;
|
||||
font-variant-ligatures: common-ligatures;
|
||||
white-space: pre-wrap;
|
||||
/* css-3 */
|
||||
white-space: -moz-pre-wrap;
|
||||
/* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap;
|
||||
/* Opera 4-6 */
|
||||
white-space: -o-pre-wrap;
|
||||
/* Opera 7 */
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.in-center {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-box-orient: horizontal;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: row;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
ul {
|
||||
-webkit-padding-start: 0;
|
||||
padding-inline-start: 0;
|
||||
-webkit-padding-end: 40px;
|
||||
padding-inline-end: 40px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 0.75rem;
|
||||
margin-bottom: 0.75rem;
|
||||
line-height: 1.75;
|
||||
}
|
||||
/*# sourceMappingURL=all.css.map */
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -5,3 +5,6 @@
|
|||
@import "main";
|
||||
@import "embed";
|
||||
@import "grid";
|
||||
@import "masthead";
|
||||
@import "text";
|
||||
|
||||
|
|
|
|||
|
|
@ -2,26 +2,36 @@ $(document).ready(() => {
|
|||
// Close when clicking on *not* the modal-contents
|
||||
window.onclick = (event) => {
|
||||
if (event.target.classList.contains("modal")) {
|
||||
event.target.style.visibility = 'hidden';
|
||||
event.target.style.opacity = 0;
|
||||
$(event.target).hide("fade", {
|
||||
direction: "out",
|
||||
}, 300);
|
||||
document.body.classList.remove("no-scroll");
|
||||
}
|
||||
};
|
||||
|
||||
document.querySelectorAll(".modal .close").forEach((closeBtn) => {
|
||||
closeBtn.addEventListener('click', (evt) => {
|
||||
closeBtn.parentElement.parentElement.style.visibility = 'hidden';
|
||||
closeBtn.parentElement.parentElement.style.opacity = 0;
|
||||
$(closeBtn.parentElement.parentElement).hide("fade", {
|
||||
direction: "out",
|
||||
}, 300);
|
||||
document.body.classList.remove("no-scroll");
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||
modalTrigerEl.addEventListener('click', (evt) => {
|
||||
document.getElementById(modalTrigerEl.getAttribute("for-modal")).style.visibility = "visible";
|
||||
document.getElementById(modalTrigerEl.getAttribute("for-modal")).style.opacity = 1;
|
||||
// document.getElementById(modalTrigerEl.getAttribute("for-modal")).style.display = "flex";
|
||||
$(`#${modalTrigerEl.getAttribute("for-modal")}`).show("fade", {
|
||||
direction: "in",
|
||||
}, 300);
|
||||
document.body.classList.add("no-scroll");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(() => {
|
||||
document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||
$(`#${modalTrigerEl.getAttribute("for-modal")}`).hide();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue