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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -1
  3. data/app/views/weui/_message_box.html.erb +8 -8
  4. data/app/views/weui/message_box.html.erb +1 -1
  5. data/lib/weui-rails/helpers/weui_message_box.rb +1 -1
  6. data/lib/weui-rails/version.rb +1 -1
  7. data/vendor/assets/stylesheets/_weui.scss +43 -23
  8. data/vendor/assets/stylesheets/base/fn.scss +9 -6
  9. data/vendor/assets/stylesheets/base/mixin/_mobile.scss +1 -18
  10. data/vendor/assets/stylesheets/base/mixin/_setArrow.scss +11 -82
  11. data/vendor/assets/stylesheets/base/mixin/_setOnepx.scss +4 -4
  12. data/vendor/assets/stylesheets/base/mixin/_text.scss +5 -0
  13. data/vendor/assets/stylesheets/base/reset.scss +4 -3
  14. data/vendor/assets/stylesheets/base/variable/_color.scss +20 -0
  15. data/vendor/assets/stylesheets/base/variable/_global.scss +6 -32
  16. data/vendor/assets/stylesheets/base/variable/_weui-button.scss +37 -0
  17. data/vendor/assets/stylesheets/base/variable/{_weui_cell.scss → _weui-cell.scss} +11 -3
  18. data/vendor/assets/stylesheets/base/variable/_weui-dialog.scss +5 -0
  19. data/vendor/assets/stylesheets/base/variable/{_weui_grid.scss → _weui-grid.scss} +0 -0
  20. data/vendor/assets/stylesheets/base/variable/{_weui_msg.scss → _weui-msg.scss} +0 -0
  21. data/vendor/assets/stylesheets/base/variable/{_weui_progress.scss → _weui-progress.scss} +0 -0
  22. data/vendor/assets/stylesheets/icon/weui-font.scss +56 -0
  23. data/vendor/assets/stylesheets/icon/weui-icon_font.scss +94 -0
  24. data/vendor/assets/stylesheets/widget/weui-agree/weui-agree.scss +59 -0
  25. data/vendor/assets/stylesheets/widget/weui-animate/weui-animate.scss +54 -0
  26. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_default.scss → weui-button/weui-btn_default.scss} +1 -1
  27. data/vendor/assets/stylesheets/widget/weui-button/weui-btn_disabled.scss +15 -0
  28. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_global.scss → weui-button/weui-btn_global.scss} +4 -5
  29. data/vendor/assets/stylesheets/widget/weui-button/weui-btn_plain.scss +29 -0
  30. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_primary.scss → weui-button/weui-btn_primary.scss} +0 -0
  31. data/vendor/assets/stylesheets/widget/{weui_button/weui_btn_warn.scss → weui-button/weui-btn_warn.scss} +0 -0
  32. data/vendor/assets/stylesheets/widget/weui-button/weui-button.scss +60 -0
  33. data/vendor/assets/stylesheets/widget/weui-cell/weui-access.scss +32 -0
  34. data/vendor/assets/stylesheets/widget/{weui_cell/weui_cell_global.scss → weui-cell/weui-cell_global.scss} +25 -29
  35. data/vendor/assets/stylesheets/widget/weui-cell/weui-check.scss +4 -0
  36. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_check_common.scss → weui-cell/weui-check/weui-check_common.scss} +0 -0
  37. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_checkbox.scss → weui-cell/weui-check/weui-checkbox.scss} +3 -3
  38. data/vendor/assets/stylesheets/widget/{weui_cell/weui_check/weui_radio.scss → weui-cell/weui-check/weui-radio.scss} +2 -2
  39. data/vendor/assets/stylesheets/widget/weui-cell/weui-form.scss +5 -0
  40. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-form-preview.scss +89 -0
  41. data/vendor/assets/stylesheets/widget/{weui_cell/weui_form/weui_form_common.scss → weui-cell/weui-form/weui-form_common.scss} +26 -26
  42. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-select.scss +69 -0
  43. data/vendor/assets/stylesheets/widget/weui-cell/weui-form/weui-vcode.scss +27 -0
  44. data/vendor/assets/stylesheets/widget/weui-cell/weui-gallery.scss +35 -0
  45. data/vendor/assets/stylesheets/widget/weui-cell/weui-switch.scss +52 -0
  46. data/vendor/assets/stylesheets/widget/{weui_cell/weui_uploader.scss → weui-cell/weui-uploader.scss} +36 -36
  47. data/vendor/assets/stylesheets/widget/weui-flex/weui-flex.scss +8 -0
  48. data/vendor/assets/stylesheets/widget/weui-footer/weui-footer.scss +41 -0
  49. data/vendor/assets/stylesheets/widget/weui-grid/weui-grid.scss +55 -0
  50. data/vendor/assets/stylesheets/widget/weui-loading/weui-loading.scss +32 -0
  51. data/vendor/assets/stylesheets/widget/weui-media-box/weui-media-box.scss +87 -0
  52. data/vendor/assets/stylesheets/widget/{weui_page/weui_article.scss → weui-page/weui-article.scss} +5 -4
  53. data/vendor/assets/stylesheets/widget/weui-page/weui-msg.scss +45 -0
  54. data/vendor/assets/stylesheets/widget/weui-panel/weui-panel.scss +34 -0
  55. data/vendor/assets/stylesheets/widget/weui-picker/weui-picker.scss +98 -0
  56. data/vendor/assets/stylesheets/widget/weui-progress/weui-progress.scss +24 -0
  57. data/vendor/assets/stylesheets/widget/{weui_searchbar/weui_searchbar.scss → weui-searchbar/weui-searchbar.scss} +17 -17
  58. data/vendor/assets/stylesheets/widget/{weui_tab → weui-tab}/navbar.scss +7 -7
  59. data/vendor/assets/stylesheets/widget/weui-tab/tabbar.scss +57 -0
  60. data/vendor/assets/stylesheets/widget/{weui_tab/weui_tab.scss → weui-tab/weui-tab.scss} +2 -6
  61. data/vendor/assets/stylesheets/widget/weui-tips/weui-actionsheet.scss +84 -0
  62. data/vendor/assets/stylesheets/widget/weui-tips/weui-dialog.scss +133 -0
  63. data/vendor/assets/stylesheets/widget/weui-tips/weui-loadmore.scss +41 -0
  64. data/vendor/assets/stylesheets/widget/weui-tips/weui-mask.scss +20 -0
  65. data/vendor/assets/stylesheets/widget/weui-tips/weui-toast.scss +35 -0
  66. metadata +54 -47
  67. data/vendor/assets/stylesheets/base/mixin/_setChecked.scss +0 -21
  68. data/vendor/assets/stylesheets/base/variable/_monokai.scss +0 -11
  69. data/vendor/assets/stylesheets/base/variable/_weui_button.scss +0 -21
  70. data/vendor/assets/stylesheets/icon/weui_font.scss +0 -63
  71. data/vendor/assets/stylesheets/icon/weui_icon_font.scss +0 -83
  72. data/vendor/assets/stylesheets/widget/weui_button/weui_btn_disabled.scss +0 -9
  73. data/vendor/assets/stylesheets/widget/weui_button/weui_btn_plain.scss +0 -30
  74. data/vendor/assets/stylesheets/widget/weui_button/weui_button.scss +0 -58
  75. data/vendor/assets/stylesheets/widget/weui_cell/weui_access.scss +0 -23
  76. data/vendor/assets/stylesheets/widget/weui_cell/weui_check.scss +0 -4
  77. data/vendor/assets/stylesheets/widget/weui_cell/weui_form.scss +0 -6
  78. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select.scss +0 -39
  79. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_after.scss +0 -9
  80. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_select_before.scss +0 -31
  81. data/vendor/assets/stylesheets/widget/weui_cell/weui_form/weui_vcode.scss +0 -14
  82. data/vendor/assets/stylesheets/widget/weui_cell/weui_switch.scss +0 -56
  83. data/vendor/assets/stylesheets/widget/weui_grid/weui_grid.scss +0 -73
  84. data/vendor/assets/stylesheets/widget/weui_media_box/weui_media_box.scss +0 -93
  85. data/vendor/assets/stylesheets/widget/weui_page/weui_msg.scss +0 -48
  86. data/vendor/assets/stylesheets/widget/weui_panel/weui_panel.scss +0 -64
  87. data/vendor/assets/stylesheets/widget/weui_progress/weui_progress.scss +0 -23
  88. data/vendor/assets/stylesheets/widget/weui_tab/tabbar.scss +0 -49
  89. data/vendor/assets/stylesheets/widget/weui_tips/weui_actionsheet.scss +0 -43
  90. data/vendor/assets/stylesheets/widget/weui_tips/weui_dialog.scss +0 -94
  91. data/vendor/assets/stylesheets/widget/weui_tips/weui_mask.scss +0 -35
  92. data/vendor/assets/stylesheets/widget/weui_tips/weui_toast.scss +0 -349
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b472409cfe7027f7ad1506283d2b64a80a1f197f
4
- data.tar.gz: 175f7dac01e5fe35d04376f12e91fdd97f6bceca
3
+ metadata.gz: 9d0905687ca8d6f9f4c5f0821aee98d3925ba5b9
4
+ data.tar.gz: 2bf8c567bc01180505d4549ed4fa88433c7c7b29
5
5
  SHA512:
6
- metadata.gz: 51bb48e0350bf5d7717ed4119d6d75d9f5ed7593a27d0a4918b5ed338f4cba174b9aca55e35525e26ae7c03899378e6bef2b66a9eda10f3fbfc5f816c5b31606
7
- data.tar.gz: b814ba10df656d5361070088894779f64c62066c3cb21a145dcb6bba733d891f97b4d4273aeff4e60b80d2ab9defff6f33000e062a691fe8e33bdd8e6f86bf8d
6
+ metadata.gz: e747ccc445a5a114e19b11426c3856c069e126bc1c7b0833cec550de5f8fa94ccd071858b7490eca33f79f163e6ab67049717a2a055fcf479807073add8593bc
7
+ data.tar.gz: 5bf45bb434eed34121796830c92b615cf0b3a2ea70753d166e9dae5abb048eec541e2b78983ad42bef747807a52d5b622c9c58a57c8dcf68fa2afce65f440409
data/README.md CHANGED
@@ -9,6 +9,34 @@ Weui-Rails version is same as [weui-sass version](https://github.com/kevyu/weui-
9
9
 
10
10
  This gems can be used seperately, but 99% you will using with [wechat gems](https://github.com/Eric-Guo/wechat) at same time.
11
11
 
12
+ ## Migration from 0.4.x to 1.0.x notes
13
+
14
+ Due to weui make a huge rename when go 1.0 version, so a lot of style name changed, here is some incomplete list to help you upgrade easier.
15
+
16
+ | Previus style | 1.0 style |
17
+ |---------------|-----------|
18
+ | weui_cells | weui-cells |
19
+ | weui_cell | weui-cell |
20
+ | weui_cell_hd | weui-cell__hd |
21
+ | weui_cell_bd | weui-cell__bd |
22
+ | weui_cell_ft | weui-cell__ft |
23
+ | weui_cell_primary | weui-cell_primary |
24
+ | weui_input | weui-input |
25
+ | weui_cells_title | weui-cells_title |
26
+ | weui_cells_access | weui-cell_access * |
27
+ | weui_toptips | weui-toptips |
28
+ | weui_warn | weui-toptips_warn |
29
+ | weui_cells_form | weui-cells_form |
30
+ | weui_label | weui-label |
31
+ | weui_cell_select | weui-cell_select |
32
+ | weui_select_after | weui-cell_select-after |
33
+ | weui_select_before | weui-cell_select-before |
34
+ | weui_btn | weui-btn |
35
+ | weui_btn_primary | weui-btn_primary |
36
+ | weui_textarea | weui-textarea |
37
+
38
+ * weui-cell_access move from weui-cells to weui-cell.
39
+
12
40
  ## Installation
13
41
 
14
42
  Add this line to your application's Gemfile:
@@ -79,7 +107,7 @@ end
79
107
  app/views/wechats/message_box.html.erb
80
108
 
81
109
  ```erb
82
- <%= weui_message_box 'Title', 'Description', 'weui_icon_warn' -%>
110
+ <%= weui_message_box 'Title', 'Description', 'weui-icon-warn' -%>
83
111
  ```
84
112
 
85
113
  ## More example
@@ -1,13 +1,13 @@
1
1
  <div class="page">
2
- <div class="weui_msg">
3
- <div class="weui_icon_area"><i class="weui_icon_msg <%= icon_style -%>"></i></div>
4
- <div class="weui_text_area">
5
- <h2 class="weui_msg_title"><%= title -%></h2>
6
- <p class="weui_msg_desc"><%= description -%></p>
2
+ <div class="weui-msg">
3
+ <div class="weui-msg__icon-area"><i class="weui-icon_msg <%= icon_style -%>"></i></div>
4
+ <div class="weui-msg__text-area">
5
+ <h2 class="weui-msg__title"><%= title -%></h2>
6
+ <p class="weui-msg__desc"><%= description -%></p>
7
7
  </div>
8
- <div class="weui_opr_area">
9
- <p class="weui_btn_area">
10
- <a href="javascript:wx.closeWindow();" class="weui_btn weui_btn_primary"><%= button_text -%></a>
8
+ <div class="weui-msg__opr-area">
9
+ <p class="weui-btn-area">
10
+ <a href="javascript:wx.closeWindow();" class="weui-btn weui-btn_primary"><%= button_text -%></a>
11
11
  </p>
12
12
  </div>
13
13
  </div>
@@ -1,4 +1,4 @@
1
1
  <%= render partial: 'weui/message_box',
2
2
  locals: { title: title, description: description,
3
- icon_style: defined?(icon_style) ? icon_style : 'weui_icon_warn',
3
+ icon_style: defined?(icon_style) ? icon_style : 'weui-icon-warn',
4
4
  button_text: defined?(button_text) ? button_text : '确定' } -%>
@@ -1,6 +1,6 @@
1
1
  module Weui
2
2
  module Helpers
3
- def weui_message_box(title, description, icon_style = 'weui_icon_warn', button_text = '确定')
3
+ def weui_message_box(title, description, icon_style = 'weui-icon-warn', button_text = '确定')
4
4
  render partial: 'weui/message_box',
5
5
  locals: { title: title, description: description,
6
6
  icon_style: icon_style, button_text: button_text }
@@ -1,5 +1,5 @@
1
1
  module Weui
2
2
  module Rails
3
- VERSION = '0.4.4'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -1,48 +1,68 @@
1
1
  @import "./base/reset";
2
2
 
3
3
  // icon font
4
- @import "./icon/weui_icon_font";
4
+ @import "./icon/weui-icon_font";
5
+
5
6
 
6
7
  // button
7
- @import "./widget/weui_button/weui_button";
8
+ @import "./widget/weui-button/weui-button";
8
9
 
9
10
  // cell
10
- @import "./widget/weui_cell/weui_cell_global";
11
+ @import "./widget/weui-cell/weui-cell_global";
11
12
 
12
- @import "./widget/weui_cell/weui_access";
13
- @import "./widget/weui_cell/weui_check";
14
- @import "./widget/weui_cell/weui_form";
15
- @import "./widget/weui_cell/weui_switch";
16
- @import "./widget/weui_cell/weui_uploader";
13
+ @import "./widget/weui-cell/weui-access";
14
+ @import "./widget/weui-cell/weui-check";
15
+ @import "./widget/weui-cell/weui-form";
16
+ @import "./widget/weui-cell/weui-gallery";
17
+ @import "./widget/weui-cell/weui-switch";
18
+ @import "./widget/weui-cell/weui-uploader";
17
19
 
18
20
  // msg
19
- @import "./widget/weui_page/weui_msg";
21
+ @import "./widget/weui-page/weui-msg";
20
22
 
21
23
  // article
22
- @import "./widget/weui_page/weui_article";
24
+ @import "./widget/weui-page/weui-article";
23
25
 
24
26
  // tab
25
- @import "./widget/weui_tab/weui_tab";
27
+ @import "./widget/weui-tab/weui-tab";
26
28
 
27
29
  // progress
28
- @import "./widget/weui_progress/weui_progress";
30
+ @import "./widget/weui-progress/weui-progress";
29
31
 
30
- // card
31
- @import "./widget/weui_panel/weui_panel";
32
+ // panel
33
+ @import "./widget/weui-panel/weui-panel";
32
34
 
33
35
  // media box
34
- @import "./widget/weui_media_box/weui_media_box";
36
+ @import "./widget/weui-media-box/weui-media-box";
35
37
 
36
38
  // grid
37
- @import "./widget/weui_grid/weui_grid";
39
+ @import "./widget/weui-grid/weui-grid";
40
+
41
+ // copyright
42
+ @import "./widget/weui-footer/weui-footer";
38
43
 
39
- // tips
40
- @import "./widget/weui_tips/weui_dialog";
41
- @import "./widget/weui_tips/weui_toast";
42
- @import "./widget/weui_tips/weui_mask";
43
44
 
44
- //action sheet
45
- @import "./widget/weui_tips/weui_actionsheet";
45
+ // flex
46
+ @import "./widget/weui-flex/weui-flex";
47
+
48
+ // tips
49
+ @import "./widget/weui-tips/weui-dialog";
50
+ @import "./widget/weui-tips/weui-toast";
51
+ @import "./widget/weui-tips/weui-mask";
52
+ @import "./widget/weui-tips/weui-actionsheet";
53
+ @import "./widget/weui-tips/weui-loadmore";
46
54
 
47
55
  //searchbar
48
- @import "./widget/weui_searchbar/weui_searchbar";
56
+ @import "./widget/weui-searchbar/weui-searchbar";
57
+
58
+ // picker
59
+ @import "./widget/weui-picker/weui-picker";
60
+
61
+ // animate
62
+ @import "./widget/weui-animate/weui-animate";
63
+
64
+ // agree
65
+ @import "./widget/weui-agree/weui-agree";
66
+
67
+ // loading
68
+ @import "./widget/weui-loading/weui-loading";
@@ -4,12 +4,15 @@
4
4
  @import "./mixin/setArrow";
5
5
  @import "./mixin/text";
6
6
 
7
+
7
8
  // variable
8
9
  @import "./variable/global";
9
- @import "./variable/monokai";
10
+ @import "./variable/color";
11
+
10
12
 
11
- @import "./variable/weui_cell";
12
- @import "./variable/weui_button";
13
- @import "./variable/weui_msg";
14
- @import "./variable/weui_progress";
15
- @import "./variable/weui_grid";
13
+ @import "./variable/weui-cell";
14
+ @import "./variable/weui-button";
15
+ @import "./variable/weui-msg";
16
+ @import "./variable/weui-grid";
17
+ @import "./variable/weui-progress";
18
+ @import "./variable/weui-dialog";
@@ -1,20 +1,3 @@
1
- // tapcolor
2
- @mixin setTapColor($c:rgba(0,0,0,0)) {
1
+ @mixin setTapColor($c:rgba(0,0,0,0)) {
3
2
  -webkit-tap-highlight-color: $c;
4
3
  }
5
-
6
- //user action
7
- @mixin no_select() {
8
- user-select: none;
9
- }
10
-
11
- // opacity
12
- @mixin opacity($opacity) {
13
- @if $opacity == 1 {
14
- filter: "progid:DXImageTransform.Microsoft.Alpha(enabled=false)";
15
- }
16
- @else {
17
- filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})";
18
- }
19
- opacity: $opacity;
20
- }
@@ -1,97 +1,26 @@
1
- // css2 arrow
2
- @mixin arrow($borderWidth, $borderColor) {
3
- @include setArrowWidth($borderWidth);
4
- @include setArrowColor($borderColor);
5
- }
6
-
7
- @mixin setArrowColor($borderColor) {
8
- &.arrow_t {
9
- border-bottom-color: $borderColor;
10
- }
11
- &.arrow_r {
12
- border-left-color: $borderColor;
13
- }
14
- &.arrow_b {
15
- border-top-color: $borderColor;
16
- }
17
- &.arrow_l {
18
- border-right-color: $borderColor;
19
- }
20
- }
21
-
22
- @mixin setArrowWidth($borderWidth) {
23
- border-width: $borderWidth;
24
- }
25
-
26
- @mixin setArrow($direction, $borderWidth, $borderColor) {
1
+ @mixin setArrow($direction, $arrowsize, $borderColor, $borderWidth) {
27
2
  display: inline-block;
28
- width: 0;
29
- height: 0;
30
- border: $borderWidth dashed transparent;
31
- @if $direction == top {
32
- @include arrow_t($borderColor);
33
- } @else if $direction == right {
34
- @include arrow_r($borderColor);
35
- } @else if $direction == bottom {
36
- @include arrow_b($borderColor);
37
- } @else if $direction == left {
38
- @include arrow_l($borderColor);
39
- }
40
- }
41
-
42
- @mixin arrow_t($c) {
43
- border-top-width: 0;
44
- border-bottom-color: $c;
45
- border-bottom-style: solid;
46
- }
47
-
48
- @mixin arrow_r($c) {
49
- border-right-width: 0;
50
- border-left-color: $c;
51
- border-left-style: solid;
52
- }
53
-
54
- @mixin arrow_b($c) {
55
- border-bottom-width: 0;
56
- border-top-color: $c;
57
- border-top-style: solid;
58
- }
59
-
60
- @mixin arrow_l($c) {
61
- border-left-width: 0;
62
- border-right-color: $c;
63
- border-right-style: solid;
64
- }
65
-
66
- // css3 arrow
67
- @mixin setArrowWidth_Wap($borderWidth) {
68
- border-width: $borderWidth $borderWidth 0 0;
69
- }
70
-
71
- @mixin setArrowSize_Wap($arrowsize) {
72
3
  height: $arrowsize;
73
4
  width: $arrowsize;
74
- }
75
-
76
- @mixin setArrow_Wap($direction, $arrowsize, $borderColor, $borderWidth) {
77
- display: inline-block;
78
- @include setArrowSize_Wap($arrowsize);
79
- @include setArrowWidth_Wap($borderWidth);
5
+ border-width: $borderWidth $borderWidth 0 0;
80
6
  border-color: $borderColor;
81
7
  border-style: solid;
82
8
  @if $direction == top {
83
- transform: translate(0, 0) rotate(-45deg);
9
+ transform: matrix(0.71,-0.71,0.71,0.71,0,0); // rotate(-45deg)
84
10
  } @else if $direction == right {
85
- transform: rotate(45deg);
11
+ transform: matrix(0.71,0.71,-0.71,0.71,0,0); // rotate(45deg);
12
+
86
13
  position: relative;
87
14
  top: -2px;
88
15
  } @else if $direction == down {
89
- transform: rotate(135deg);
16
+ transform: matrix(-0.71,0.71,-0.71,-0.71,0,0); // rotate(135deg);
17
+
90
18
  position: relative;
91
19
  top: -3px;
92
- } @else if $direction == bottom {
93
- transform: rotate(-135deg);
20
+ } @else if $direction == left {
21
+ transform: matrix(-0.71,-0.71,0.71,-0.71,0,0); // rotate(-135deg);
22
+
94
23
  position: relative;
95
24
  top: -2px;
96
25
  }
97
- }
26
+ }
@@ -3,7 +3,7 @@
3
3
  position: absolute;
4
4
  left: 0;
5
5
  top: 0;
6
- width: 100%;
6
+ right: 0;
7
7
  height: 1px;
8
8
  border-top: 1px solid $c;
9
9
  color: $c;
@@ -16,7 +16,7 @@
16
16
  position: absolute;
17
17
  left: 0;
18
18
  bottom: 0;
19
- width: 100%;
19
+ right: 0;
20
20
  height: 1px;
21
21
  border-bottom: 1px solid $c;
22
22
  color: $c;
@@ -30,7 +30,7 @@
30
30
  left: 0;
31
31
  top: 0;
32
32
  width: 1px;
33
- height: 100%;
33
+ bottom: 0;
34
34
  border-left: 1px solid $c;
35
35
  color: $c;
36
36
  transform-origin: 0 0;
@@ -43,7 +43,7 @@
43
43
  right: 0;
44
44
  top: 0;
45
45
  width: 1px;
46
- height: 100%;
46
+ bottom: 0;
47
47
  border-right: 1px solid $c;
48
48
  color: $c;
49
49
  transform-origin: 100% 0;
@@ -16,4 +16,9 @@
16
16
  @mixin text_wrap() {
17
17
  word-wrap:break-word;
18
18
  word-break:break-all;
19
+ }
20
+ @mixin hyphens() {
21
+ word-wrap:break-word;
22
+ -webkit-hyphens:auto;
23
+ hyphens:auto;
19
24
  }
@@ -1,4 +1,4 @@
1
- @import "./fn";
1
+ @import "fn";
2
2
 
3
3
  html {
4
4
  -ms-text-size-adjust: 100%;
@@ -7,7 +7,7 @@ html {
7
7
 
8
8
  body {
9
9
  line-height: 1.6;
10
- font-family: $sansFont;
10
+ font-family: $weuiFontDefault;
11
11
  }
12
12
 
13
13
  * {
@@ -21,4 +21,5 @@ a img {
21
21
 
22
22
  a {
23
23
  text-decoration: none;
24
- }
24
+ @include setTapColor();
25
+ }
@@ -0,0 +1,20 @@
1
+ // link
2
+ $weuiLinkColorDefault: #586C94 !default;
3
+
4
+ // background
5
+ $weuiBgColorDefault: #EFEFF4 !default;
6
+ $weuiBgColorActive: #ECECEC !default;
7
+
8
+ // line
9
+ $weuiLineColorLight: #E5E5E5 !default;
10
+ $weuiLineColorDark: #BCBAB6 !default;
11
+
12
+ // text
13
+ $weuiTextColorTitle: #000000 !default;
14
+ $weuiTextColorTips: #B2B2B2 !default;
15
+ $weuiTextColorWarn: #E64340 !default;
16
+ $weuiTextColorGray: #999999 !default;
17
+
18
+
19
+
20
+
@@ -1,35 +1,9 @@
1
1
  // namespace
2
- $weui_ns: 'weui_' !default;
2
+ $weui_ns: 'weui-' !default;
3
3
 
4
- // font family
5
- $sansFont:"Helvetica Neue",Helvetica,Arial,sans-serif !default;
6
- $serifFont:Georgia, "Times New Roman",Times,serif !default;
7
- $wpFont:"Microsoft YaHei",sans-serif !default;
8
- $bizFont:"Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif !default;
9
- $globalFont:$sansFont !default;
10
- $globalFontSize:14px !default;
4
+ // font
5
+ $weuiFontEN:-apple-system-font,"Helvetica Neue";
6
+ $weuiFontCN:"PingFang SC","Hiragino Sans GB","Microsoft YaHei";
7
+ $weuiFontSans:sans-serif;
8
+ $weuiFontDefault:$weuiFontEN,$weuiFontSans;
11
9
 
12
- // font color
13
- $globalLinkColor: #61749B !default;
14
- $globalDescColor: #B2B2B2 !default;
15
- $globalWarnColor: #E64340 !default;
16
- $globalNickNameColor: #576B95 !default;
17
- $globalTextColor: #888 !default;
18
- $globalTitleColor: #000 !default;
19
-
20
- //border
21
- $globalBorderColor: #BCBAB6 !default;
22
-
23
- //arrow
24
- $globalArrowColor: #C7C7CC !default;
25
-
26
- //component
27
- $itemActiveColor: #E4E4E4 !default;
28
-
29
- //page
30
- $pageDefaultBackgroundColor:#EFEFF4 !default;
31
-
32
- // gap
33
- $gap5:5px !default;
34
- $gap10:10px !default;
35
- $gap15:15px !default;