-
Notifications
You must be signed in to change notification settings - Fork 8
/
styles.scss
88 lines (72 loc) · 2.05 KB
/
styles.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
* Copyright (c) 2015 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
*/
@use "sass:color";
$nordic-blue: #00a9ce;
$blue-slate: #0033a0;
$white: white;
$black: black;
$primary: $nordic-blue;
$primary-darkened: color.scale($nordic-blue, $lightness: -10%);
$secondary: $white;
$accent: $blue-slate;
$gray-50: #eceff1;
$gray-100: #cfd8dc;
$gray-200: #b0bec5;
$gray-300: #90a4ae;
$gray-400: #78909c;
$gray-500: #607d8b;
$gray-600: #546e7a;
$gray-700: #455a64;
$gray-800: #37474f;
$gray-900: #263238;
$red: #f44336;
$indigo: #3f51b5;
$amber: #ffc107;
$purple: #9c27b0;
$green: #4caf50;
$deep-purple: #673ab7;
$orange: #ff9800;
$lime: #cddc39;
$pink: #e91e63;
$brand-success: $green;
$brand-warning: $orange;
$brand-danger: $red;
$custom-control-indicator-bg: $gray-50;
$custom-control-indicator-checked-bg: $gray-300;
$side-panel-width: 260px;
$nav-bar-height: 40px;
$log-viewer-height: 155px;
$visibility-bar-height: 32px;
$font-weight-light: 300;
$font-weight-normal: 400;
$font-weight-bold: 700;
$normal-transition: 0.2s ease-in-out;
$disabled-opacity: 0.38;
@mixin scrollbars-helper($background-color, $scrollbar-color, $scrollbar-hover-color) {
&::-webkit-scrollbar, &::-webkit-scrollbar-corner {
width: 14px;
height: 14px;
}
&::-webkit-scrollbar-thumb {
background: $scrollbar-color;
border-radius: 14px;
border: 5px solid $background-color;
}
&::-webkit-scrollbar-thumb:hover {
background: $scrollbar-hover-color;
}
}
@mixin scrollbars($background-color) {
@if $background-color == $gray-50 or
$background-color == $gray-100 or
$background-color == $white {
@include scrollbars-helper($background-color, $gray-500, $gray-700);
} @else if $background-color == $gray-900 or $background-color == $gray-700 {
@include scrollbars-helper($background-color, $gray-400, $gray-200);
} @else {
@error "Unable to configure scrollbars for background color #{$background-color}. You must add a configuration for it.";
}
}