/css -> /sass
This commit is contained in:
parent
a9d3e14b66
commit
383f0223e7
30 changed files with 574 additions and 550 deletions
41
Libraries/sass/themekit/__custom.scss
Normal file
41
Libraries/sass/themekit/__custom.scss
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
.color-demo {
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
transition: all ease-in-out 150ms;
|
||||
|
||||
&.red {
|
||||
background-color: $red;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($red, 10%), 0.5);
|
||||
}
|
||||
&.blue {
|
||||
background-color: $cyan;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($cyan, 10%), 0.5);
|
||||
}
|
||||
|
||||
&.green {
|
||||
background-color: $green;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($green, 10%), 0.5);
|
||||
}
|
||||
|
||||
&.bg {
|
||||
background-color: $background;
|
||||
}
|
||||
|
||||
&.fg {
|
||||
background-color: $foreground;
|
||||
color: $background;
|
||||
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
}
|
||||
|
||||
.display-mode-icon {
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
}
|
||||
49
Libraries/sass/themekit/_base.scss
Normal file
49
Libraries/sass/themekit/_base.scss
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
body {
|
||||
background-color: $background;
|
||||
color: $foreground;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
// Easing of animations for color shifting with the color scheme
|
||||
body,
|
||||
.item,
|
||||
.titlebar,
|
||||
.titlebar a span,
|
||||
.masthead {
|
||||
transition: all ease-in-out 200ms;
|
||||
}
|
||||
|
||||
.blurred {
|
||||
filter: blur(5px);
|
||||
|
||||
&.unblurable {
|
||||
transition: filter ease-in-out 250ms;
|
||||
&:hover {
|
||||
filter: none;
|
||||
transition: filter ease-in-out 250ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bounce {
|
||||
-moz-animation: bounce 2s 10;
|
||||
-webkit-animation: bounce 2s 10;
|
||||
animation: bounce 2s 10;
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
0%,
|
||||
20%,
|
||||
50%,
|
||||
80%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
40% {
|
||||
transform: translateY(-30px);
|
||||
}
|
||||
60% {
|
||||
transform: translateY(-15px);
|
||||
}
|
||||
}
|
||||
162
Libraries/sass/themekit/_button.scss
Normal file
162
Libraries/sass/themekit/_button.scss
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
button,
|
||||
input[type="button"],
|
||||
input[type="submit"] {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: map-get($components, "button");
|
||||
color: $foreground;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
width: fit-content;
|
||||
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($background, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($background, 5%);
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
border: 2px solid map-get($components, "button");
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten($background, 10%);
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten($background, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
&.inverted {
|
||||
background-color: invert($background);
|
||||
color: invert($foreground);
|
||||
box-shadow: 0px 0px 10px 0px rgba(invert($background), 0.5);
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(invert($background), 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten(invert($background), 5%);
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
color: invert($background);
|
||||
border: 2px solid invert($background);
|
||||
|
||||
&:hover {
|
||||
color: lighten(invert($background), 10%);
|
||||
border: 2px solid lighten(invert($background), 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: lighten($foreground, 5%);
|
||||
border: 2px solid lighten(invert($background), 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.red,
|
||||
input[type="reset"] {
|
||||
background-color: $red;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($red, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($red, 5%);
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
color: $red;
|
||||
border: 2px solid $red;
|
||||
|
||||
&:hover {
|
||||
color: lighten($red, 10%);
|
||||
border: 2px solid lighten($red, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: lighten($red, 5%);
|
||||
border: 2px solid lighten($red, 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.green {
|
||||
background-color: $green;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($green, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($green, 5%);
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
color: $green;
|
||||
border: 2px solid $green;
|
||||
|
||||
&:hover {
|
||||
color: lighten($green, 10%);
|
||||
border: 2px solid;
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: lighten($green, 5%);
|
||||
border: 2px solid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.cyan {
|
||||
background-color: $cyan;
|
||||
color: $background;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($cyan, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($cyan, 5%);
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
color: $cyan;
|
||||
border: 2px solid $cyan;
|
||||
|
||||
&:hover {
|
||||
color: lighten($cyan, 10%);
|
||||
border: 2px solid lighten($cyan, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: lighten($cyan, 5%);
|
||||
border: 2px solid lighten($cyan, 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
22
Libraries/sass/themekit/_colors-dark.scss
Normal file
22
Libraries/sass/themekit/_colors-dark.scss
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/******************************************************
|
||||
* FIXED COLORS (Change these to propagate chages) *
|
||||
******************************************************/
|
||||
|
||||
$background: #252525;
|
||||
$foreground: #eeeeee;
|
||||
$components: (
|
||||
"item": #3a3a3a,
|
||||
"button": #3a3a3a
|
||||
);
|
||||
|
||||
$red: #ff4340;
|
||||
$cyan: #00bee0;
|
||||
$green: #7cb342;
|
||||
$mastColor: #7cb342;
|
||||
|
||||
/******************************************************
|
||||
* DYNAMIC COLORS (Probably Don't Touch!) *
|
||||
******************************************************/
|
||||
|
||||
$cardColor: lighten($background, 2%);
|
||||
$item: lighten($background, 10%);
|
||||
21
Libraries/sass/themekit/_colors-light.scss
Normal file
21
Libraries/sass/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%);
|
||||
22
Libraries/sass/themekit/_colors-moonlight.scss
Normal file
22
Libraries/sass/themekit/_colors-moonlight.scss
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/******************************************************
|
||||
* FIXED COLORS (Change these to propagate chages) *
|
||||
******************************************************/
|
||||
|
||||
$background: #222436;
|
||||
$foreground: #ccdbf1;
|
||||
$components: (
|
||||
"item": #525572,
|
||||
"button": #525572
|
||||
);
|
||||
|
||||
$red: #ff4340;
|
||||
$cyan: #00bee0;
|
||||
$green: #7cb342;
|
||||
$mastColor: #7cb342;
|
||||
|
||||
/******************************************************
|
||||
* DYNAMIC COLORS (Probably Don't Touch!) *
|
||||
******************************************************/
|
||||
|
||||
$cardColor: lighten($background, 2%);
|
||||
$item: lighten($background, 10%);
|
||||
23
Libraries/sass/themekit/_container.scss
Normal file
23
Libraries/sass/themekit/_container.scss
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
.container {
|
||||
padding: 2rem 5vw;
|
||||
|
||||
&.centered {
|
||||
display: block;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 70vw;
|
||||
height: 10px;
|
||||
border-bottom: 1px solid map-get($components, "item");
|
||||
margin: 1rem auto;
|
||||
&.wide {
|
||||
width: 100%;
|
||||
}
|
||||
&.narrow {
|
||||
width: 30vw;
|
||||
}
|
||||
}
|
||||
14
Libraries/sass/themekit/_embed.scss
Normal file
14
Libraries/sass/themekit/_embed.scss
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.embed {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
padding-top: 56.25%;
|
||||
|
||||
& iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
330
Libraries/sass/themekit/_form.scss
Normal file
330
Libraries/sass/themekit/_form.scss
Normal file
|
|
@ -0,0 +1,330 @@
|
|||
textarea {
|
||||
background-color: lighten($background, 25%);
|
||||
color: $foreground;
|
||||
font-family: "Spartan";
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
resize: none;
|
||||
width: -webkit-fill-available;
|
||||
height: auto;
|
||||
margin: 16px;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0px 0px 10px 0px $cyan;
|
||||
}
|
||||
}
|
||||
|
||||
form {
|
||||
max-width: 100vw;
|
||||
|
||||
.flex-form {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||
grid-gap: 1rem 3rem;
|
||||
grid-auto-flow: dense;
|
||||
margin: auto;
|
||||
padding: 1rem;
|
||||
|
||||
&.labelled {
|
||||
@media (max-width: 767px) {
|
||||
grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
|
||||
}
|
||||
grid-template-columns: 1fr 5fr;
|
||||
}
|
||||
}
|
||||
|
||||
.input-with-icon {
|
||||
i {
|
||||
position: absolute;
|
||||
margin-top: 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
& input {
|
||||
padding-left: 32px !important;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
background-color: lighten($background, 25%);
|
||||
color: $foreground;
|
||||
display: block;
|
||||
width: 100%;
|
||||
width: 16em;
|
||||
|
||||
&.small {
|
||||
}
|
||||
|
||||
&[type="password"],
|
||||
&[type="text"],
|
||||
&[type="date"],
|
||||
&[type="email"],
|
||||
&[type="file"],
|
||||
&[type="month"],
|
||||
&[type="number"],
|
||||
&[type="tel"],
|
||||
&[type="search"],
|
||||
&[type="url"],
|
||||
&[type="week"] {
|
||||
font-family: "Spartan";
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
||||
&:focus {
|
||||
box-shadow: 0px 0px 10px 0px $cyan;
|
||||
}
|
||||
}
|
||||
|
||||
&[type="color"] {
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
&[type="search"] {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: rgba($foreground, 0.5);
|
||||
}
|
||||
|
||||
&[type="checkbox"],
|
||||
&[type="color"],
|
||||
&[type="radio"] {
|
||||
margin: auto;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: 0px 0px 10px 0px $cyan;
|
||||
}
|
||||
}
|
||||
|
||||
&[type="checkbox"],
|
||||
&[type="radio"] {
|
||||
--active-inner: #fff;
|
||||
--background: #fff;
|
||||
--disabled: #f6f8ff;
|
||||
--disabled-inner: #e1e6f9;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
height: 21px;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
background: var(--b, lighten($background, 25%));
|
||||
transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
|
||||
&:after {
|
||||
content: "";
|
||||
display: block;
|
||||
left: 1px;
|
||||
top: 1px;
|
||||
position: absolute;
|
||||
transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
|
||||
}
|
||||
|
||||
&:checked {
|
||||
background: var(--b, $cyan);
|
||||
--d-o: 0.3s;
|
||||
--d-t: 0.6s;
|
||||
--d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
--b: var(--disabled);
|
||||
cursor: not-allowed;
|
||||
opacity: 0.9;
|
||||
&:checked {
|
||||
--b: var(--disabled-inner);
|
||||
--bc: var(--border);
|
||||
}
|
||||
& + label {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
&:hover {
|
||||
&:not(:checked) {
|
||||
&:not(:disabled) {
|
||||
--bc: $cyan;
|
||||
}
|
||||
}
|
||||
}
|
||||
&:focus {
|
||||
box-shadow: 0 0 10px 0 rgba($cyan, 0.9);
|
||||
}
|
||||
&:not(.switch) {
|
||||
width: 21px;
|
||||
&:after {
|
||||
opacity: var(--o, 0);
|
||||
}
|
||||
&:checked {
|
||||
--o: 1;
|
||||
}
|
||||
}
|
||||
& + label {
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
&[type="checkbox"] {
|
||||
&:not(.switch) {
|
||||
border-radius: 7px;
|
||||
&:after {
|
||||
width: 5px;
|
||||
height: 9px;
|
||||
border: 2px solid lighten($background, 25%);
|
||||
border-top: 0;
|
||||
border-left: 0;
|
||||
left: 7px;
|
||||
top: 4px;
|
||||
transform: rotate(var(--r, 20deg));
|
||||
}
|
||||
&:checked {
|
||||
--r: 43deg;
|
||||
}
|
||||
}
|
||||
&.switch {
|
||||
width: 38px;
|
||||
border-radius: 11px;
|
||||
&:after {
|
||||
left: 3px;
|
||||
top: 3px;
|
||||
border-radius: 50%;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
background: var(--ab, $cyan);
|
||||
transform: translateX(var(--x, 0));
|
||||
}
|
||||
&:checked {
|
||||
--ab: var(--active-inner);
|
||||
--x: 17px;
|
||||
&:after {
|
||||
background: lighten($background, 25%);
|
||||
}
|
||||
}
|
||||
&:disabled {
|
||||
&:not(:checked) {
|
||||
&:after {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&[type="radio"] {
|
||||
border-radius: 50%;
|
||||
&:after {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
border-radius: 50%;
|
||||
background: lighten($background, 25%);
|
||||
opacity: 0;
|
||||
transform: scale(var(--s, 0.7));
|
||||
}
|
||||
}
|
||||
|
||||
&[type="range"] {
|
||||
height: 26px;
|
||||
-webkit-appearance: none;
|
||||
margin: 10px 0;
|
||||
width: 100%;
|
||||
background-color: transparent;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&::-webkit-slider-runnable-track {
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
animation: 0.2s;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
background: lighten($background, 10%);
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
&::-webkit-slider-thumb {
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
height: 20px;
|
||||
width: 40px;
|
||||
border-radius: 12px;
|
||||
background: $cyan;
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="reset"] {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: $foreground;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
width: fit-content;
|
||||
|
||||
border-radius: 0.3em;
|
||||
box-shadow: 0px 0px 10px 0px rgba(darken($background, 10%), 0.5);
|
||||
transition: all 150ms ease-in-out;
|
||||
font-size: 14px;
|
||||
|
||||
background-color: $red;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($red, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($red, 5%);
|
||||
}
|
||||
|
||||
&.small {
|
||||
font-size: 12px;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
border: 2px solid map-get($components, "button");
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten($background, 10%);
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten($background, 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
display: block;
|
||||
width: fit-content;
|
||||
margin: auto;
|
||||
font-family: "Spartan";
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
}
|
||||
48
Libraries/sass/themekit/_grid.scss
Normal file
48
Libraries/sass/themekit/_grid.scss
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
.grid {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
||||
grid-gap: 2rem;
|
||||
grid-auto-flow: dense;
|
||||
}
|
||||
|
||||
.cards {
|
||||
display: grid;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
|
||||
grid-auto-rows: 1fr;
|
||||
grid-gap: 2rem;
|
||||
grid-auto-flow: dense;
|
||||
|
||||
@media (max-width: 767px) {
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
}
|
||||
|
||||
.card {
|
||||
background-color: $cardColor;
|
||||
color: $foreground;
|
||||
box-shadow: 0 0 10px 0 rgba(darken($cardColor, 10%), 0.95);
|
||||
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
border: 2px solid lighten($cardColor, 10%);
|
||||
cursor: pointer;
|
||||
|
||||
transition: all ease-in-out 150ms;
|
||||
&:hover {
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-block-start: 0;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid lighten($cardColor, 10%);
|
||||
}
|
||||
|
||||
.content {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
23
Libraries/sass/themekit/_image.scss
Normal file
23
Libraries/sass/themekit/_image.scss
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
img.centered {
|
||||
display: block;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
&.rounded {
|
||||
border-radius: 8px;
|
||||
}
|
||||
&.thumbnail {
|
||||
width: 24px;
|
||||
}
|
||||
&.small {
|
||||
width: 128px;
|
||||
}
|
||||
&.medium {
|
||||
width: 256px;
|
||||
}
|
||||
&.large {
|
||||
width: 512px;
|
||||
}
|
||||
}
|
||||
77
Libraries/sass/themekit/_masthead.scss
Normal file
77
Libraries/sass/themekit/_masthead.scss
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
background-color: $mastColor;
|
||||
color: $background;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.rainbow {
|
||||
-webkit-animation: Rainbow 30s ease infinite;
|
||||
-moz-animation: Rainbow 30s ease infinite;
|
||||
animation: Rainbow 30s ease infinite;
|
||||
|
||||
@-webkit-keyframes Rainbow {
|
||||
0% {
|
||||
filter: hue-rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
filter: hue-rotate(360deg);
|
||||
}
|
||||
}
|
||||
@-moz-keyframes Rainbow {
|
||||
0% {
|
||||
filter: hue-rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
filter: hue-rotate(360deg);
|
||||
}
|
||||
}
|
||||
@keyframes Rainbow {
|
||||
0% {
|
||||
filter: hue-rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
filter: hue-rotate(360deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.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;
|
||||
}
|
||||
|
||||
.subsubheader {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.down {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
i {
|
||||
font-size: 64px;
|
||||
}
|
||||
}
|
||||
}
|
||||
183
Libraries/sass/themekit/_menu.scss
Normal file
183
Libraries/sass/themekit/_menu.scss
Normal file
|
|
@ -0,0 +1,183 @@
|
|||
.titlebar.top {
|
||||
background-color: $background;
|
||||
color: $foreground;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 3rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
box-shadow: 0px 2px 0px 0px rgba(darken($background, 10%), 0.5);
|
||||
@at-root .masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
||||
@at-root body {
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $foreground;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&.translucent {
|
||||
background-color: rgba($background, 0.95);
|
||||
}
|
||||
|
||||
.item {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
background-color: map-get($components, "item");
|
||||
padding: 0px 1rem;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
span {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Desktop Titlebar Logic
|
||||
@media (min-width: 767px) {
|
||||
.dropdown.item.compact > *,
|
||||
.dropdown.item.compact {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile Titlebar Logic
|
||||
@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($background, 0.95);
|
||||
color: $foreground;
|
||||
|
||||
transition-duration: 200ms, 200ms;
|
||||
transition-property: visibility, opacity;
|
||||
|
||||
&.visible {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition-duration: 200ms, 0;
|
||||
transition-property: opacity, visibility;
|
||||
transition-delay: 0, 200ms;
|
||||
}
|
||||
|
||||
.close-mobile-menu {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-items: flex-end;
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
font-size: 4rem;
|
||||
background-color: rgba(darken($red, 10%), 0.5);
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
.item {
|
||||
width: 100vw;
|
||||
height: 10px;
|
||||
max-height: 4rem;
|
||||
}
|
||||
|
||||
.sub.item {
|
||||
display: none;
|
||||
|
||||
padding-left: 3rem;
|
||||
background-color: lighten($background, 15%);
|
||||
|
||||
&.visible {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dropdown.item {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
&:hover .dropdown-content {
|
||||
max-height: 100vh;
|
||||
display: block;
|
||||
}
|
||||
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
overflow-y: hidden;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
-webkit-transition: max-height 0.5s ease-in-out;
|
||||
-moz-transition: max-height 0.5s ease-in-out;
|
||||
-o-transition: max-height 0.5s ease-in-out;
|
||||
transition: max-height 0.5s ease-in-out;
|
||||
position: absolute;
|
||||
background-color: map-get($components, "item");
|
||||
|
||||
& .item {
|
||||
color: $foreground;
|
||||
padding: 12px 16px;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
|
||||
& .dropdown.item {
|
||||
display: inline-block;
|
||||
overflow: visible;
|
||||
|
||||
&:hover .dropdown-content {
|
||||
position: unset;
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
& .dropdown-content {
|
||||
max-height: 0px;
|
||||
& .item {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& & .dropdown-content {
|
||||
top: 0;
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
89
Libraries/sass/themekit/_modal.scss
Normal file
89
Libraries/sass/themekit/_modal.scss
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
.modal {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
position: fixed;
|
||||
z-index: 2048;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow: auto;
|
||||
background-color: $background;
|
||||
background-color: rgba(0, 0, 0, 0.75);
|
||||
|
||||
transition-duration: 400ms, 400ms;
|
||||
transition-property: visibility, opacity;
|
||||
|
||||
&.visible {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition-duration: 400ms, 0;
|
||||
transition-property: opacity, visibility;
|
||||
transition-delay: 0, 400ms;
|
||||
}
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
.modal-content {
|
||||
background-color: $background;
|
||||
padding: 20px;
|
||||
border: 1px solid lighten($background, 10%);
|
||||
width: 80%;
|
||||
max-width: 80%;
|
||||
max-height: 80%;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.5);
|
||||
overflow: auto;
|
||||
max-width: 1024;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
margin: auto;
|
||||
width: 80%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-block-start: 0;
|
||||
padding-bottom: 1rem;
|
||||
|
||||
border-bottom: 1px solid lighten($background, 10%);
|
||||
}
|
||||
|
||||
.content {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* The Close Button */
|
||||
.close {
|
||||
color: $foreground;
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: invert($foreground, 20%);
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-no-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
73
Libraries/sass/themekit/_text.scss
Normal file
73
Libraries/sass/themekit/_text.scss
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
@import url("https://fonts.googleapis.com/css?family=Fira+Code&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css?family=Spartan&display=swap");
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
b,
|
||||
i,
|
||||
body,
|
||||
button {
|
||||
font-family: "Spartan";
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $red;
|
||||
&:hover {
|
||||
color: darken($red, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
.code {
|
||||
font-family: "Fira Code";
|
||||
font-variant-ligatures: common-ligatures;
|
||||
background-color: lighten($background, 10%);
|
||||
border: 2px solid darken($background, 5%);
|
||||
padding: 0.1rem;
|
||||
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;
|
||||
}
|
||||
1383
Libraries/sass/themekit/main-dark.css
Normal file
1383
Libraries/sass/themekit/main-dark.css
Normal file
File diff suppressed because it is too large
Load diff
22
Libraries/sass/themekit/main-dark.css.map
Normal file
22
Libraries/sass/themekit/main-dark.css.map
Normal file
File diff suppressed because one or more lines are too long
15
Libraries/sass/themekit/main-dark.scss
Normal file
15
Libraries/sass/themekit/main-dark.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@import "colors-dark";
|
||||
|
||||
@import "_custom";
|
||||
|
||||
@import "base";
|
||||
@import "modal";
|
||||
@import "button";
|
||||
@import "container";
|
||||
@import "embed";
|
||||
@import "form";
|
||||
@import "grid";
|
||||
@import "image";
|
||||
@import "masthead";
|
||||
@import "menu";
|
||||
@import "text";
|
||||
1383
Libraries/sass/themekit/main-light.css
Normal file
1383
Libraries/sass/themekit/main-light.css
Normal file
File diff suppressed because it is too large
Load diff
22
Libraries/sass/themekit/main-light.css.map
Normal file
22
Libraries/sass/themekit/main-light.css.map
Normal file
File diff suppressed because one or more lines are too long
15
Libraries/sass/themekit/main-light.scss
Normal file
15
Libraries/sass/themekit/main-light.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@import "colors-light";
|
||||
|
||||
@import "_custom";
|
||||
|
||||
@import "base";
|
||||
@import "modal";
|
||||
@import "button";
|
||||
@import "container";
|
||||
@import "embed";
|
||||
@import "form";
|
||||
@import "grid";
|
||||
@import "image";
|
||||
@import "masthead";
|
||||
@import "menu";
|
||||
@import "text";
|
||||
1383
Libraries/sass/themekit/main-moonlight.css
Normal file
1383
Libraries/sass/themekit/main-moonlight.css
Normal file
File diff suppressed because it is too large
Load diff
22
Libraries/sass/themekit/main-moonlight.css.map
Normal file
22
Libraries/sass/themekit/main-moonlight.css.map
Normal file
File diff suppressed because one or more lines are too long
15
Libraries/sass/themekit/main-moonlight.scss
Normal file
15
Libraries/sass/themekit/main-moonlight.scss
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
@import "colors-moonlight";
|
||||
|
||||
@import "_custom";
|
||||
|
||||
@import "base";
|
||||
@import "modal";
|
||||
@import "button";
|
||||
@import "container";
|
||||
@import "embed";
|
||||
@import "form";
|
||||
@import "grid";
|
||||
@import "image";
|
||||
@import "masthead";
|
||||
@import "menu";
|
||||
@import "text";
|
||||
Loading…
Reference in a new issue