ultrawidify/src/res/css/common.scss

310 lines
4.6 KiB
SCSS
Raw Normal View History

@import "colors.scss";
@import "/res/css/font/overpass.css";
@import "/res/css/font/overpass-mono.css";
2019-05-22 01:03:15 +02:00
@import "/res/css/flex.css";
// @import "form.scss";
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;
}
2019-05-22 01:03:15 +02:00
a, a:visited {
color: $primary-color;
}
a:hover {
color: lighten($primary-color, 10%);
}
/* INPUT FORMATTING */
2019-02-28 23:55:20 +01:00
input[type="number"], input[type="text"], input {
outline: none;
background-color: $input-background;
color: $text-normal;
padding: 0.1rem;
2019-02-28 23:55:20 +01:00
padding-top: 0.2rem;
padding-bottom: 0.1rem;
margin-left: 1rem;
2019-02-28 23:55:20 +01:00
border: 1px solid $input-border;
}
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
}
2019-05-22 01:03:15 +02:00
.invalid-input {
border: 1px solid #720 !important;
background-color: #410 !important;
}
2018-09-14 22:21:39 +02:00
2019-05-22 01:03:15 +02:00
.button {
/*display: inline-block;*/
// padding-top: 8px;
// padding-bottom: 3px;
//padding-left: 5px;
//padding-right: 5px;
border: 1px solid rgb(39, 39, 39);
margin-top: 3px;
margin-bottom: 3px;
color: $text-dim;
text-align: center;
}
2018-09-14 22:21:39 +02:00
2019-05-22 01:03:15 +02:00
.selected, .setting-selected {
color: $selected-color;
background-color: $background-selected;
}
.selected-tab {
color: $selected-color;
}
.setting-selected {
border: 1px solid shade($selected-color, 25%);
}
.button:hover {
color: lighten($selected-color, 10%);
background-color: lighten($background-selected, 10%);
}
.button {
cursor: pointer !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
2018-07-19 23:05:57 +02:00
/** 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;
}
.info {
color: $info-color;
padding-left: 35px;
float: right;
}
.info::before {
content: "";
display: inline-block;
font-weight: bold;
margin-left: -35px;
padding-right: 10px;
}
.experimental::after {
2019-05-22 01:03:15 +02:00
// content: "Experimental";
content: "";
color: #ffde12;
// background-color: #1f1f1f;
display: inline-block;
font-size: .75em;
font-variant: small-caps;
padding-left: 5px;
padding-right: 5px;
margin-left: 10px;
2019-05-22 01:03:15 +02:00
margin-top: -4px;
}
.experimental:hover::after {
content: "Ⓔ Experimental";
// content: "";
color: #ffde12;
// background-color: #1f1f1f;
display: inline-block;
font-size: .75em;
font-variant: small-caps;
padding-left: 5px;
padding-right: 5px;
margin-left: 10px;
margin-top: -4px;
2018-07-19 23:05:57 +02:00
}