weui-rails 0.4.4 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -1
- data/app/views/weui/_message_box.html.erb +8 -8
- data/app/views/weui/message_box.html.erb +1 -1
- data/lib/weui-rails/helpers/weui_message_box.rb +1 -1
- data/lib/weui-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/_weui.scss +43 -23
- data/vendor/assets/stylesheets/base/fn.scss +9 -6
- data/vendor/assets/stylesheets/base/mixin/_mobile.scss +1 -18
- data/vendor/assets/stylesheets/base/mixin/_setArrow.scss +11 -82
- data/vendor/assets/stylesheets/base/mixin/_setOnepx.scss +4 -4
- data/vendor/assets/stylesheets/base/mixin/_text.scss +5 -0
- data/vendor/assets/stylesheets/base/reset.scss +4 -3
- data/vendor/assets/stylesheets/base/variable/_color.scss +20 -0
- data/vendor/assets/stylesheets/base/variable/_global.scss +6 -32
- data/vendor/assets/stylesheets/base/variable/_weui-button.scss +37 -0
- data/vendor/assets/stylesheets/base/variable/{_weui_cell.scss → _weui-cell.scss} +11 -3
- data/vendor/assets/stylesheets/base/variable/_weui-dialog.scss +5 -0
- data/vendor/assets/stylesheets/base/variable/{_weui_grid.scss → _weui-grid.scss} +0 -0
- data/vendor/assets/stylesheets/base/variable/{_weui_msg.scss → _weui-msg.scss} +0 -0
- data/vendor/assets/stylesheets/base/variable/{_weui_progress.scss → _weui-progress.scss} +0 -0
- data/vendor/assets/stylesheets/icon/weui-font.scss +56 -0
- data/vendor/assets/stylesheets/icon/weui-icon_font.scss +94 -0
- data/vendor/assets/stylesheets/widget/weui-agree/weui-agree.scss +59 -0
- data/vendor/assets/stylesheets/widget/weui-animate/weui-animate.scss +54 -0
- data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_default.scss → weui-button/weui-btn_default.scss} +1 -1
- data/vendor/assets/stylesheets/widget/weui-button/weui-btn_disabled.scss +15 -0
- data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_global.scss → weui-button/weui-btn_global.scss} +4 -5
- data/vendor/assets/stylesheets/widget/weui-button/weui-btn_plain.scss +29 -0
- data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_primary.scss → weui-button/weui-btn_primary.scss} +0 -0
- data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_warn.scss → weui-button/weui-btn_warn.scss} +0 -0
- data/vendor/assets/stylesheets/widget/weui-button/weui-button.scss +60 -0
- data/vendor/assets/stylesheets/widget/weui-cell/weui-access.scss +32 -0
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_cell_global.scss → weui-cell/weui-cell_global.scss} +25 -29
- data/vendor/assets/stylesheets/widget/weui-cell/weui-check.scss +4 -0
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_check_common.scss → weui-cell/weui-check/weui-check_common.scss} +0 -0
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_checkbox.scss → weui-cell/weui-check/weui-checkbox.scss} +3 -3
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_radio.scss → weui-cell/weui-check/weui-radio.scss} +2 -2
- data/vendor/assets/stylesheets/widget/weui-cell/weui-form.scss +5 -0
- data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-form-preview.scss +89 -0
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_form/weui_form_common.scss → weui-cell/weui-form/weui-form_common.scss} +26 -26
- data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-select.scss +69 -0
- data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-vcode.scss +27 -0
- data/vendor/assets/stylesheets/widget/weui-cell/weui-gallery.scss +35 -0
- data/vendor/assets/stylesheets/widget/weui-cell/weui-switch.scss +52 -0
- data/vendor/assets/stylesheets/widget/{weui_cell/weui_uploader.scss → weui-cell/weui-uploader.scss} +36 -36
- data/vendor/assets/stylesheets/widget/weui-flex/weui-flex.scss +8 -0
- data/vendor/assets/stylesheets/widget/weui-footer/weui-footer.scss +41 -0
- data/vendor/assets/stylesheets/widget/weui-grid/weui-grid.scss +55 -0
- data/vendor/assets/stylesheets/widget/weui-loading/weui-loading.scss +32 -0
- data/vendor/assets/stylesheets/widget/weui-media-box/weui-media-box.scss +87 -0
- data/vendor/assets/stylesheets/widget/{weui_page/weui_article.scss → weui-page/weui-article.scss} +5 -4
- data/vendor/assets/stylesheets/widget/weui-page/weui-msg.scss +45 -0
- data/vendor/assets/stylesheets/widget/weui-panel/weui-panel.scss +34 -0
- data/vendor/assets/stylesheets/widget/weui-picker/weui-picker.scss +98 -0
- data/vendor/assets/stylesheets/widget/weui-progress/weui-progress.scss +24 -0
- data/vendor/assets/stylesheets/widget/{weui_searchbar/weui_searchbar.scss → weui-searchbar/weui-searchbar.scss} +17 -17
- data/vendor/assets/stylesheets/widget/{weui_tab → weui-tab}/navbar.scss +7 -7
- data/vendor/assets/stylesheets/widget/weui-tab/tabbar.scss +57 -0
- data/vendor/assets/stylesheets/widget/{weui_tab/weui_tab.scss → weui-tab/weui-tab.scss} +2 -6
- data/vendor/assets/stylesheets/widget/weui-tips/weui-actionsheet.scss +84 -0
- data/vendor/assets/stylesheets/widget/weui-tips/weui-dialog.scss +133 -0
- data/vendor/assets/stylesheets/widget/weui-tips/weui-loadmore.scss +41 -0
- data/vendor/assets/stylesheets/widget/weui-tips/weui-mask.scss +20 -0
- data/vendor/assets/stylesheets/widget/weui-tips/weui-toast.scss +35 -0
- metadata +54 -47
- data/vendor/assets/stylesheets/base/mixin/_setChecked.scss +0 -21
- data/vendor/assets/stylesheets/base/variable/_monokai.scss +0 -11
- data/vendor/assets/stylesheets/base/variable/_weui_button.scss +0 -21
- data/vendor/assets/stylesheets/icon/weui_font.scss +0 -63
- data/vendor/assets/stylesheets/icon/weui_icon_font.scss +0 -83
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_disabled.scss +0 -9
- data/vendor/assets/stylesheets/widget/weui_button/weui_btn_plain.scss +0 -30
- data/vendor/assets/stylesheets/widget/weui_button/weui_button.scss +0 -58
- data/vendor/assets/stylesheets/widget/weui_cell/weui_access.scss +0 -23
- data/vendor/assets/stylesheets/widget/weui_cell/weui_check.scss +0 -4
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form.scss +0 -6
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select.scss +0 -39
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_after.scss +0 -9
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_before.scss +0 -31
- data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_vcode.scss +0 -14
- data/vendor/assets/stylesheets/widget/weui_cell/weui_switch.scss +0 -56
- data/vendor/assets/stylesheets/widget/weui_grid/weui_grid.scss +0 -73
- data/vendor/assets/stylesheets/widget/weui_media_box/weui_media_box.scss +0 -93
- data/vendor/assets/stylesheets/widget/weui_page/weui_msg.scss +0 -48
- data/vendor/assets/stylesheets/widget/weui_panel/weui_panel.scss +0 -64
- data/vendor/assets/stylesheets/widget/weui_progress/weui_progress.scss +0 -23
- data/vendor/assets/stylesheets/widget/weui_tab/tabbar.scss +0 -49
- data/vendor/assets/stylesheets/widget/weui_tips/weui_actionsheet.scss +0 -43
- data/vendor/assets/stylesheets/widget/weui_tips/weui_dialog.scss +0 -94
- data/vendor/assets/stylesheets/widget/weui_tips/weui_mask.scss +0 -35
- data/vendor/assets/stylesheets/widget/weui_tips/weui_toast.scss +0 -349
@@ -0,0 +1,35 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
$weuiGalleryOprHeight: 60px;
|
4
|
+
.#{$weui_ns}gallery {
|
5
|
+
display: none;
|
6
|
+
position: fixed;
|
7
|
+
top: 0;
|
8
|
+
right: 0;
|
9
|
+
bottom: 0;
|
10
|
+
left: 0;
|
11
|
+
background-color: #000000;
|
12
|
+
z-index: 1000;
|
13
|
+
}
|
14
|
+
.#{$weui_ns}gallery__img {
|
15
|
+
position: absolute;
|
16
|
+
top: 0;
|
17
|
+
right: 0;
|
18
|
+
bottom: $weuiGalleryOprHeight;
|
19
|
+
left: 0;
|
20
|
+
background: center center no-repeat;
|
21
|
+
background-size: contain;
|
22
|
+
}
|
23
|
+
.#{$weui_ns}gallery__opr {
|
24
|
+
position: absolute;
|
25
|
+
right: 0;
|
26
|
+
bottom: 0;
|
27
|
+
left: 0;
|
28
|
+
background-color: #0D0D0D;
|
29
|
+
color: #FFFFFF;
|
30
|
+
line-height: $weuiGalleryOprHeight;
|
31
|
+
text-align: center;
|
32
|
+
}
|
33
|
+
.#{$weui_ns}gallery__del {
|
34
|
+
display: block;
|
35
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.#{$weui_ns}cell_switch{
|
4
|
+
padding-top: ($weuiCellHeight - $weuiSwitchHeight) / 2;
|
5
|
+
padding-bottom: ($weuiCellHeight - $weuiSwitchHeight) / 2;
|
6
|
+
}
|
7
|
+
.#{$weui_ns}switch{
|
8
|
+
appearance: none;
|
9
|
+
position: relative;
|
10
|
+
width: 52px;
|
11
|
+
height: $weuiSwitchHeight;
|
12
|
+
border: 1px solid #DFDFDF;
|
13
|
+
outline: 0;
|
14
|
+
border-radius: 16px;
|
15
|
+
box-sizing: border-box;
|
16
|
+
background-color: #DFDFDF;
|
17
|
+
transition: background-color .1s, border .1s;
|
18
|
+
&:before{
|
19
|
+
content: " ";
|
20
|
+
position: absolute;
|
21
|
+
top: 0;
|
22
|
+
left: 0;
|
23
|
+
width: 50px;
|
24
|
+
height: $weuiSwitchHeight - 2;
|
25
|
+
border-radius: 15px;
|
26
|
+
background-color: #FDFDFD;
|
27
|
+
transition:transform .35s cubic-bezier(0.45, 1, 0.4, 1);
|
28
|
+
}
|
29
|
+
&:after{
|
30
|
+
content: " ";
|
31
|
+
position: absolute;
|
32
|
+
top: 0;
|
33
|
+
left: 0;
|
34
|
+
width: $weuiSwitchHeight - 2;
|
35
|
+
height: $weuiSwitchHeight - 2;
|
36
|
+
border-radius: 15px;
|
37
|
+
background-color: #FFFFFF;
|
38
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
|
39
|
+
transition:transform .35s cubic-bezier(0.4, 0.4, 0.25, 1.35);
|
40
|
+
}
|
41
|
+
|
42
|
+
&:checked{
|
43
|
+
border-color: #04BE02;
|
44
|
+
background-color: #04BE02;
|
45
|
+
&:before{
|
46
|
+
transform: scale(0);
|
47
|
+
}
|
48
|
+
&:after{
|
49
|
+
transform: translateX(20px);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
data/vendor/assets/stylesheets/widget/{weui_cell/weui_uploader.scss → weui-cell/weui-uploader.scss}
RENAMED
@@ -1,30 +1,27 @@
|
|
1
1
|
@import "../../base/fn";
|
2
2
|
|
3
|
-
$weuiUploaderBorderColor: #D9D9D9;
|
4
|
-
$weuiUploaderActiveBorderColor: #999999;
|
5
|
-
$weuiUploaderFileSpacing: 9px;
|
6
|
-
$weuiUploaderSize: 79px;
|
7
|
-
$weuiUploaderBorderWidth: 1px;
|
8
|
-
|
9
3
|
.#{$weui_ns}uploader{}
|
10
|
-
.#{$weui_ns}
|
11
|
-
|
12
|
-
padding-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
4
|
+
.#{$weui_ns}uploader__hd{
|
5
|
+
display: flex;
|
6
|
+
padding-bottom: $weuiCellGapV;
|
7
|
+
align-items: center;
|
8
|
+
}
|
9
|
+
.#{$weui_ns}uploader__title{
|
10
|
+
flex: 1;
|
11
|
+
}
|
12
|
+
.#{$weui_ns}uploader__info{
|
13
|
+
color: $weuiTextColorTips;
|
17
14
|
}
|
18
|
-
|
15
|
+
|
16
|
+
.#{$weui_ns}uploader__bd{
|
19
17
|
margin-bottom: $weuiCellGapH - ($weuiCellGapV + $weuiUploaderFileSpacing);
|
20
18
|
margin-right: -$weuiUploaderFileSpacing;
|
21
19
|
overflow: hidden;
|
22
20
|
}
|
23
|
-
|
24
|
-
.#{$weui_ns}uploader_files {
|
21
|
+
.#{$weui_ns}uploader__files{
|
25
22
|
list-style: none;
|
26
23
|
}
|
27
|
-
.#{$weui_ns}
|
24
|
+
.#{$weui_ns}uploader__file{
|
28
25
|
float: left;
|
29
26
|
margin-right: $weuiUploaderFileSpacing;
|
30
27
|
margin-bottom: $weuiUploaderFileSpacing;
|
@@ -33,9 +30,9 @@ $weuiUploaderBorderWidth: 1px;
|
|
33
30
|
background: no-repeat center center;
|
34
31
|
background-size: cover;
|
35
32
|
}
|
36
|
-
.#{$weui_ns}
|
33
|
+
.#{$weui_ns}uploader__file_status{
|
37
34
|
position: relative;
|
38
|
-
&:before
|
35
|
+
&:before{
|
39
36
|
content: " ";
|
40
37
|
position: absolute;
|
41
38
|
top: 0;
|
@@ -44,19 +41,22 @@ $weuiUploaderBorderWidth: 1px;
|
|
44
41
|
left: 0;
|
45
42
|
background-color: rgba(0, 0, 0, .5);
|
46
43
|
}
|
47
|
-
.#{$weui_ns}
|
48
|
-
position: absolute;
|
49
|
-
top: 50%;
|
50
|
-
left: 50%;
|
51
|
-
transform: translate(-50%, -50%);
|
52
|
-
color: #FFFFFF;
|
53
|
-
}
|
54
|
-
.#{$weui_ns}icon_warn {
|
44
|
+
.#{$weui_ns}uploader__file-content{
|
55
45
|
display: block;
|
56
46
|
}
|
57
47
|
}
|
58
|
-
|
59
|
-
|
48
|
+
.#{$weui_ns}uploader__file-content{
|
49
|
+
display: none;
|
50
|
+
position: absolute;
|
51
|
+
top: 50%;
|
52
|
+
left: 50%;
|
53
|
+
transform: translate(-50%, -50%);
|
54
|
+
color: #FFFFFF;
|
55
|
+
.weui-icon-warn{
|
56
|
+
display: inline-block;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
.#{$weui_ns}uploader__input-box{
|
60
60
|
float:left;
|
61
61
|
position: relative;
|
62
62
|
margin-right: $weuiUploaderFileSpacing;
|
@@ -64,7 +64,7 @@ $weuiUploaderBorderWidth: 1px;
|
|
64
64
|
width: $weuiUploaderSize - $weuiUploaderBorderWidth * 2;
|
65
65
|
height: $weuiUploaderSize - $weuiUploaderBorderWidth * 2;
|
66
66
|
border: $weuiUploaderBorderWidth solid $weuiUploaderBorderColor;
|
67
|
-
&:before, &:after
|
67
|
+
&:before, &:after{
|
68
68
|
content: " ";
|
69
69
|
position: absolute;
|
70
70
|
top: 50%;
|
@@ -72,22 +72,22 @@ $weuiUploaderBorderWidth: 1px;
|
|
72
72
|
transform: translate(-50%, -50%);
|
73
73
|
background-color: $weuiUploaderBorderColor;
|
74
74
|
}
|
75
|
-
&:before
|
75
|
+
&:before{
|
76
76
|
width: $weuiUploaderBorderWidth + 1;
|
77
77
|
height: $weuiUploaderSize / 2;
|
78
78
|
}
|
79
|
-
&:after
|
79
|
+
&:after{
|
80
80
|
width: $weuiUploaderSize / 2;
|
81
81
|
height: $weuiUploaderBorderWidth + 1;
|
82
82
|
}
|
83
|
-
&:active
|
83
|
+
&:active{
|
84
84
|
border-color: $weuiUploaderActiveBorderColor;
|
85
|
-
&:before, &:after
|
85
|
+
&:before, &:after{
|
86
86
|
background-color: $weuiUploaderActiveBorderColor;
|
87
87
|
}
|
88
88
|
}
|
89
89
|
}
|
90
|
-
.#{$weui_ns}
|
90
|
+
.#{$weui_ns}uploader__input{
|
91
91
|
position: absolute;
|
92
92
|
z-index: 1;
|
93
93
|
top: 0;
|
@@ -95,5 +95,5 @@ $weuiUploaderBorderWidth: 1px;
|
|
95
95
|
width: 100%;
|
96
96
|
height: 100%;
|
97
97
|
opacity: 0;
|
98
|
-
|
98
|
+
@include setTapColor();
|
99
99
|
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.#{$weui_ns}footer {
|
4
|
+
color: $weuiTextColorGray;
|
5
|
+
font-size: 14px;
|
6
|
+
text-align: center;
|
7
|
+
a{
|
8
|
+
color: $weuiLinkColorDefault;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
.#{$weui_ns}footer_fixed-bottom{
|
12
|
+
position: fixed;
|
13
|
+
bottom: .52em;
|
14
|
+
left: 0;
|
15
|
+
right: 0;
|
16
|
+
}
|
17
|
+
.#{$weui_ns}footer__links{
|
18
|
+
font-size: 0;
|
19
|
+
}
|
20
|
+
.#{$weui_ns}footer__link{
|
21
|
+
display: inline-block;
|
22
|
+
vertical-align: top;
|
23
|
+
margin: 0 .62em;
|
24
|
+
position: relative;
|
25
|
+
font-size: 14px;
|
26
|
+
&:before{
|
27
|
+
@include setLeftLine();
|
28
|
+
left: -.65em;
|
29
|
+
top: .36em;
|
30
|
+
bottom: .36em;
|
31
|
+
}
|
32
|
+
&:first-child{
|
33
|
+
&:before{
|
34
|
+
display: none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
.#{$weui_ns}footer__text{
|
39
|
+
padding: 0 .34em;
|
40
|
+
font-size: 12px;
|
41
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.#{$weui_ns}grids {
|
4
|
+
position: relative;
|
5
|
+
overflow: hidden;
|
6
|
+
|
7
|
+
&:before {
|
8
|
+
@include setTopLine($weuiGridBorderColor);
|
9
|
+
}
|
10
|
+
&:after {
|
11
|
+
@include setLeftLine($weuiGridBorderColor);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.#{$weui_ns}grid {
|
16
|
+
position: relative;
|
17
|
+
float: left;
|
18
|
+
padding: 20px 10px;
|
19
|
+
width: 100% / $weuiGridColumnCount;
|
20
|
+
box-sizing: border-box;
|
21
|
+
|
22
|
+
&:before {
|
23
|
+
@include setRightLine($weuiGridBorderColor);
|
24
|
+
}
|
25
|
+
&:after {
|
26
|
+
@include setBottomLine($weuiGridBorderColor);
|
27
|
+
}
|
28
|
+
|
29
|
+
&:active {
|
30
|
+
background-color: $weuiBgColorActive;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.#{$weui_ns}grid__icon {
|
35
|
+
width: $weuiGridIconSize;
|
36
|
+
height: $weuiGridIconSize;
|
37
|
+
margin: 0 auto;
|
38
|
+
|
39
|
+
img {
|
40
|
+
display: block;
|
41
|
+
width: 100%;
|
42
|
+
height: 100%;
|
43
|
+
}
|
44
|
+
|
45
|
+
& + .#{$weui_ns}grid__label{
|
46
|
+
margin-top: 5px;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
.#{$weui_ns}grid__label {
|
51
|
+
display: block;
|
52
|
+
text-align: center;
|
53
|
+
color: $weuiTextColorTitle;
|
54
|
+
font-size: $weuiGridFontSize;
|
55
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.#{$weui_ns}loading {
|
4
|
+
width:20px;
|
5
|
+
height:20px;
|
6
|
+
display: inline-block;
|
7
|
+
vertical-align: middle;
|
8
|
+
animation: weuiLoading 1s steps(12, end) infinite;
|
9
|
+
background: transparent url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iciIgd2lkdGg9JzEyMHB4JyBoZWlnaHQ9JzEyMHB4JyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJub25lIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxyZWN0IHg9JzQ2LjUnIHk9JzQwJyB3aWR0aD0nNycgaGVpZ2h0PScyMCcgcng9JzUnIHJ5PSc1JyBmaWxsPScjRTlFOUU5JwogICAgICAgICAgdHJhbnNmb3JtPSdyb3RhdGUoMCA1MCA1MCkgdHJhbnNsYXRlKDAgLTMwKSc+CiAgICA8L3JlY3Q+CiAgICA8cmVjdCB4PSc0Ni41JyB5PSc0MCcgd2lkdGg9JzcnIGhlaWdodD0nMjAnIHJ4PSc1JyByeT0nNScgZmlsbD0nIzk4OTY5NycKICAgICAgICAgIHRyYW5zZm9ybT0ncm90YXRlKDMwIDUwIDUwKSB0cmFuc2xh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100%;
|
12
|
+
}
|
13
|
+
|
14
|
+
@-webkit-keyframes weuiLoading {
|
15
|
+
0% {
|
16
|
+
-webkit-transform: rotate3d(0, 0, 1, 0deg);
|
17
|
+
}
|
18
|
+
|
19
|
+
100% {
|
20
|
+
-webkit-transform: rotate3d(0, 0, 1, 360deg);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@keyframes weuiLoading {
|
25
|
+
0% {
|
26
|
+
-webkit-transform: rotate3d(0, 0, 1, 0deg);
|
27
|
+
}
|
28
|
+
|
29
|
+
100% {
|
30
|
+
-webkit-transform: rotate3d(0, 0, 1, 360deg);
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
@import "../../base/fn";
|
2
|
+
|
3
|
+
.#{$weui_ns}media-box {
|
4
|
+
padding: 15px;
|
5
|
+
position: relative;
|
6
|
+
&:before {
|
7
|
+
@include setTopLine($weuiLineColorLight);
|
8
|
+
left: 15px;
|
9
|
+
}
|
10
|
+
&:first-child {
|
11
|
+
&:before {
|
12
|
+
display: none
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
a & {
|
17
|
+
color:#000000;
|
18
|
+
@include setTapColor();
|
19
|
+
&:active{
|
20
|
+
background-color:#ECECEC;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.#{$weui_ns}media-box__title {
|
25
|
+
font-weight: 400;
|
26
|
+
font-size: 17px;
|
27
|
+
@include ellipsis();
|
28
|
+
word-wrap: break-word;
|
29
|
+
word-break: break-all;
|
30
|
+
}
|
31
|
+
.#{$weui_ns}media-box__desc {
|
32
|
+
color: $weuiTextColorGray;
|
33
|
+
font-size: 13px;
|
34
|
+
line-height: 1.2;
|
35
|
+
@include ellipsisLn(2);
|
36
|
+
}
|
37
|
+
.#{$weui_ns}media-box__info {
|
38
|
+
margin-top: 15px;
|
39
|
+
padding-bottom: 5px;
|
40
|
+
font-size: 13px;
|
41
|
+
color: #CECECE;
|
42
|
+
line-height: 1em;
|
43
|
+
list-style: none;
|
44
|
+
overflow: hidden;
|
45
|
+
}
|
46
|
+
.#{$weui_ns}media-box__info__meta {
|
47
|
+
float: left;
|
48
|
+
padding-right: 1em;
|
49
|
+
}
|
50
|
+
.#{$weui_ns}media-box__info__meta_extra {
|
51
|
+
padding-left: 1em;
|
52
|
+
border-left: 1px solid #CECECE;
|
53
|
+
}
|
54
|
+
.#{$weui_ns}media-box_text {
|
55
|
+
.#{$weui_ns}media-box__title {
|
56
|
+
margin-bottom: 8px;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
.#{$weui_ns}media-box_appmsg {
|
60
|
+
display: flex;
|
61
|
+
align-items: center;
|
62
|
+
.#{$weui_ns}media-box__hd {
|
63
|
+
margin-right: .8em;
|
64
|
+
width: 60px;
|
65
|
+
height: 60px;
|
66
|
+
line-height: 60px;
|
67
|
+
text-align: center;
|
68
|
+
}
|
69
|
+
.#{$weui_ns}media-box__thumb {
|
70
|
+
width: 100%;
|
71
|
+
max-height: 100%;
|
72
|
+
vertical-align: top;
|
73
|
+
}
|
74
|
+
.#{$weui_ns}media-box__bd {
|
75
|
+
flex: 1;
|
76
|
+
min-width: 0;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
.#{$weui_ns}media-box_small-appmsg {
|
80
|
+
padding: 0;
|
81
|
+
.#{$weui_ns}cells {
|
82
|
+
margin-top: 0;
|
83
|
+
&:before {
|
84
|
+
display: none;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|