1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

refactor(ui): standardize the border radius (#1920)

Impact:
- Increase the border radius of inline code and `<kbd>` tags
- Variable `$base-radius` renamed to `$radius-lg`
This commit is contained in:
Cotes Chung
2024-08-25 18:17:38 +08:00
committed by GitHub
parent 5f4dab1745
commit 31e19c6d0f
7 changed files with 12 additions and 11 deletions

View File

@@ -16,7 +16,7 @@
}
.card-header {
$radius: calc($base-radius - 1px);
$radius: calc($radius-lg - 1px);
padding: 0.75rem;
border-radius: $radius;

View File

@@ -20,7 +20,7 @@
background: none;
%img-radius {
border-radius: $base-radius $base-radius 0 0;
border-radius: $radius-lg $radius-lg 0 0;
}
.preview-img {
@@ -131,7 +131,7 @@
/* Tablet */
@media all and (min-width: 768px) {
%img-radius {
border-radius: 0 $base-radius $base-radius 0;
border-radius: 0 $radius-lg $radius-lg 0;
}
#post-list {

View File

@@ -173,12 +173,12 @@ header {
}
&:first-child {
border-radius: $base-radius 0 0 $base-radius;
border-radius: $radius-lg 0 0 $radius-lg;
left: 0.5px;
}
&:last-child {
border-radius: 0 $base-radius $base-radius 0;
border-radius: 0 $radius-lg $radius-lg 0;
right: 0.5px;
}
}