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,15 +1,15 @@
|
|
1
1
|
@import "../../../base/fn";
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
.#{$weui_ns}cells_checkbox {
|
4
|
+
.#{$weui_ns}cell_hd {
|
5
5
|
padding-right: $weuiCellInnerGapH;
|
6
6
|
}
|
7
|
-
|
7
|
+
.#{$weui_ns}cell {
|
8
8
|
&:active {
|
9
9
|
background-color: #ECECEC;
|
10
10
|
}
|
11
11
|
}
|
12
|
-
|
12
|
+
.#{$weui_ns}icon_checked {
|
13
13
|
&:before {
|
14
14
|
content: '\EA01';
|
15
15
|
color: #C9C9C9;
|
@@ -20,11 +20,11 @@
|
|
20
20
|
}
|
21
21
|
|
22
22
|
// method2 accessbility
|
23
|
-
|
23
|
+
.#{$weui_ns}check {
|
24
24
|
// checkbox
|
25
|
-
|
25
|
+
.#{$weui_ns}cells_checkbox & {
|
26
26
|
&:checked {
|
27
|
-
& +
|
27
|
+
& + .#{$weui_ns}icon_checked {
|
28
28
|
&:before {
|
29
29
|
content: '\EA06';
|
30
30
|
color: #09BB07;
|
@@ -1,21 +1,21 @@
|
|
1
1
|
@import "../../../base/fn";
|
2
2
|
|
3
3
|
// method2 accessbility
|
4
|
-
|
5
|
-
|
4
|
+
.#{$weui_ns}cells_radio{
|
5
|
+
.#{$weui_ns}cell_ft {
|
6
6
|
padding-left: $weuiCellInnerGapH;
|
7
7
|
}
|
8
|
-
|
8
|
+
.#{$weui_ns}cell {
|
9
9
|
&:active {
|
10
10
|
background-color: #ECECEC;
|
11
11
|
}
|
12
12
|
}
|
13
13
|
}
|
14
|
-
|
14
|
+
.#{$weui_ns}check {
|
15
15
|
// radio
|
16
|
-
|
16
|
+
.#{$weui_ns}cells_radio & {
|
17
17
|
&:checked {
|
18
|
-
& +
|
18
|
+
& + .#{$weui_ns}icon_checked {
|
19
19
|
&:before {
|
20
20
|
display: block;
|
21
21
|
content: '\EA08';
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import "../../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}label {
|
4
4
|
display:block;
|
5
5
|
width:$weuiCellLabelWidth;
|
6
6
|
@include text_wrap();
|
7
7
|
}
|
8
|
-
|
8
|
+
.#{$weui_ns}input {
|
9
9
|
width: 100%;
|
10
10
|
border: 0;
|
11
11
|
outline: 0;
|
@@ -22,7 +22,7 @@
|
|
22
22
|
margin: 0;
|
23
23
|
}
|
24
24
|
}
|
25
|
-
|
25
|
+
.#{$weui_ns}textarea {
|
26
26
|
display: block;
|
27
27
|
border: 0;
|
28
28
|
resize: none;
|
@@ -33,15 +33,15 @@
|
|
33
33
|
outline: 0;
|
34
34
|
}
|
35
35
|
|
36
|
-
|
36
|
+
.#{$weui_ns}textarea_counter {
|
37
37
|
color: $globalDescColor;
|
38
38
|
text-align: right;
|
39
|
-
|
39
|
+
.#{$weui_ns}cell_warn & {
|
40
40
|
color: $globalWarnColor;
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
44
|
-
|
44
|
+
.#{$weui_ns}toptips {
|
45
45
|
display:none;
|
46
46
|
position: fixed;
|
47
47
|
transform: translateZ(0);
|
@@ -51,22 +51,22 @@
|
|
51
51
|
font-size:14px;
|
52
52
|
text-align: center;
|
53
53
|
color: #FFF;
|
54
|
-
z-index:
|
55
|
-
|
54
|
+
z-index: 50000;
|
55
|
+
&.#{$weui_ns}warn {
|
56
56
|
background-color: $globalWarnColor;
|
57
57
|
}
|
58
58
|
}
|
59
|
-
|
60
|
-
|
59
|
+
.#{$weui_ns}cells_form {
|
60
|
+
.#{$weui_ns}cell_warn {
|
61
61
|
color: $globalWarnColor;
|
62
|
-
|
62
|
+
.#{$weui_ns}icon_warn {
|
63
63
|
display:inline-block;
|
64
64
|
}
|
65
65
|
}
|
66
|
-
|
66
|
+
.#{$weui_ns}cell_ft {
|
67
67
|
font-size:0;
|
68
68
|
}
|
69
|
-
|
69
|
+
.#{$weui_ns}icon_warn {
|
70
70
|
display:none;
|
71
71
|
}
|
72
72
|
input, textarea, label[for] {
|
@@ -1,17 +1,17 @@
|
|
1
1
|
@import "../../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}cell_select {
|
4
4
|
padding: 0;
|
5
|
-
|
5
|
+
.#{$weui_ns}select {
|
6
6
|
padding-right: 30px;
|
7
7
|
}
|
8
|
-
|
8
|
+
.#{$weui_ns}access_icon {
|
9
9
|
// position: absolute;
|
10
10
|
// top: 50%;
|
11
11
|
// right: $weuiCellGapH;
|
12
12
|
// margin-top: -12px;
|
13
13
|
}
|
14
|
-
|
14
|
+
.#{$weui_ns}cell_bd{
|
15
15
|
&:after{
|
16
16
|
content: " ";
|
17
17
|
@include setArrow_Wap(right, 6px, #C8C8CD, 2px);
|
@@ -24,7 +24,7 @@
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
|
-
|
27
|
+
.#{$weui_ns}select {
|
28
28
|
-webkit-appearance: none;
|
29
29
|
border: 0;
|
30
30
|
outline: 0;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
@import "../../../base/fn";
|
2
2
|
@import "weui_select";
|
3
3
|
|
4
|
-
|
4
|
+
.#{$weui_ns}select_before {
|
5
5
|
padding-right: $weuiCellGapH;
|
6
|
-
|
6
|
+
.#{$weui_ns}select {
|
7
7
|
width:$weuiCellLabelWidth;
|
8
8
|
box-sizing: border-box;
|
9
9
|
}
|
10
|
-
|
10
|
+
.#{$weui_ns}cell_hd {
|
11
11
|
position: relative;
|
12
12
|
&:after {
|
13
13
|
@include setRightLine($weuiCellBorderColor);
|
@@ -22,7 +22,7 @@
|
|
22
22
|
margin-top: -3px;
|
23
23
|
}
|
24
24
|
}
|
25
|
-
|
25
|
+
.#{$weui_ns}cell_bd {
|
26
26
|
padding-left: $weuiCellGapH;
|
27
27
|
&:after{
|
28
28
|
display:none;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
$weuiSwitchHeight: 32px;
|
3
|
-
|
3
|
+
.#{$weui_ns}cell_switch{
|
4
4
|
padding-top: ($weuiCellHeight - $weuiSwitchHeight) / 2;
|
5
5
|
padding-bottom: ($weuiCellHeight - $weuiSwitchHeight) / 2;
|
6
6
|
}
|
7
|
-
|
7
|
+
.#{$weui_ns}switch{
|
8
8
|
appearance: none;
|
9
9
|
position: relative;
|
10
10
|
width: 52px;
|
@@ -6,25 +6,25 @@ $weuiUploaderFileSpacing: 9px;
|
|
6
6
|
$weuiUploaderSize: 79px;
|
7
7
|
$weuiUploaderBorderWidth: 1px;
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
.#{$weui_ns}uploader{}
|
10
|
+
.#{$weui_ns}uploader_hd {
|
11
11
|
padding-top: 0;
|
12
12
|
padding-right: 0;
|
13
13
|
padding-left: 0;
|
14
|
-
|
14
|
+
.#{$weui_ns}cell_ft {
|
15
15
|
font-size: 1em;
|
16
16
|
}
|
17
17
|
}
|
18
|
-
|
18
|
+
.#{$weui_ns}uploader_bd {
|
19
19
|
margin-bottom: $weuiCellGapH - ($weuiCellGapV + $weuiUploaderFileSpacing);
|
20
20
|
margin-right: -$weuiUploaderFileSpacing;
|
21
21
|
overflow: hidden;
|
22
22
|
}
|
23
23
|
|
24
|
-
|
24
|
+
.#{$weui_ns}uploader_files {
|
25
25
|
list-style: none;
|
26
26
|
}
|
27
|
-
|
27
|
+
.#{$weui_ns}uploader_file {
|
28
28
|
float: left;
|
29
29
|
margin-right: $weuiUploaderFileSpacing;
|
30
30
|
margin-bottom: $weuiUploaderFileSpacing;
|
@@ -33,7 +33,7 @@ $weuiUploaderBorderWidth: 1px;
|
|
33
33
|
background: no-repeat center center;
|
34
34
|
background-size: cover;
|
35
35
|
}
|
36
|
-
|
36
|
+
.#{$weui_ns}uploader_status {
|
37
37
|
position: relative;
|
38
38
|
&:before {
|
39
39
|
content: " ";
|
@@ -44,19 +44,19 @@ $weuiUploaderBorderWidth: 1px;
|
|
44
44
|
left: 0;
|
45
45
|
background-color: rgba(0, 0, 0, .5);
|
46
46
|
}
|
47
|
-
|
47
|
+
.#{$weui_ns}uploader_status_content {
|
48
48
|
position: absolute;
|
49
49
|
top: 50%;
|
50
50
|
left: 50%;
|
51
51
|
transform: translate(-50%, -50%);
|
52
52
|
color: #FFFFFF;
|
53
53
|
}
|
54
|
-
|
54
|
+
.#{$weui_ns}icon_warn {
|
55
55
|
display: block;
|
56
56
|
}
|
57
57
|
}
|
58
58
|
|
59
|
-
|
59
|
+
.#{$weui_ns}uploader_input_wrp {
|
60
60
|
float:left;
|
61
61
|
position: relative;
|
62
62
|
margin-right: $weuiUploaderFileSpacing;
|
@@ -87,7 +87,7 @@ $weuiUploaderBorderWidth: 1px;
|
|
87
87
|
}
|
88
88
|
}
|
89
89
|
}
|
90
|
-
|
90
|
+
.#{$weui_ns}uploader_input{
|
91
91
|
position: absolute;
|
92
92
|
z-index: 1;
|
93
93
|
top: 0;
|
@@ -1,18 +1,24 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
|
3
|
-
|
3
|
+
.#{$weui_ns}grids {
|
4
4
|
position: relative;
|
5
5
|
overflow: hidden;
|
6
6
|
|
7
7
|
&:before {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
content: '';
|
9
|
+
position: absolute;
|
10
|
+
box-sizing: border-box;
|
11
|
+
width: 200%;
|
12
|
+
height: 200%;
|
13
|
+
left: 0;
|
14
|
+
top: 0;
|
15
|
+
border: 1px solid $weuiGridBorderColor;
|
16
|
+
transform-origin: 0 0;
|
17
|
+
transform: scale(.5);
|
12
18
|
}
|
13
19
|
}
|
14
20
|
|
15
|
-
|
21
|
+
.#{$weui_ns}grid {
|
16
22
|
position: relative;
|
17
23
|
float: left;
|
18
24
|
padding: 20px 10px;
|
@@ -20,10 +26,22 @@
|
|
20
26
|
box-sizing: border-box;
|
21
27
|
|
22
28
|
&:before {
|
23
|
-
|
29
|
+
content: '';
|
30
|
+
position: absolute;
|
31
|
+
box-sizing: border-box;
|
32
|
+
width: 200%;
|
33
|
+
height: 200%;
|
34
|
+
left: 0;
|
35
|
+
top: 0;
|
36
|
+
border-bottom: 1px solid $weuiGridBorderColor;
|
37
|
+
border-right: 1px solid $weuiGridBorderColor;
|
38
|
+
transform-origin: 0 0;
|
39
|
+
transform: scale(.5);
|
24
40
|
}
|
25
|
-
&:
|
26
|
-
|
41
|
+
&:nth-child(3n) {
|
42
|
+
&:before {
|
43
|
+
border-right-width: 0;
|
44
|
+
}
|
27
45
|
}
|
28
46
|
|
29
47
|
&:active {
|
@@ -31,7 +49,7 @@
|
|
31
49
|
}
|
32
50
|
}
|
33
51
|
|
34
|
-
|
52
|
+
.#{$weui_ns}grid_icon {
|
35
53
|
width: $weuiGridIconSize;
|
36
54
|
height: $weuiGridIconSize;
|
37
55
|
margin: 0 auto;
|
@@ -42,12 +60,12 @@
|
|
42
60
|
height: 100%;
|
43
61
|
}
|
44
62
|
|
45
|
-
& +
|
63
|
+
& + .#{$weui_ns}grid_label {
|
46
64
|
margin-top: 5px;
|
47
65
|
}
|
48
66
|
}
|
49
67
|
|
50
|
-
|
68
|
+
.#{$weui_ns}grid_label {
|
51
69
|
display: block;
|
52
70
|
text-align: center;
|
53
71
|
color: $globalTitleColor;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
$lineColor: #E5E5E5;
|
4
4
|
$grayColor: #999999;
|
5
5
|
|
6
|
-
|
6
|
+
.#{$weui_ns}media_box {
|
7
7
|
padding: 15px;
|
8
8
|
position: relative;
|
9
9
|
&:before {
|
@@ -15,34 +15,25 @@ $grayColor: #999999;
|
|
15
15
|
display: none
|
16
16
|
}
|
17
17
|
}
|
18
|
-
|
19
|
-
a & {
|
20
|
-
color:#000000;
|
21
|
-
@include setTapColor();
|
22
|
-
&:active {
|
23
|
-
background-color: #ECECEC;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.weui_media_title {
|
18
|
+
.#{$weui_ns}media_title {
|
28
19
|
font-weight: 400;
|
29
20
|
font-size: 17px;
|
30
21
|
@include ellipsis();
|
31
22
|
word-wrap: break-word;
|
32
23
|
word-break: break-all;
|
33
24
|
}
|
34
|
-
|
25
|
+
.#{$weui_ns}media_desc {
|
35
26
|
color: $grayColor;
|
36
27
|
font-size: 13px;
|
37
28
|
line-height: 1.2;
|
38
29
|
@include ellipsisLn(2);
|
39
30
|
}
|
40
31
|
|
41
|
-
|
42
|
-
|
32
|
+
&.#{$weui_ns}media_text {
|
33
|
+
.#{$weui_ns}media_title {
|
43
34
|
margin-bottom: 8px;
|
44
35
|
}
|
45
|
-
|
36
|
+
.#{$weui_ns}media_info {
|
46
37
|
margin-top: 15px;
|
47
38
|
padding-bottom: 5px;
|
48
39
|
font-size: 13px;
|
@@ -51,45 +42,52 @@ $grayColor: #999999;
|
|
51
42
|
list-style: none;
|
52
43
|
overflow: hidden;
|
53
44
|
}
|
54
|
-
|
45
|
+
.#{$weui_ns}media_info_meta {
|
55
46
|
float: left;
|
56
47
|
padding-right: 1em;
|
57
|
-
|
48
|
+
&.#{$weui_ns}media_info_meta_extra {
|
58
49
|
padding-left: 1em;
|
59
50
|
border-left: 1px solid #CECECE;
|
60
51
|
}
|
61
52
|
}
|
62
|
-
|
63
53
|
}
|
64
|
-
|
54
|
+
&.#{$weui_ns}media_appmsg {
|
65
55
|
display: flex;
|
66
56
|
align-items: center;
|
67
|
-
|
57
|
+
.#{$weui_ns}media_hd {
|
68
58
|
margin-right: .8em;
|
69
59
|
width: 60px;
|
70
60
|
height: 60px;
|
71
61
|
line-height: 60px;
|
72
62
|
text-align: center;
|
73
63
|
}
|
74
|
-
|
64
|
+
.#{$weui_ns}media_appmsg_thumb {
|
75
65
|
width: 100%;
|
76
66
|
max-height: 100%;
|
77
|
-
vertical-align:
|
67
|
+
vertical-align: top;
|
78
68
|
}
|
79
|
-
|
69
|
+
.#{$weui_ns}media_bd {
|
80
70
|
flex: 1;
|
81
71
|
min-width: 0;
|
82
72
|
}
|
83
73
|
}
|
84
|
-
|
74
|
+
&.#{$weui_ns}media_small_appmsg {
|
85
75
|
padding: 0;
|
86
|
-
|
76
|
+
.#{$weui_ns}cells {
|
87
77
|
margin-top: 0;
|
88
78
|
&:before {
|
89
79
|
display: none;
|
90
80
|
}
|
91
81
|
}
|
92
|
-
|
82
|
+
.#{$weui_ns}cells_access {
|
93
83
|
}
|
94
84
|
}
|
85
|
+
}
|
86
|
+
|
87
|
+
a.#{$weui_ns}media_box {
|
88
|
+
color:#000000;
|
89
|
+
@include setTapColor();
|
90
|
+
&:active {
|
91
|
+
background-color: #ECECEC;
|
92
|
+
}
|
95
93
|
}
|