Debian Codegraph @

inst/lib/bsw5/dist/quartz/_bootswatch.scss

raw
1 // Quartz 5.3.1
2 // Bootswatch
3
4
5 // Variables
6
7 $body-bg-image: linear-gradient(90deg, shade-color($cyan, 10%), shade-color($purple, 10%), shade-color($pink, 5%)) !default;
8 $frosted-opacity: .3 !default;
9
10 // Mixins
11
12 @mixin glass($opacity: $frosted-opacity, $bg: $white) {
13 border: none;
14 box-shadow: inset 1px 1px $border-color, inset -1px -1px rgba($white, .1), $box-shadow;
15 @include frost($opacity, $bg);
16
17 a {
18 color: $card-color;
19 }
20
21 .text-muted {
22 color: rgba($card-color, .7) !important;
23 }
24 }
25
26 @mixin frost($opacity: $frosted-opacity, $bg: $white) {
27 background-color: transparent;
28 background-image: linear-gradient(125deg, rgba($bg, ($opacity)), rgba($bg, ($opacity - .1)) 70%);
29 backdrop-filter: blur(5px);
30 -webkit-backdrop-filter: blur(5px);
31 -moz-backdrop-filter: blur(5px);
32 -ms-backdrop-filter: blur(5px);
33 -o-backdrop-filter: blur(5px);
34 }
35
36 // Body
37
38 body {
39 background-image: $body-bg-image;
40 }
41
42 @include color-mode(dark) {
43 body {
44 color: $white;
45 }
46 }
47
48 // Tables
49
50 .table-secondary {
51 --bs-table-hover-color: $white;
52 }
53
54 // Buttons
55
56 .btn {
57 &-secondary {
58 color: $white;
59 border: none;
60
61 &:hover,
62 &:focus {
63 color: $white;
64 }
65
66 &.disabled {
67 color: $white;
68 }
69 }
70 }
71
72 .btn-group > .btn:not(:first-child),
73 .btn-group > .btn-group:not(:first-child) {
74 margin-left: 0;
75 }
76
77 .btn-group-vertical > .btn:not(:first-child),
78 .btn-group-vertical > .btn-group:not(:first-child) {
79 margin-top: 0;
80 }
81
82 .bg-light .btn {
83 background-color: rgba($black, .2);
84 }
85
86 // Forms
87
88 .input-group-text,
89 .form-control::file-selector-button {
90 background-color: transparent;
91 background-image: linear-gradient(125deg, rgba($white, .3), rgba($white, .2) 70%);
92 backdrop-filter: blur(5px);
93 -webkit-backdrop-filter: blur(5px);
94 -moz-backdrop-filter: blur(5px);
95 -ms-backdrop-filter: blur(5px);
96 -o-backdrop-filter: blur(5px);
97 border: none;
98 }
99
100 .form-control:hover:not(:disabled):not([readonly])::file-selector-button {
101 background-color: rgba($white, .1);
102 }
103
104 .input-group-text {
105 box-shadow: inset 1px 1px $border-color, inset -1px -1px rgba($white, .1);
106 }
107
108 .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
109 margin-left: 0;
110 border-left: none;
111 }
112
113 .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu),
114 .input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n + 3) {
115 border-right: none;
116 }
117
118 .form-select:not([multiple]) {
119 transition: border-color .15s ease-in-out;
120
121 option {
122 color: $black;
123 }
124 }
125
126 .bg-light .form-control {
127 color: $gray-800;
128 border-color: rgba($black, .2);
129
130 &::placeholder {
131 color: rgba($black, .2);
132 }
133 }
134
135 // Navs
136
137 .dropdown-menu {
138 @include glass(.3);
139 }
140
141 .selectize-dropdown {
142 @include glass(.3);
143 background-color: transparent !important;
144 }
145
146 .nav-tabs {
147 .nav-link {
148 transition: none;
149
150 &:hover,
151 &:focus {
152 color: $white;
153 isolation: auto;
154 }
155
156 &,
157 &.disabled {
158 background-color: $progress-bg;
159 }
160 }
161
162 .nav-item:first-child > .nav-link {
163 border-radius: $border-radius 0 0 $border-radius;
164 }
165
166 .nav-item:last-child > .nav-link {
167 border-radius: 0 $border-radius $border-radius 0;
168 }
169
170 .nav-item .nav-link.active,
171 .nav-item.show .nav-link {
172 @include glass(1, $white);
173 border-radius: $border-radius;
174 transform: scale(1.1);
175
176 &:hover,
177 &:focus {
178 color: $gray-800;
179 }
180 }
181
182 .dropdown-menu {
183 border-radius: $border-radius;
184 }
185 }
186
187 .nav-pills {
188 .nav-link {
189 transition: none;
190
191 &:hover,
192 &:focus {
193 color: $white;
194 isolation: auto;
195 }
196 }
197 }
198
199 // Indicators
200
201 .alert {
202 @include glass();
203 position: relative;
204 overflow: hidden;
205 color: $white;
206
207 @each $color, $value in $theme-colors {
208 $opacity: .7;
209 &-#{$color}::after {
210 position: absolute;
211 top: 0;
212 left: 0;
213 width: .5rem;
214 height: 100%;
215 content: "";
216 background-color: $value;
217 }
218 }
219
220 .alert-link {
221 color: $card-color;
222 }
223 }
224
225 .badge {
226 &.bg-secondary {
227 --bs-bg-opacity: .4;
228 }
229
230 &.bg-light {
231 color: $gray-800;
232 }
233 }
234
235 // Containers
236
237 .list-group {
238 @include glass();
239 }
240
241 .card {
242 @include glass();
243
244 @each $color, $value in $theme-colors {
245 @if ($color == secondary) {
246 --bs-secondary-rgb: transparent;
247 } @else {
248 &.bg-#{$color} {
249 background-image: none;
250 }
251 }
252 }
253
254 &.bg-light {
255 .card-header,
256 .card-body {
257 color: $gray-800;
258 }
259 }
260
261 &.border {
262 @each $color, $value in $theme-colors {
263 &-#{$color} {
264 @include glass();
265
266 .card-header {
267 background-color: $value !important;
268 border-bottom: none;
269
270 @if ($color == light) {
271 color: $gray-800;
272 }
273 }
274 }
275 }
276 }
277
278 &-header {
279 font-weight: $headings-font-weight;
280 }
281 }
282
283 .accordion-item {
284 @include glass();
285 box-shadow: none;
286 }
287
288 .toast {
289 @include glass();
290 }
291
292 .popover {
293 @include glass();
294
295 &-header {
296 border-bottom-color: $border-color;
297 }
298 }
299
300 .tooltip {
301 backdrop-filter: blur(5px);
302 -webkit-backdrop-filter: blur(5px);
303 -moz-backdrop-filter: blur(5px);
304 -ms-backdrop-filter: blur(5px);
305 -o-backdrop-filter: blur(5px);
306 }
307
308 .modal-content {
309 @include glass();
310 }
311
312 .offcanvas {
313 @include glass();
314 }