-
Notifications
You must be signed in to change notification settings - Fork 221
Expand file tree
/
Copy pathforms.scss
More file actions
131 lines (127 loc) · 2.65 KB
/
Copy pathforms.scss
File metadata and controls
131 lines (127 loc) · 2.65 KB
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
// form elements
.form-control {
padding: 0.4rem;
line-height: normal;
}
.form-control:invalid {
background: #ffaaaa80;
}
[data-bs-theme='dark'] {
.form-control:invalid {
background: #ff666680;
}
}
.form-group .control-label {
font-weight: bold;
margin-top: auto;
margin-bottom: auto;
}
@include media-breakpoint-up(md) {
.form-group .control-label {
text-align: right;
}
}
.form-inline {
// don't use flexbox here, this would break too much of our forms
display: block;
}
// enhance style buttons on hover and focus
@mixin btn($class, $bg) {
.btn-#{$class} {
background-size: 200% 200%;
background-position: 50%;
&:focus {
background-color: $bg;
}
&:hover,
&:active:hover {
background-color: darken($bg, 6%);
}
&:active {
background-color: darken($bg, 12%);
@include gradient-radial(darken($bg, 12%) 10%, $bg 11%);
background-size: 1000% 1000%;
@include box-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}
}
}
.btn {
border: none;
@include box-shadow(1px 1px 4px rgba(0, 0, 0, 0.4));
@include transition(all 0.4s);
&-link {
border-radius: $btn-border-radius-base;
@include box-shadow(none);
color: $btn-default-color;
&:hover,
&:focus {
@include box-shadow(none);
color: $btn-default-color;
text-decoration: none;
}
}
&-default.disabled {
background-color: rgba(0, 0, 0, 10 / 100);
color: rgba(0, 0, 0, 40 / 100);
opacity: 1;
}
}
.btn-group {
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn,
.btn-group + .btn-group {
margin-left: 0;
}
&-vertical {
> .btn + .btn,
> .btn + .btn-group,
> .btn-group + .btn,
> .btn-group + .btn-group {
margin-top: 0;
}
}
}
.darkmode {
.btn.btn-light {
background-color: #070605;
border-color: #070605;
}
}
// wells (used for comments)
.well-lg {
padding: 24px;
border-radius: 3px;
}
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #fdfdfd;
border: 1px solid #e3e3e3;
border-radius: 1px;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 5 / 100);
}
[data-bs-theme='dark'] .well {
background-color: $default-bg-color-dark;
border-color: #1c1c1c;
}
// round images (used for comments) and badges inside summary
.img-circle {
border-radius: 50%;
}
.editor-yaml-guide {
text-align: left !important;
}
.darkmode {
.custom-select {
color: $default-font-color-dark;
background-color: $default-bg-color-dark;
}
}
// formatting for validation warnings
.is-invalid-non-critical {
border-color: var(--bs-warning) !important;
background-image: none !important;
padding-right: 0.5rem !important;
}