File tree 6 files changed +45
-38
lines changed
6 files changed +45
-38
lines changed Original file line number Diff line number Diff line change 251
251
252
252
> p {
253
253
margin-left : 0.25em ;
254
- margin-top : 0 ;
255
- margin-bottom : 0 ;
254
+
255
+ @include mt-mb ( 0 ) ;
256
256
}
257
257
}
258
258
}
@@ -769,8 +769,8 @@ $btn-mb: 0.5rem;
769
769
li .nav-item {
770
770
opacity : 0.9 ;
771
771
width : 100% ;
772
- padding-left : 1.5 rem ;
773
- padding-right : 1.5rem ;
772
+
773
+ @include pl-pr ( 1.5rem ) ;
774
774
775
775
a .nav-link {
776
776
@include pt-pb (0.6rem );
@@ -1043,7 +1043,7 @@ search {
1043
1043
1044
1044
a {
1045
1045
font-size : 1.4rem ;
1046
- line-height : 2 .5rem ;
1046
+ line-height : 1 .5rem ;
1047
1047
1048
1048
& :hover {
1049
1049
@extend %link-hover ;
@@ -1069,8 +1069,9 @@ search {
1069
1069
}
1070
1070
1071
1071
> p {
1072
- overflow : hidden ;
1073
- text-overflow : ellipsis ;
1072
+ @extend %text-ellipsis ;
1073
+
1074
+ white-space : break- spaces;
1074
1075
display : -webkit-box ;
1075
1076
-webkit-line-clamp : 3 ;
1076
1077
-webkit-box-orient : vertical ;
@@ -1086,10 +1087,7 @@ search {
1086
1087
color : var (--topbar-text-color );
1087
1088
text-align : center ;
1088
1089
width : 70% ;
1089
- overflow : hidden ;
1090
- text-overflow : ellipsis ;
1091
1090
word-break : keep-all ;
1092
- white-space : nowrap ;
1093
1091
}
1094
1092
1095
1093
#mask {
@@ -1492,8 +1490,8 @@ search {
1492
1490
1493
1491
#main-wrapper > .container {
1494
1492
max-width : $main-content-max-width ;
1495
- padding-left : 1.75 rem !important ;
1496
- padding-right : 1.75rem !important ;
1493
+
1494
+ @include pl-pr ( 1.75rem , true) ;
1497
1495
}
1498
1496
1499
1497
main .col-12 ,
Original file line number Diff line number Diff line change 112
112
-webkit-box-orient : vertical ;
113
113
}
114
114
115
+ @mixin text-ellipsis {
116
+ overflow : hidden ;
117
+ text-overflow : ellipsis ;
118
+ white-space : nowrap ;
119
+ }
120
+
121
+ %text-ellipsis {
122
+ @include text-ellipsis ;
123
+ }
124
+
115
125
%text-highlight {
116
126
color : var (--text-muted-highlight-color );
117
127
font-weight : 600 ;
158
168
padding-bottom : $val ;
159
169
}
160
170
161
- @mixin pl-pr ($val ) {
162
- padding-left : $val ;
163
- padding-right : $val ;
171
+ @mixin pl-pr ($val , $important : false) {
172
+ @if $important {
173
+ padding-left : $val !important ;
174
+ padding-right : $val !important ;
175
+ } @else {
176
+ padding-left : $val ;
177
+ padding-right : $val ;
178
+ }
164
179
}
165
180
166
181
@mixin placeholder {
Original file line number Diff line number Diff line change 58
58
li {
59
59
font-size : 1.1rem ;
60
60
line-height : 3rem ;
61
- white-space : nowrap ;
62
- overflow : hidden ;
63
- text-overflow : ellipsis ;
61
+
62
+ @extend %text-ellipsis ;
64
63
65
64
& :nth-child (odd ) {
66
65
background-color : var (--main-bg , #ffffff );
Original file line number Diff line number Diff line change 63
63
}
64
64
65
65
> a {
66
- white-space : nowrap ;
67
- overflow : hidden ;
68
- text-overflow : ellipsis ;
66
+ @include text-ellipsis ;
69
67
}
70
68
}
71
69
}
Original file line number Diff line number Diff line change 74
74
75
75
> div :first-child {
76
76
display : block ;
77
- white-space : nowrap ;
78
- overflow : hidden ;
79
- text-overflow : ellipsis ;
77
+
78
+ @extend %text-ellipsis ;
80
79
}
81
80
}
82
81
}
Original file line number Diff line number Diff line change 1
- /*
2
- Post-specific style
3
- */
1
+ /* *
2
+ * Post-specific styles
3
+ */
4
4
5
5
%btn-post-nav {
6
6
width : 50% ;
@@ -97,7 +97,7 @@ header {
97
97
98
98
& :hover {
99
99
i {
100
- @extend %btn-share-hovor ;
100
+ @extend %btn-share-hover ;
101
101
}
102
102
}
103
103
}
@@ -258,9 +258,8 @@ header {
258
258
259
259
.toc-link {
260
260
display : block ;
261
- white-space : nowrap ;
262
- overflow : hidden ;
263
- text-overflow : ellipsis ;
261
+
262
+ @extend %text-ellipsis ;
264
263
265
264
& :hover {
266
265
color : var (--toc-highlight );
@@ -509,10 +508,11 @@ header {
509
508
}
510
509
511
510
p {
511
+ @extend %text-ellipsis ;
512
+
512
513
font-size : 0.9rem ;
513
514
margin-bottom : 0.5rem ;
514
- overflow : hidden ;
515
- text-overflow : ellipsis ;
515
+ white-space : break- spaces;
516
516
display : -webkit-box ;
517
517
-webkit-line-clamp : 2 ;
518
518
-webkit-box-orient : vertical ;
@@ -534,7 +534,7 @@ header {
534
534
max-width : 100% ;
535
535
}
536
536
537
- %btn-share-hovor {
537
+ %btn-share-hover {
538
538
color : var (--btn-share-hover-color ) !important ;
539
539
}
540
540
@@ -566,10 +566,8 @@ header {
566
566
/* Hide SideBar and TOC */
567
567
@media all and (max-width : 849px ) {
568
568
.post-navigation {
569
- padding-left : 0 ;
570
- padding-right : 0 ;
571
- margin-left : -0.5rem ;
572
- margin-right : -0.5rem ;
569
+ @include pl-pr (0 );
570
+ @include ml-mr (-0.5rem );
573
571
}
574
572
}
575
573
You can’t perform that action at this time.
0 commit comments