Improved Organization

This commit is contained in:
oitsjustjose 2020-02-27 21:48:17 -05:00
commit 0a757dd500
13 changed files with 833 additions and 679 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,426 +0,0 @@
$dark: (
"background": #2a2a2a,
"foreground": #eeeeee,
"item": #3a3a3a,
"button": #3a3a3a,
"buttonActive": #404040
);
$background: #252525;
$foreground: #eeeeee;
$brightRed: rgb(250, 117, 93);
$red: #ff4340;
$darkRed: #bb312f;
$brightCyan: #00d9ff;
$cyan: #00bee0;
$brightGreen: #85d82d;
$green: #7cb342;
$mastColor: #7cb342;
a,
p,
h1,
h2,
h3,
h4,
b,
i,
body,
button {
font-family: "Spartan";
}
.code {
font-family: "Fira Code";
font-variant-ligatures: common-ligatures;
}
pre {
font-family: "Fira Code";
font-variant-ligatures: common-ligatures;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word;
}
body {
background-color: $background;
color: $foreground;
margin-left: 0px;
margin-right: 0px;
}
a {
color: $red;
&:hover {
color: $darkRed;
}
}
.masthead {
height: 100vh;
width: 100%;
background-color: $mastColor;
color: $background;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
p.content {
font-size: 64px;
font-weight: 900;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
.subheader {
font-size: 32px;
text-align: center;
}
}
.down {
position: absolute;
bottom: 0;
i {
font-size: 64px;
}
}
}
.container {
width: 90vw;
margin: 2rem 5vw;
}
.centered {
text-align: center;
margin: auto;
}
.blurred {
filter: blur(5px);
&.unblurable {
&:hover {
transition: all ease-in 150ms;
filter: none;
}
}
}
img {
max-width: 100%;
height: auto;
&.rounded {
border-radius: 8px;
}
&.thumbnail {
width: 24px;
}
&.small {
width: 128px;
}
&.medium {
width: 256px;
}
&.large {
width: 512px;
}
}
.titlebar.top {
background-color: map-get($dark, "background");
color: map-get($dark, "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(0, 0, 0, 0.5);
@at-root .masthead {
height: calc(100vh - 3rem);
}
@at-root body {
margin-top: 3rem;
}
a {
color: $foreground;
text-decoration: none;
}
.item {
display: inline-flex;
flex-direction: column;
justify-content: center;
background-color: map-get($dark, "item");
font-family: "Spartan";
padding: 0px 1rem;
height: 100%;
cursor: pointer;
span {
display: inline-flex;
}
&:hover {
background-color: map-get($dark, "background");
transition: all ease-in 150ms;
}
}
}
.divider {
width: 70vw;
height: 10px;
border-bottom: 1px solid map-get($dark, "item");
margin: 1rem 15vw;
&.wide {
width: 100vw;
}
}
.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($dark, "item");
& .item {
color: $foreground;
padding: 12px 16px;
text-decoration: none;
display: block;
&:hover {
background-color: $background;
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%;
}
}
button {
padding: 0.75rem 1rem;
border-radius: 8px;
border: none;
outline: none;
background-color: map-get($dark, "button");
color: $foreground;
user-select: none;
cursor: pointer;
&.small {
padding: 0.5rem 0.75rem;
}
&.hoverable {
&.outlined {
&:hover {
background-color: transparent;
border: 2px solid map-get($dark, "buttonActive");
}
}
&:hover {
background-color: map-get($dark, "buttonActive");
}
}
&.outlined {
background-color: transparent;
border: 2px solid map-get($dark, "button");
&:active {
background-color: transparent;
border: 2px solid map-get($dark, "buttonActive");
}
}
&.red {
background-color: $red;
&:active {
background-color: $brightRed;
}
&.outlined {
background-color: transparent;
color: $red;
border: 2px solid $red;
&:active {
color: $brightRed;
border: 2px solid $brightRed;
}
}
}
&.green {
background-color: $green;
&:active {
background-color: $brightGreen;
}
&.outlined {
background-color: transparent;
color: $green;
border: 2px solid $green;
&:active {
color: $brightGreen;
border: 2px solid $brightGreen;
}
}
}
&.cyan {
background-color: $cyan;
color: $background;
&:active {
background-color: $brightCyan;
}
&.outlined {
background-color: transparent;
color: $cyan;
border: 2px solid $cyan;
&:active {
color: $brightCyan;
border: 2px solid $brightCyan;
}
}
}
&:active {
background-color: map-get($dark, "buttonActive");
}
}
.bounce {
-moz-animation: bounce 2s infinite;
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}
// 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 {
position: fixed;
z-index: 1024;
top: 0;
left: 0;
display: none;
width: 100vw;
height: 100vh;
background-color: rgba($background, 0.95);
color: $foreground;
.close-mobile-menu {
display: flex;
flex-direction: row-reverse;
justify-items: flex-end;
width: 100vw;
max-width: 100vw;
font-size: 4rem;
background-color: rgba($darkRed, 0.5);
&:hover {
color: #ffffff;
}
}
.item {
width: 100vw;
height: 10px;
max-height: 4rem;
// height: 2rem;
}
.sub.item {
padding-left: 3rem;
background-color: map-get($dark, "buttonActive");
}
}
.no-scroll {
overflow: hidden;
}

View file

@ -0,0 +1,128 @@
@import "colors";
button {
// padding: 0.75rem 1rem;
border: none;
outline: none;
background-color: map-get($dark, "button");
color: $foreground;
user-select: none;
cursor: pointer;
border-radius: 0.3em;
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.75);
padding: 2em;
font-size: 12px;
&:hover {
background-color: lighten(map-get($dark, "buttonActive"), 10%);
}
&:active {
background-color: map-get($dark, "buttonActive");
}
&.small {
padding: 0.5rem 0.75rem;
}
&.outlined {
background-color: transparent;
border: 2px solid map-get($dark, "button");
&:hover {
background-color: transparent;
border: 2px solid lighten(map-get($dark, "buttonActive"), 10%);
}
&:active {
background-color: transparent;
border: 2px solid map-get($dark, "buttonActive");
}
}
&.red {
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%);
}
}
}
}

View file

@ -0,0 +1,14 @@
$dark: (
"background": #2a2a2a,
"foreground": #eeeeee,
"item": #3a3a3a,
"button": #3a3a3a,
"buttonActive": #404040
);
$background: #252525;
$foreground: #eeeeee;
$red: #ff4340;
$cyan: #00bee0;
$green: #7cb342;
$mastColor: #7cb342;

View file

@ -0,0 +1,157 @@
@import "colors";
a,
p,
h1,
h2,
h3,
h4,
b,
i,
body,
button {
font-family: "Spartan";
}
.code {
font-family: "Fira Code";
font-variant-ligatures: common-ligatures;
}
pre {
font-family: "Fira Code";
font-variant-ligatures: common-ligatures;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word;
}
body {
background-color: $background;
color: $foreground;
margin-left: 0px;
margin-right: 0px;
}
a {
color: $red;
&:hover {
color: darken($red, 10%);
}
}
.masthead {
height: 100vh;
width: 100%;
background-color: $mastColor;
color: $background;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
p.content {
font-size: 64px;
font-weight: 900;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
.subheader {
font-size: 32px;
text-align: center;
}
}
.down {
position: absolute;
bottom: 0;
i {
font-size: 64px;
}
}
}
.container {
width: 90vw;
margin: 2rem 5vw;
}
.centered {
text-align: center;
margin: auto;
}
.blurred {
filter: blur(5px);
&.unblurable {
&:hover {
transition: all ease-in 150ms;
filter: none;
}
}
}
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 infinite;
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
}
@keyframes bounce {
0%,
20%,
50%,
80%,
100% {
transform: translateY(0);
}
40% {
transform: translateY(-30px);
}
60% {
transform: translateY(-15px);
}
}

View file

@ -0,0 +1,163 @@
@import "colors";
.titlebar.top {
background-color: map-get($dark, "background");
color: map-get($dark, "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(0, 0, 0, 0.5);
@at-root .masthead {
height: calc(100vh - 3rem);
}
@at-root body {
margin-top: 3rem;
}
a {
color: $foreground;
text-decoration: none;
}
.item {
display: inline-flex;
flex-direction: column;
justify-content: center;
background-color: map-get($dark, "item");
font-family: "Spartan";
padding: 0px 1rem;
height: 100%;
cursor: pointer;
span {
display: inline-flex;
}
&:hover {
background-color: map-get($dark, "background");
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 {
position: fixed;
z-index: 1024;
top: 0;
left: 0;
display: none;
width: 100vw;
height: 100vh;
background-color: rgba($background, 0.95);
color: $foreground;
.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 {
padding-left: 3rem;
background-color: map-get($dark, "buttonActive");
}
}
.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($dark, "item");
& .item {
color: $foreground;
padding: 12px 16px;
text-decoration: none;
display: block;
&:hover {
background-color: $background;
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%;
}
}

View file

@ -0,0 +1,37 @@
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: $background; /* Fallback color */
background-color: rgba($background, 0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: lighten($background, 15%);
margin: auto;
padding: 20px;
border: 1px solid lighten($background, 10%);
width: 80%;
/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
&:hover,
&:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
}
}

View file

@ -1,3 +1,363 @@
button {
border: none;
outline: none;
background-color: #3a3a3a;
color: #eeeeee;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
border-radius: 0.3em;
-webkit-box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.75);
box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.75);
padding: 2em;
font-size: 12px;
}
button:hover {
background-color: #5a5a5a;
}
button:active {
background-color: #404040;
}
button.small {
padding: 0.5rem 0.75rem;
}
button.outlined {
background-color: transparent;
border: 2px solid #3a3a3a;
}
button.outlined:hover {
background-color: transparent;
border: 2px solid #5a5a5a;
}
button.outlined:active {
background-color: transparent;
border: 2px solid #404040;
}
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: #252525;
}
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;
}
.titlebar.top {
background-color: #2a2a2a;
color: #eeeeee;
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(0, 0, 0, 0.5);
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.5);
}
.masthead {
height: calc(100vh - 3rem);
}
body {
margin-top: 3rem;
}
.titlebar.top a {
color: #eeeeee;
text-decoration: none;
}
.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: #3a3a3a;
font-family: "Spartan";
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: #2a2a2a;
-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 {
position: fixed;
z-index: 1024;
top: 0;
left: 0;
display: none;
width: 100vw;
height: 100vh;
background-color: rgba(37, 37, 37, 0.95);
color: #eeeeee;
}
.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: #404040;
}
.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: #3a3a3a;
}
.dropdown.item .dropdown-content .item {
color: #eeeeee;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown.item .dropdown-content .item:hover {
background-color: #252525;
-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%;
}
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
padding-top: 100px;
/* Location of the box */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: #252525;
/* Fallback color */
background-color: rgba(37, 37, 37, 0.4);
/* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #4b4b4b;
margin: auto;
padding: 20px;
border: 1px solid #3f3f3f;
width: 80%;
/* The Close Button */
}
.modal-content .close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.modal-content .close:hover, .modal-content .close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
a,
p,
h1,
@ -44,7 +404,7 @@ a {
}
a:hover {
color: #bb312f;
color: #ff110d;
}
.masthead {
@ -147,72 +507,6 @@ img.large {
width: 512px;
}
.titlebar.top {
background-color: #2a2a2a;
color: #eeeeee;
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(0, 0, 0, 0.5);
box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.5);
}
.masthead {
height: calc(100vh - 3rem);
}
body {
margin-top: 3rem;
}
.titlebar.top a {
color: #eeeeee;
text-decoration: none;
}
.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: #3a3a3a;
font-family: "Spartan";
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: #2a2a2a;
-webkit-transition: all ease-in 150ms;
transition: all ease-in 150ms;
}
.divider {
width: 70vw;
height: 10px;
@ -224,164 +518,6 @@ body {
width: 100vw;
}
.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: #3a3a3a;
}
.dropdown.item .dropdown-content .item {
color: #eeeeee;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown.item .dropdown-content .item:hover {
background-color: #252525;
-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%;
}
button {
padding: 0.75rem 1rem;
border-radius: 8px;
border: none;
outline: none;
background-color: #3a3a3a;
color: #eeeeee;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
button.small {
padding: 0.5rem 0.75rem;
}
button.hoverable.outlined:hover {
background-color: transparent;
border: 2px solid #404040;
}
button.hoverable:hover {
background-color: #404040;
}
button.outlined {
background-color: transparent;
border: 2px solid #3a3a3a;
}
button.outlined:active {
background-color: transparent;
border: 2px solid #404040;
}
button.red {
background-color: #ff4340;
}
button.red:active {
background-color: #fa755d;
}
button.red.outlined {
background-color: transparent;
color: #ff4340;
border: 2px solid #ff4340;
}
button.red.outlined:active {
color: #fa755d;
border: 2px solid #fa755d;
}
button.green {
background-color: #7cb342;
}
button.green:active {
background-color: #85d82d;
}
button.green.outlined {
background-color: transparent;
color: #7cb342;
border: 2px solid #7cb342;
}
button.green.outlined:active {
color: #85d82d;
border: 2px solid #85d82d;
}
button.cyan {
background-color: #00bee0;
color: #252525;
}
button.cyan:active {
background-color: #00d9ff;
}
button.cyan.outlined {
background-color: transparent;
color: #00bee0;
border: 2px solid #00bee0;
}
button.cyan.outlined:active {
color: #00d9ff;
border: 2px solid #00d9ff;
}
button:active {
background-color: #404040;
}
.bounce {
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
@ -424,63 +560,4 @@ button:active {
transform: translateY(-15px);
}
}
@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 {
position: fixed;
z-index: 1024;
top: 0;
left: 0;
display: none;
width: 100vw;
height: 100vh;
background-color: rgba(37, 37, 37, 0.95);
color: #eeeeee;
}
.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(187, 49, 47, 0.5);
}
.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: #404040;
}
.no-scroll {
overflow: hidden;
}
/*# sourceMappingURL=main.css.map */
/*# sourceMappingURL=all.css.map */

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,5 @@
@import "colors";
@import "button";
@import "menu";
@import "modal";
@import "main";

View file

View file

@ -11,11 +11,11 @@
<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/main.css" rel="stylesheet">
<link href="Libraries/css/themekit/all.css" rel="stylesheet">
<script src="Libraries/js/jquery-3.4.1.min.js"></script>
<script src="Libraries/js/jquery-ui.min.js"></script>
<script src="Libraries/js/app.js"></script>
<script src="Libraries/js/themekit/menu.js"></script>
<title>Juice-UI</title>
</head>
@ -64,10 +64,10 @@
<div class="item">
About
<span>About&nbsp;<i class="fa fa-info"></i></span>
</div>
<a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="item">
GitHub
<span>GitHub&nbsp;<i class="fa fa-github"></i></span>
</a>
<div class="item">
Reddit
@ -223,9 +223,6 @@
<td>
<button class="green">Green</button>
</td>
<td>
<button class="hoverable">Active On Hover</button>
</td>
</tr>
</table>
@ -247,9 +244,6 @@
<td>
<button class="green small">Green</button>
</td>
<td>
<button class="hoverable small">Active On Hover</button>
</td>
</tr>
</table>
@ -271,9 +265,6 @@
<td>
<button class="green outlined">Green</button>
</td>
<td>
<button class="hoverable outlined">Active On Hover</button>
</td>
</tr>
</table>
</div>