193 lines
3.7 KiB
SCSS
193 lines
3.7 KiB
SCSS
@import './Variables.scss';
|
|
@import './sprites.scss';
|
|
@import '~nes.css/scss/utilities/icon-mixin';
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
|
|
@media only screen and (max-width: $max-mobile-width) {
|
|
font-size: 13px;
|
|
}
|
|
|
|
@media only screen and (max-width: $max-small-mobile-width) {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
&:hover {
|
|
background-color: $main-hover-color;
|
|
}
|
|
|
|
&.active {
|
|
background-color: $main-active-background-color;
|
|
color: $main-active-font-color;
|
|
|
|
& > * {
|
|
color: $main-active-font-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
.de-emphasize {
|
|
color: $main-font-secondary-color;
|
|
}
|
|
|
|
/** nes.css overrides */
|
|
|
|
body {
|
|
background-color: $main-background-color;
|
|
color: $main-font-primary-color;
|
|
}
|
|
|
|
button:focus {
|
|
outline: none;
|
|
}
|
|
|
|
a.active:not([href]):not([tabindex]) {
|
|
color: $main-active-font-color;
|
|
}
|
|
|
|
a.list-item {
|
|
position: relative;
|
|
|
|
// borrowed from @import '~nes.css/scss/elements/radios';
|
|
|
|
$radio: (
|
|
(1,1,0,0,0,0),
|
|
(1,1,1,1,0,0),
|
|
(1,1,1,1,1,0),
|
|
(1,1,1,1,1,1),
|
|
(1,1,1,1,1,0),
|
|
(1,1,1,1,0,0),
|
|
(1,1,0,0,0,0),
|
|
);
|
|
$radio-checked-focus: (
|
|
(2,2,0,0,0,0),
|
|
(2,2,2,2,0,0),
|
|
(2,2,2,2,2,0),
|
|
(2,2,2,2,2,2),
|
|
(2,2,2,2,2,0),
|
|
(2,2,2,2,0,0),
|
|
(2,2,0,0,0,0),
|
|
);
|
|
$colors: ($main-font-primary-color, $main-active-font-color);
|
|
|
|
&.active,
|
|
&:hover {
|
|
&::before {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 4px;
|
|
content: "";
|
|
|
|
@include pixelize(2px, $radio, $colors);
|
|
|
|
@media only screen and (max-width: $max-mobile-width) {
|
|
left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
&:focus,
|
|
&:hover {
|
|
&::before {
|
|
animation: blink 1s infinite steps(1);
|
|
}
|
|
}
|
|
|
|
&.active::before {
|
|
@include pixelize(2px, $radio-checked-focus, $colors);
|
|
}
|
|
}
|
|
|
|
.nes-container {
|
|
background-color: $main-background-color;
|
|
padding-right: 1em;
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.nes-container::after,
|
|
.nes-container.is-rounded::after {
|
|
border-color: $main-border-color;
|
|
}
|
|
|
|
.nes-container.with-title > .title {
|
|
font-size: 1em;
|
|
background-color: $main-background-color;
|
|
margin: -2rem 0 1rem;
|
|
}
|
|
|
|
.nes-container:not(:last-child) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.form.nes-container > .nes-field:not(:last-child) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.nes-field.is-inline > label {
|
|
margin-right: 0.5rem;
|
|
margin-left: 1.5rem;
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.nes-input,
|
|
.nes-textarea {
|
|
padding-top: 0.25rem;
|
|
padding-bottom: 0.25rem;
|
|
background-color: $main-background-color;
|
|
outline-color: $main-font-secondary-color;
|
|
|
|
// // borrowed from @import '~nes.css/scss/elements/inputs';
|
|
|
|
// @mixin border-style($border, $outline) {
|
|
// outline-color: $outline;
|
|
// box-shadow:
|
|
// 0 4px $border,
|
|
// 0 -4px $border,
|
|
// 4px 0 $border,
|
|
// -4px 0 $border;
|
|
// }
|
|
|
|
// @include border-style($main-border-color, $main-font-secondary-color);
|
|
|
|
&::placeholder {
|
|
color: $main-font-secondary-color;
|
|
}
|
|
}
|
|
|
|
// same as .nes-input
|
|
.nes-select.dropdown {
|
|
border-image-slice: 2;
|
|
border-image-width: 2;
|
|
border-image-repeat: stretch;
|
|
border-image-source: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" ?><svg version="1.1" width="5" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M2 1 h1 v1 h-1 z M1 2 h1 v1 h-1 z M3 2 h1 v1 h-1 z M2 3 h1 v1 h-1 z" fill="rgb(33,37,41)" /></svg>');
|
|
border-image-outset: 2;
|
|
width: 100%;
|
|
padding: 0.5rem 2.5rem 0.5rem 1rem;
|
|
// cursor: url(../assets/cursor-click.png) 14 0,pointer;
|
|
border-radius: 0;
|
|
outline-color: #e7e7e7;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
border-style: solid;
|
|
border-width: 4px;
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.nes-field.is-inline {
|
|
display: inherit;
|
|
}
|
|
}
|
|
|
|
/** end nes.css overrides */
|