weui-rails 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e931d349a189cbcf9b6de1747c68e7d73abf2c29
4
- data.tar.gz: 3cf90655a7a218836d659f8b77136d7452364afe
3
+ metadata.gz: 8f676075193edf332309fc797b748b8c46a49768
4
+ data.tar.gz: d3c463346c8c0615d87886c5e7f6137358a6e08d
5
5
  SHA512:
6
- metadata.gz: 5f42efad3734827986636b1f03a7d35ab4ae97d799d3e8c4ad70b0703b8ea5626497002a2b040b090300e6787b31aa2598aaa24b9c16c7f90b304d6fbc457bf8
7
- data.tar.gz: c6cfc50e169435dfcfaea93c9b7010b71b3da73e5774e8e7fb2c2e98fe11e470c8c24a9b8ffa7cb4ae724688f48cb09cfa8fe43976e0d4ad2e223543828effc1
6
+ metadata.gz: 87464517329ff725917adee8fed0a422b95159b8ec2d436d66f2e84a708df7b281d4ab0e83ca8d7b114b54d7fe67575813dbdd80bc5f2a96573d2b1c7870bb9d
7
+ data.tar.gz: 940569c68fc0f31a30c512ac0d27b1f8bff7ce855382363ae6d9c89a87baff284425b89ed0cf91ccaf6f51aa689615cbbb5f831b0975658f0a49c68fbeaa6ee7
@@ -1,5 +1,5 @@
1
1
  module Weui
2
2
  module Rails
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
4
4
  end
5
5
  end
@@ -12,4 +12,8 @@
12
12
  display: -webkit-box;
13
13
  -webkit-box-orient: vertical;
14
14
  -webkit-line-clamp: $line;
15
+ }
16
+ @mixin text_wrap() {
17
+ word-wrap:break-word;
18
+ word-break:break-all;
15
19
  }
@@ -3,6 +3,8 @@ $weuiCellBorderColor:#D9D9D9;
3
3
  $weuiCellGapV:10px;
4
4
  $weuiCellGapH:15px;
5
5
  $weuiCellInnerGapH:.35em;
6
+ $weuiCellLabelWidth:105px;
7
+
6
8
 
7
9
  $weuiCellHeight: 44px;
8
10
  $weuiCellFontSize:17px;
@@ -1,8 +1,9 @@
1
1
  @import "../../../base/fn";
2
2
 
3
3
  .weui_label {
4
- display:block;
5
- width:3em;
4
+ display:block;
5
+ width:$weuiCellLabelWidth;
6
+ @include text_wrap();
6
7
  }
7
8
  .weui_input {
8
9
  width: 100%;
@@ -62,9 +63,6 @@
62
63
  display:inline-block;
63
64
  }
64
65
  }
65
- .weui_cell_hd {
66
- padding-right: 1em;
67
- }
68
66
  .weui_cell_ft {
69
67
  font-size:0;
70
68
  }
@@ -32,6 +32,7 @@
32
32
  width: 100%;
33
33
  font-size: inherit;
34
34
  height: 43px;
35
+ line-height: $weuiCellHeight;
35
36
  position: relative;
36
37
  z-index: 1;
37
38
  padding-left: $weuiCellGapH;
@@ -3,4 +3,7 @@
3
3
 
4
4
  .weui_select_after {
5
5
  padding-left:$weuiCellGapH;
6
+ .weui_select {
7
+ padding-left:0;
8
+ }
6
9
  }
@@ -3,8 +3,9 @@
3
3
 
4
4
  .weui_select_before {
5
5
  padding-right: $weuiCellGapH;
6
- .weui_select{
7
- width:auto;
6
+ .weui_select {
7
+ width:$weuiCellLabelWidth;
8
+ box-sizing: border-box;
8
9
  }
9
10
  .weui_cell_hd {
10
11
  position: relative;
@@ -20,4 +20,13 @@
20
20
  font-weight:400;
21
21
  font-size: 15px;
22
22
  }
23
+ * {
24
+ max-width: 100%;
25
+ -webkit-box-sizing: border-box;
26
+ box-sizing: border-box;
27
+ word-wrap: break-word;
28
+ }
29
+ p {
30
+ margin: 10px 0;
31
+ }
23
32
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weui-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Guo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-09 00:00:00.000000000 Z
11
+ date: 2016-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.4.8
132
+ rubygems_version: 2.5.1
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: An UI library for WeChat