-
Notifications
You must be signed in to change notification settings - Fork 10
/
style.css
407 lines (337 loc) · 8 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
/*
Theme Name: Maizi
Theme URI: https://www.awaimai.com/maizi
Author: Gary
Author URI: https://www.awaimai.com/
Description: Maizi multiple using wordpress theme base bootstrap
Version: 1.0
License: GNU General Public License v3.0 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: left-sidebar, right-sidebar, bootstrap4, index-slider, custom-color
Text Domain: maizi
Domain Path: /languages
*/
html,body {
font-size: 14px;
font-family: "Segoe UI", "SimSun", "Microsoft YaHei", "SimHei", "Arial", 'sans-serif';
overflow-x: hidden;
overflow-y: auto;
}
a:focus, a:hover {
text-decoration: none;
}
h1{font-size: 1.4rem;}
h2{
border-left: 0.55rem solid;
font-size: 1.3rem;
padding-left: 0.6rem;
line-height: 1.25rem;
}
h3, h4, h5, h6{font-size: 1.1rem; }
article h1, h2, h3, h4, h5, h6 {
font-weight: 700;
}
.article-content h2{
margin: 2.5rem 0 1.5rem;
}
.article-content h3{
margin: 2rem 0 1.5rem;
}
article img{
object-fit: cover;
}
article img, figure, img
{
max-width: 100%;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {cursor: pointer;}
.icon14 {
width: 14px;
height: 14px;
font-size: 14px;
line-height: 14px;
vertical-align: text-bottom;
}
ul {
margin-bottom: 0;
}
ul, li {
list-style-position: inside;
}
code[class*=language-], pre[class*=language-] {
max-width: 100%;
font-size: 0.95rem;
white-space: pre-wrap;
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
}
p > code, blockquote > code, ul > li > code {
margin: auto 0.2rem;
font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
}
blockquote{
border-left: 2px solid #aaa;
padding: 12px 0 12px 12px;
background: #f7f7f7;
}
blockquote p{margin:0!important;}
/* Sidebar menu */
aside li {opacity: 0.85;}
aside ul,
aside > ul > li {padding-left: 0;}
aside.widget {margin-bottom: 2rem; clear: both;}
aside.widget h3 {color: #666;}
aside .sub-menu {display: none;}
aside .sub-menu li {padding-left: 2rem;}
aside .current-menu-item > a{font-weight: 700;}
aside li[class*="current-menu-"] > .sub-menu
{display: block;}
/*
aside .menu-item-has-children > a:before,
aside .current-menu-parent > a:before,
aside .current-menu-item.menu-item-has-children > a:before
{
border: .3rem solid transparent;
vertical-align: middle;
content: "";
display: inline-block;
}
aside .menu-item-has-children > a:before
{
border-color: transparent;
border-left: .3rem solid #444;
}
aside .current-menu-parent > a:before,
aside .current-menu-item.menu-item-has-children > a:before{
margin-right: .3rem;
border-color: transparent;
border-top: .3rem solid #444;
}*/
.thumbnail {max-width: 100%; max-height: 10rem;height: auto;}
/*
* Gallery
*/
.gallery {
margin-bottom: 1.5em; }
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 100%; }
.gallery-columns-2 .gallery-item {
max-width: 50%; }
.gallery-columns-3 .gallery-item {
max-width: 33.33%; }
.gallery-columns-4 .gallery-item {
max-width: 25%; }
.gallery-columns-5 .gallery-item {
max-width: 20%; }
.gallery-columns-6 .gallery-item {
max-width: 16.66%; }
.gallery-columns-7 .gallery-item {
max-width: 14.28%; }
.gallery-columns-8 .gallery-item {
max-width: 12.5%; }
.gallery-columns-9 .gallery-item {
max-width: 11.11%; }
.gallery-caption {
display: block; }
/*
* Custom Style
*/
.wrapper {
padding: 30px 0; }
#wrapper-hero {
padding: 0 !important; }
.sticky,
.gallery-caption,
.bypostauthor {
font-size: inherit; }
.wrapper#wrapper-sticky {
border-bottom: 1px solid #636c72; }
#wrapper-footer-full,
#wrapper-static-hero {
background-color: #eceeef; }
.wp-caption {
font-size: inherit;
text-align: center;}
.wp-caption-text {
font-size: inherit;
text-align: center;}
.screen-reader-text {
font-size: inherit; }
.alignright {
float: right;
padding-left: 10px; }
.alignleft {
float: left;
padding-right: 10px; }
.aligncenter {
margin: 0px auto; }
.entry-footer span {
padding-right: 10px; }
a.skip-link {
position: fixed;
z-index: 1000;
top: 0px;
right: 0px; }
.jumbotron {
margin-bottom: 0px; }
.code-compare {display: flex; flex-wrap: nowrap; justify-content: space-between;}
.code-compare .item, .code-compare div {width: 48%;}
.gallery:after {
content: "";
display: table;
clear: both; }
#wrapper-hero .carousel-inner .textwidget {
width: 100%; }
/*
* override CF7 style
*/
.wpcf7 {
max-width: 600px;
margin: 0 auto !important; }
.wpcf7 .wpcf7-form label {
width: 100%; }
.wpcf7 .wpcf7-not-valid-tip {
color: #d9534f !important; }
.wpcf7 .wpcf7-validation-errors {
color: #d9534f !important;
border: 1px solid #eceeef !important; }
/* 主菜单样式 */
.navbar-nav .nav-link,
.dropdown-item {
opacity: .65;
}
.navbar-nav .active>.nav-link,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.open,
.navbar-nav .open>.nav-link,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover,
.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover{
opacity: 1;
}
.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover{
background: inherit;
}
/* 内容 */
.article-content {
color: #3f3f3f;
}
.article-content table td {
border: 1px solid #dfdfdf;
padding: 3px;
}
.article-content p {
line-height: 1.7rem;
max-width: 100%;
white-space: pre-wrap;
}
.article-content ul {
margin-bottom: 1rem;
}
.article-content ul li {
line-height: 1.65rem;
}
.article-content .card-body > ul,
.article-content .card-body > ol,
.article-content .card-body > dl {
padding-left: 0;
}
/* 评论 */
.comment-content p, .comment-content pre {
white-space: normal;
line-height: 1.7rem;
}
/* 页面中的【添加到购物车】按钮 */
.btn-add-to-cart {
background-color: #ebe9eb;
border-color: #ebe9eb;
}
.btn-add-to-cart:hover {
background-color: #dad8da;
border-color: #dad8da;
}
.btn-add-to-cart:active, .btn-add-to-cart.active,
.show > .btn-add-to-cart.dropdown-toggle {
background-color: #dad8da;
background-image: none;
border-color: #dad8da;
}
.footer-copyright, .footer-copyright div, .footer-copyright p{
display: inline;
}
/* Scroll to Top */
.scroll-top {
display: none;
color: #fff;
width: 48px;
height: 48px;
border-radius: 24px;
vertical-align: middle;
position: fixed;
bottom: 5%;
right: 5%;
background: #727272;
text-align: center;
text-decoration: none;
opacity:0.85;
filter:alpha(opacity=85);
cursor: pointer;
}
.scroll-top .dashicons {
margin-top: 14px;
}
.scroll-top:hover,
.scroll-top:focus {
color: #fff;
outline: 0;
opacity:1;
filter:alpha(opacity=100);
}
/**
* 地址中国家和省份的样式
*/
.select2-container .select2-selection--single,
.woocommerce form .form-row input.input-text{
height: 2.31rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
line-height: 2.31rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
top: 6px;
}
/* 购物车中的数量 */
.woocommerce .quantity .qty{
width: 5rem;
}
.triangle {
border: .3rem solid transparent;
vertical-align: middle;
content: "";
display: inline-block;
}
.triangle-down{
border-top: .3rem solid #000;
}
.triangle-left{
border-right: .3rem solid #000;
}
.triangle-top{
border-bottom: .3rem solid #000;
}
.triangle-right{
border-left: .3rem solid #000;
}