UI Updates

This commit is contained in:
oitsjustjose 2020-02-28 12:00:00 -05:00
commit 8d56511992
8 changed files with 197 additions and 64 deletions

View file

@ -8,6 +8,7 @@ button {
color: $foreground;
user-select: none;
cursor: pointer;
width: fit-content;
border-radius: 0.3em;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
@ -41,6 +42,35 @@ button {
}
}
&.white {
background-color: $foreground;
color: $background;
&:hover {
background-color: lighten($foreground, 10%);
}
&:active {
background-color: lighten($foreground, 2%);
}
&.outlined {
background-color: transparent;
color: $foreground;
border: 2px solid $foreground;
&:hover {
color: lighten($foreground, 10%);
border: 2px solid lighten($foreground, 10%);
}
&:active {
color: lighten($foreground, 2%);
border: 2px solid lighten($foreground, 2%);
}
}
}
&.red {
background-color: $red;

View file

@ -0,0 +1,7 @@
.grid {
display: grid;
align-items: center;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
grid-gap: 2rem;
grid-auto-flow: dense;
}

View file

@ -29,7 +29,7 @@ p {
p.code,
pre {
display: inline-block;
overflow: scroll;
overflow: auto;
}
pre {
@ -68,9 +68,9 @@ a {
justify-content: center;
&.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);
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 {
@ -164,9 +164,9 @@ img {
}
.bounce {
-moz-animation: bounce 2s infinite;
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
-moz-animation: bounce 2s 10;
-webkit-animation: bounce 2s 10;
animation: bounce 2s 10;
}
@keyframes bounce {
@ -195,3 +195,28 @@ li {
margin-bottom: 0.75rem;
line-height: 1.75;
}
.color-demo {
text-align: center;
&.red {
background-color: $red;
}
&.blue {
background-color: $cyan;
}
&.green {
background-color: $green;
}
&.bg {
background-color: $background;
}
&.fg {
background-color: $foreground;
color: $background;
}
}

View file

@ -27,7 +27,7 @@
}
&.translucent {
background-color: rgba(map-get($dark, "background"), 0.95);
background-color: rgba(map-get($dark, "background"), 0.95);
}
.item {

View file

@ -8,6 +8,9 @@ button {
-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(0, 0, 0, 0.75);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
@ -42,6 +45,35 @@ button.outlined:active {
border: 2px solid #404040;
}
button.white {
background-color: #eeeeee;
color: #252525;
}
button.white:hover {
background-color: white;
}
button.white:active {
background-color: #f3f3f3;
}
button.white.outlined {
background-color: transparent;
color: #eeeeee;
border: 2px solid #eeeeee;
}
button.white.outlined:hover {
color: white;
border: 2px solid white;
}
button.white.outlined:active {
color: #f3f3f3;
border: 2px solid #f3f3f3;
}
button.red {
background-color: #ff4340;
}
@ -405,7 +437,7 @@ p {
p.code,
pre {
display: inline-block;
overflow: scroll;
overflow: auto;
}
pre {
@ -459,9 +491,9 @@ a:hover {
}
.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);
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 p.content {
@ -573,8 +605,8 @@ img.large {
}
.bounce {
-webkit-animation: bounce 2s infinite;
animation: bounce 2s infinite;
-webkit-animation: bounce 2s 10;
animation: bounce 2s 10;
}
@-webkit-keyframes bounce {
@ -628,6 +660,31 @@ li {
line-height: 1.75;
}
.color-demo {
text-align: center;
}
.color-demo.red {
background-color: #ff4340;
}
.color-demo.blue {
background-color: #00bee0;
}
.color-demo.green {
background-color: #7cb342;
}
.color-demo.bg {
background-color: #252525;
}
.color-demo.fg {
background-color: #eeeeee;
color: #252525;
}
.embed {
position: relative;
overflow: hidden;
@ -642,4 +699,16 @@ li {
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;
}
/*# sourceMappingURL=all.css.map */

File diff suppressed because one or more lines are too long

View file

@ -4,3 +4,4 @@
@import "modal";
@import "main";
@import "embed";
@import "grid";