Dark toggle
This commit is contained in:
parent
62a64161c5
commit
e87bc85a9b
14 changed files with 1127 additions and 158 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
@import "colors";
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,6 @@ $components: (
|
||||||
"button": #3a3a3a
|
"button": #3a3a3a
|
||||||
);
|
);
|
||||||
|
|
||||||
// UNCOMMENT FOR LIGHT MODE!
|
|
||||||
|
|
||||||
// $background: #eeeeee;
|
|
||||||
// $foreground: #252525;
|
|
||||||
// $components: (
|
|
||||||
// "item": #d0d0d0,
|
|
||||||
// "button": #d0d0d0,
|
|
||||||
// );
|
|
||||||
|
|
||||||
$red: #ff4340;
|
$red: #ff4340;
|
||||||
$cyan: #00bee0;
|
$cyan: #00bee0;
|
||||||
$green: #7cb342;
|
$green: #7cb342;
|
||||||
21
Libraries/css/themekit/_colors-light.scss
Normal file
21
Libraries/css/themekit/_colors-light.scss
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
/******************************************************
|
||||||
|
* FIXED COLORS (Change these to propagate chages) *
|
||||||
|
******************************************************/
|
||||||
|
$background: #eeeeee;
|
||||||
|
$foreground: #252525;
|
||||||
|
$components: (
|
||||||
|
"item": #d0d0d0,
|
||||||
|
"button": #d0d0d0
|
||||||
|
);
|
||||||
|
|
||||||
|
$red: #ff4340;
|
||||||
|
$cyan: #00bee0;
|
||||||
|
$green: #7cb342;
|
||||||
|
$mastColor: #7cb342;
|
||||||
|
|
||||||
|
/******************************************************
|
||||||
|
* DYNAMIC COLORS (Probably Don't Touch!) *
|
||||||
|
******************************************************/
|
||||||
|
|
||||||
|
$cardColor: lighten($background, 2%);
|
||||||
|
$item: lighten($background, 10%);
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
@import "colors";
|
|
||||||
|
|
||||||
.titlebar.top {
|
.titlebar.top {
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,105 @@ body {
|
||||||
transform: translateY(-10px);
|
transform: translateY(-10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 2048;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: #252525;
|
||||||
|
background-color: rgba(0, 0, 0, 0.75);
|
||||||
|
-webkit-transition-duration: 400ms, 400ms;
|
||||||
|
transition-duration: 400ms, 400ms;
|
||||||
|
-webkit-transition-property: visibility, opacity;
|
||||||
|
transition-property: visibility, opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal.visible {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transition-duration: 400ms, 0;
|
||||||
|
transition-duration: 400ms, 0;
|
||||||
|
-webkit-transition-property: opacity, visibility;
|
||||||
|
transition-property: opacity, visibility;
|
||||||
|
-webkit-transition-delay: 0, 400ms;
|
||||||
|
transition-delay: 0, 400ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modal Content */
|
||||||
|
.modal-content {
|
||||||
|
background-color: #252525;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid #3f3f3f;
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 8px;
|
||||||
|
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||||
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||||
|
/* The Close Button */
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content img {
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
width: 80%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .container {
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .header {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-margin-before: 0;
|
||||||
|
margin-block-start: 0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid #3f3f3f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .content {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .close {
|
||||||
|
color: #eeeeee;
|
||||||
|
float: right;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .close:hover, .modal-content .close:focus {
|
||||||
|
color: #c2c2c2;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-no-scroll {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
@ -290,12 +389,6 @@ button.cyan.outlined:active {
|
||||||
border: 2px solid #00d4fa;
|
border: 2px solid #00d4fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************
|
|
||||||
* FIXED COLORS (Change these to propagate chages) *
|
|
||||||
******************************************************/
|
|
||||||
/******************************************************
|
|
||||||
* DYNAMIC COLORS (Probably Don't Touch!) *
|
|
||||||
******************************************************/
|
|
||||||
.container {
|
.container {
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
margin: 2rem 5vw;
|
margin: 2rem 5vw;
|
||||||
|
|
@ -505,12 +598,6 @@ img.large {
|
||||||
font-size: 64px;
|
font-size: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************
|
|
||||||
* FIXED COLORS (Change these to propagate chages) *
|
|
||||||
******************************************************/
|
|
||||||
/******************************************************
|
|
||||||
* DYNAMIC COLORS (Probably Don't Touch!) *
|
|
||||||
******************************************************/
|
|
||||||
.titlebar.top {
|
.titlebar.top {
|
||||||
background-color: #252525;
|
background-color: #252525;
|
||||||
color: #eeeeee;
|
color: #eeeeee;
|
||||||
|
|
@ -715,105 +802,6 @@ body {
|
||||||
left: 100%;
|
left: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
|
||||||
visibility: hidden;
|
|
||||||
opacity: 0;
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
-webkit-box-orient: horizontal;
|
|
||||||
-webkit-box-direction: normal;
|
|
||||||
-ms-flex-direction: row;
|
|
||||||
flex-direction: row;
|
|
||||||
-webkit-box-align: center;
|
|
||||||
-ms-flex-align: center;
|
|
||||||
align-items: center;
|
|
||||||
-webkit-box-pack: center;
|
|
||||||
-ms-flex-pack: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: fixed;
|
|
||||||
z-index: 2048;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
overflow: auto;
|
|
||||||
background-color: #252525;
|
|
||||||
background-color: rgba(0, 0, 0, 0.75);
|
|
||||||
-webkit-transition-duration: 400ms, 400ms;
|
|
||||||
transition-duration: 400ms, 400ms;
|
|
||||||
-webkit-transition-property: visibility, opacity;
|
|
||||||
transition-property: visibility, opacity;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal.visible {
|
|
||||||
visibility: visible;
|
|
||||||
opacity: 1;
|
|
||||||
-webkit-transition-duration: 400ms, 0;
|
|
||||||
transition-duration: 400ms, 0;
|
|
||||||
-webkit-transition-property: opacity, visibility;
|
|
||||||
transition-property: opacity, visibility;
|
|
||||||
-webkit-transition-delay: 0, 400ms;
|
|
||||||
transition-delay: 0, 400ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Modal Content */
|
|
||||||
.modal-content {
|
|
||||||
background-color: #252525;
|
|
||||||
padding: 20px;
|
|
||||||
border: 1px solid #3f3f3f;
|
|
||||||
width: 80%;
|
|
||||||
height: 80%;
|
|
||||||
height: auto;
|
|
||||||
border-radius: 8px;
|
|
||||||
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
|
||||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
|
||||||
/* The Close Button */
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content img {
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
width: 80%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content .container {
|
|
||||||
width: 80%;
|
|
||||||
height: 80%;
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content .header {
|
|
||||||
text-align: center;
|
|
||||||
-webkit-margin-before: 0;
|
|
||||||
margin-block-start: 0;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
border-bottom: 1px solid #3f3f3f;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content .content {
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content .close {
|
|
||||||
color: #eeeeee;
|
|
||||||
float: right;
|
|
||||||
font-size: 28px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-content .close:hover, .modal-content .close:focus {
|
|
||||||
color: #c2c2c2;
|
|
||||||
text-decoration: none;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.modal-no-scroll {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
a,
|
a,
|
||||||
p,
|
p,
|
||||||
h1,
|
h1,
|
||||||
|
|
@ -900,4 +888,4 @@ li {
|
||||||
margin-bottom: 0.75rem;
|
margin-bottom: 0.75rem;
|
||||||
line-height: 1.75;
|
line-height: 1.75;
|
||||||
}
|
}
|
||||||
/*# sourceMappingURL=main.css.map */
|
/*# sourceMappingURL=main-dark.css.map */
|
||||||
20
Libraries/css/themekit/main-dark.css.map
Normal file
20
Libraries/css/themekit/main-dark.css.map
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,11 +1,13 @@
|
||||||
|
@import "colors-dark";
|
||||||
|
|
||||||
@import "_custom";
|
@import "_custom";
|
||||||
|
|
||||||
|
@import "modal";
|
||||||
@import "button";
|
@import "button";
|
||||||
@import "colors";
|
|
||||||
@import "container";
|
@import "container";
|
||||||
@import "embed";
|
@import "embed";
|
||||||
@import "grid";
|
@import "grid";
|
||||||
@import "image";
|
@import "image";
|
||||||
@import "masthead";
|
@import "masthead";
|
||||||
@import "menu";
|
@import "menu";
|
||||||
@import "modal";
|
|
||||||
@import "text";
|
@import "text";
|
||||||
891
Libraries/css/themekit/main-light.css
Normal file
891
Libraries/css/themekit/main-light.css
Normal file
|
|
@ -0,0 +1,891 @@
|
||||||
|
/******************************************************
|
||||||
|
* FIXED COLORS (Change these to propagate chages) *
|
||||||
|
******************************************************/
|
||||||
|
/******************************************************
|
||||||
|
* DYNAMIC COLORS (Probably Don't Touch!) *
|
||||||
|
******************************************************/
|
||||||
|
@import url("https://fonts.googleapis.com/css?family=Fira+Code&display=swap");
|
||||||
|
@import url("https://fonts.googleapis.com/css?family=Spartan&display=swap");
|
||||||
|
body {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
color: #252525;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blurred {
|
||||||
|
-webkit-filter: blur(5px);
|
||||||
|
filter: blur(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.blurred.unblurable {
|
||||||
|
-webkit-transition: -webkit-filter ease-in-out 250ms;
|
||||||
|
transition: -webkit-filter ease-in-out 250ms;
|
||||||
|
transition: filter ease-in-out 250ms;
|
||||||
|
transition: filter ease-in-out 250ms, -webkit-filter ease-in-out 250ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blurred.unblurable:hover {
|
||||||
|
-webkit-filter: none;
|
||||||
|
filter: none;
|
||||||
|
-webkit-transition: -webkit-filter ease-in-out 250ms;
|
||||||
|
transition: -webkit-filter ease-in-out 250ms;
|
||||||
|
transition: filter ease-in-out 250ms;
|
||||||
|
transition: filter ease-in-out 250ms, -webkit-filter ease-in-out 250ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bounce {
|
||||||
|
-webkit-animation: bounce 2s 10;
|
||||||
|
animation: bounce 2s 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-webkit-keyframes bounce {
|
||||||
|
0%,
|
||||||
|
20%,
|
||||||
|
50%,
|
||||||
|
80%,
|
||||||
|
100% {
|
||||||
|
-webkit-transform: translateY(0);
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
40% {
|
||||||
|
-webkit-transform: translateY(-30px);
|
||||||
|
transform: translateY(-30px);
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
-webkit-transform: translateY(-15px);
|
||||||
|
transform: translateY(-15px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes bounce {
|
||||||
|
0%,
|
||||||
|
20%,
|
||||||
|
50%,
|
||||||
|
80%,
|
||||||
|
100% {
|
||||||
|
-webkit-transform: translateY(0);
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
40% {
|
||||||
|
-webkit-transform: translateY(-30px);
|
||||||
|
transform: translateY(-30px);
|
||||||
|
}
|
||||||
|
60% {
|
||||||
|
-webkit-transform: translateY(-15px);
|
||||||
|
transform: translateY(-15px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo {
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 3rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
-webkit-transition: all ease-in-out 150ms;
|
||||||
|
transition: all ease-in-out 150ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo.red {
|
||||||
|
background-color: #ff4340;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(255, 17, 13, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(255, 17, 13, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo.blue {
|
||||||
|
background-color: #00bee0;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 147, 173, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(0, 147, 173, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo.green {
|
||||||
|
background-color: #7cb342;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(98, 142, 52, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(98, 142, 52, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo.bg {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo.fg {
|
||||||
|
background-color: #252525;
|
||||||
|
color: #eeeeee;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(37, 37, 37, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(37, 37, 37, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-demo:hover {
|
||||||
|
-webkit-transform: translateY(-10px);
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 2048;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: #eeeeee;
|
||||||
|
background-color: rgba(0, 0, 0, 0.75);
|
||||||
|
-webkit-transition-duration: 400ms, 400ms;
|
||||||
|
transition-duration: 400ms, 400ms;
|
||||||
|
-webkit-transition-property: visibility, opacity;
|
||||||
|
transition-property: visibility, opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal.visible {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transition-duration: 400ms, 0;
|
||||||
|
transition-duration: 400ms, 0;
|
||||||
|
-webkit-transition-property: opacity, visibility;
|
||||||
|
transition-property: opacity, visibility;
|
||||||
|
-webkit-transition-delay: 0, 400ms;
|
||||||
|
transition-delay: 0, 400ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Modal Content */
|
||||||
|
.modal-content {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
padding: 20px;
|
||||||
|
border: 1px solid white;
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 8px;
|
||||||
|
-webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||||
|
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||||
|
/* The Close Button */
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content img {
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
width: 80%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .container {
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .header {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-margin-before: 0;
|
||||||
|
margin-block-start: 0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .content {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .close {
|
||||||
|
color: #252525;
|
||||||
|
float: right;
|
||||||
|
font-size: 28px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content .close:hover, .modal-content .close:focus {
|
||||||
|
color: #494949;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-no-scroll {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
background-color: #d0d0d0;
|
||||||
|
color: #252525;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
cursor: pointer;
|
||||||
|
width: -webkit-fit-content;
|
||||||
|
width: -moz-fit-content;
|
||||||
|
width: fit-content;
|
||||||
|
border-radius: 0.3em;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
-webkit-transition: all 150ms ease-in-out;
|
||||||
|
transition: all 150ms ease-in-out;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:active {
|
||||||
|
background-color: #fbfbfb;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.small {
|
||||||
|
font-size: 12px;
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.outlined {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 2px solid #d0d0d0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.outlined:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 2px solid white;
|
||||||
|
-webkit-transition: all 150ms ease-in-out;
|
||||||
|
transition: all 150ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.outlined:active {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 2px solid #fbfbfb;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted {
|
||||||
|
background-color: #111111;
|
||||||
|
color: #dadada;
|
||||||
|
-webkit-box-shadow: 0px 0px 10px 0px rgba(17, 17, 17, 0.5);
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(17, 17, 17, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted:hover {
|
||||||
|
background-color: #2b2b2b;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted:active {
|
||||||
|
background-color: #1e1e1e;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted.outlined {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #111111;
|
||||||
|
border: 2px solid #111111;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted.outlined:hover {
|
||||||
|
color: #2b2b2b;
|
||||||
|
border: 2px solid #2b2b2b;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.inverted.outlined:active {
|
||||||
|
color: #323232;
|
||||||
|
border: 2px solid #1e1e1e;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red {
|
||||||
|
background-color: #ff4340;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red:hover {
|
||||||
|
background-color: #ff7573;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red:active {
|
||||||
|
background-color: #ff5c5a;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red.outlined {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #ff4340;
|
||||||
|
border: 2px solid #ff4340;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red.outlined:hover {
|
||||||
|
color: #ff7573;
|
||||||
|
border: 2px solid #ff7573;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.red.outlined:active {
|
||||||
|
color: #ff5c5a;
|
||||||
|
border: 2px solid #ff5c5a;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green {
|
||||||
|
background-color: #7cb342;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green:hover {
|
||||||
|
background-color: #95c563;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green:active {
|
||||||
|
background-color: #89be50;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green.outlined {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #7cb342;
|
||||||
|
border: 2px solid #7cb342;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green.outlined:hover {
|
||||||
|
color: #95c563;
|
||||||
|
border: 2px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.green.outlined:active {
|
||||||
|
color: #89be50;
|
||||||
|
border: 2px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan {
|
||||||
|
background-color: #00bee0;
|
||||||
|
color: #eeeeee;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan:hover {
|
||||||
|
background-color: #14dbff;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan:active {
|
||||||
|
background-color: #00d4fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan.outlined {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #00bee0;
|
||||||
|
border: 2px solid #00bee0;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan.outlined:hover {
|
||||||
|
color: #14dbff;
|
||||||
|
border: 2px solid #14dbff;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.cyan.outlined:active {
|
||||||
|
color: #00d4fa;
|
||||||
|
border: 2px solid #00d4fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 90vw;
|
||||||
|
margin: 2rem 5vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
width: 70vw;
|
||||||
|
height: 10px;
|
||||||
|
border-bottom: 1px solid #d0d0d0;
|
||||||
|
margin: 1rem auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider.wide {
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.embed {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 56.25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.embed iframe {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid {
|
||||||
|
display: -ms-grid;
|
||||||
|
display: grid;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-ms-grid-columns: (minmax(120px, 1fr))[auto-fit];
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
||||||
|
grid-gap: 2rem;
|
||||||
|
grid-auto-flow: dense;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards {
|
||||||
|
display: -ms-grid;
|
||||||
|
display: grid;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
-ms-grid-columns: (minmax(256px, 1fr))[auto-fit];
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||||
|
grid-gap: 2rem;
|
||||||
|
grid-auto-flow: dense;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards .card {
|
||||||
|
background-color: #f3f3f3;
|
||||||
|
color: #252525;
|
||||||
|
-webkit-box-shadow: 0 0 10px 0 rgba(218, 218, 218, 0.95);
|
||||||
|
box-shadow: 0 0 10px 0 rgba(218, 218, 218, 0.95);
|
||||||
|
padding: 1rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 2px solid white;
|
||||||
|
cursor: pointer;
|
||||||
|
-webkit-transition: all ease-in-out 150ms;
|
||||||
|
transition: all ease-in-out 150ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards .card:hover {
|
||||||
|
-webkit-transform: translateY(-10px);
|
||||||
|
transform: translateY(-10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards .card .header {
|
||||||
|
text-align: center;
|
||||||
|
-webkit-margin-before: 0;
|
||||||
|
margin-block-start: 0;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards .card .content {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.centered {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.rounded {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.thumbnail {
|
||||||
|
width: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.small {
|
||||||
|
width: 128px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.medium {
|
||||||
|
width: 256px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img.large {
|
||||||
|
width: 512px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.masthead {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #7cb342;
|
||||||
|
color: #eeeeee;
|
||||||
|
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%;
|
||||||
|
color: #252525;
|
||||||
|
-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;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top {
|
||||||
|
background-color: #eeeeee;
|
||||||
|
color: #252525;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 3rem;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: row;
|
||||||
|
flex-direction: row;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-box-shadow: 0px 2px 0px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
box-shadow: 0px 2px 0px 0px rgba(213, 213, 213, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.masthead {
|
||||||
|
height: calc(100vh - 3rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin-top: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top a {
|
||||||
|
color: #252525;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top.translucent {
|
||||||
|
background-color: rgba(238, 238, 238, 0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top .item {
|
||||||
|
display: -webkit-inline-box;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-box-direction: normal;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
flex-direction: column;
|
||||||
|
-webkit-box-pack: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
justify-content: center;
|
||||||
|
background-color: #d0d0d0;
|
||||||
|
padding: 0px 1rem;
|
||||||
|
height: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top .item span {
|
||||||
|
display: -webkit-inline-box;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar.top .item:hover {
|
||||||
|
background-color: #e1e1e1;
|
||||||
|
-webkit-transition: all ease-in 150ms;
|
||||||
|
transition: all ease-in 150ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 767px) {
|
||||||
|
.dropdown.item.compact > *,
|
||||||
|
.dropdown.item.compact {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.titlebar.top .item:not(.compact) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu {
|
||||||
|
visibility: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1024;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: rgba(238, 238, 238, 0.95);
|
||||||
|
color: #252525;
|
||||||
|
-webkit-transition-duration: 200ms, 200ms;
|
||||||
|
transition-duration: 200ms, 200ms;
|
||||||
|
-webkit-transition-property: visibility, opacity;
|
||||||
|
transition-property: visibility, opacity;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu.visible {
|
||||||
|
visibility: visible;
|
||||||
|
opacity: 1;
|
||||||
|
-webkit-transition-duration: 200ms, 0;
|
||||||
|
transition-duration: 200ms, 0;
|
||||||
|
-webkit-transition-property: opacity, visibility;
|
||||||
|
transition-property: opacity, visibility;
|
||||||
|
-webkit-transition-delay: 0, 200ms;
|
||||||
|
transition-delay: 0, 200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu .close-mobile-menu {
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-orient: horizontal;
|
||||||
|
-webkit-box-direction: reverse;
|
||||||
|
-ms-flex-direction: row-reverse;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
justify-items: flex-end;
|
||||||
|
width: 100vw;
|
||||||
|
max-width: 100vw;
|
||||||
|
font-size: 4rem;
|
||||||
|
background-color: rgba(255, 17, 13, 0.5);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu .close-mobile-menu:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu .item {
|
||||||
|
width: 100vw;
|
||||||
|
height: 10px;
|
||||||
|
max-height: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mobile-menu .sub.item {
|
||||||
|
padding-left: 3rem;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-scroll {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item:hover .dropdown-content {
|
||||||
|
max-height: 100vh;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content {
|
||||||
|
max-height: 0px;
|
||||||
|
overflow-y: hidden;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
-webkit-transition: max-height 0.5s ease-in-out;
|
||||||
|
transition: max-height 0.5s ease-in-out;
|
||||||
|
position: absolute;
|
||||||
|
background-color: #d0d0d0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .item {
|
||||||
|
color: #252525;
|
||||||
|
padding: 12px 16px;
|
||||||
|
text-decoration: none;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .item:hover {
|
||||||
|
background-color: #e1e1e1;
|
||||||
|
-webkit-transition: all ease-in 150ms;
|
||||||
|
transition: all ease-in 150ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .dropdown.item {
|
||||||
|
display: inline-block;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .dropdown.item:hover .dropdown-content {
|
||||||
|
position: unset;
|
||||||
|
max-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .dropdown.item .dropdown-content {
|
||||||
|
max-height: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown-content .dropdown.item .dropdown-content .item {
|
||||||
|
display: -webkit-inline-box;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown.item .dropdown.item .dropdown-content {
|
||||||
|
top: 0;
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
p,
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
b,
|
||||||
|
i,
|
||||||
|
body,
|
||||||
|
button {
|
||||||
|
font-family: "Spartan";
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #ff4340;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: #ff110d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code {
|
||||||
|
font-family: "Fira Code";
|
||||||
|
-webkit-font-variant-ligatures: common-ligatures;
|
||||||
|
font-variant-ligatures: common-ligatures;
|
||||||
|
background-color: white;
|
||||||
|
border: 2px solid #e1e1e1;
|
||||||
|
padding: 0.1rem;
|
||||||
|
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=main-light.css.map */
|
||||||
20
Libraries/css/themekit/main-light.css.map
Normal file
20
Libraries/css/themekit/main-light.css.map
Normal file
File diff suppressed because one or more lines are too long
13
Libraries/css/themekit/main-light.scss
Normal file
13
Libraries/css/themekit/main-light.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
@import "colors-light";
|
||||||
|
|
||||||
|
@import "_custom";
|
||||||
|
|
||||||
|
@import "modal";
|
||||||
|
@import "button";
|
||||||
|
@import "container";
|
||||||
|
@import "embed";
|
||||||
|
@import "grid";
|
||||||
|
@import "image";
|
||||||
|
@import "masthead";
|
||||||
|
@import "menu";
|
||||||
|
@import "text";
|
||||||
File diff suppressed because one or more lines are too long
43
Libraries/js/app.js
Normal file
43
Libraries/js/app.js
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
let currentDisplayMode = "dark";
|
||||||
|
|
||||||
|
const updateDisplayModeIcons = () => {
|
||||||
|
document.querySelectorAll(".display-mode-icon").forEach((el) => {
|
||||||
|
let icon = document.createElement("i");
|
||||||
|
if (currentDisplayMode == "dark") {
|
||||||
|
icon.className = "fa fa-moon-o";
|
||||||
|
} else {
|
||||||
|
icon.className = "fa fa-sun-o";
|
||||||
|
}
|
||||||
|
el.innerHTML = "";
|
||||||
|
el.appendChild(icon);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
const toggleDisplayMode = (element) => {
|
||||||
|
console.log("foo");
|
||||||
|
if (currentDisplayMode == "dark") {
|
||||||
|
window.localStorage.setItem("displayMode", "light");
|
||||||
|
currentDisplayMode = "light";
|
||||||
|
document.getElementById("themekit-css").href = "Libraries/css/themekit/main-light.css";
|
||||||
|
} else {
|
||||||
|
window.localStorage.setItem("displayMode", "dark");
|
||||||
|
currentDisplayMode = "dark";
|
||||||
|
document.getElementById("themekit-css").href = "Libraries/css/themekit/main-dark.css";
|
||||||
|
}
|
||||||
|
updateDisplayModeIcons();
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("DOMContentLoaded", (evt) => {
|
||||||
|
if (window.localStorage.getItem("displayMode") != null) {
|
||||||
|
currentDisplayMode = window.localStorage.getItem("displayMode");
|
||||||
|
} else {
|
||||||
|
window.localStorage.setItem("displayMode", "dark");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (currentDisplayMode == "dark") {
|
||||||
|
document.getElementById("themekit-css").href = "Libraries/css/themekit/main-dark.css";
|
||||||
|
} else {
|
||||||
|
document.getElementById("themekit-css").href = "Libraries/css/themekit/main-light.css";
|
||||||
|
}
|
||||||
|
updateDisplayModeIcons();
|
||||||
|
});
|
||||||
|
|
@ -26,11 +26,11 @@ window.addEventListener("DOMContentLoaded", (evt) => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
// document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||||
let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
// let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
||||||
modal.classList.remove("visible");
|
// modal.classList.remove("visible");
|
||||||
modal.removeAttribute("active");
|
// modal.removeAttribute("active");
|
||||||
});
|
// });
|
||||||
|
|
||||||
document.body.addEventListener('keydown', (evt) => {
|
document.body.addEventListener('keydown', (evt) => {
|
||||||
if (evt.key == "Escape") {
|
if (evt.key == "Escape") {
|
||||||
|
|
|
||||||
14
index.html
14
index.html
|
|
@ -6,17 +6,16 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome-animation/0.2.1/font-awesome-animation.min.css"
|
|
||||||
rel="stylesheet">
|
|
||||||
|
|
||||||
<link href="Libraries/css/themekit/main.css" rel="stylesheet">
|
<link href="Libraries/css/themekit/main-dark.css" rel="stylesheet" id="themekit-css">
|
||||||
|
|
||||||
<script src="Libraries/js/themekit/menu.js"></script>
|
<script src="Libraries/js/themekit/menu.js"></script>
|
||||||
<script src="Libraries/js/themekit/modal.js"></script>
|
<script src="Libraries/js/themekit/modal.js"></script>
|
||||||
|
<script src="Libraries/js/app.js"></script>
|
||||||
<title>Juice-UI</title>
|
<title>Juice-UI</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body style="visibility: hidden;" onload="document.body.style.visibility = 'visible'">
|
||||||
<div class="top translucent titlebar ">
|
<div class="top translucent titlebar ">
|
||||||
<div class="mobile-menu">
|
<div class="mobile-menu">
|
||||||
<div class="close-mobile-menu" onclick='toggleMenu()'>
|
<div class="close-mobile-menu" onclick='toggleMenu()'>
|
||||||
|
|
@ -29,6 +28,9 @@
|
||||||
<a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="compact item">
|
<a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="compact item">
|
||||||
<span>GitHub <i class="fa fa-github"></i></span>
|
<span>GitHub <i class="fa fa-github"></i></span>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="compact item" onclick="toggleDisplayMode(this)">
|
||||||
|
<span class="display-mode-icon"></span>
|
||||||
|
</div>
|
||||||
<div class="compact submenu item" onclick="toggleSubMenu(this)">
|
<div class="compact submenu item" onclick="toggleSubMenu(this)">
|
||||||
<span>
|
<span>
|
||||||
Support <i class="fa fa-caret-right"></i>
|
Support <i class="fa fa-caret-right"></i>
|
||||||
|
|
@ -70,6 +72,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="item" onclick="toggleDisplayMode(this)">
|
||||||
|
<span class="display-mode-icon"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue