File tree Expand file tree Collapse file tree 9 files changed +112
-28
lines changed
Expand file tree Collapse file tree 9 files changed +112
-28
lines changed Original file line number Diff line number Diff line change 4343}
4444.leftWrap {
4545 border-radius : var (--border-radius );
46- box-shadow : var (--box-shadow );
4746 > header {
48- background : var (--bg-second );
4947 border-radius : var (--border-radius ) var (--border-radius ) 0 0 ;
50- border-bottom : 1px solid var (--border-color );
5148 > ul {
5249 padding : 0.5rem ;
50+ border-radius : var (--border-radius );
5351 }
5452 }
5553 > main {
6159 }
6260}
6361.footer {
64- padding : 16px !important ;
6562 color : var (--second-text-color ) !important ;
6663 border-top : 0 !important ;
6764}
Original file line number Diff line number Diff line change 141141 a {
142142 position : relative ;
143143 display : flex ;
144- width : 100% ;
144+ width : calc ( 100% - 28 px ) ;
145145 height : 44px ;
146146 padding-right : 16px ;
147147 padding-left : 12px ;
Original file line number Diff line number Diff line change 1+ .card {
2+ position : relative ;
3+ color : var (--main-text-color );
4+ text-align : center ;
5+ background : var (--bg-footer );
6+ border-top : 1px solid var (--border-color );
7+ text-align : left ;
8+
9+ & .hasBg {
10+ color : var (--main-text-color );
11+ background : transparent ;
12+ }
13+
14+
15+ .title {
16+ font-size : 16px ;
17+ display : inline-block ;
18+ padding-bottom : 4px ;
19+ font-weight : bold ;
20+ color : var (--main-text-color );
21+ }
22+ }
23+
24+ .icons {
25+ text-align : right ;
26+ display : flex ;
27+ align-items : center ;
28+ ul {
29+ text-align : left ;
30+ width : 100% ;
31+ display : flex ;
32+ justify-content : space-between ;
33+ align-items : center ;
34+ }
35+
36+ li {
37+ display : inline-block ;
38+ font-size : 24px ;
39+ text-align : center ;
40+ border-radius : 50% ;
41+
42+ & :first-of-type {
43+ margin-top : 1px ;
44+ }
45+
46+ & :hover {
47+ color : var (--primary-color );
48+ }
49+ }
50+ }
51+
52+ .copyright {
53+ font-size : 14px ;
54+ text-align : left ;
55+ display : flex ;
56+ align-items : center ;
57+ line-height : 24px ;
58+ }
59+
60+ .container {
61+ display : flex ;
62+ flex-direction : column ;
63+ width : 100% ;
64+ }
Original file line number Diff line number Diff line change 1212 overflow : hidden ;
1313 padding : 1rem ;
1414 background-color : var (--bg-box );
15+ border-radius : var (--border-radius );
1516
17+ .info {
18+ display : flex ;
19+ align-items : center ;
20+ }
1621
1722 & :hover {
1823 img {
8388 header .title {
8489 color : var (--primary-color );
8590 }
86-
87- // main .contentWrapper .desc {
88- // font-weight: 500;
89- // }
9091 }
9192
9293 header {
103104 font-synthesis : style ;
104105 }
105106
106- .time {
107+ .time ,
108+ .category {
107109 color : #8590a6 ;
108110 }
109111 }
163165 color : #8590a6 ;
164166 display : flex ;
165167 justify-content : space-between ;
168+ white-space : nowrap ;
166169
167170 .separator {
168171 margin : 0 8px ;
183186}
184187
185188@media (max-width : 658px ) {
189+
186190 .articleItem {
191+ .coverWrapper {
192+ width : 140px ;
193+ height : 80px ;
194+ }
195+
187196 > a {
188197 flex-direction : column ;
189198 }
190199
200+ .info {
201+ display : none ;
202+ }
203+
191204 header {
192205 flex-direction : column ;
193206 align-items : flex-start ;
199212 display : none ;
200213 }
201214 }
215+ .category {
216+ display : none ;
217+ }
202218 }
203219
204220 main {
205- .coverWrapper {
206- width : 100px ;
207- margin-left : 12px ;
221+ .contentWrapper {
222+ .desc {
223+ display : -webkit-box ;
224+ -webkit-box-orient : vertical ;
225+ -webkit-line-clamp : 1 ;
226+ overflow : hidden ;
227+ text-overflow : ellipsis ;
228+ line-height : 1.2em ;
229+ max-height : 2.4em ;
230+ }
231+
232+ .time {
233+ display : none ;
234+ }
208235 }
209236 }
210237 }
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ export const ArticleList: React.FC<IProps> = ({ articles = [] }) => {
4747 { article . category && (
4848 < >
4949 < Divider type = "vertical" />
50- < span className = { style . time } > { article . category . label } </ span >
50+ < span className = { style . category } > { article . category ? .label } </ span >
5151 </ >
5252 ) }
5353 </ div >
5454 </ header >
55- < main >
55+ < main title = { style . desc } >
5656 < div className = { style . contentWrapper } >
5757 < div className = { style . desc } >
5858 < span dangerouslySetInnerHTML = { { __html : article . summary } } />
Original file line number Diff line number Diff line change 2626 padding-bottom : 4px ;
2727 font-weight : bold ;
2828 color : var (--main-text-color );
29-
30-
31- // padding: 1rem 1.3rem;
32- // font-weight: bold;
33- // width: 100%;
34- // color: var(--main-text-color);
35- // border-bottom: 1px solid var(--border-color);
3629 }
3730}
3831
@@ -68,3 +61,9 @@ ul.icons {
6861 align-items : center ;
6962 line-height : 24px ;
7063}
64+
65+
66+ .container {
67+ display : flex ;
68+ justify-content : space-between ;
69+ }
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ $height: 64px;
5555 .logo {
5656 display : inline-flex ;
5757 height : $height ;
58- margin-right : 4 rem ;
58+ margin-right : 8 px ;
5959 line-height : $height ;
6060 color : var (--main-text-color );
6161 text-align : left ;
@@ -135,7 +135,6 @@ $height: 64px;
135135 }
136136
137137 .menu {
138- min-width : 400px ;
139138 background : transparent ;
140139 border : none ;
141140 }
Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ iframe {
6969
7070@media (max-width : 768px ) {
7171 .container {
72- width : 100% ;
73- padding-right : 15px ;
74- padding-left : 15px ;
72+ width : calc (100% - 32px );
7573 }
7674}
7775
Original file line number Diff line number Diff line change 22 --primary-color : #f44336 ;
33 --sun-color : #eec413 ;
44 --link-color : #4299e1 ;
5- --border-radius : 2 px ;
5+ --border-radius : 8 px ;
66
77 // 亮色主题
88 --bg : #ffffff ;
You can’t perform that action at this time.
0 commit comments