ultrawidify/src/res/css/common.scss

265 lines
3.7 KiB
SCSS
Raw Normal View History

@import "colors.scss";
@import "/res/css/font/overpass.css";
@import "/res/css/font/overpass-mono.css";
body {
background-color: $background-primary;
color: $text-normal;
font-family: 'Overpass', sans-serif;
font-size: 1.2em;
width: 100%;
min-height: 100%;
height: 100vh;
border: 0px;
margin: 0px;
padding: 0px;
2018-07-19 23:05:57 +02:00
}
2018-09-14 22:21:39 +02:00
/* STANDARD WIDTHS AND HEIGHTS */
.w100 {
width: 100%;
2018-07-19 23:05:57 +02:00
}
.h100 {
height: 100%;
}
2018-09-14 22:21:39 +02:00
.w24 {
width: 100px;
2018-07-19 23:05:57 +02:00
}
2018-09-14 22:21:39 +02:00
.m-t-0-33em {
margin-top: 0.33em;
}
2018-07-19 23:05:57 +02:00
2018-09-14 22:21:39 +02:00
.x-pad-1em {
padding-left: 1em;
padding-right: 1em;
}
2018-07-19 23:05:57 +02:00
/* .SELECTED CLASSES */
.selected-tab {
background-color: initial;
border-left: $primary-color 5px solid;
}
.selected-tab-secondary {
background-color: initial;
border-left: $secondary-color 3px solid !important;
}
/* BASIC STYLING */
.description {
color: $text-dim;
font-size: 1rem;
}
.label {
padding-top: 1.5rem;
font-size: 1.5rem;
font-variant: small-caps;
font-weight: 600;
}
.label-secondary {
font-weight: 600;
}
.button-box {
padding-top: 0.69rem;
padding-bottom: 0.69rem;
}
.indent {
padding-left: 4.2rem;
}
.row-padding {
padding-top: 0.69rem;
padding-bottom: 0.69rem;
}
/* INPUT FORMATTING */
input[type="number"] {
// border: 1px solid #322;
background-color: transparent;
padding: 0.1rem;
padding-top: 0.1rem;
padding-bottom: 0.1rem;
margin-left: 1rem;
}
2018-09-14 22:21:39 +02:00
/* ELEMENT POSITIONING */
2018-07-19 23:05:57 +02:00
.row {
display: block;
margin-top: 20px;
margin-bottom: 10px;
}
.button-row {
display: block;
margin-top: 5px;
margin-bottom: 10px;
}
2018-09-14 22:21:39 +02:00
.float-left {
float: left;
}
.float-right {
float: right;
}
.inline-block {
display: inline-block;
}
.block {
display: block;
}
.hidden {
display: none !important;
}
.hide {
display: none !important;
}
/* TEXT FORMATTING (no colors) */
small {
font-size: 0.75em;
font-weight: 200;
}
.small {
font-size: 0.75em;
font-weight: 200;
}
.medium-small {
font-size: 0.85em;
font-weight: 200;
}
.smallcaps{
font-variant: small-caps;
}
.center{
text-align: center;
width: 100%;
2018-07-19 23:05:57 +02:00
}
2018-09-14 22:21:39 +02:00
/* COLORS */
.selected{
color: #ffddaa !important;
background-color: #433221 !important;
2018-09-14 22:21:39 +02:00
}
.disabled {
2018-09-19 23:34:47 +02:00
pointer-events: none;
/* color: #666; */
filter: contrast(50%) brightness(40%) grayscale(100%);
2018-09-14 22:21:39 +02:00
}
.disabled-button {
color: #666 !important;
cursor: not-allowed !important;
}
.disabled-button:hover {
color: #777 !important;
background-color: #222 !important;
}
2018-09-27 00:17:49 +02:00
/* BROWSER-SPECIFIC DISABLE */
.disabled-edge {
pointer-events: none !important;
filter: contrast(50%) brightness(40%) grayscale(100%) !important;
content: "NOT SUPPORTED IN THIS BROWSER";
}
.disabled-edge::after {
background-color: #333272;
color: #d8d9e6;
display: inline-block;
font-size: .75em;
font-variant: small-caps;
padding-left: 5px;
padding-right: 5px;
margin-left: 10px;
}
2018-09-14 22:21:39 +02:00
/* BUTTONS AND INPUTS */
2018-07-19 23:05:57 +02:00
.invalid-input {
border: 1px solid #720 !important;
background-color: #410 !important;
}
.button {
/* display: inline-block; */
2019-01-03 02:07:16 +01:00
// padding-top: 8px;
// padding-bottom: 3px;
// padding-left: 20px;
// padding-right: 20px;
2018-07-19 23:05:57 +02:00
border: 1px solid #444;
margin-top: 3px;
margin-bottom: 3px;
color: #dbb;
text-align: center;
}
.button:hover {
color: #fff;
background-color: #433221;
}
/** misc **/
.warning {
color: #d6ba4a;
padding-left: 35px;
float: right;
}
.warning::before {
content: "";
display: inline-block;
font-weight: bold;
font-size: 2.5em;
margin-left: -35px;
padding-right: 10px;
}
.experimental::after {
content: "Experimental";
background-color: #ffde12;
color: #1f1f1f;
display: inline-block;
font-size: .75em;
font-variant: small-caps;
padding-left: 5px;
padding-right: 5px;
margin-left: 10px;
2018-07-19 23:05:57 +02:00
}