Skip to content

Commit de3a64b

Browse files
committed
refactor(admin): increase default btn border-radius
1 parent 18de535 commit de3a64b

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

src/css/admin.css

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@
212212
--cs-font-size-small: .75rem;
213213
--cs-font-size-smaller: .688rem;
214214
--cs-radius-lg: .875rem;
215-
--cs-radius-sm: .375rem;
215+
--cs-radius-sm: .5rem;
216+
--cs-radius-xs: .188rem;
216217
--cs-shadow-md: 0 .5rem 1.25rem rgba(15, 23, 42, .08);
217218
--cs-shadow-sm: 0 .125rem .375rem rgba(15, 23, 42, .06);
218219
--cs-surface-bg: #ffffff;
@@ -1364,7 +1365,7 @@ td,
13641365

13651366
.btn-group-xs > .btn,
13661367
.btn-xs {
1367-
border-radius: .188rem !important;
1368+
border-radius: var(--cs-radius-xs) !important;
13681369
font-size: .65rem !important;
13691370
line-height: 1.5 !important;
13701371
padding: .0625rem .312rem !important;
@@ -1376,19 +1377,33 @@ td,
13761377
}
13771378

13781379
.btn-group-vertical > .btn:first-child {
1379-
border-top-left-radius: .188rem !important;
1380-
border-top-right-radius: .188rem !important;
1380+
border-top-left-radius: var(--cs-radius-xs) !important;
1381+
border-top-right-radius: var(--cs-radius-xs) !important;
13811382
}
13821383

13831384
.btn-group-vertical > .btn:last-child {
1384-
border-bottom-left-radius: .188rem !important;
1385-
border-bottom-right-radius: .188rem !important;
1385+
border-bottom-left-radius: var(--cs-radius-xs) !important;
1386+
border-bottom-right-radius: var(--cs-radius-xs) !important;
13861387
}
13871388

13881389
.btn-group-vertical > .btn {
13891390
border-radius: 0 !important;
13901391
}
13911392

1393+
.btn-group-xs:not(.btn-group-vertical) > .btn {
1394+
border-radius: 0 !important;
1395+
}
1396+
1397+
.btn-group-xs > .btn:first-child {
1398+
border-top-left-radius: var(--cs-radius-xs) !important;
1399+
border-bottom-left-radius: var(--cs-radius-xs) !important;
1400+
}
1401+
1402+
.btn-group-xs > .btn:last-child {
1403+
border-top-right-radius: var(--cs-radius-xs) !important;
1404+
border-bottom-right-radius: var(--cs-radius-xs) !important;
1405+
}
1406+
13921407
.btn-info {
13931408
background-color: var(--cs-color-info);
13941409
border-color: var(--cs-color-info-border);

src/css/admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)