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";

View file

@ -155,34 +155,23 @@
</p>
</div>
<div class="in-center">
<table cellspacing="16">
<tr>
<td style="background-color: #ff4340;">
Red
</td>
</tr>
<tr>
<td style="background-color: #00bee0; color: #252525;">
Blue
</td>
</tr>
<tr>
<td style="background-color: #7cb342;">
Green
</td>
</tr>
<tr>
<td style="background-color: #252525; color: #eeeeee;">
Background
</td>
</tr>
<tr>
<td style="background-color: #eeeeee; color: #252525;">
Foreground
</td>
</tr>
</table>
<div class="grid">
<div class="color-demo red">
Red
</div>
<div class="color-demo blue">
Blue
</div>
<div class="color-demo green">
Green
</div>
<div class="color-demo bg">
Background
</div>
<div class="color-demo fg">
Foreground
</div>
</div>
</div>
@ -278,28 +267,35 @@
<div class="in-center">
<p class="code">
&lt;button&gt;Plain&lt;/button&gt;<br>
&lt;button class="white"&gt;White&lt;/button&gt;<br>
&lt;button class="red"&gt;Red&lt;/button&gt;<br>
&lt;button class="cyan"&gt;Cyan&lt;/button&gt;<br>
&lt;button class="green"&gt;Green&lt;/button&gt;<br>
</p>
</div>
<table class="centered">
<tr>
<td>
<button>Plain</button>
</td>
<td>
<button class="red">Red</button>
</td>
<td>
<button class="cyan">Cyan</button>
</td>
<td>
<button class="green">Green</button>
</td>
</tr>
</table>
<div class="centered grid" style="max-width:30vw">
<div class="in-center">
<button>Plain</button>
</div>
<div class="in-center">
<button class="white">White</button>
</div>
<div class="in-center">
<button class="red">Red</button>
</div>
<div class="in-center">
<button class="cyan">Cyan</button>
</div>
<div class="in-center">
<button class="green">Green</button>
</div>
</div>
<p class="centered" style="margin-top: 2rem; margin-bottom: .5rem;">
Buttons can also be <sub>smol</sub>
@ -394,10 +390,13 @@
</div>
<p class="centered">
This modal won't be shown in any way though! The way to bind the object that shows this modal is by using
This modal won't be shown in any way though! The way to bind the object that shows this modal is by
using
the
<span class="code">for-modal</span> attribute, which should be assigned to the ID of the modal. So, in this
example we would use <span class="code">for-modal="testModal"</span>, and we can add this to *any* element!
<span class="code">for-modal</span> attribute, which should be assigned to the ID of the modal. So, in
this
example we would use <span class="code">for-modal="testModal"</span>, and we can add this to *any*
element!
For
example:
</p>
@ -451,7 +450,8 @@
This ThemeKit is written from scratch with minimal JQuery (using DOM where possible)
</li>
<li>
This page not only shows you how these things work, but demo to me how they're turning out too!
This page not only shows you how these things work, but demo to me how they're turning out
too!
</li>
</ul>
</div>