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

@@ -79,6 +79,8 @@ h5 {
a {
@extend %link-color;
text-decoration: none;
}
img {
@@ -200,13 +202,8 @@ footer {
a {
@extend %text-color;
&:link {
@extend %no-decoration;
}
&:hover {
@extend %link-hover;
@extend %no-decoration;
}
}
@@ -657,10 +654,6 @@ i {
box-shadow: 0 0 8px 0 var(--btn-box-shadow) !important;
}
.no-text-decoration {
@extend %no-decoration;
}
/* overwrite bootstrap muted */
.text-muted {
color: var(--text-muted-color) !important;
@@ -763,10 +756,6 @@ $btn-mb: 0.5rem;
a {
@extend %sidebar-links;
&:hover {
@extend %no-decoration;
}
}
#avatar {
@@ -1263,8 +1252,6 @@ $btn-mb: 0.5rem;
}
&.toast {
display: none;
&.show {
display: block;
min-width: 20rem;
@@ -1615,7 +1602,7 @@ $btn-mb: 0.5rem;
#search-wrapper {
margin-right: calc(
#{$main-content-max-width} * 0.25 - #{$search-max-width}
#{$main-content-max-width} * 0.25 - #{$search-max-width} - 0.75rem
);
}
@@ -1623,6 +1610,8 @@ $btn-mb: 0.5rem;
#main,
footer > .container {
max-width: $main-content-max-width;
padding-left: 1.75rem !important;
padding-right: 1.75rem !important;
}
#core-wrapper,

View File

@@ -122,10 +122,6 @@
-webkit-box-orient: vertical;
}
%no-decoration {
text-decoration: none;
}
/* ---------- scss mixin --------- */
@mixin mt-mb($value) {

View File

@@ -117,10 +117,6 @@ code {
blockquote & {
color: inherit;
}
.highlight > & {
color: transparent;
}
}
td.rouge-code {
@@ -176,7 +172,7 @@ div {
align-items: center;
height: $code-header-height;
margin-left: 1rem;
margin-right: 0.25rem;
margin-right: 0.5rem;
/* the label block */
span {