Skip to content

Commit 39f8a65

Browse files
committed
refactor: update responsive behavior
1 parent 4af5f58 commit 39f8a65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+251
-252
lines changed

src/pug/_partials/sidebar.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.sidebar.sidebar-dark.sidebar-fixed.border-end.sidebar-dark#sidebar
1+
.sidebar.sidebar-dark.sidebar-fixed.border-end#sidebar
22
.sidebar-header.border-bottom
33
.sidebar-brand
44
svg.sidebar-brand-full(width="88" height="32" alt="CoreUI Logo")

src/pug/views/index.pug

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ block breadcrumb
2020
)
2121

2222
block view
23-
.row
23+
.row.g-4.mb-4
2424
.col-sm-6.col-xl-3
25-
.card.mb-4.text-white.bg-primary
25+
.card.text-white.bg-primary
2626
.card-body.pb-0.d-flex.justify-content-between.align-items-start
2727
div
2828
.fs-4.fw-semibold 26K
@@ -44,7 +44,7 @@ block view
4444
canvas#card-chart1.chart(height='70')
4545
// /.col
4646
.col-sm-6.col-xl-3
47-
.card.mb-4.text-white.bg-info
47+
.card.text-white.bg-info
4848
.card-body.pb-0.d-flex.justify-content-between.align-items-start
4949
div
5050
.fs-4.fw-semibold $6.200
@@ -65,7 +65,7 @@ block view
6565
canvas#card-chart2.chart(height='70')
6666
// /.col
6767
.col-sm-6.col-xl-3
68-
.card.mb-4.text-white.bg-warning
68+
.card.text-white.bg-warning
6969
.card-body.pb-0.d-flex.justify-content-between.align-items-start
7070
div
7171
.fs-4.fw-semibold 2.49%
@@ -86,7 +86,7 @@ block view
8686
canvas#card-chart3.chart(height='70')
8787
// /.col
8888
.col-sm-6.col-xl-3
89-
.card.mb-4.text-white.bg-danger
89+
.card.text-white.bg-danger
9090
.card-body.pb-0.d-flex.justify-content-between.align-items-start
9191
div
9292
.fs-4.fw-semibold 44K
@@ -130,36 +130,36 @@ block view
130130
.c-chart-wrapper(style='height:300px;margin-top:40px;')
131131
canvas#main-chart.chart(height='300')
132132
.card-footer
133-
.row.row-cols-1.row-cols-sm-2.row-cols-lg-4.row-cols-xl-5.text-center
134-
.col.mb-2
133+
.row.row-cols-1.row-cols-sm-2.row-cols-lg-4.row-cols-xl-5.g-4.mb-2.text-center
134+
.col
135135
.text-body-secondary Visits
136136
.fw-semibold.text-truncate 29.703 Users (40%)
137137
.progress.progress-thin.mt-2
138138
.progress-bar.bg-success(role='progressbar', style='width: 40%', aria-valuenow='40', aria-valuemin='0', aria-valuemax='100')
139-
.col.mb-2
139+
.col
140140
.text-body-secondary Unique
141141
.fw-semibold.text-truncate 24.093 Users (20%)
142142
.progress.progress-thin.mt-2
143143
.progress-bar.bg-info(role='progressbar', style='width: 20%', aria-valuenow='20', aria-valuemin='0', aria-valuemax='100')
144-
.col.mb-2
144+
.col
145145
.text-body-secondary Pageviews
146146
.fw-semibold.text-truncate 78.706 Views (60%)
147147
.progress.progress-thin.mt-2
148148
.progress-bar.bg-warning(role='progressbar', style='width: 60%', aria-valuenow='60', aria-valuemin='0', aria-valuemax='100')
149-
.col.mb-2
149+
.col
150150
.text-body-secondary New Users
151151
.fw-semibold.text-truncate 22.123 Users (80%)
152152
.progress.progress-thin.mt-2
153153
.progress-bar.bg-danger(role='progressbar', style='width: 80%', aria-valuenow='80', aria-valuemin='0', aria-valuemax='100')
154-
.col.mb-2.d-none.d-xl-block
154+
.col.d-none.d-xl-block
155155
.text-body-secondary Bounce Rate
156156
.fw-semibold.text-truncate 40.15%
157157
.progress.progress-thin.mt-2
158158
.progress-bar(role='progressbar', style='width: 40%', aria-valuenow='40', aria-valuemin='0', aria-valuemax='100')
159-
// /.card.mb-4
160-
.row
159+
// /.card
160+
.row.g-4.mb-4
161161
.col-sm-6.col-lg-4
162-
.card.mb-4(style='--cui-card-cap-bg: #3b5998')
162+
.card(style='--cui-card-cap-bg: #3b5998')
163163
.card-header.position-relative.d-flex.justify-content-center.align-items-center
164164
svg.icon.icon-3xl.text-white.my-4
165165
use(xlink:href="node_modules/@coreui/icons/sprites/brand.svg#cib-facebook-f")
@@ -175,7 +175,7 @@ block view
175175
.text-uppercase.text-body-secondary.small feeds
176176
// /.col
177177
.col-sm-6.col-lg-4
178-
.card.mb-4(style='--cui-card-cap-bg: #00aced')
178+
.card(style='--cui-card-cap-bg: #00aced')
179179
.card-header.position-relative.d-flex.justify-content-center.align-items-center
180180
svg.icon.icon-3xl.text-white.my-4
181181
use(xlink:href="node_modules/@coreui/icons/sprites/brand.svg#cib-twitter")
@@ -191,7 +191,7 @@ block view
191191
.text-uppercase.text-body-secondary.small tweets
192192
// /.col
193193
.col-sm-6.col-lg-4
194-
.card.mb-4(style='--cui-card-cap-bg: #4875b4')
194+
.card(style='--cui-card-cap-bg: #4875b4')
195195
.card-header.position-relative.d-flex.justify-content-center.align-items-center
196196
svg.icon.icon-3xl.text-white.my-4
197197
use(xlink:href="node_modules/@coreui/icons/sprites/brand.svg#cib-linkedin")
@@ -390,14 +390,14 @@ block view
390390
.text-nowrap Yiorgos Avraamu
391391
.small.text-body-secondary.text-nowrap
392392
span New
393-
| | Registered: Jan 1, 2020
393+
| | Registered: Jan 1, 2023
394394
td.text-center
395395
svg.icon.icon-xl
396396
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-us")
397397
td
398398
.d-flex.justify-content-between.align-items-baseline
399399
.fw-semibold 50%
400-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
400+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
401401
.progress.progress-thin
402402
.progress-bar.bg-success(role='progressbar', style='width: 50%', aria-valuenow='50', aria-valuemin='0', aria-valuemax='100')
403403
td.text-center
@@ -424,14 +424,14 @@ block view
424424
.text-nowrap Avram Tarasios
425425
.small.text-body-secondary.text-nowrap
426426
span Recurring
427-
| | Registered: Jan 1, 2020
427+
| | Registered: Jan 1, 2023
428428
td.text-center
429429
svg.icon.icon-xl
430430
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-br")
431431
td
432432
.d-flex.justify-content-between.align-items-baseline
433433
.fw-semibold 10%
434-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
434+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
435435
.progress.progress-thin
436436
.progress-bar.bg-info(role='progressbar', style='width: 10%', aria-valuenow='10', aria-valuemin='0', aria-valuemax='100')
437437
td.text-center
@@ -458,14 +458,14 @@ block view
458458
.text-nowrap Quintin Ed
459459
.small.text-body-secondary.text-nowrap
460460
span New
461-
| | Registered: Jan 1, 2020
461+
| | Registered: Jan 1, 2023
462462
td.text-center
463463
svg.icon.icon-xl
464464
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-in")
465465
td
466466
.d-flex.justify-content-between.align-items-baseline
467467
.fw-semibold 74%
468-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
468+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
469469
.progress.progress-thin
470470
.progress-bar.bg-warning(role='progressbar', style='width: 74%', aria-valuenow='74', aria-valuemin='0', aria-valuemax='100')
471471
td.text-center
@@ -492,14 +492,14 @@ block view
492492
.text-nowrap Enéas Kwadwo
493493
.small.text-body-secondary.text-nowrap
494494
span New
495-
| | Registered: Jan 1, 2020
495+
| | Registered: Jan 1, 2023
496496
td.text-center
497497
svg.icon.icon-xl
498498
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-fr")
499499
td
500500
.d-flex.justify-content-between.align-items-baseline
501501
.fw-semibold 98%
502-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
502+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
503503
.progress.progress-thin
504504
.progress-bar.bg-danger(role='progressbar', style='width: 98%', aria-valuenow='98', aria-valuemin='0', aria-valuemax='100')
505505
td.text-center
@@ -526,14 +526,14 @@ block view
526526
.text-nowrap Agapetus Tadeáš
527527
.small.text-body-secondary.text-nowrap
528528
span New
529-
| | Registered: Jan 1, 2020
529+
| | Registered: Jan 1, 2023
530530
td.text-center
531531
svg.icon.icon-xl
532532
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-es")
533533
td
534534
.d-flex.justify-content-between.align-items-baseline
535535
.fw-semibold 22%
536-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
536+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
537537
.progress.progress-thin
538538
.progress-bar.bg-info(role='progressbar', style='width: 22%', aria-valuenow='22', aria-valuemin='0', aria-valuemax='100')
539539
td.text-center
@@ -560,14 +560,14 @@ block view
560560
.text-nowrap Friderik Dávid
561561
.small.text-body-secondary.text-nowrap
562562
span New
563-
| | Registered: Jan 1, 2020
563+
| | Registered: Jan 1, 2023
564564
td.text-center
565565
svg.icon.icon-xl
566566
use(xlink:href="node_modules/@coreui/icons/sprites/flag.svg#cif-pl")
567567
td
568568
.d-flex.justify-content-between.align-items-baseline
569569
.fw-semibold 43%
570-
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2020 - Jul 10, 2020
570+
.text-nowrap.small.text-body-secondary.ms-3 Jun 11, 2023 - Jul 10, 2023
571571
.progress.progress-thin
572572
.progress-bar.bg-success(role='progressbar', style='width: 43%', aria-valuenow='43', aria-valuemin='0', aria-valuemax='100')
573573
td.text-center

0 commit comments

Comments
 (0)