Site updates

This commit is contained in:
oitsjustjose 2020-02-27 00:41:54 -05:00
commit 40143681de
5 changed files with 137 additions and 13 deletions

View file

@ -91,8 +91,6 @@ a:hover {
.masthead .down { .masthead .down {
position: absolute; position: absolute;
-webkit-transform: 50%, 50%;
transform: 50%, 50%;
bottom: 0; bottom: 0;
} }
@ -168,7 +166,7 @@ img.large {
align-items: center; align-items: center;
} }
body.masthead { .masthead {
height: calc(100vh - 3rem); height: calc(100vh - 3rem);
} }
@ -176,6 +174,11 @@ body {
margin-top: 3rem; margin-top: 3rem;
} }
.titlebar.top a {
color: #eeeeee;
text-decoration: none;
}
.titlebar.top .item { .titlebar.top .item {
background-color: #3a3a3a; background-color: #3a3a3a;
display: -webkit-box; display: -webkit-box;
@ -252,16 +255,32 @@ button {
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
cursor: pointer;
} }
button.small { button.small {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
} }
button.hoverable.outlined:hover {
background-color: transparent;
border: 2px solid #404040;
}
button.hoverable:hover { button.hoverable:hover {
background-color: #404040; background-color: #404040;
} }
button.outlined {
background-color: transparent;
border: 2px solid #3a3a3a;
}
button.outlined:active {
background-color: transparent;
border: 2px solid #404040;
}
button.red { button.red {
background-color: #ff4340; background-color: #ff4340;
} }
@ -270,6 +289,17 @@ button.red:active {
background-color: #fa755d; 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 { button.green {
background-color: #7cb342; background-color: #7cb342;
} }
@ -278,6 +308,17 @@ button.green:active {
background-color: #85d82d; 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 { button.cyan {
background-color: #00bee0; background-color: #00bee0;
color: #252525; color: #252525;
@ -287,6 +328,17 @@ button.cyan:active {
background-color: #00d9ff; 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 { button:active {
background-color: #404040; background-color: #404040;
} }

File diff suppressed because one or more lines are too long

View file

@ -87,7 +87,6 @@ a {
.down { .down {
position: absolute; position: absolute;
transform: (50%, 50%);
bottom: 0; bottom: 0;
i { i {
font-size: 64px; font-size: 64px;
@ -153,7 +152,7 @@ img {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@at-root body.masthead { @at-root .masthead {
height: calc(100vh - 3rem); height: calc(100vh - 3rem);
} }
@ -161,6 +160,11 @@ img {
margin-top: 3rem; margin-top: 3rem;
} }
a {
color: $foreground;
text-decoration: none;
}
.item { .item {
background-color: map-get($dark, "item"); background-color: map-get($dark, "item");
display: flex; display: flex;
@ -229,22 +233,49 @@ button {
background-color: map-get($dark, "button"); background-color: map-get($dark, "button");
color: $foreground; color: $foreground;
user-select: none; user-select: none;
cursor: pointer;
&.small { &.small {
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
} }
&.hoverable { &.hoverable {
&.outlined {
&:hover {
background-color: transparent;
border: 2px solid map-get($dark, "buttonActive");
}
}
&:hover { &:hover {
background-color: map-get($dark, "buttonActive"); 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 { &.red {
background-color: $red; background-color: $red;
&:active { &:active {
background-color: $brightRed; background-color: $brightRed;
} }
&.outlined {
background-color: transparent;
color: $red;
border: 2px solid $red;
&:active {
color: $brightRed;
border: 2px solid $brightRed;
}
}
} }
&.green { &.green {
@ -252,6 +283,16 @@ button {
&:active { &:active {
background-color: $brightGreen; background-color: $brightGreen;
} }
&.outlined {
background-color: transparent;
color: $green;
border: 2px solid $green;
&:active {
color: $brightGreen;
border: 2px solid $brightGreen;
}
}
} }
&.cyan { &.cyan {
@ -260,6 +301,16 @@ button {
&:active { &:active {
background-color: $brightCyan; background-color: $brightCyan;
} }
&.outlined {
background-color: transparent;
color: $cyan;
border: 2px solid $cyan;
&:active {
color: $brightCyan;
border: 2px solid $brightCyan;
}
}
} }
&:active { &:active {
@ -287,4 +338,4 @@ button {
60% { 60% {
transform: translateY(-15px); transform: translateY(-15px);
} }
} }

View file

@ -10,10 +10,7 @@ $(document).ready(() => {
let titlebars = document.querySelectorAll(".titlebar"); let titlebars = document.querySelectorAll(".titlebar");
titlebars.forEach((titlebar) => { titlebars.forEach((titlebar) => {
// TODO: Auto-convert to mobile-friendly bar
// titlebar.childNodes.forEach((child)) => {
// };
}); });
} }

View file

@ -24,9 +24,9 @@
<div class="item"> <div class="item">
About About
</div> </div>
<div class="item"> <a href="https://github.com/oitsjustjose/ThemeKit" target="_blank" class="item">
GitHub GitHub
</div> </a>
<div class="item"> <div class="item">
Reddit Reddit
</div> </div>
@ -206,6 +206,30 @@
</td> </td>
</tr> </tr>
</table> </table>
<p>
Lastly, buttons can be just their outlines!
</p>
<table class="centered">
<tr>
<td>
<button class="outlined">Plain</button>
</td>
<td>
<button class="red outlined">Red</button>
</td>
<td>
<button class="cyan outlined">Cyan</button>
</td>
<td>
<button class="green outlined">Green</button>
</td>
<td>
<button class="hoverable outlined">Active On Hover</button>
</td>
</tr>
</table>
</div> </div>