Better division of code, color dynamacy
This commit is contained in:
parent
ad89f5a1ac
commit
cfeb62458e
15 changed files with 616 additions and 587 deletions
|
|
@ -7,66 +7,20 @@ body {
|
|||
margin-right: 0px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: $red;
|
||||
&:hover {
|
||||
color: darken($red, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 90vw;
|
||||
margin: 2rem 5vw;
|
||||
}
|
||||
|
||||
img.centered {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.blurred {
|
||||
filter: blur(5px);
|
||||
|
||||
&.unblurable {
|
||||
transition: filter ease-in-out 250ms;
|
||||
&:hover {
|
||||
transition: all ease-in 150ms;
|
||||
filter: none;
|
||||
transition: filter ease-in-out 250ms;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
|
||||
&.rounded {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
&.thumbnail {
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
&.small {
|
||||
width: 128px;
|
||||
}
|
||||
|
||||
&.medium {
|
||||
width: 256px;
|
||||
}
|
||||
&.large {
|
||||
width: 512px;
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 70vw;
|
||||
height: 10px;
|
||||
border-bottom: 1px solid map-get($dark, "item");
|
||||
margin: 1rem 15vw;
|
||||
&.wide {
|
||||
width: 100vw;
|
||||
}
|
||||
}
|
||||
|
||||
.bounce {
|
||||
-moz-animation: bounce 2s 10;
|
||||
|
|
@ -124,8 +78,6 @@ img {
|
|||
}
|
||||
|
||||
&:hover {
|
||||
margin-top: -0.25rem; // "Pop Up" action on hover
|
||||
margin-bottom: 0.25rem; // Prevent the entire page from shifting on hover
|
||||
transition: all ease-in-out 150ms; // Smooth out the animation
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,8 @@
|
|||
@import "colors";
|
||||
|
||||
button {
|
||||
padding: 0.75rem 1rem;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: map-get($dark, "button");
|
||||
background-color: map-get($components, "button");
|
||||
color: $foreground;
|
||||
user-select: none;
|
||||
cursor: pointer;
|
||||
|
|
@ -16,11 +14,11 @@ button {
|
|||
font-size: 14px;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(map-get($dark, "buttonActive"), 10%);
|
||||
background-color: lighten($background, 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: map-get($dark, "buttonActive");
|
||||
background-color: lighten($background, 5%);
|
||||
}
|
||||
|
||||
&.small {
|
||||
|
|
@ -30,46 +28,46 @@ button {
|
|||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
border: 2px solid map-get($dark, "button");
|
||||
border: 2px solid map-get($components, "button");
|
||||
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
border: 2px solid lighten(map-get($dark, "buttonActive"), 10%);
|
||||
border: 2px solid lighten($background, 10%);
|
||||
transition: all 150ms ease-in-out;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: transparent;
|
||||
border: 2px solid map-get($dark, "buttonActive");
|
||||
border: 2px solid lighten($background, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
&.white {
|
||||
background-color: $foreground;
|
||||
color: $background;
|
||||
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
|
||||
&.inverted {
|
||||
background-color: invert($background);
|
||||
color: invert($foreground);
|
||||
box-shadow: 0px 0px 10px 0px rgba(invert($background), 0.5);
|
||||
|
||||
&:hover {
|
||||
background-color: lighten($foreground, 10%);
|
||||
background-color: lighten(invert($background), 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: lighten($foreground, 2%);
|
||||
background-color: lighten(invert($background), 5%);
|
||||
}
|
||||
|
||||
&.outlined {
|
||||
background-color: transparent;
|
||||
color: $foreground;
|
||||
border: 2px solid $foreground;
|
||||
color: invert($background);
|
||||
border: 2px solid invert($background);
|
||||
|
||||
&:hover {
|
||||
color: lighten($foreground, 10%);
|
||||
border: 2px solid lighten($foreground, 10%);
|
||||
color: lighten(invert($background), 10%);
|
||||
border: 2px solid lighten(invert($background), 10%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
color: lighten($foreground, 2%);
|
||||
border: 2px solid lighten($foreground, 2%);
|
||||
color: lighten($foreground, 5%);
|
||||
border: 2px solid lighten(invert($background), 5%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,31 @@
|
|||
$dark: (
|
||||
"background": #2a2a2a,
|
||||
"foreground": #eeeeee,
|
||||
"item": #3a3a3a,
|
||||
"button": #3a3a3a,
|
||||
"buttonActive": #404040
|
||||
);
|
||||
/******************************************************
|
||||
* FIXED COLORS (Change these to propagate chages) *
|
||||
******************************************************/
|
||||
|
||||
$background: #252525;
|
||||
$foreground: #eeeeee;
|
||||
$components: (
|
||||
"item": #3a3a3a,
|
||||
"button": #3a3a3a
|
||||
);
|
||||
|
||||
// UNCOMMENT FOR LIGHT MODE!
|
||||
|
||||
// $background: #eeeeee;
|
||||
// $foreground: #252525;
|
||||
// $components: (
|
||||
// "item": #d0d0d0,
|
||||
// "button": #d0d0d0,
|
||||
// );
|
||||
|
||||
$red: #ff4340;
|
||||
$cyan: #00bee0;
|
||||
$green: #7cb342;
|
||||
$mastColor: #7cb342;
|
||||
$mastColor: #7cb342;
|
||||
|
||||
/******************************************************
|
||||
* DYNAMIC COLORS (Probably Don't Touch!) *
|
||||
******************************************************/
|
||||
|
||||
$cardColor: lighten($background, 2%);
|
||||
$item: lighten($background, 10%);
|
||||
|
|
|
|||
14
Libraries/css/themekit/_container.scss
Normal file
14
Libraries/css/themekit/_container.scss
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.container {
|
||||
width: 90vw;
|
||||
margin: 2rem 5vw;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 70vw;
|
||||
height: 10px;
|
||||
border-bottom: 1px solid map-get($components, "item");
|
||||
margin: 1rem auto;
|
||||
&.wide {
|
||||
width: 100vw;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
$cardColor: #2f2f2f;
|
||||
$foreground: #dddddd;
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
|
|
@ -29,16 +26,13 @@ $foreground: #dddddd;
|
|||
|
||||
transition: all ease-in-out 150ms;
|
||||
&:hover {
|
||||
margin-top: -10px;
|
||||
margin-bottom: 10px;
|
||||
transition: all ease-in-out 150ms;
|
||||
transform: translateY(-10px);
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-block-start: 0;
|
||||
padding-bottom: 1rem;
|
||||
|
||||
border-bottom: 1px solid lighten($cardColor, 10%);
|
||||
}
|
||||
|
||||
|
|
|
|||
23
Libraries/css/themekit/_image.scss
Normal file
23
Libraries/css/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;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
@import "colors";
|
||||
|
||||
.masthead {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
@import "colors";
|
||||
|
||||
.titlebar.top {
|
||||
background-color: map-get($dark, "background");
|
||||
color: map-get($dark, "foreground");
|
||||
background-color: $background;
|
||||
color: $foreground;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 0px 2px 0px 0px rgba(darken($background, 10%), 0.5);
|
||||
@at-root .masthead {
|
||||
height: calc(100vh - 3rem);
|
||||
}
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
|
||||
&.translucent {
|
||||
background-color: rgba(map-get($dark, "background"), 0.95);
|
||||
background-color: rgba($background, 0.95);
|
||||
}
|
||||
|
||||
.item {
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
||||
background-color: map-get($dark, "item");
|
||||
background-color: map-get($components, "item");
|
||||
padding: 0px 1rem;
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
}
|
||||
|
||||
&:hover {
|
||||
background-color: map-get($dark, "background");
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
.sub.item {
|
||||
padding-left: 3rem;
|
||||
background-color: map-get($dark, "buttonActive");
|
||||
background-color: lighten($background, 15%);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
-o-transition: max-height 0.5s ease-in-out;
|
||||
transition: max-height 0.5s ease-in-out;
|
||||
position: absolute;
|
||||
background-color: map-get($dark, "item");
|
||||
background-color: map-get($components, "item");
|
||||
|
||||
& .item {
|
||||
color: $foreground;
|
||||
|
|
@ -136,7 +136,7 @@
|
|||
display: block;
|
||||
|
||||
&:hover {
|
||||
background-color: $background;
|
||||
background-color: darken($background, 5%);
|
||||
transition: all ease-in 150ms;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,8 +34,10 @@
|
|||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.header {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
@import url("https://fonts.googleapis.com/css?family=Fira+Code&display=swap");
|
||||
@import url("https://fonts.googleapis.com/css?family=Spartan&display=swap");
|
||||
|
||||
@import "colors";
|
||||
|
||||
a,
|
||||
p,
|
||||
h1,
|
||||
|
|
@ -20,12 +18,19 @@ 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 lighten($background, 5%);
|
||||
padding: 0.4rem;
|
||||
border: 2px solid darken($background, 5%);
|
||||
padding: 0.1rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
22
Libraries/css/themekit/main.css.map
Normal file
22
Libraries/css/themekit/main.css.map
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,9 +1,11 @@
|
|||
@import "_custom";
|
||||
@import "button";
|
||||
@import "colors";
|
||||
@import "button";
|
||||
@import "menu";
|
||||
@import "modal";
|
||||
@import "main";
|
||||
@import "container";
|
||||
@import "embed";
|
||||
@import "grid";
|
||||
@import "image";
|
||||
@import "masthead";
|
||||
@import "text";
|
||||
@import "menu";
|
||||
@import "modal";
|
||||
@import "text";
|
||||
Loading…
Reference in a new issue