Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit 3be873a

Browse files
committed
refactor: add SVGs inside html
1 parent 6a3d30a commit 3be873a

File tree

4 files changed

+2272
-576
lines changed

4 files changed

+2272
-576
lines changed

pug/views/base/switches.pug

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -132,48 +132,48 @@ block view
132132
.col-md-6
133133
.card
134134
.card-header
135-
| Switch outline alternative
135+
| Switch opposite
136136
.card-body
137-
label.c-switch.c-switch-outline-primary-alt
137+
label.c-switch.c-switch-opposite-primary
138138
input.c-switch-input(type='checkbox', checked='')
139139
span.c-switch-slider
140-
label.c-switch.c-switch-outline-secondary-alt
140+
label.c-switch.c-switch-opposite-secondary
141141
input.c-switch-input(type='checkbox', checked='')
142142
span.c-switch-slider
143-
label.c-switch.c-switch-outline-success-alt
143+
label.c-switch.c-switch-opposite-success
144144
input.c-switch-input(type='checkbox', checked='')
145145
span.c-switch-slider
146-
label.c-switch.c-switch-outline-warning-alt
146+
label.c-switch.c-switch-opposite-warning
147147
input.c-switch-input(type='checkbox', checked='')
148148
span.c-switch-slider
149-
label.c-switch.c-switch-outline-info-alt
149+
label.c-switch.c-switch-opposite-info
150150
input.c-switch-input(type='checkbox', checked='')
151151
span.c-switch-slider
152-
label.c-switch.c-switch-outline-danger-alt
152+
label.c-switch.c-switch-opposite-danger
153153
input.c-switch-input(type='checkbox', checked='')
154154
span.c-switch-slider
155155
// /.col
156156
.col-md-6
157157
.card
158158
.card-header
159-
| Switch outline alternative - pills
159+
| Switch opposite - pills
160160
.card-body
161-
label.c-switch.c-switch-pill.c-switch-outline-primary-alt
161+
label.c-switch.c-switch-pill.c-switch-opposite-primary
162162
input.c-switch-input(type='checkbox', checked='')
163163
span.c-switch-slider
164-
label.c-switch.c-switch-pill.c-switch-outline-secondary-alt
164+
label.c-switch.c-switch-pill.c-switch-opposite-secondary
165165
input.c-switch-input(type='checkbox', checked='')
166166
span.c-switch-slider
167-
label.c-switch.c-switch-pill.c-switch-outline-success-alt
167+
label.c-switch.c-switch-pill.c-switch-opposite-success
168168
input.c-switch-input(type='checkbox', checked='')
169169
span.c-switch-slider
170-
label.c-switch.c-switch-pill.c-switch-outline-warning-alt
170+
label.c-switch.c-switch-pill.c-switch-opposite-warning
171171
input.c-switch-input(type='checkbox', checked='')
172172
span.c-switch-slider
173-
label.c-switch.c-switch-pill.c-switch-outline-info-alt
173+
label.c-switch.c-switch-pill.c-switch-opposite-info
174174
input.c-switch-input(type='checkbox', checked='')
175175
span.c-switch-slider
176-
label.c-switch.c-switch-pill.c-switch-outline-danger-alt
176+
label.c-switch.c-switch-pill.c-switch-opposite-danger
177177
input.c-switch-input(type='checkbox', checked='')
178178
span.c-switch-slider
179179
// /.col
@@ -276,48 +276,48 @@ block view
276276
.col-md-6
277277
.card
278278
.card-header
279-
| Switch with text outline alternative
279+
| Switch with text opposite
280280
.card-body
281-
label.c-switch.c-switch-label.c-switch-outline-primary-alt
281+
label.c-switch.c-switch-label.c-switch-opposite-primary
282282
input.c-switch-input(type='checkbox', checked='')
283283
span.c-switch-slider(data-checked='On', data-unchecked='Off')
284-
label.c-switch.c-switch-label.c-switch-outline-secondary-alt
284+
label.c-switch.c-switch-label.c-switch-opposite-secondary
285285
input.c-switch-input(type='checkbox', checked='')
286286
span.c-switch-slider(data-checked='On', data-unchecked='Off')
287-
label.c-switch.c-switch-label.c-switch-outline-success-alt
287+
label.c-switch.c-switch-label.c-switch-opposite-success
288288
input.c-switch-input(type='checkbox', checked='')
289289
span.c-switch-slider(data-checked='On', data-unchecked='Off')
290-
label.c-switch.c-switch-label.c-switch-outline-warning-alt
290+
label.c-switch.c-switch-label.c-switch-opposite-warning
291291
input.c-switch-input(type='checkbox', checked='')
292292
span.c-switch-slider(data-checked='On', data-unchecked='Off')
293-
label.c-switch.c-switch-label.c-switch-outline-info-alt
293+
label.c-switch.c-switch-label.c-switch-opposite-info
294294
input.c-switch-input(type='checkbox', checked='')
295295
span.c-switch-slider(data-checked='On', data-unchecked='Off')
296-
label.c-switch.c-switch-label.c-switch-outline-danger-alt
296+
label.c-switch.c-switch-label.c-switch-opposite-danger
297297
input.c-switch-input(type='checkbox', checked='')
298298
span.c-switch-slider(data-checked='On', data-unchecked='Off')
299299
// /.col
300300
.col-md-6
301301
.card
302302
.card-header
303-
| Switch with text outline alternative - pills
303+
| Switch with text opposite - pills
304304
.card-body
305-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-primary-alt
305+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-primary
306306
input.c-switch-input(type='checkbox', checked='')
307307
span.c-switch-slider(data-checked='On', data-unchecked='Off')
308-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-secondary-alt
308+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-secondary
309309
input.c-switch-input(type='checkbox', checked='')
310310
span.c-switch-slider(data-checked='On', data-unchecked='Off')
311-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-success-alt
311+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-success
312312
input.c-switch-input(type='checkbox', checked='')
313313
span.c-switch-slider(data-checked='On', data-unchecked='Off')
314-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-warning-alt
314+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-warning
315315
input.c-switch-input(type='checkbox', checked='')
316316
span.c-switch-slider(data-checked='On', data-unchecked='Off')
317-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-info-alt
317+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-info
318318
input.c-switch-input(type='checkbox', checked='')
319319
span.c-switch-slider(data-checked='On', data-unchecked='Off')
320-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-danger-alt
320+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-danger
321321
input.c-switch-input(type='checkbox', checked='')
322322
span.c-switch-slider(data-checked='On', data-unchecked='Off')
323323
// /.col
@@ -420,48 +420,48 @@ block view
420420
.col-md-6
421421
.card
422422
.card-header
423-
| Switch with icon outline alternative
423+
| Switch with icon opposite
424424
.card-body
425-
label.c-switch.c-switch-label.c-switch-outline-primary-alt
425+
label.c-switch.c-switch-label.c-switch-opposite-primary
426426
input.c-switch-input(type='checkbox', checked='')
427427
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
428-
label.c-switch.c-switch-label.c-switch-outline-secondary-alt
428+
label.c-switch.c-switch-label.c-switch-opposite-secondary
429429
input.c-switch-input(type='checkbox', checked='')
430430
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
431-
label.c-switch.c-switch-label.c-switch-outline-success-alt
431+
label.c-switch.c-switch-label.c-switch-opposite-success
432432
input.c-switch-input(type='checkbox', checked='')
433433
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
434-
label.c-switch.c-switch-label.c-switch-outline-warning-alt
434+
label.c-switch.c-switch-label.c-switch-opposite-warning
435435
input.c-switch-input(type='checkbox', checked='')
436436
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
437-
label.c-switch.c-switch-label.c-switch-outline-info-alt
437+
label.c-switch.c-switch-label.c-switch-opposite-info
438438
input.c-switch-input(type='checkbox', checked='')
439439
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
440-
label.c-switch.c-switch-label.c-switch-outline-danger-alt
440+
label.c-switch.c-switch-label.c-switch-opposite-danger
441441
input.c-switch-input(type='checkbox', checked='')
442442
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
443443
// /.col
444444
.col-md-6
445445
.card
446446
.card-header
447-
| Switch with icon outline alternative - pills
447+
| Switch with icon opposite - pills
448448
.card-body
449-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-primary-alt
449+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-primary
450450
input.c-switch-input(type='checkbox', checked='')
451451
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
452-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-secondary-alt
452+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-secondary
453453
input.c-switch-input(type='checkbox', checked='')
454454
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
455-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-success-alt
455+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-success
456456
input.c-switch-input(type='checkbox', checked='')
457457
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
458-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-warning-alt
458+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-warning
459459
input.c-switch-input(type='checkbox', checked='')
460460
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
461-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-info-alt
461+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-info
462462
input.c-switch-input(type='checkbox', checked='')
463463
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
464-
label.c-switch.c-switch-label.c-switch-pill.c-switch-outline-danger-alt
464+
label.c-switch.c-switch-label.c-switch-pill.c-switch-opposite-danger
465465
input.c-switch-input(type='checkbox', checked='')
466466
span.c-switch-slider(data-checked!='&#x2713', data-unchecked!='&#x2715')
467467
// /.col

pug/views/icons/brands.pug

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ block view
99
.fade-in
1010
.card.card-default
1111
.card-header
12-
| CoreUI Icons
12+
| Brand Icons
1313
.card-header-actions
1414
a.card-header-action(href='https://github.com/coreui/coreui-icons', target='_blank') Github
1515
.card-body
1616
.row.text-center
1717
each icon in icons
1818
.col-6.col-sm-4.col-md-2
19-
i(class='c-icon c-icon-2xl mt-5 fab fa-' + icon)
19+
svg.c-icon.c-icon-2xl.mt-5
20+
use(xlink:href='assets/icons/brands/brands-symbol-defs.svg#'+ icon)
2021
div=icon
2122
// /.row
2223

0 commit comments

Comments
 (0)