forked from RedHatProductSecurity/cvss-v4-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
133 lines (122 loc) · 3.33 KB
/
styles.css
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
h1, h2, h3, h4, h5, h6 {
margin-top: 0.4rem;
}
mark {
overflow-wrap: break-word;
}
#header {
position: fixed;
top: 0;
left: 0;
padding-left: 0.4rem;
padding-right: 0.4rem;
width: 100%;
background-color: white;
z-index: 1;
border-bottom: 1px solid lightgray;
}
.metric-type {
background-color: #d9d9d9;
border-radius: 20px;
padding: 10px;
padding-top: 5px;
margin-bottom: 10px;
border: 2px solid #a6823d;
}
.metric-group {
background-color: #f2f2f2;
border-radius: 15px;
padding: 10px;
padding-top: 2px;
margin-bottom: 5px;
border: 1px solid #a6823d;
}
.btn-m {
width:100%;
display:block;
border-radius: 8px;
}
/*
If we want green buttons, there are two options:
1) We have to override these class colors, or build our own version
of Spectre.css framework by modifying
https://github.com/picturepan2/spectre/blob/master/src/_variables.scss
2) We can override class colors below, they are copy/paste from Spectre.css framework
Useful tools:
https://sassme.jim-nielsen.com/
https://www.rapidtables.com/convert/color/hex-to-rgb.html
*/
.btn {
background:#fff;
border:.05rem solid #218a39; /* primary */
color:#1a6d2d; /* primary */
}
.btn:focus {
box-shadow:0 0 0 .1rem rgba(33, 138, 57, .2) /* primary in RGB */
}
.btn:focus,
.btn:hover {
background:#d0f4d8; /* primary lighten 37 */
border-color:#1e7e34; /* primary darken 3 */
}
.btn.active,
.btn:active {
background:#1e7e34; /* primary darken 3 */
border-color:#19692b; /* primary darken 8 */
color:#fff;
}
.btn.btn-primary {
background:#218a39; /* primary */
border-color:#1e7e34; /* primary darken 3 */
color:#fff
}
.btn.btn-primary:focus,
.btn.btn-primary:hover {
background:#1c7531; /* primary darken 5 */
border-color:#19692b; /* primary darken 8 */
color:#fff
}
.btn.btn-primary.active,
.btn.btn-primary:active {
background:#1a6d2d; /* primary darken 7 */
border-color:#176128; /* primary darken 10 */
color:#fff
}
/* Original colors
.btn {
background:#fff;
border:.05rem solid #5755d9; // primary
color:#5755d9; // primary
}
.btn:focus {
box-shadow:0 0 0 .1rem rgba(87,85,217,.2) // primary in RGB
}
.btn:focus,
.btn:hover {
background:#f1f1fc; // primary lighten 37
border-color:#4b48d6; // primary darken 3
}
.btn.active,
.btn:active {
background:#4b48d6; // primary darken 3
border-color:#3634d2; // primary darken 8
color:#fff;
}
.btn.btn-primary {
background:#5755d9; // primary
border-color:#4b48d6; // primary darken 3
color:#fff
}
.btn.btn-primary:focus,
.btn.btn-primary:hover {
background:#4240d4; // primary darken 5
border-color:#3634d2; // primary darken 8
color:#fff
}
.btn.btn-primary.active,
.btn.btn-primary:active {
background:#3a38d2; // primary darken 7
border-color:#302ecd; // primary darken 10
color:#fff
}
*/