weui-rails 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weui-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/base/variable/_global.scss +23 -20
- data/vendor/assets/stylesheets/base/variable/_monokai.scss +11 -11
- data/vendor/assets/stylesheets/base/variable/_weui_button.scss +18 -18
- data/vendor/assets/stylesheets/base/variable/_weui_cell.scss +11 -11
- data/vendor/assets/stylesheets/base/variable/_weui_grid.scss +4 -4
- data/vendor/assets/stylesheets/base/variable/_weui_msg.scss +7 -7
- data/vendor/assets/stylesheets/base/variable/_weui_progress.scss +5 -5
- data/vendor/assets/stylesheets/icon/weui_icon_font.scss +1 -1
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_default.scss +3 -3
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_disabled.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_global.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_plain.scss +4 -4
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_primary.scss +3 -3
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_warn.scss +3 -3
- data/vendor/assets/stylesheets/widget/weui_button/weui_button.scss +9 -9
- data/vendor/assets/stylesheets/widget/weui_cell/weui_access.scss +4 -4
- data/vendor/assets/stylesheets/widget/weui_cell/weui_cell_global.scss +9 -8
- data/vendor/assets/stylesheets/widget/weui_cell/weui_check/weui_check_common.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_cell/weui_check/weui_checkbox.scss +7 -7
- data/vendor/assets/stylesheets/widget/weui_cell/weui_check/weui_radio.scss +6 -6
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_form_common.scss +13 -13
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select.scss +5 -5
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_after.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_before.scss +4 -4
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_vcode.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_cell/weui_switch.scss +2 -2
- data/vendor/assets/stylesheets/widget/weui_cell/weui_uploader.scss +11 -11
- data/vendor/assets/stylesheets/widget/weui_grid/weui_grid.scss +30 -12
- data/vendor/assets/stylesheets/widget/weui_media_box/weui_media_box.scss +24 -26
- data/vendor/assets/stylesheets/widget/weui_page/weui_article.scss +1 -1
- data/vendor/assets/stylesheets/widget/weui_page/weui_msg.scss +8 -8
- data/vendor/assets/stylesheets/widget/weui_panel/weui_panel.scss +4 -4
- data/vendor/assets/stylesheets/widget/weui_progress/weui_progress.scss +4 -4
- data/vendor/assets/stylesheets/widget/weui_searchbar/weui_searchbar.scss +16 -16
- data/vendor/assets/stylesheets/widget/weui_tab/navbar.scss +5 -5
- data/vendor/assets/stylesheets/widget/weui_tab/tabbar.scss +8 -7
- data/vendor/assets/stylesheets/widget/weui_tab/weui_tab.scss +8 -4
- data/vendor/assets/stylesheets/widget/weui_tips/weui_actionsheet.scss +6 -6
- data/vendor/assets/stylesheets/widget/weui_tips/weui_dialog.scss +13 -14
- data/vendor/assets/stylesheets/widget/weui_tips/weui_mask.scss +7 -7
- data/vendor/assets/stylesheets/widget/weui_tips/weui_toast.scss +9 -9
- metadata +3 -3
@@ -1,33 +1,33 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
@import "../weui_button/weui_button";
|
3
3
|
|
4
|
-
|
4
|
+
.#{$weui_ns}msg {
|
5
5
|
padding-top: $weuiMsgPaddingTop;
|
6
6
|
text-align: center;
|
7
7
|
|
8
|
-
|
8
|
+
.#{$weui_ns}icon_area {
|
9
9
|
margin-bottom: $weuiMsgIconGap;
|
10
10
|
}
|
11
11
|
|
12
|
-
|
12
|
+
.#{$weui_ns}text_area {
|
13
13
|
margin-bottom: $weuiMsgTextGap;
|
14
14
|
padding:0 20px;
|
15
15
|
}
|
16
|
-
|
16
|
+
.#{$weui_ns}msg_title {
|
17
17
|
margin-bottom: $weuiMsgTitleGap;
|
18
18
|
font-weight: 400;
|
19
19
|
font-size: 20px;
|
20
20
|
}
|
21
|
-
|
21
|
+
.#{$weui_ns}msg_desc {
|
22
22
|
font-size: 14px;
|
23
23
|
color: $globalDescColor;
|
24
24
|
}
|
25
25
|
|
26
|
-
|
26
|
+
.#{$weui_ns}opr_area {
|
27
27
|
margin-bottom: $weuiMsgOprGap;
|
28
28
|
}
|
29
29
|
|
30
|
-
|
30
|
+
.#{$weui_ns}extra_area {
|
31
31
|
margin-bottom: $weuiMsgExtraAreaGap;
|
32
32
|
font-size:14px;
|
33
33
|
color:$globalTextColor;
|
@@ -38,7 +38,7 @@
|
|
38
38
|
}
|
39
39
|
|
40
40
|
@media screen and (min-height: $weuiMsgExtraAreaOfMinHeight) {
|
41
|
-
|
41
|
+
.#{$weui_ns}extra_area {
|
42
42
|
position: fixed;
|
43
43
|
left: 0;
|
44
44
|
bottom: 0;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$lineColor: #E5E5E5;
|
4
4
|
$grayColor: #999999;
|
5
5
|
|
6
|
-
|
6
|
+
.#{$weui_ns}panel {
|
7
7
|
background-color: #FFFFFF;
|
8
8
|
margin-top: 10px;
|
9
9
|
&:first-child {
|
@@ -20,7 +20,7 @@ $grayColor: #999999;
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
|
23
|
-
|
23
|
+
.#{$weui_ns}panel_hd {
|
24
24
|
padding: 14px 15px 10px;
|
25
25
|
color: $grayColor;
|
26
26
|
font-size: 13px;
|
@@ -31,7 +31,7 @@ $grayColor: #999999;
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
|
34
|
-
|
34
|
+
.#{$weui_ns}panel_ft {
|
35
35
|
padding: 10px 15px 12px;
|
36
36
|
color: $grayColor;
|
37
37
|
font-size: 14px;
|
@@ -40,7 +40,7 @@ $grayColor: #999999;
|
|
40
40
|
@include setTopLine($lineColor);
|
41
41
|
left: 15px;
|
42
42
|
}
|
43
|
-
|
43
|
+
.#{$weui_ns}panel_access & {
|
44
44
|
display: block;
|
45
45
|
color: #586C94;
|
46
46
|
@include setTapColor();
|
@@ -1,23 +1,23 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}progress {
|
4
4
|
display: flex;
|
5
5
|
align-items: center;
|
6
6
|
}
|
7
7
|
|
8
|
-
|
8
|
+
.#{$weui_ns}progress_bar {
|
9
9
|
background-color: $weuiProgressBg;
|
10
10
|
height: $weuiProgressHeight;
|
11
11
|
flex: 1;
|
12
12
|
}
|
13
13
|
|
14
|
-
|
14
|
+
.#{$weui_ns}progress_inner_bar {
|
15
15
|
width: 0;
|
16
16
|
height: 100%;
|
17
17
|
background-color: $weuiProgressColor;
|
18
18
|
}
|
19
19
|
|
20
|
-
|
20
|
+
.#{$weui_ns}progress_opr {
|
21
21
|
margin-left: 15px;
|
22
22
|
font-size: 0;
|
23
23
|
}
|
@@ -1,27 +1,26 @@
|
|
1
1
|
@import "../../base/fn";
|
2
|
-
|
2
|
+
.#{$weui_ns}search_bar {
|
3
3
|
position: relative;
|
4
4
|
padding: 8px 10px;
|
5
5
|
display: flex;
|
6
6
|
box-sizing: border-box;
|
7
7
|
background-color: #EFEFF4;
|
8
|
-
z-index: 2;
|
9
8
|
&:before {
|
10
9
|
@include setTopLine();
|
11
10
|
}
|
12
11
|
&:after {
|
13
12
|
@include setBottomLine();
|
14
13
|
}
|
15
|
-
|
16
|
-
|
14
|
+
&.#{$weui_ns}search_focusing {
|
15
|
+
.#{$weui_ns}search_cancel {
|
17
16
|
display: block;
|
18
17
|
}
|
19
|
-
|
18
|
+
.#{$weui_ns}search_text {
|
20
19
|
display: none;
|
21
20
|
}
|
22
21
|
}
|
23
22
|
}
|
24
|
-
|
23
|
+
.#{$weui_ns}search_outer {
|
25
24
|
position: relative;
|
26
25
|
flex: auto;
|
27
26
|
background-color: #EFEFF4;
|
@@ -40,7 +39,7 @@
|
|
40
39
|
background: #FFFFFF;
|
41
40
|
}
|
42
41
|
}
|
43
|
-
|
42
|
+
.#{$weui_ns}search_inner {
|
44
43
|
position: relative;
|
45
44
|
padding-left: 30px;
|
46
45
|
padding-right: 30px;
|
@@ -48,26 +47,26 @@
|
|
48
47
|
width: 100%;
|
49
48
|
box-sizing: border-box;
|
50
49
|
z-index: 1;
|
51
|
-
|
50
|
+
.#{$weui_ns}search_input {
|
52
51
|
padding: 4px 0;
|
53
52
|
width: 100%;
|
54
|
-
height: 20/
|
53
|
+
height: 20/14*1em;
|
55
54
|
border: 0;
|
56
55
|
font-size: 14px;
|
57
|
-
line-height: 20/
|
56
|
+
line-height: 20/14*1em;
|
58
57
|
box-sizing: content-box;
|
59
58
|
background: transparent;
|
60
59
|
&:focus {
|
61
60
|
outline: none;
|
62
61
|
}
|
63
62
|
}
|
64
|
-
|
63
|
+
.#{$weui_ns}icon_search {
|
65
64
|
position: absolute;
|
66
65
|
left: 10px;
|
67
66
|
top: -2px;
|
68
67
|
line-height: 28px;
|
69
68
|
}
|
70
|
-
|
69
|
+
.#{$weui_ns}icon_clear {
|
71
70
|
position: absolute;
|
72
71
|
top: -2px;
|
73
72
|
right: 0;
|
@@ -75,7 +74,7 @@
|
|
75
74
|
line-height: 28px;
|
76
75
|
}
|
77
76
|
}
|
78
|
-
|
77
|
+
.#{$weui_ns}search_text {
|
79
78
|
position: absolute;
|
80
79
|
top: 1px;
|
81
80
|
right: 1px;
|
@@ -91,17 +90,18 @@
|
|
91
90
|
font-size: 14px;
|
92
91
|
vertical-align: middle;
|
93
92
|
}
|
94
|
-
|
93
|
+
.#{$weui_ns}icon_search {
|
95
94
|
margin-right: 5px;
|
96
95
|
}
|
97
96
|
}
|
98
|
-
|
97
|
+
.#{$weui_ns}search_cancel {
|
99
98
|
display: none;
|
100
99
|
margin-left: 10px;
|
101
100
|
line-height: 28px;
|
101
|
+
white-space: nowrap;
|
102
102
|
color: #09BB07;
|
103
103
|
}
|
104
|
-
|
104
|
+
.#{$weui_ns}search_input:not(:valid) ~ .#{$weui_ns}icon_clear {
|
105
105
|
display: none;
|
106
106
|
}
|
107
107
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}navbar {
|
4
4
|
display: flex;
|
5
5
|
position: absolute;
|
6
|
-
z-index:
|
6
|
+
z-index: 500;
|
7
7
|
top: 0;
|
8
8
|
width: 100%;
|
9
9
|
background-color: #fafafa;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
@include setBottomLine($globalBorderColor);
|
13
13
|
}
|
14
14
|
|
15
|
-
& +
|
15
|
+
& + .#{$weui_ns}tab_bd {
|
16
16
|
padding-top: 50px;
|
17
17
|
padding-bottom: 0;
|
18
18
|
}
|
19
19
|
}
|
20
20
|
|
21
|
-
|
21
|
+
.#{$weui_ns}navbar_item {
|
22
22
|
position: relative;
|
23
23
|
display: block;
|
24
24
|
flex: 1;
|
@@ -31,7 +31,7 @@
|
|
31
31
|
background-color: #ededed;
|
32
32
|
}
|
33
33
|
|
34
|
-
|
34
|
+
&.#{$weui_ns}bar_item_on {
|
35
35
|
background-color: #eaeaea;
|
36
36
|
}
|
37
37
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}tabbar {
|
4
4
|
display: flex;
|
5
5
|
position: absolute;
|
6
|
+
z-index: 500;
|
6
7
|
bottom: 0;
|
7
8
|
width: 100%;
|
8
9
|
background-color: #f7f7fa;
|
@@ -12,20 +13,20 @@
|
|
12
13
|
}
|
13
14
|
}
|
14
15
|
|
15
|
-
|
16
|
+
.#{$weui_ns}tabbar_item {
|
16
17
|
display: block;
|
17
18
|
flex: 1;
|
18
19
|
padding: 7px 0 0;
|
19
20
|
-webkit-tap-highlight-color: transparent;
|
20
21
|
|
21
|
-
|
22
|
-
|
22
|
+
&.#{$weui_ns}bar_item_on {
|
23
|
+
.#{$weui_ns}tabbar_label {
|
23
24
|
color: #09BB07;
|
24
25
|
}
|
25
26
|
}
|
26
27
|
}
|
27
28
|
|
28
|
-
|
29
|
+
.#{$weui_ns}tabbar_icon {
|
29
30
|
margin: 0 auto;
|
30
31
|
width: 24px;
|
31
32
|
height: 24px;
|
@@ -36,12 +37,12 @@
|
|
36
37
|
height: 100%;
|
37
38
|
}
|
38
39
|
|
39
|
-
& +
|
40
|
+
& + .#{$weui_ns}tabbar_label {
|
40
41
|
margin-top: 5px;
|
41
42
|
}
|
42
43
|
}
|
43
44
|
|
44
|
-
|
45
|
+
.#{$weui_ns}tabbar_label {
|
45
46
|
text-align: center;
|
46
47
|
color: $globalTextColor;
|
47
48
|
font-size: 12px;
|
@@ -2,12 +2,12 @@
|
|
2
2
|
@import "tabbar";
|
3
3
|
@import "navbar";
|
4
4
|
|
5
|
-
|
5
|
+
.#{$weui_ns}tab {
|
6
6
|
position: relative;
|
7
7
|
height: 100%;
|
8
8
|
}
|
9
9
|
|
10
|
-
|
10
|
+
.#{$weui_ns}tab_bd {
|
11
11
|
box-sizing: border-box;
|
12
12
|
height: 100%;
|
13
13
|
padding-bottom: 55px;
|
@@ -15,6 +15,10 @@
|
|
15
15
|
-webkit-overflow-scrolling: touch;
|
16
16
|
}
|
17
17
|
|
18
|
-
|
18
|
+
.#{$weui_ns}tab_bd_item {
|
19
19
|
display: none;
|
20
|
-
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.#{$weui_ns}tab_bd_item_active {
|
23
|
+
display: block;
|
24
|
+
}
|
@@ -1,25 +1,25 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
$bgColor: #ECECEC;
|
3
|
-
|
3
|
+
.#{$weui_ns}actionsheet {
|
4
4
|
position: fixed;
|
5
5
|
left: 0;
|
6
6
|
bottom: 0;
|
7
7
|
transform: translate(0, 100%);
|
8
8
|
backface-visibility: hidden;
|
9
|
-
z-index:
|
9
|
+
z-index: 5000;
|
10
10
|
width: 100%;
|
11
11
|
background-color: $pageDefaultBackgroundColor;
|
12
12
|
//slide up animation
|
13
13
|
transition: transform .3s;
|
14
14
|
}
|
15
|
-
|
15
|
+
.#{$weui_ns}actionsheet_menu{
|
16
16
|
background-color: #FFFFFF;
|
17
17
|
}
|
18
|
-
|
18
|
+
.#{$weui_ns}actionsheet_action {
|
19
19
|
margin-top: 6px;
|
20
20
|
background-color: #FFFFFF;
|
21
21
|
}
|
22
|
-
|
22
|
+
.#{$weui_ns}actionsheet_cell {
|
23
23
|
position: relative;
|
24
24
|
padding: 10px 0;
|
25
25
|
text-align: center;
|
@@ -38,6 +38,6 @@ $bgColor: #ECECEC;
|
|
38
38
|
}
|
39
39
|
|
40
40
|
//actionSheet aniamtion
|
41
|
-
|
41
|
+
.#{$weui_ns}actionsheet_toggle{
|
42
42
|
transform: translate(0, 0);
|
43
43
|
}
|
@@ -5,9 +5,9 @@ $weuiDialogLineColor: #D5D5D6;
|
|
5
5
|
$weuiDialogLinkColor: #3CC51F;
|
6
6
|
$weuiDialogLinkActiveBc: #EEEEEE;
|
7
7
|
|
8
|
-
|
8
|
+
.#{$weui_ns}dialog {
|
9
9
|
position: fixed;
|
10
|
-
z-index:
|
10
|
+
z-index: 5000;
|
11
11
|
width: 85%;
|
12
12
|
top: 50%;
|
13
13
|
left: 50%;
|
@@ -16,26 +16,27 @@ $weuiDialogLinkActiveBc: #EEEEEE;
|
|
16
16
|
background-color: $weuiDialogBackgroundColor;
|
17
17
|
text-align: center;
|
18
18
|
border-radius: 3px;
|
19
|
-
|
20
|
-
|
19
|
+
overflow: hidden;
|
20
|
+
.#{$weui_ns}dialog_confirm & {
|
21
|
+
.#{$weui_ns}dialog_hd {
|
21
22
|
padding: 1.2em 20px .5em;
|
22
23
|
}
|
23
|
-
|
24
|
+
.#{$weui_ns}dialog_bd {
|
24
25
|
text-align: left;
|
25
26
|
}
|
26
27
|
}
|
27
28
|
}
|
28
29
|
|
29
|
-
|
30
|
+
.#{$weui_ns}dialog_hd {
|
30
31
|
padding: 1.2em 0 .5em;
|
31
32
|
}
|
32
33
|
|
33
|
-
|
34
|
+
.#{$weui_ns}dialog_title {
|
34
35
|
font-weight: 400;
|
35
36
|
font-size: 17px;
|
36
37
|
}
|
37
38
|
|
38
|
-
|
39
|
+
.#{$weui_ns}dialog_bd {
|
39
40
|
padding: 0 20px;
|
40
41
|
font-size: 15px;
|
41
42
|
color: $globalTextColor;
|
@@ -43,7 +44,7 @@ $weuiDialogLinkActiveBc: #EEEEEE;
|
|
43
44
|
word-break: break-all;
|
44
45
|
}
|
45
46
|
|
46
|
-
|
47
|
+
.#{$weui_ns}dialog_ft {
|
47
48
|
position: relative;
|
48
49
|
line-height: 42px;
|
49
50
|
margin-top: 20px;
|
@@ -60,14 +61,12 @@ $weuiDialogLinkActiveBc: #EEEEEE;
|
|
60
61
|
}
|
61
62
|
}
|
62
63
|
&:after {
|
63
|
-
content: " ";
|
64
64
|
@include setTopLine($weuiDialogLineColor);
|
65
65
|
}
|
66
|
-
|
66
|
+
.#{$weui_ns}dialog_confirm & {
|
67
67
|
a {
|
68
68
|
position: relative;
|
69
69
|
&:after {
|
70
|
-
content: " ";
|
71
70
|
@include setLeftLine($weuiDialogLineColor);
|
72
71
|
}
|
73
72
|
&:first-child {
|
@@ -79,7 +78,7 @@ $weuiDialogLinkActiveBc: #EEEEEE;
|
|
79
78
|
}
|
80
79
|
}
|
81
80
|
|
82
|
-
|
81
|
+
.#{$weui_ns}btn_dialog {
|
83
82
|
&.default {
|
84
83
|
color: #353535;
|
85
84
|
}
|
@@ -89,7 +88,7 @@ $weuiDialogLinkActiveBc: #EEEEEE;
|
|
89
88
|
}
|
90
89
|
|
91
90
|
@media screen and (min-width: 1024px) {
|
92
|
-
|
91
|
+
.#{$weui_ns}dialog {
|
93
92
|
width: 35%;
|
94
93
|
}
|
95
94
|
}
|