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

refactor: uniform block border radius

scope:
- categories
- posts (prompt, code snippets)
This commit is contained in:
Cotes Chung
2023-03-21 10:59:20 +08:00
parent 414dd132ae
commit 2a4d67d65c
6 changed files with 25 additions and 25 deletions

View File

@@ -9,8 +9,14 @@
.categories {
margin-bottom: 2rem;
&.card,
.list-group {
@extend %rounded;
}
.card-header {
padding-right: 12px;
border-radius: $base-radius $base-radius 0 0;
}
i {
@@ -42,9 +48,7 @@
position: relative;
height: 0.7rem;
width: 1rem;
transition: -webkit-transform 300ms ease;
transition: transform 300ms ease;
transition: transform 300ms ease, -webkit-transform 300ms ease;
}
&:hover {
@@ -62,6 +66,5 @@
}
.rotate {
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}

View File

@@ -19,7 +19,7 @@
.card {
%img-radius {
border-radius: $card-radius $card-radius 0 0;
border-radius: $base-radius $base-radius 0 0;
}
.preview-img {
@@ -146,7 +146,7 @@
@media all and (min-width: 768px) {
#post-list {
%img-radius {
border-radius: 0 $card-radius $card-radius 0;
border-radius: 0 $base-radius $base-radius 0;
}
.card {

View File

@@ -205,12 +205,12 @@ h1 + .post-meta {
}
&:first-child {
border-radius: $card-radius 0 0 $card-radius;
border-radius: $base-radius 0 0 $base-radius;
left: 0.5px;
}
&:last-child {
border-radius: 0 $card-radius $card-radius 0;
border-radius: 0 $base-radius $base-radius 0;
right: 0.5px;
}
}