UI Updates
This commit is contained in:
parent
458ca31283
commit
8d56511992
8 changed files with 197 additions and 64 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
7
Libraries/css/themekit/_grid.scss
Normal file
7
Libraries/css/themekit/_grid.scss
Normal 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;
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
|
||||
&.translucent {
|
||||
background-color: rgba(map-get($dark, "background"), 0.95);
|
||||
background-color: rgba(map-get($dark, "background"), 0.95);
|
||||
}
|
||||
|
||||
.item {
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -4,3 +4,4 @@
|
|||
@import "modal";
|
||||
@import "main";
|
||||
@import "embed";
|
||||
@import "grid";
|
||||
|
|
|
|||
96
index.html
96
index.html
|
|
@ -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">
|
||||
<button>Plain</button><br>
|
||||
<button class="white">White</button><br>
|
||||
<button class="red">Red</button><br>
|
||||
<button class="cyan">Cyan</button><br>
|
||||
<button class="green">Green</button><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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue