Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/fontawesome #1230

Merged
merged 12 commits into from
Mar 28, 2024
4 changes: 2 additions & 2 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ header {
}
}

.theme-switch i {
.theme-switch svg {
@include transform(rotate(225deg));
}

.theme-select i {
.theme-select svg {
@include transform(rotate(225deg));
}

Expand Down
10 changes: 5 additions & 5 deletions assets/css/_partial/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ img.emoji {
display: inline-block !important;
}

svg.fontawesome-icon {
svg.icon {
display: inline-block;
height: 1em;
width: 1.25em;
vertical-align: -0.125em;
color: $global-font-color;
color: $global-font-color default;
[theme=dark] & {
color: $global-font-color-dark;
color: $global-font-color-dark default;
}
[theme=black] & {
color: $global-font-color-black;
color: $global-font-color-black default;
}
}

svg.fontawesome-icon > path {
svg.icon > path {
fill: currentColor;
}
7 changes: 0 additions & 7 deletions assets/css/color.css

This file was deleted.

10 changes: 10 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,16 @@ ul {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes tw-spin {
to {
transform: rotate(360deg);
}
}

.tw-animate-spin {
animation: tw-spin 1s linear infinite;
}

.tw-rounded-full {
border-radius: 9999px;
}
Expand Down
2 changes: 0 additions & 2 deletions assets/data/cdn/jsdelivr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ libFiles:
# [email protected] https://github.com/apache/echarts
echartsJS: [email protected]/dist/echarts.min.js
echartsMacaronsJS: [email protected]/theme/macarons.min.js
# [email protected] https://github.com/FortAwesome/Font-Awesome
fontawesomeFreeCSS: '@fortawesome/[email protected]/css/all.min.css'
# [email protected] https://github.com/krisk/fuse
fuseJS: [email protected]/dist/fuse.min.js
# [email protected] https://github.com/gitalk/gitalk
Expand Down
Loading
Loading