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;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
color: $red;
|
|
||||||
&:hover {
|
|
||||||
color: darken($red, 10%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
|
||||||
width: 90vw;
|
|
||||||
margin: 2rem 5vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
img.centered {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blurred {
|
.blurred {
|
||||||
filter: blur(5px);
|
filter: blur(5px);
|
||||||
|
|
||||||
&.unblurable {
|
&.unblurable {
|
||||||
|
transition: filter ease-in-out 250ms;
|
||||||
&:hover {
|
&:hover {
|
||||||
transition: all ease-in 150ms;
|
|
||||||
filter: none;
|
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 {
|
.bounce {
|
||||||
-moz-animation: bounce 2s 10;
|
-moz-animation: bounce 2s 10;
|
||||||
|
|
@ -124,8 +78,6 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
margin-top: -0.25rem; // "Pop Up" action on hover
|
transform: translateY(-10px);
|
||||||
margin-bottom: 0.25rem; // Prevent the entire page from shifting on hover
|
|
||||||
transition: all ease-in-out 150ms; // Smooth out the animation
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,10 +1,8 @@
|
||||||
@import "colors";
|
|
||||||
|
|
||||||
button {
|
button {
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
background-color: map-get($dark, "button");
|
background-color: map-get($components, "button");
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -16,11 +14,11 @@ button {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten(map-get($dark, "buttonActive"), 10%);
|
background-color: lighten($background, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: map-get($dark, "buttonActive");
|
background-color: lighten($background, 5%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.small {
|
&.small {
|
||||||
|
|
@ -30,46 +28,46 @@ button {
|
||||||
|
|
||||||
&.outlined {
|
&.outlined {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 2px solid map-get($dark, "button");
|
border: 2px solid map-get($components, "button");
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 2px solid lighten(map-get($dark, "buttonActive"), 10%);
|
border: 2px solid lighten($background, 10%);
|
||||||
transition: all 150ms ease-in-out;
|
transition: all 150ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 2px solid map-get($dark, "buttonActive");
|
border: 2px solid lighten($background, 5%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.white {
|
&.inverted {
|
||||||
background-color: $foreground;
|
background-color: invert($background);
|
||||||
color: $background;
|
color: invert($foreground);
|
||||||
box-shadow: 0px 0px 10px 0px rgba($foreground, 0.5);
|
box-shadow: 0px 0px 10px 0px rgba(invert($background), 0.5);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: lighten($foreground, 10%);
|
background-color: lighten(invert($background), 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background-color: lighten($foreground, 2%);
|
background-color: lighten(invert($background), 5%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&.outlined {
|
&.outlined {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: $foreground;
|
color: invert($background);
|
||||||
border: 2px solid $foreground;
|
border: 2px solid invert($background);
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: lighten($foreground, 10%);
|
color: lighten(invert($background), 10%);
|
||||||
border: 2px solid lighten($foreground, 10%);
|
border: 2px solid lighten(invert($background), 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
color: lighten($foreground, 2%);
|
color: lighten($foreground, 5%);
|
||||||
border: 2px solid lighten($foreground, 2%);
|
border: 2px solid lighten(invert($background), 5%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,31 @@
|
||||||
$dark: (
|
/******************************************************
|
||||||
"background": #2a2a2a,
|
* FIXED COLORS (Change these to propagate chages) *
|
||||||
"foreground": #eeeeee,
|
******************************************************/
|
||||||
"item": #3a3a3a,
|
|
||||||
"button": #3a3a3a,
|
|
||||||
"buttonActive": #404040
|
|
||||||
);
|
|
||||||
|
|
||||||
$background: #252525;
|
$background: #252525;
|
||||||
$foreground: #eeeeee;
|
$foreground: #eeeeee;
|
||||||
|
$components: (
|
||||||
|
"item": #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;
|
||||||
$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 {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -29,16 +26,13 @@ $foreground: #dddddd;
|
||||||
|
|
||||||
transition: all ease-in-out 150ms;
|
transition: all ease-in-out 150ms;
|
||||||
&:hover {
|
&:hover {
|
||||||
margin-top: -10px;
|
transform: translateY(-10px);
|
||||||
margin-bottom: 10px;
|
|
||||||
transition: all ease-in-out 150ms;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
|
|
||||||
border-bottom: 1px solid lighten($cardColor, 10%);
|
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 {
|
.masthead {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
@import "colors";
|
@import "colors";
|
||||||
|
|
||||||
.titlebar.top {
|
.titlebar.top {
|
||||||
background-color: map-get($dark, "background");
|
background-color: $background;
|
||||||
color: map-get($dark, "foreground");
|
color: $foreground;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
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 {
|
@at-root .masthead {
|
||||||
height: calc(100vh - 3rem);
|
height: calc(100vh - 3rem);
|
||||||
}
|
}
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.translucent {
|
&.translucent {
|
||||||
background-color: rgba(map-get($dark, "background"), 0.95);
|
background-color: rgba($background, 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
background-color: map-get($dark, "item");
|
background-color: map-get($components, "item");
|
||||||
padding: 0px 1rem;
|
padding: 0px 1rem;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: map-get($dark, "background");
|
background-color: darken($background, 5%);
|
||||||
transition: all ease-in 150ms;
|
transition: all ease-in 150ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -100,7 +100,7 @@
|
||||||
|
|
||||||
.sub.item {
|
.sub.item {
|
||||||
padding-left: 3rem;
|
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;
|
-o-transition: max-height 0.5s ease-in-out;
|
||||||
transition: max-height 0.5s ease-in-out;
|
transition: max-height 0.5s ease-in-out;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: map-get($dark, "item");
|
background-color: map-get($components, "item");
|
||||||
|
|
||||||
& .item {
|
& .item {
|
||||||
color: $foreground;
|
color: $foreground;
|
||||||
|
|
@ -136,7 +136,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $background;
|
background-color: darken($background, 5%);
|
||||||
transition: all ease-in 150ms;
|
transition: all ease-in 150ms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 80%;
|
||||||
height: 100%;
|
height: 80%;
|
||||||
|
display: block;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.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=Fira+Code&display=swap");
|
||||||
@import url("https://fonts.googleapis.com/css?family=Spartan&display=swap");
|
@import url("https://fonts.googleapis.com/css?family=Spartan&display=swap");
|
||||||
|
|
||||||
@import "colors";
|
|
||||||
|
|
||||||
a,
|
a,
|
||||||
p,
|
p,
|
||||||
h1,
|
h1,
|
||||||
|
|
@ -20,12 +18,19 @@ p {
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $red;
|
||||||
|
&:hover {
|
||||||
|
color: darken($red, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.code {
|
.code {
|
||||||
font-family: "Fira Code";
|
font-family: "Fira Code";
|
||||||
font-variant-ligatures: common-ligatures;
|
font-variant-ligatures: common-ligatures;
|
||||||
background-color: lighten($background, 10%);
|
background-color: lighten($background, 10%);
|
||||||
border: 2px solid lighten($background, 5%);
|
border: 2px solid darken($background, 5%);
|
||||||
padding: 0.4rem;
|
padding: 0.1rem;
|
||||||
border-radius: 4px;
|
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 "colors";
|
||||||
@import "button";
|
@import "container";
|
||||||
@import "menu";
|
|
||||||
@import "modal";
|
|
||||||
@import "main";
|
|
||||||
@import "embed";
|
@import "embed";
|
||||||
@import "grid";
|
@import "grid";
|
||||||
|
@import "image";
|
||||||
@import "masthead";
|
@import "masthead";
|
||||||
|
@import "menu";
|
||||||
|
@import "modal";
|
||||||
@import "text";
|
@import "text";
|
||||||
16
index.html
16
index.html
|
|
@ -9,7 +9,7 @@
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome-animation/0.2.1/font-awesome-animation.min.css"
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome-animation/0.2.1/font-awesome-animation.min.css"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
|
|
||||||
<link href="Libraries/css/themekit/all.css" rel="stylesheet">
|
<link href="Libraries/css/themekit/main.css" rel="stylesheet">
|
||||||
|
|
||||||
<script src="Libraries/js/jquery-3.4.1.min.js"></script>
|
<script src="Libraries/js/jquery-3.4.1.min.js"></script>
|
||||||
<script src="Libraries/js/jquery-ui.min.js"></script>
|
<script src="Libraries/js/jquery-ui.min.js"></script>
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<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()'>
|
||||||
<i class="fa fa-close"></i>
|
<i class="fa fa-close"></i>
|
||||||
|
|
@ -265,7 +265,7 @@
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<p class="code">
|
<p class="code">
|
||||||
<button>Plain</button><br>
|
<button>Plain</button><br>
|
||||||
<button class="white">White</button><br>
|
<button class="inverted">Inverted</button><br>
|
||||||
<button class="red">Red</button><br>
|
<button class="red">Red</button><br>
|
||||||
<button class="cyan">Cyan</button><br>
|
<button class="cyan">Cyan</button><br>
|
||||||
<button class="green">Green</button><br>
|
<button class="green">Green</button><br>
|
||||||
|
|
@ -278,7 +278,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<button class="white">White</button>
|
<button class="inverted">Inverted</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
|
|
@ -302,7 +302,7 @@
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<p class="code">
|
<p class="code">
|
||||||
<button class="small">Plain</button><br>
|
<button class="small">Plain</button><br>
|
||||||
<button class="small white">White</button><br>
|
<button class="small inverted">Inverted</button><br>
|
||||||
<button class="small red">Red</button><br>
|
<button class="small red">Red</button><br>
|
||||||
<button class="small cyan">Cyan</button><br>
|
<button class="small cyan">Cyan</button><br>
|
||||||
<button class="small green">Green</button><br>
|
<button class="small green">Green</button><br>
|
||||||
|
|
@ -315,7 +315,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<button class="small white">White</button>
|
<button class="small inverted">Inverted</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
|
|
@ -338,7 +338,7 @@
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<p class="code">
|
<p class="code">
|
||||||
<button class="outlined">Plain</button><br>
|
<button class="outlined">Plain</button><br>
|
||||||
<button class="outlined white">White</button><br>
|
<button class="outlined inverted">Inverted</button><br>
|
||||||
<button class="outlined red">Red</button><br>
|
<button class="outlined red">Red</button><br>
|
||||||
<button class="outlined cyan">Cyan</button><br>
|
<button class="outlined cyan">Cyan</button><br>
|
||||||
<button class="outlined green">Green</button><br>
|
<button class="outlined green">Green</button><br>
|
||||||
|
|
@ -351,7 +351,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
<button class="outlined white">White</button>
|
<button class="outlined inverted">Inverted</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="in-center">
|
<div class="in-center">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue