port over grayscale legacy extras

This commit is contained in:
Geoff Doty 2021-10-16 02:51:52 -04:00
parent d5fc2cbc34
commit 6c715f00d4
5 changed files with 113 additions and 0 deletions

39
src/extras/box-form.css Normal file
View File

@ -0,0 +1,39 @@
.box {
background-color: inherit;
color: inherit;
border-top: 1px solid #767676;
border-left: 1px solid #767676;
padding: .5rem;
flex: 1;
}
.box-close {
border-right: 1px solid #767676;
border-bottom: 1px solid #767676;
}
.box.box-block {
padding: 0;
height: 100%;
width: 100%;
}
.box label {
display: block;
color: #ACACAC;
text-transform: uppercase;
height: 10px;
padding-bottom: 1rem;
margin-bottom: .5rem;
font-size: 1rem;
}
.box:active,
.box:focus {
outline: none;
background: aliceblue;
}
.box input:focus {
outline: none;
}

25
src/extras/grid.css Normal file
View File

@ -0,0 +1,25 @@
/* Grid System */
.row {
display: flex;
flex: 0 1 auto;
flex-direction: row;
flex-wrap: wrap;
margin:0;
}
.col, .col-1, .col-2, .col-3, .col-4,.col-5 {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
box-sizing: border-box;
flex: 1;
max-width: 100%;
}
.col-1 {flex: 1;}
.col-2 {flex: 2;}
.col-3 {flex: 3;}
.col-4 {flex: 4;}
.col-5 {flex: 5;}

25
src/extras/modal.css Normal file
View File

@ -0,0 +1,25 @@
.modal {
position: fixed;
background: rgba(0, 0, 0, .6);
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: var(--space);
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
}
.modal.active {
display: flex;
}
.modal-content {
display: flex;
width: 28rem;
max-width: 80vw;
height: 20rem;
background: var(--bg);
}

View File

@ -0,0 +1,6 @@
/* Media Queries */
/* mobile */
@media(max-width: 576px) {
html {font-size: calc(var(--size) * .75px)}
}

18
src/extras/utility.css Normal file
View File

@ -0,0 +1,18 @@
.right {float: right !important}
.left {float: left !important}
.center {margin: auto;text-align: center !important;align-items: center;justify-content: center;}
.border {border: 1px solid var(--theme)}
.borderless {border: none}
.space {padding: var(--space)}
.spaceless {padding: 0px; margin:0px;}
.wide {width: 100%; margin: inherit 0; max-width:none}
.fill {height: 100%; width: 100%; margin:0; padding:0; max-height: none; max-width:none;}
.uppercase {text-transform: uppercase;}
.lowercase {text-transform: lowercase;}
.shadow {
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}