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

refactor(deps): upgrade bootstrap from v4.6 to v5.2

- update class name of the spacing, font style, cards and toasts
- update attribute names &  tooltip usage
- remove custom smooth scroll
- syntax colors
This commit is contained in:
Cotes Chung
2023-04-10 10:54:27 +08:00
parent 3210c59466
commit d9e1d84f08
41 changed files with 170 additions and 304 deletions

View File

@@ -8,6 +8,7 @@
.categories {
margin-bottom: 2rem;
border-color: var(--categories-border);
&.card,
.list-group {
@@ -15,8 +16,16 @@
}
.card-header {
padding-right: 12px;
border-radius: $base-radius $base-radius 0 0;
$radius: calc($base-radius - 1px);
padding: 0.75rem;
border-radius: $radius;
border-bottom: 0;
&.hide-border-bottom {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
i {
@@ -34,6 +43,10 @@
border-top-left-radius: 0;
border-top-right-radius: 0;
}
&:last-child {
border-bottom: 0;
}
}
} /* .categories */

View File

@@ -43,7 +43,6 @@
.card-title {
@extend %text-clip;
@include mt-mb(0.5rem);
font-size: 1.25rem;
}
@@ -53,9 +52,6 @@
}
.card-text.post-content {
margin-top: 0;
margin-bottom: 0.5rem;
@extend %muted;
p {
@@ -160,11 +156,6 @@
width: 60%;
padding: 1.75rem 1.75rem 1.25rem 1.75rem;
.card-title {
margin-top: 0;
margin-bottom: 0.5rem;
}
.card-text {
display: inherit !important;
}
@@ -183,11 +174,6 @@
/* Hide SideBar and TOC */
@media all and (max-width: 830px) {
#post-list .card {
margin-left: -0.5rem;
margin-right: -0.5rem;
}
.pagination {
justify-content: space-evenly;

View File

@@ -347,13 +347,10 @@ h1 + .post-meta {
-webkit-box-orient: vertical;
}
a:hover {
@extend %no-decoration;
}
.card {
h3 {
@extend %text-color;
@extend %text-clip;
}
}
}