Showing
5 changed files
with
122 additions
and
213 deletions
@@ -228,9 +228,8 @@ a { | @@ -228,9 +228,8 @@ a { | ||
228 | @import "header"; | 228 | @import "header"; |
229 | @import "footer"; | 229 | @import "footer"; |
230 | @import "404"; | 230 | @import "404"; |
231 | -@import "index/index"; | ||
232 | -@import "product/index"; | ||
233 | -@import "plugins/slider"; | 231 | +@import "common/index"; |
232 | +@import "plugin/index"; | ||
234 | 233 | ||
235 | /* 模块 */ | 234 | /* 模块 */ |
236 | @import "index/index"; | 235 | @import "index/index"; |
1 | -.yoho-dialog { | ||
2 | - position: fixed; | ||
3 | - padding: 20px; | ||
4 | - top: 50%; | ||
5 | - left: 50%; | ||
6 | - min-height: 130px; | ||
7 | - min-width: 350px; | ||
8 | - background: #f8f8f8; | ||
9 | - z-index: 1001; | ||
10 | - border: 5px solid rgba(0,0,0,.38); | ||
11 | - | ||
12 | - .close { | ||
13 | - position: absolute; | ||
14 | - top: 5px; | ||
15 | - right: 5px; | ||
16 | - cursor: pointer; | ||
17 | - } | ||
18 | - | ||
19 | - .content { | ||
20 | - text-align: center; | ||
21 | - } | ||
22 | - | ||
23 | - .btns { | ||
24 | - text-align: center; | ||
25 | - } | ||
26 | - .alert-sure{ | ||
27 | - background: #000; | ||
28 | - color: #fff; | ||
29 | - } | ||
30 | - .confirm-sure{ | ||
31 | - background: #000; | ||
32 | - color: #fff; | ||
33 | - } | ||
34 | - .btn { | ||
35 | - display: inline-block; | ||
36 | - width: 56px; | ||
37 | - height: 26px; | ||
38 | - line-height: 26px; | ||
39 | - text-align: center; | ||
40 | - border: 1px solid #000; | ||
41 | - cursor: pointer; | ||
42 | - margin-left: 10px; | ||
43 | - &:first-child { | ||
44 | - margin-left: 0; | ||
45 | - } | ||
46 | - } | ||
47 | - | ||
48 | - &.alert-dialog .content, | ||
49 | - &.confirm-dialog .content { | ||
50 | - width: 350px; | ||
51 | - height: auto; | ||
52 | - min-height: 90px; | ||
53 | - overflow: hidden; | ||
54 | - line-height: 20px; | ||
55 | - position: relative; | ||
56 | - padding-top: 40px; | ||
57 | - padding-bottom: 20px; | ||
58 | - p{ | ||
59 | - position: absolute; | ||
60 | - left: 0; | ||
61 | - bottom: 25px; | ||
62 | - width: 100%; | ||
63 | - color: #444; | ||
64 | - line-height: 25px; | ||
65 | - } | ||
66 | - div{ | ||
67 | - position: absolute; | ||
68 | - top: 0; | ||
69 | - left: 100px; | ||
70 | - padding-top: 30px; | ||
71 | - font-size: 22px; | ||
72 | - font-weight: bold; | ||
73 | - width: 150px; | ||
74 | - height: 30px; | ||
75 | - line-height: 30px; | ||
76 | - margin: 0 auto; | ||
77 | - span{ | ||
78 | - background: url(/cart/del.png); | ||
79 | - float: left; | ||
80 | - width: 27px; | ||
81 | - height: 30px; | ||
82 | - } | ||
83 | - } | ||
84 | - } | ||
85 | - | ||
86 | - &.subcontent-dialog { | ||
87 | - padding: 30px 0px 30px 0px; | ||
88 | - | ||
89 | - .content { | ||
90 | - font-weight: bold; | ||
91 | - margin: 0px auto 30px auto; | ||
92 | - } | ||
93 | - | ||
94 | - .sub-content { | ||
95 | - text-align: center; | ||
96 | - font-size: 12px; | ||
97 | - color: #555; | ||
98 | - margin-left: 5px; | ||
99 | - margin-bottom: 5px; | ||
100 | - } | ||
101 | - | ||
102 | - | ||
103 | - .btn { | ||
104 | - margin-top: 25px; | ||
105 | - width: 100px; | ||
106 | - font-size: 13px; | ||
107 | - margin-left: 0; | ||
108 | - margin-right: 0; | ||
109 | - | ||
110 | - &.black { | ||
111 | - background-color: #000; | ||
112 | - color: #fff; | ||
113 | - } | ||
114 | - } | ||
115 | - } | ||
116 | -} | 1 | +.yoho-dialog { |
2 | + position: fixed; | ||
3 | + padding: 20px; | ||
4 | + top: 50%; | ||
5 | + left: 50%; | ||
6 | + min-height: 130px; | ||
7 | + min-width: 350px; | ||
8 | + background: #f8f8f8; | ||
9 | + z-index: 1001; | ||
10 | + border: 5px solid rgba(0, 0, 0, 0.38); | ||
11 | + | ||
12 | + .close { | ||
13 | + position: absolute; | ||
14 | + top: 5px; | ||
15 | + right: 5px; | ||
16 | + cursor: pointer; | ||
17 | + } | ||
18 | + | ||
19 | + .content { | ||
20 | + text-align: center; | ||
21 | + } | ||
22 | + | ||
23 | + .btns { | ||
24 | + text-align: center; | ||
25 | + } | ||
26 | + .alert-sure { | ||
27 | + background: #000; | ||
28 | + color: #fff; | ||
29 | + } | ||
30 | + .confirm-sure { | ||
31 | + background: #000; | ||
32 | + color: #fff; | ||
33 | + } | ||
34 | + .btn { | ||
35 | + display: inline-block; | ||
36 | + width: 56px; | ||
37 | + height: 26px; | ||
38 | + line-height: 26px; | ||
39 | + text-align: center; | ||
40 | + border: 1px solid #000; | ||
41 | + cursor: pointer; | ||
42 | + margin-left: 10px; | ||
43 | + &:first-child { | ||
44 | + margin-left: 0; | ||
45 | + } | ||
46 | + } | ||
47 | + | ||
48 | + &.alert-dialog .content, | ||
49 | + &.confirm-dialog .content { | ||
50 | + width: 350px; | ||
51 | + height: auto; | ||
52 | + min-height: 90px; | ||
53 | + overflow: hidden; | ||
54 | + line-height: 20px; | ||
55 | + position: relative; | ||
56 | + padding-top: 40px; | ||
57 | + padding-bottom: 20px; | ||
58 | + p { | ||
59 | + position: absolute; | ||
60 | + left: 0; | ||
61 | + bottom: 25px; | ||
62 | + width: 100%; | ||
63 | + color: #444; | ||
64 | + line-height: 25px; | ||
65 | + } | ||
66 | + div { | ||
67 | + position: absolute; | ||
68 | + top: 0; | ||
69 | + left: 100px; | ||
70 | + padding-top: 30px; | ||
71 | + font-size: 22px; | ||
72 | + font-weight: bold; | ||
73 | + width: 150px; | ||
74 | + height: 30px; | ||
75 | + line-height: 30px; | ||
76 | + margin: 0 auto; | ||
77 | + span { | ||
78 | + background: url(/cart/del.png); | ||
79 | + float: left; | ||
80 | + width: 27px; | ||
81 | + height: 30px; | ||
82 | + } | ||
83 | + } | ||
84 | + } | ||
85 | + | ||
86 | + &.subcontent-dialog { | ||
87 | + padding: 30px 0; | ||
88 | + | ||
89 | + .content { | ||
90 | + font-weight: bold; | ||
91 | + margin: 0 auto 30px; | ||
92 | + } | ||
93 | + | ||
94 | + .sub-content { | ||
95 | + text-align: center; | ||
96 | + font-size: 12px; | ||
97 | + color: #555; | ||
98 | + margin-left: 5px; | ||
99 | + margin-bottom: 5px; | ||
100 | + } | ||
101 | + | ||
102 | + .btn { | ||
103 | + margin-top: 25px; | ||
104 | + width: 100px; | ||
105 | + font-size: 13px; | ||
106 | + margin-left: 0; | ||
107 | + margin-right: 0; | ||
108 | + | ||
109 | + &.black { | ||
110 | + background-color: #000; | ||
111 | + color: #fff; | ||
112 | + } | ||
113 | + } | ||
114 | + } | ||
115 | +} |
public/scss/plugin/_index.css
0 → 100644
public/scss/plugins/_slider.css
deleted
100644 → 0
1 | -.slider { | ||
2 | - position: relative; | ||
3 | - height: 327px; | ||
4 | - width: 100%; | ||
5 | - overflow: hidden; | ||
6 | - | ||
7 | - img { | ||
8 | - max-width: 100%; | ||
9 | - max-height: 100%; | ||
10 | - } | ||
11 | -} | ||
12 | - | ||
13 | -.slide-pagination { | ||
14 | - position: absolute; | ||
15 | - left: 0; | ||
16 | - right: 0; | ||
17 | - bottom: 12px; | ||
18 | - text-align: center; | ||
19 | -} | ||
20 | - | ||
21 | -.slide-pagination-inner { | ||
22 | - display: inline-block; | ||
23 | - position: relative; | ||
24 | - padding: 7px; | ||
25 | - vertical-align: middle; | ||
26 | -} | ||
27 | - | ||
28 | -.slide-shade { | ||
29 | - position: absolute; | ||
30 | - left: 0; | ||
31 | - right: 0; | ||
32 | - top: 0; | ||
33 | - bottom: 0; | ||
34 | - background: #000; | ||
35 | - opacity: 0.3; | ||
36 | - border-radius: 13px; | ||
37 | -} | ||
38 | - | ||
39 | -.slide-pagination-last span { | ||
40 | - display: block; | ||
41 | - float: left; | ||
42 | - position: relative; | ||
43 | - margin: 0 7px; | ||
44 | - width: 12px; | ||
45 | - height: 12px; | ||
46 | - background: #fff; | ||
47 | - cursor: pointer; | ||
48 | - opacity: 0.6; | ||
49 | - border-radius: 6px; | ||
50 | - z-index: 2; | ||
51 | - | ||
52 | - &.focus { | ||
53 | - opacity: 1; | ||
54 | - } | ||
55 | -} | ||
56 | - | ||
57 | -.slide-switch { | ||
58 | - display: none; | ||
59 | - | ||
60 | - &.show { | ||
61 | - display: block; | ||
62 | - } | ||
63 | - | ||
64 | - a { | ||
65 | - display: block; | ||
66 | - position: absolute; | ||
67 | - top: 50%; | ||
68 | - margin: -30px 0 0; | ||
69 | - width: 60px; | ||
70 | - height: 60px; | ||
71 | - line-height: 56px; | ||
72 | - text-align: center; | ||
73 | - z-index: 2; | ||
74 | - background: #fff; | ||
75 | - opacity: 0.55; | ||
76 | - | ||
77 | - &:hover{ | ||
78 | - opacity: 0.9; | ||
79 | - } | ||
80 | - | ||
81 | - .iconfont { | ||
82 | - font-size: 32px; | ||
83 | - color: #59585a; | ||
84 | - } | ||
85 | - } | ||
86 | - | ||
87 | - .prev { | ||
88 | - left: 0; | ||
89 | - } | ||
90 | - | ||
91 | - .next { | ||
92 | - right: 0; | ||
93 | - } | ||
94 | -} |
-
Please register or login to post a comment