fix(i): missing widget styles

This commit is contained in:
Cell
2026-01-30 12:23:48 +08:00
parent e23a50d755
commit 9e946c6316
7 changed files with 108 additions and 102 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
@import '_blur';
@import '_compatibility';
@import '_link';
@import '_loading';
@import '_scrollbar-width';
@import '_z-index';
@import 'blur';
@import 'compatibility';
@import 'link';
@import 'loading';
@import 'scrollbar-width';
@import 'z-index';
@@ -1,14 +1,14 @@
@import '_admonition';
@import '_bilibili';
@import '_bluesky';
@import '_douyin';
@import '_cardlink';
@import '_center-quote';
@import '_echarts';
@import '_file-tree';
@import '_instagram';
@import '_mapbox';
@import '_mermaid';
@import '_tabs';
@import '_timeline';
@import '_version';
@import 'admonition';
@import 'bilibili';
@import 'bluesky';
@import 'douyin';
@import 'cardlink';
@import 'center-quote';
@import 'echarts';
@import 'file-tree';
@import 'instagram';
@import 'mapbox';
@import 'mermaid';
@import 'tabs';
@import 'timeline';
@import 'version';
+63 -59
View File
@@ -1,63 +1,67 @@
/**
* Style of layout named 'friends'.
* @Author: Lruihao <https://lruihao.cn>
* @Updated: 2022/3/11 21:36
*/
// Style of layout friends
.friend-links {
margin-top: 1rem;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
}
@media (max-width: 576px) {
.special.friends {
.friend-links {
justify-content: space-around;
margin-top: 1rem;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
}
@media (max-width: 576px) {
.friend-links {
justify-content: space-around;
}
}
.friend-link {
width: 150px;
height: 200px;
font-size: 1rem;
text-align: center;
background: rgba(255, 255, 255, 0.3);
box-sizing: border-box;
box-shadow: 3px 3px 5px #aaa;
@include border-radius($global-border-radius);
border: none;
transition-duration: 0.3s;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.friend-link:hover {
background: #fff;
@include transform(scale(1.03));
box-shadow: 0 0 3px #aaa;
}
.friend-avatar {
object-fit: cover;
object-position: center;
width: 100% !important;
height: 150px !important;
@include border-radius($global-border-radius);
margin: 0;
padding: 0;
}
.friend-nickname {
display: block;
position: relative;
color: #2bbc8a;
font-weight: bold;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 18px;
margin-bottom: 1rem;
}
.friend-nickname:hover {
color: #d480aa;
}
}
.friend-link {
width: 150px;
height: 200px;
font-size: 1rem;
text-align: center;
background: rgba(255, 255, 255, 0.3);
box-sizing: border-box;
box-shadow: 3px 3px 5px #aaa;
@include border-radius($global-border-radius);
border: none;
transition-duration: 0.3s;
margin-bottom: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.friend-link:hover {
background: #fff;
@include transform(scale(1.03));
box-shadow: 0 0 3px #aaa;
}
.friend-avatar {
object-fit: cover;
object-position: center;
width: 100% !important;
height: 150px !important;
@include border-radius($global-border-radius);
margin: 0;
padding: 0;
}
.friend-nickname {
display: block;
position: relative;
color: #2bbc8a;
font-weight: bold;
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 18px;
margin-bottom: 1rem;
}
.friend-nickname:hover {
color: #d480aa;
}
+3 -8
View File
@@ -3,12 +3,7 @@
.single-subtitle {
text-align: right;
}
&.friends {
@import '_friends';
}
&.search {
@import '_search';
}
}
@import 'friends';
@import 'search';
+9 -7
View File
@@ -1,10 +1,12 @@
// Style of layout named 'search'
// Style of layout search
// TODO Adapting to dark mode, maybe use css variables
// Google CSE
.gcse-searchbox:empty,
.gcse-searchresults:empty {
display: none;
.special.search {
// Google CSE
.gcse-searchbox:empty,
.gcse-searchresults:empty {
display: none;
}
// Bing CSE (Unsupported)
}
// Bing CSE (Unsupported)
+12 -7
View File
@@ -1,7 +1,12 @@
@import '_cookieconsent';
@import '_fixed-button';
@import '_github-corner';
@import '_noscript-warning';
@import '_post-chat';
@import '_reading-progress';
@import '_typeit';
@import 'cookieconsent';
@import 'details';
@import 'fixed-button';
@import 'github-corner';
@import 'icon';
@import 'img';
@import 'mask';
@import 'noscript-warning';
@import 'post-chat';
@import 'reading-progress';
@import 'scrollbar';
@import 'typeit';
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v0.4.3-20260123080729-2a5bd268" -}}
{{- hugo.Store.Set "version" "v0.4.3-20260130042349-e23a50d7" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}