mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
276 lines
4.6 KiB
SCSS
276 lines
4.6 KiB
SCSS
.rating-history-container {
|
|
flex: 1 1 58%;
|
|
height: 350px;
|
|
|
|
.chart-container {
|
|
height: 80%;
|
|
|
|
.panning {
|
|
cursor: move;
|
|
}
|
|
}
|
|
|
|
.spinner {
|
|
width: 90px;
|
|
height: 90px;
|
|
margin: 120px auto 0 auto;
|
|
}
|
|
|
|
.time-selector-buttons {
|
|
margin: 4px 0 -4px 4px;
|
|
|
|
button {
|
|
display: inline-flex;
|
|
text-transform: uppercase;
|
|
border: $border;
|
|
border-right: 0;
|
|
box-shadow: none;
|
|
|
|
&:hover:not(.disabled, :disabled, [disabled]) {
|
|
box-shadow: none;
|
|
}
|
|
|
|
&:last-child {
|
|
border-right: $border;
|
|
}
|
|
|
|
&.active {
|
|
background-color: #262421;
|
|
color: $c-font;
|
|
text-shadow: none !important;
|
|
|
|
@include if-light {
|
|
background-color: #dbebfc;
|
|
}
|
|
|
|
&:hover:not(.disabled, :disabled, [disabled]) {
|
|
background-color: $c-bg-input;
|
|
|
|
@include if-light {
|
|
background-color: #e6f1fb;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Functional styling;
|
|
* These styles are required for noUiSlider to function.
|
|
* You don't need to change these rules to apply your design.
|
|
*/
|
|
.noUi-target,
|
|
.noUi-target * {
|
|
@include prevent-select;
|
|
|
|
-webkit-touch-callout: none;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
touch-action: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.noUi-target {
|
|
position: relative;
|
|
}
|
|
|
|
.noUi-base,
|
|
.noUi-connects {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Wrapper for all connect elements. */
|
|
.noUi-connects {
|
|
overflow: hidden;
|
|
z-index: 0;
|
|
}
|
|
|
|
.noUi-connect,
|
|
.noUi-origin {
|
|
will-change: transform;
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 0;
|
|
right: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
transform-origin: 0 0;
|
|
transform-style: preserve-3d;
|
|
}
|
|
|
|
/* Offset direction */
|
|
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
|
|
left: 0;
|
|
right: auto;
|
|
}
|
|
|
|
/* Give origins 0 height/width so they don't interfere with clicking the
|
|
* connect elements.
|
|
*/
|
|
.noUi-horizontal .noUi-origin {
|
|
height: 0;
|
|
}
|
|
|
|
.noUi-handle {
|
|
backface-visibility: hidden;
|
|
position: absolute;
|
|
}
|
|
|
|
.noUi-touch-area {
|
|
cursor: ew-resize;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.noUi-state-tap .noUi-connect,
|
|
.noUi-state-tap .noUi-origin {
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.noUi-state-drag * {
|
|
cursor: grabbing !important;
|
|
}
|
|
|
|
/* Slider size and handle placement;
|
|
*/
|
|
.noUi-horizontal {
|
|
height: 7px;
|
|
margin-top: 5px;
|
|
margin-left: 32px;
|
|
margin-right: 36px;
|
|
}
|
|
|
|
.noUi-horizontal .noUi-handle {
|
|
width: 5px;
|
|
height: 21px;
|
|
right: 0;
|
|
top: -6px;
|
|
}
|
|
|
|
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
|
|
left: 0;
|
|
right: auto;
|
|
}
|
|
|
|
/* Styling;
|
|
* Giving the connect element a border radius causes issues with using transform: scale
|
|
*/
|
|
.noUi-target {
|
|
background: rgba(255, 255, 255, 0);
|
|
border-radius: 4px;
|
|
border: 1px solid $c-font;
|
|
}
|
|
|
|
.noUi-connects {
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.noUi-connect {
|
|
background: rgb(118, 197, 243);
|
|
cursor: grab;
|
|
}
|
|
|
|
/* Handles and cursors;
|
|
*/
|
|
.noUi-handle {
|
|
border: 1px solid #d9d9d9;
|
|
border-radius: 3px;
|
|
background: #fff;
|
|
cursor: ew-resize;
|
|
box-shadow:
|
|
inset 0 0 1px #fff,
|
|
inset 0 1px 7px #ebebeb,
|
|
0 3px 6px -3px #bbb;
|
|
}
|
|
|
|
.noUi-active {
|
|
box-shadow:
|
|
inset 0 0 1px #fff,
|
|
inset 0 1px 7px #ddd,
|
|
0 3px 6px -3px #bbb;
|
|
}
|
|
|
|
/* Handle stripes;
|
|
*/
|
|
.noUi-handle::before,
|
|
.noUi-handle::after {
|
|
left: 17px;
|
|
}
|
|
|
|
/* Base;
|
|
*
|
|
*/
|
|
.noUi-pips,
|
|
.noUi-pips * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.noUi-pips {
|
|
position: absolute;
|
|
color: $c-font;
|
|
}
|
|
|
|
/* Values;
|
|
*
|
|
*/
|
|
.noUi-value {
|
|
position: absolute;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
}
|
|
|
|
.noUi-value-sub {
|
|
color: #ccc;
|
|
font-size: 10px;
|
|
}
|
|
|
|
/* Markings;
|
|
*
|
|
*/
|
|
.noUi-marker {
|
|
position: absolute;
|
|
background: $c-font;
|
|
}
|
|
|
|
.noUi-marker-sub {
|
|
background: #aaa;
|
|
}
|
|
|
|
.noUi-marker-large {
|
|
background: #aaa;
|
|
}
|
|
|
|
/* Horizontal layout;
|
|
*
|
|
*/
|
|
.noUi-pips-horizontal {
|
|
height: 100%;
|
|
top: 100%;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.noUi-value-horizontal {
|
|
transform: translate(-50%, 50%);
|
|
}
|
|
|
|
.noUi-rtl .noUi-value-horizontal {
|
|
transform: translate(50%, 50%);
|
|
}
|
|
|
|
.noUi-marker-horizontal.noUi-marker {
|
|
margin-left: -1px;
|
|
width: 2px;
|
|
height: 5px;
|
|
}
|
|
|
|
.noUi-marker-horizontal.noUi-marker-sub {
|
|
height: 10px;
|
|
}
|
|
|
|
.noUi-marker-horizontal.noUi-marker-large {
|
|
height: 15px;
|
|
}
|
|
}
|