Fixes #1127
parent
302bd2566c
commit
7e26773c6d
|
@ -6,7 +6,6 @@
|
||||||
.appBar {
|
.appBar {
|
||||||
background: var(--appbar-color);
|
background: var(--appbar-color);
|
||||||
color: var(--appbar-contrast);
|
color: var(--appbar-contrast);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
font-family: var(--preferred-font);
|
font-family: var(--preferred-font);
|
||||||
height: var(--appbar-height);
|
height: var(--appbar-height);
|
||||||
padding: 0 var(--appbar-h-padding);
|
padding: 0 var(--appbar-h-padding);
|
||||||
|
@ -14,6 +13,8 @@
|
||||||
transition-property: transform;
|
transition-property: transform;
|
||||||
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.scrollHide {
|
&.scrollHide {
|
||||||
transform: translateY(-100%);
|
transform: translateY(-100%);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,11 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.autocomplete {
|
.autocomplete {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
padding: var(--unit) 0;
|
padding: var(--unit) 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.focus {
|
&.focus {
|
||||||
& .suggestions {
|
& .suggestions {
|
||||||
box-shadow: var(--zdepth-shadow-1);
|
box-shadow: var(--zdepth-shadow-1);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
background-color: var(--avatar-background);
|
background-color: var(--avatar-background);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: var(--avatar-color);
|
color: var(--avatar-color);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: var(--avatar-font-size);
|
font-size: var(--avatar-font-size);
|
||||||
height: var(--avatar-size);
|
height: var(--avatar-size);
|
||||||
|
@ -16,6 +15,8 @@
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
width: var(--avatar-size);
|
width: var(--avatar-size);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& > svg {
|
& > svg {
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
height: var(--avatar-size);
|
height: var(--avatar-size);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
align-content: center;
|
align-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: 0;
|
border: 0;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -28,6 +27,8 @@
|
||||||
color 0.2s var(--animation-curve-default);
|
color 0.2s var(--animation-curve-default);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& > input {
|
& > input {
|
||||||
height: 0.1px;
|
height: 0.1px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -6,13 +6,14 @@
|
||||||
background: var(--card-background-color);
|
background: var(--card-background-color);
|
||||||
border-radius: calc(0.2 * var(--unit));
|
border-radius: calc(0.2 * var(--unit));
|
||||||
box-shadow: var(--shadow-2p);
|
box-shadow: var(--shadow-2p);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
font-size: var(--card-font-size);
|
font-size: var(--card-font-size);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.raised {
|
&.raised {
|
||||||
box-shadow: var(--shadow-8p);
|
box-shadow: var(--shadow-8p);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.field {
|
.field {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: block;
|
display: block;
|
||||||
height: var(--checkbox-size);
|
height: var(--checkbox-size);
|
||||||
margin-bottom: var(--checkbox-field-margin-bottom);
|
margin-bottom: var(--checkbox-field-margin-bottom);
|
||||||
position: relative;
|
position: relative;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& .ripple {
|
& .ripple {
|
||||||
background-color: var(--checkbox-color);
|
background-color: var(--checkbox-color);
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
|
@ -60,7 +61,6 @@
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: var(--checkbox-size);
|
height: var(--checkbox-size);
|
||||||
|
@ -71,6 +71,8 @@
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: var(--checkbox-size);
|
width: var(--checkbox-size);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.checked {
|
&.checked {
|
||||||
background-color: var(--checkbox-color);
|
background-color: var(--checkbox-color);
|
||||||
border-color: var(--checkbox-color);
|
border-color: var(--checkbox-color);
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
background-color: var(--chip-background);
|
background-color: var(--chip-background);
|
||||||
border-radius: var(--chip-height);
|
border-radius: var(--chip-height);
|
||||||
color: var(--chip-color);
|
color: var(--chip-color);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-size: var(--chip-font-size);
|
font-size: var(--chip-font-size);
|
||||||
line-height: var(--chip-height);
|
line-height: var(--chip-height);
|
||||||
|
@ -17,6 +16,8 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -13,6 +12,8 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
z-index: var(--z-index-higher);
|
z-index: var(--z-index-higher);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dialog {
|
.dialog {
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
background-color: var(--drawer-background-color);
|
background-color: var(--drawer-background-color);
|
||||||
box-shadow: var(--shadow-2p);
|
box-shadow: var(--shadow-2p);
|
||||||
color: var(--drawer-text-color);
|
color: var(--drawer-text-color);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: block;
|
display: block;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
@ -26,6 +25,8 @@
|
||||||
width: var(--drawer-mobile-width);
|
width: var(--drawer-mobile-width);
|
||||||
will-change: transform;
|
will-change: transform;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
transform: translateX(0);
|
transform: translateX(0);
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.dropdown {
|
.dropdown {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&:not(.active) {
|
&:not(.active) {
|
||||||
& > .values {
|
& > .values {
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
@import './variables.css';
|
|
||||||
|
|
||||||
.reset {
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-family: var(--preferred-font);
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
font-smoothing: antialiased;
|
|
||||||
text-size-adjust: 100%;
|
|
||||||
|
|
||||||
& *,
|
|
||||||
& *::after,
|
|
||||||
& *::before {
|
|
||||||
box-sizing: border-box;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
font-smoothing: antialiased;
|
|
||||||
text-size-adjust: 100%;
|
|
||||||
-webkit-touch-callout: none;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,10 +3,11 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
padding: var(--input-padding) 0;
|
padding: var(--input-padding) 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.withIcon {
|
&.withIcon {
|
||||||
margin-left: var(--input-icon-size);
|
margin-left: var(--input-icon-size);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -18,6 +17,8 @@
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel {
|
.panel {
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
.link {
|
.link {
|
||||||
align-content: center;
|
align-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -18,6 +17,8 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: opacity var(--animation-duration) var(--animation-curve-default);
|
transition: opacity var(--animation-duration) var(--animation-curve-default);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&:not(.active) {
|
&:not(.active) {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -13,6 +12,8 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& + .divider {
|
& + .divider {
|
||||||
margin-top: calc(-1 * var(--list-vertical-padding));
|
margin-top: calc(-1 * var(--list-vertical-padding));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.iconMenu {
|
.iconMenu {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& .icon {
|
& .icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,9 +20,10 @@
|
||||||
|
|
||||||
.vertical,
|
.vertical,
|
||||||
.horizontal {
|
.horizontal {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
padding: calc(var(--navigation-space) / 2);
|
padding: calc(var(--navigation-space) / 2);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& > [data-react-toolbox='link'] {
|
& > [data-react-toolbox='link'] {
|
||||||
color: var(--navigation-color);
|
color: var(--navigation-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
.radio {
|
.radio {
|
||||||
border: calc(0.2 * var(--unit)) solid var(--radio-text-color);
|
border: calc(0.2 * var(--unit)) solid var(--radio-text-color);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: var(--radio-button-size);
|
height: var(--radio-button-size);
|
||||||
|
@ -13,6 +12,8 @@
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: var(--radio-button-size);
|
width: var(--radio-button-size);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background-color: var(--radio-inner-color);
|
background-color: var(--radio-inner-color);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
height: var(--slider-knob-size);
|
height: var(--slider-knob-size);
|
||||||
margin-right: var(--slider-knob-size);
|
margin-right: var(--slider-knob-size);
|
||||||
position: relative;
|
position: relative;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
width: calc(100% - var(--slider-knob-size));
|
width: calc(100% - var(--slider-knob-size));
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-right: calc(var(--slider-side-separation) + var(--slider-knob-size));
|
margin-right: calc(var(--slider-side-separation) + var(--slider-knob-size));
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
border-radius: var(--snackbar-border-radius);
|
border-radius: var(--snackbar-border-radius);
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
color: var(--snackbar-color);
|
color: var(--snackbar-color);
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: flex;
|
display: flex;
|
||||||
left: var(--snackbar-horizontal-offset);
|
left: var(--snackbar-horizontal-offset);
|
||||||
margin: var(--snackbar-vertical-offset) auto 0;
|
margin: var(--snackbar-vertical-offset) auto 0;
|
||||||
|
@ -29,6 +28,8 @@
|
||||||
transition: all var(--animation-duration) var(--animation-curve-default) var(--animation-duration);
|
transition: all var(--animation-duration) var(--animation-curve-default) var(--animation-duration);
|
||||||
z-index: var(--z-index-higher);
|
z-index: var(--z-index-higher);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.accept .button {
|
&.accept .button {
|
||||||
color: var(--snackbar-color-accept);
|
color: var(--snackbar-color-accept);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.field {
|
.field {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: var(--switch-field-margin-bottom);
|
margin-bottom: var(--switch-field-margin-bottom);
|
||||||
position: relative;
|
position: relative;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
|
@ -22,7 +23,6 @@
|
||||||
|
|
||||||
.thumb {
|
.thumb {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: var(--switch-thumb-size);
|
height: var(--switch-thumb-size);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -32,6 +32,8 @@
|
||||||
transition-timing-function: var(--animation-curve-default);
|
transition-timing-function: var(--animation-curve-default);
|
||||||
width: var(--switch-thumb-size);
|
width: var(--switch-thumb-size);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
& .ripple {
|
& .ripple {
|
||||||
background-color: var(--switch-color);
|
background-color: var(--switch-color);
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
|
|
|
@ -22,9 +22,10 @@
|
||||||
.table {
|
.table {
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
font-size: var(--table-font-size);
|
font-size: var(--table-font-size);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
|
|
|
@ -3,9 +3,10 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.tabs {
|
.tabs {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
@import './config.css';
|
@import './config.css';
|
||||||
|
|
||||||
.tooltip {
|
.tooltip {
|
||||||
composes: reset from '../helpers.css';
|
|
||||||
display: block;
|
display: block;
|
||||||
font-family: var(--preferred-font);
|
font-family: var(--preferred-font);
|
||||||
font-size: var(--tooltip-font-size);
|
font-size: var(--tooltip-font-size);
|
||||||
|
@ -20,6 +19,8 @@
|
||||||
transition: var(--animation-curve-default) var(--tooltip-animation-duration) transform;
|
transition: var(--animation-curve-default) var(--tooltip-animation-duration) transform;
|
||||||
z-index: var(--z-index-higher);
|
z-index: var(--z-index-higher);
|
||||||
|
|
||||||
|
@apply --reset;
|
||||||
|
|
||||||
&.tooltipActive {
|
&.tooltipActive {
|
||||||
transform: scale(1) translateX(-50%);
|
transform: scale(1) translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,4 +77,22 @@
|
||||||
--z-index-normal: 1;
|
--z-index-normal: 1;
|
||||||
--z-index-low: -100;
|
--z-index-low: -100;
|
||||||
--z-index-lower: -200;
|
--z-index-lower: -200;
|
||||||
|
|
||||||
|
--reset: {
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: var(--preferred-font);
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
text-size-adjust: 100%;
|
||||||
|
|
||||||
|
& *,
|
||||||
|
& *::after,
|
||||||
|
& *::before {
|
||||||
|
box-sizing: border-box;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
text-size-adjust: 100%;
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue