btxui 1.0.2 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/favicon.png +0 -0
  2. package/index.js +3289 -0
  3. package/index.js.gz +0 -0
  4. package/index.umd.cjs +1 -0
  5. package/package.json +11 -23
  6. package/README.md +0 -42
  7. package/app.vue +0 -162
  8. package/assets/css/_main.js +0 -73
  9. package/assets/css/btx.min.css +0 -1
  10. package/assets/css/btx.mob.min.css +0 -1
  11. package/assets/css/btx.pad.min.css +0 -1
  12. package/assets/css/btx.webapp.min.css +0 -1
  13. package/assets/css/custom_fonts/iconfont.css +0 -37
  14. package/assets/css/custom_fonts/iconfont.eot +0 -0
  15. package/assets/css/custom_fonts/iconfont.svg +0 -47
  16. package/assets/css/custom_fonts/iconfont.ttf +0 -0
  17. package/assets/css/custom_fonts/iconfont.woff +0 -0
  18. package/assets/css/custom_fonts/iconfont.woff2 +0 -0
  19. package/assets/css/res-l.css +0 -47
  20. package/assets/css/res-m.css +0 -47
  21. package/assets/css/res-s.css +0 -61
  22. package/assets/custom_fonts/iconfont.css +0 -37
  23. package/assets/custom_fonts/iconfont.eot +0 -0
  24. package/assets/custom_fonts/iconfont.svg +0 -47
  25. package/assets/custom_fonts/iconfont.ttf +0 -0
  26. package/assets/custom_fonts/iconfont.woff +0 -0
  27. package/assets/custom_fonts/iconfont.woff2 +0 -0
  28. package/assets/js/Btx.js +0 -196
  29. package/assets/js/Utils.js +0 -421
  30. package/assets/js/fastclick.js +0 -802
  31. package/assets/js/lazy.min.js +0 -2
  32. package/assets/js/touchwipe.js +0 -111
  33. package/assets/server.js +0 -8
  34. package/assets/start_site_code_str.js +0 -119
  35. package/cdn/css/btx.min.css +0 -1
  36. package/cdn/css/btx.min.css.map +0 -1
  37. package/cdn/fonts/iconfont.ttf +0 -0
  38. package/cdn/fonts/iconfont.woff +0 -0
  39. package/cdn/fonts/iconfont.woff2 +0 -0
  40. package/components/BTXUI/app/app-wid.vue +0 -182
  41. package/components/BTXUI/btn/btn-wid.vue +0 -128
  42. package/components/BTXUI/carousel/carousel-wid.vue +0 -138
  43. package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
  44. package/components/BTXUI/confirm/confirm-wid.vue +0 -279
  45. package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
  46. package/components/BTXUI/content/content-node-wid.vue +0 -114
  47. package/components/BTXUI/content/content-tag-wid.vue +0 -25
  48. package/components/BTXUI/content/content-wid.vue +0 -254
  49. package/components/BTXUI/core/anis/ani-fail.vue +0 -46
  50. package/components/BTXUI/core/anis/ani-loading.vue +0 -32
  51. package/components/BTXUI/core/anis/ani-notic.vue +0 -47
  52. package/components/BTXUI/core/anis/ani-success.vue +0 -48
  53. package/components/BTXUI/core/b-drag.vue +0 -258
  54. package/components/BTXUI/core/b-grid.vue +0 -84
  55. package/components/BTXUI/core/b-hot.vue +0 -171
  56. package/components/BTXUI/core/b-icon.vue +0 -76
  57. package/components/BTXUI/core/b-img.vue +0 -84
  58. package/components/BTXUI/core/b-input.vue +0 -198
  59. package/components/BTXUI/core/b-list.vue +0 -276
  60. package/components/BTXUI/core/b-text/doc.ts +0 -9
  61. package/components/BTXUI/core/b-text/index.vue +0 -16
  62. package/components/BTXUI/core/b-textarea.vue +0 -58
  63. package/components/BTXUI/core/b-video.vue +0 -35
  64. package/components/BTXUI/core/b-view/doc.ts +0 -10
  65. package/components/BTXUI/core/b-view/index.vue +0 -20
  66. package/components/BTXUI/core/b-webview.vue +0 -20
  67. package/components/BTXUI/core/lib/ChapterLink.js +0 -49
  68. package/components/BTXUI/core/lib/Search.vue +0 -60
  69. package/components/BTXUI/core/styles/doc.ts +0 -55
  70. package/components/BTXUI/core/styles/index.vue +0 -98
  71. package/components/BTXUI/core/styles/prestyles.ts +0 -471
  72. package/components/BTXUI/core/styles/theme.ts +0 -29
  73. package/components/BTXUI/drawer/drawer-wid.vue +0 -165
  74. package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
  75. package/components/BTXUI/form/form-select-wid.vue +0 -57
  76. package/components/BTXUI/form/form-wid.vue +0 -324
  77. package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
  78. package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
  79. package/components/BTXUI/index.js +0 -83
  80. package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
  81. package/components/BTXUI/pannel/pannel-wid.vue +0 -167
  82. package/components/BTXUI/range/range-wid.vue +0 -134
  83. package/components/BTXUI/search/search-wid.vue +0 -80
  84. package/components/BTXUI/select/select-wid.vue +0 -186
  85. package/components/BTXUI/slider/slider-wid.vue +0 -444
  86. package/components/BTXUI/tab/tab-wid.vue +0 -109
  87. package/components/BTXUI/table/table-wid.vue +0 -324
  88. package/components/BTXUI/tag/tag-wid.vue +0 -183
  89. package/components/BTXUI/tags/tags-wid.vue +0 -121
  90. package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
  91. package/components/BTXUI/upload/upload-wid.vue +0 -215
  92. package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
  93. package/components/header-info.vue +0 -167
  94. package/composables/@types.ts +0 -4
  95. package/composables/api.ts +0 -18
  96. package/env.d.ts +0 -5
  97. package/main.js +0 -16
  98. package/nuxt.config.ts +0 -51
  99. package/pages/article.vue +0 -16
  100. package/pages/download.vue +0 -50
  101. package/pages/example/app_wid/app/data_demo.vue +0 -9
  102. package/pages/example/app_wid/app/download_demo.vue +0 -9
  103. package/pages/example/app_wid/app/list_demo.vue +0 -11
  104. package/pages/example/app_wid/app/system_demo.vue +0 -9
  105. package/pages/example/app_wid/app_wid_demo.vue +0 -198
  106. package/pages/example/app_wid/btn_wid_demo.vue +0 -179
  107. package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
  108. package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
  109. package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
  110. package/pages/example/app_wid/content_wid_demo.vue +0 -369
  111. package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
  112. package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
  113. package/pages/example/app_wid/form_wid_demo.vue +0 -550
  114. package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
  115. package/pages/example/app_wid/index.js +0 -158
  116. package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
  117. package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
  118. package/pages/example/app_wid/range_wid_demo.vue +0 -101
  119. package/pages/example/app_wid/search_wid_demo.vue +0 -75
  120. package/pages/example/app_wid/select_wid_demo.vue +0 -217
  121. package/pages/example/app_wid/slider_wid_demo.vue +0 -143
  122. package/pages/example/app_wid/tab_wid_demo.vue +0 -170
  123. package/pages/example/app_wid/table_wid_demo.vue +0 -377
  124. package/pages/example/app_wid/tag_wid_demo.vue +0 -133
  125. package/pages/example/app_wid/tags_wid_demo.vue +0 -143
  126. package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
  127. package/pages/example/app_wid/upload_wid_demo.vue +0 -123
  128. package/pages/example/base_wid/b_drag_demo.vue +0 -159
  129. package/pages/example/base_wid/b_grid_demo.vue +0 -225
  130. package/pages/example/base_wid/b_hot_demo.vue +0 -135
  131. package/pages/example/base_wid/b_icon_demo.vue +0 -80
  132. package/pages/example/base_wid/b_img_demo.vue +0 -95
  133. package/pages/example/base_wid/b_input_demo.vue +0 -171
  134. package/pages/example/base_wid/b_list_demo.vue +0 -241
  135. package/pages/example/base_wid/b_style_demo.vue +0 -928
  136. package/pages/example/base_wid/b_text_demo.vue +0 -36
  137. package/pages/example/base_wid/b_textarea_demo.vue +0 -64
  138. package/pages/example/base_wid/b_video_demo.vue +0 -42
  139. package/pages/example/base_wid/b_view_demo.vue +0 -36
  140. package/pages/example/base_wid/index.js +0 -76
  141. package/pages/example/content.js +0 -49
  142. package/pages/example/global_style/animation.vue +0 -197
  143. package/pages/example/global_style/color.vue +0 -134
  144. package/pages/example/global_style/decoration.vue +0 -546
  145. package/pages/example/global_style/icon.vue +0 -345
  146. package/pages/example/global_style/index.js +0 -52
  147. package/pages/example/global_style/layout.vue +0 -846
  148. package/pages/example/global_style/special.vue +0 -37
  149. package/pages/example/global_style/table.vue +0 -298
  150. package/pages/example/global_style/text.vue +0 -159
  151. package/pages/index.vue +0 -43
  152. package/pages/level_widget.vue +0 -11
  153. package/pages/start.vue +0 -200
  154. package/plugins/index.ts +0 -2
  155. package/public/favicon.gif +0 -0
  156. package/public/fonts/iconfont.ttf +0 -0
  157. package/public/fonts/iconfont.woff +0 -0
  158. package/public/fonts/iconfont.woff2 +0 -0
  159. package/public/img/banner.jpg +0 -0
  160. package/public/img/banner2.jpg +0 -0
  161. package/public/img/bg_pattern.png +0 -0
  162. package/public/img/btx.jpg +0 -0
  163. package/public/img/btx_ui.jpg +0 -0
  164. package/public/img/dir.png +0 -0
  165. package/public/img/f.png +0 -0
  166. package/public/img/head.jpg +0 -0
  167. package/public/img/head2.jpg +0 -0
  168. package/public/img/home_ico.png +0 -0
  169. package/public/img/icons.svg +0 -164
  170. package/public/img/mechanism/b-style.png +0 -0
  171. package/public/img/mechanism/slider-wid.png +0 -0
  172. package/public/img/mechanism/upload-wid.png +0 -0
  173. package/public/img/transform_origin.png +0 -0
  174. package/sass/animation.scss +0 -400
  175. package/sass/btx.mob.scss +0 -10
  176. package/sass/btx.pad.scss +0 -3
  177. package/sass/btx.scss +0 -22
  178. package/sass/btx.webapp.scss +0 -22
  179. package/sass/colors.scss +0 -65
  180. package/sass/decoration.scss +0 -220
  181. package/sass/flex.scss +0 -29
  182. package/sass/icons.scss +0 -100
  183. package/sass/layout.scss +0 -88
  184. package/sass/reset.scss +0 -111
  185. package/sass/response/flex_mixin.scss +0 -91
  186. package/sass/response/layout_mixin.scss +0 -227
  187. package/sass/response/main.scss +0 -59
  188. package/sass/response/text_mixin.scss +0 -65
  189. package/sass/scroll.scss +0 -100
  190. package/sass/special.scss +0 -13
  191. package/sass/table.scss +0 -103
  192. package/sass/text.scss +0 -86
  193. package/sass/webpack.config.js +0 -31
  194. package/tsconfig.json +0 -4
@@ -1,227 +0,0 @@
1
- //生成定位类
2
- @mixin auto_gen_position_class($suffix:"") {
3
- .fixed#{$suffix}{
4
- position: fixed;
5
- }
6
- .rel#{$suffix}{
7
- position: relative;
8
- }
9
- .abs#{$suffix}{
10
- position: absolute;
11
- }
12
- }
13
-
14
- //生成强制隐藏与显示类
15
- @mixin auto_gen_display_class($suffix:"") {
16
- .hide#{$suffix}{
17
- display: none !important; //强制隐藏
18
- }
19
- .show#{$suffix}{
20
- display: block !important; //强制显示
21
- }
22
- }
23
-
24
- //生成不同尺寸宽度及高度
25
- @mixin auto_size($suffix:""){
26
- .w-auto#{$suffix} {
27
- width: auto;
28
- }
29
- .h-auto#{$suffix} {
30
- height: auto;
31
- }
32
- .w-0#{$suffix} {
33
- width: 0;
34
- }
35
- .h-0#{$suffix} {
36
- height: 0;
37
- }
38
- .w-d5#{$suffix} {
39
- width: .5rem;
40
- }
41
- .h-d5#{$suffix} {
42
- height: .5rem;
43
- }
44
- .max-w#{$suffix} { //满宽
45
- width: 100%;
46
- }
47
- .max-h#{$suffix} { //满高
48
- height: 100%;
49
- }
50
- .max#{$suffix} { //满屏
51
- width: 100%;
52
- height: 100%;
53
- }
54
- @for $i from 1 to 11{
55
- .w-#{$i}#{$suffix} {
56
- width: #{$i}rem;
57
- }
58
- .h-#{$i}#{$suffix} {
59
- height: #{$i}rem;
60
- }
61
- }
62
- $vals: (15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100);
63
- @each $val in $vals{
64
- .w-#{$val}#{$suffix} {
65
- width: #{$val}rem;
66
- }
67
- .h-#{$val}#{$suffix} {
68
- height: #{$val}rem;
69
- }
70
- }
71
- }
72
-
73
- //生成不同尺寸宽度及高度上下限
74
- @mixin auto_limit_size($suffix:""){
75
- $vals: (10p 10%), (20p 20%), (30p 30%), (40p 40%), (50p 50%), (60p 60%), (70p 70%), (80p 80%), (90p 90%);
76
- @each $val in $vals{
77
- .rw-#{nth($val, 1)}#{$suffix} {
78
- max-width: #{nth($val, 2)};
79
- }
80
- .lw-#{nth($val, 1)}#{$suffix} {
81
- min-width: #{nth($val, 2)};
82
- }
83
- }
84
- @for $i from 1 to 11{
85
- .th-#{$i * 10}#{$suffix} {
86
- max-height: #{$i * 10}rem;
87
- }
88
- .bh-#{$i * 10}#{$suffix} {
89
- min-height: #{$i * 10}rem;
90
- }
91
- }
92
- }
93
-
94
- //生成内、外边距类
95
- @mixin set_space($side, $val:0, $dir:all){
96
- @if $dir == all{
97
- #{$side}: $val;
98
- }@else if $dir == v{ //vertical
99
- #{$side}: {
100
- top: $val;
101
- bottom: $val;
102
- }
103
- }@else if $dir == h{ //horizontal
104
- #{$side}: {
105
- left: $val;
106
- right: $val;
107
- }
108
- }@else{
109
- #{$side}-#{$dir}: $val;
110
- }
111
- }
112
- @mixin auto_gen_space_class($suffix:""){
113
- $dirs: (-t top), (-r right), (-l left), (-b bottom), (-v v), (-h h), ("" all);
114
- $vals: (0 0), (d5 .5), (1 1), (1d5 1.5), (2 2), (2d5 2.5), (3 3), (3d5 3.5), (4 4), (5 5), (6 6), (7 7), (8 8), (9 9), (10 10);
115
-
116
- @for $i from 1 to length($dirs) + 1{
117
- $dir: nth($dirs, $i);
118
- @each $val in $vals{
119
- .pad#{nth($dir, 1)}-#{nth($val, 1)}#{$suffix} {
120
- @include set_space(padding, #{nth($val, 2)}rem, nth($dir, 2));
121
- }
122
- .mrg#{nth($dir, 1)}-#{nth($val, 1)}#{$suffix} {
123
- @include set_space(margin, #{nth($val, 2)}rem, nth($dir, 2));
124
- }
125
- .mrg#{nth($dir, 1)}-auto#{$suffix} {
126
- @include set_space(margin, auto, nth($dir, 2));
127
- }
128
- }
129
- }
130
- }
131
-
132
- //生成放缩比率类
133
- @mixin auto_gen_scale_class($suffix:""){
134
- .scale-0#{$suffix} {
135
- transform: scale(0);
136
- }
137
- @for $i from 1 to 10{
138
- .scale-d#{$i}#{$suffix} {
139
- transform: scale(calc($i / 10));
140
- }
141
- }
142
- @for $i from 1 to 10{
143
- .scale-1d#{$i}#{$suffix} {
144
- transform: scale(calc($i / 10) + 1);
145
- }
146
- }
147
- @for $i from 2 to 11{
148
- .scale-#{$i}#{$suffix} {
149
- transform: scale($i);
150
- }
151
- }
152
- }
153
-
154
- //生成 translate 平移类
155
- @mixin auto_gen_translate_class($suffix:""){
156
- $percent: (10 10%), (25 25%), (50 50%), (100 100%), (200 200%), (500 500%);
157
- @for $i from 0 to 12{
158
- @each $p in $percent{
159
- .translateX-#{nth($p, 1)}#{$suffix} {
160
- transform: translateX(nth($p, 2));
161
- }
162
- .translateX-f#{nth($p, 1)}#{$suffix} {
163
- transform: translateX(nth($p, 2) * -1);
164
- }
165
- .translateY-#{nth($p, 1)}#{$suffix} {
166
- transform: translateY(nth($p, 2));
167
- }
168
- .translateY-f#{nth($p, 1)}#{$suffix} {
169
- transform: translateY(nth($p, 2) * -1);
170
- }
171
- }
172
- }
173
- }
174
-
175
- //生成位移类
176
- @mixin auto_gen_offset_class($suffix:""){
177
- $dirs: (l left), (r right), (t top), (b bottom);
178
- $percent: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200;
179
- $units: rem, px;
180
- @for $i from 0 to 12{
181
- @each $dir in $dirs{
182
- @if $i == 0{
183
- .#{nth($dir, 1)}-#{$i}#{$suffix} {
184
- #{nth($dir, 2)}: #{$i};
185
- }
186
- }@else {
187
- @each $unit in $units{
188
- .#{nth($dir, 1)}-#{$i}#{$unit}#{$suffix} { //正数
189
- #{nth($dir, 2)}: #{$i}#{$unit};
190
- }
191
- .#{nth($dir, 1)}-f#{$i}#{$unit}#{$suffix} { //负数
192
- #{nth($dir, 2)}: -#{$i}#{$unit};
193
- }
194
- }
195
- }
196
- }
197
- }
198
-
199
- //百分比位移
200
- @each $dir in $dirs{
201
- @each $v in $percent {
202
- .#{nth($dir, 1)}-#{$v}p { //正数
203
- #{nth($dir, 2)}: #{$v + '%'};
204
- }
205
- .#{nth($dir, 1)}-f#{$v}p { //负数
206
- #{nth($dir, 2)}: -#{$v + '%'};
207
- }
208
- }
209
- }
210
-
211
- //auto 值
212
- @each $dir in $dirs{
213
- .#{nth($dir, 1)}-auto#{$suffix} {
214
- #{nth($dir, 2)}: auto;
215
- }
216
- }
217
- }
218
-
219
- //生成多列布局容器类
220
- @mixin auto_gen_column_class($suffix:""){
221
- @for $i from 1 to 6{
222
- .column-#{$i}#{$suffix} {
223
- column-gap: 0;
224
- column-count: #{$i};
225
- }
226
- }
227
- }
@@ -1,59 +0,0 @@
1
- @import "./text_mixin.scss";
2
- @import "./layout_mixin.scss";
3
- @import "./flex_mixin.scss";
4
-
5
- @mixin auto_gen_response_class($suffix:"") {
6
-
7
- //文本对齐
8
- @include auto_gen_text_align_class($suffix);
9
-
10
- //倍数字号
11
- @include auto_gen_font_size_class($suffix);
12
-
13
- //字符间距
14
- @include auto_gen_letter_space_class($suffix);
15
-
16
- //定位
17
- @include auto_gen_position_class($suffix);
18
-
19
- //强制隐藏与显示
20
- @include auto_gen_display_class($suffix);
21
-
22
- //生成不同尺寸宽度及高度
23
- @include auto_size($suffix);
24
-
25
- //生成不同尺寸宽度及高度上下限
26
- @include auto_limit_size($suffix);
27
-
28
- //内、外边距
29
- @include auto_gen_space_class($suffix);
30
-
31
- //生长方向类
32
- @include auto_gen_flex_dir_class($suffix);
33
-
34
- //九宫格对齐定位
35
- @include auto_gen_flex_align_class($suffix);
36
-
37
- //栅格布局
38
- @include auto_gen_grid_class($suffix);
39
-
40
- //生成自生长元素类
41
- @include auto_gen_grow_class($suffix);
42
-
43
- //生成项目排序元素类
44
- @include auto_gen_order_class($suffix);
45
-
46
- //放缩比率
47
- @include auto_gen_scale_class($suffix);
48
-
49
- //translate平移
50
- @include auto_gen_translate_class($suffix);
51
-
52
- //位移
53
- @include auto_gen_offset_class($suffix);
54
-
55
- //多列布局容器
56
- @include auto_gen_column_class($suffix);
57
-
58
- }
59
-
@@ -1,65 +0,0 @@
1
- //生成文本对齐类
2
- @mixin auto_gen_text_align_class($suffix:"") {
3
- .pcenter#{$suffix} {
4
- text-align: center;
5
- }
6
-
7
- .pright#{$suffix} {
8
- text-align: right;
9
- }
10
-
11
- .pleft#{$suffix} {
12
- text-align: left;
13
- }
14
-
15
- .pjustify#{$suffix} {
16
- text-align: justify;
17
- }
18
-
19
- .pindent#{$suffix} {
20
- text-indent: 2em;
21
- }
22
- }
23
-
24
- //生成倍数字号类
25
- @mixin auto_gen_font_size_class($suffix:"") {
26
- @for $i from 0 to 6{
27
-
28
- //处理缩小字号
29
- @if $i == 0 {
30
- .fsize-#{$i}#{$suffix} { //0 号字
31
- font-size: 0;
32
- }
33
- @for $i from 1 to 10{
34
- .fsize-d#{$i}#{$suffix} {
35
- font-size: #{calc($i / 10)}em;
36
- }
37
- }
38
- } @else if $i == 1 {
39
- .fsize-#{$i}#{$suffix} {
40
- font-size: #{$i}em;
41
- }
42
- @for $i from 1 to 10{
43
- .fsize-1d#{$i}#{$suffix} {
44
- font-size: #{1 + calc($i / 10)}em;
45
- }
46
- }
47
- } @else if $i > 1 {
48
- .fsize-#{$i}#{$suffix} {
49
- font-size: #{$i}em;
50
- }
51
- .fsize-#{$i}d5#{$suffix} {
52
- font-size: #{$i + 0.5}em;
53
- }
54
- }
55
- }
56
- }
57
-
58
- //生成字符间距类
59
- @mixin auto_gen_letter_space_class($suffix:"") {
60
- @for $i from 0 to 6 {
61
- .lspace-#{$i}#{$suffix}{
62
- letter-spacing: #{$i}px;
63
- }
64
- }
65
- }
package/sass/scroll.scss DELETED
@@ -1,100 +0,0 @@
1
- //IE 设置
2
- %ie-set{
3
- scrollbar-arrow-color: transparent;
4
- scrollbar-face-color: transparent;
5
- scrollbar-3dlight-color: transparent;
6
- scrollbar-highlight-color: transparent;
7
- scrollbar-shadow-color: transparent;
8
- scrollbar-darkshadow-color: transparent;
9
- scrollbar-track-color: transparent;
10
- scrollbar-base-color: transparent;
11
- }
12
-
13
- //IE hovre 设置
14
- %ie-hover-set{
15
- scrollbar-arrow-color: #eee;
16
- scrollbar-face-color: #eee;
17
- scrollbar-3dlight-color: #eee;
18
- scrollbar-highlight-color: #eee;
19
- scrollbar-shadow-color: #eee;
20
- scrollbar-darkshadow-color: #eee;
21
- scrollbar-track-color: #eee;
22
- scrollbar-base-color: #eee;
23
- }
24
-
25
- //webkit 设置
26
- %webkit-set{
27
- &::-webkit-scrollbar-thumb{
28
- border-radius: 3px;
29
- box-shadow: inset 0 0 5px transparent;
30
- background: transparent;
31
- }
32
- &::-webkit-scrollbar-track{
33
- box-shadow: inset 0 0 5px transparent;
34
- border-radius: 3px;
35
- background: transparent;
36
- }
37
- }
38
-
39
- //webkit hovre 设置
40
- %webkit-hover-set{
41
- &::-webkit-scrollbar-thumb{
42
- background: rgba(140,140,140,.2);
43
- }
44
- &::-webkit-scrollbar-track{
45
- background: transparent;
46
- }
47
- }
48
-
49
- %relative {
50
- position: relative;
51
- }
52
-
53
- @mixin scroll_base($wide:3px){
54
- @extend %relative;
55
-
56
- //IE 设置
57
- @extend %ie-set;
58
-
59
- //webkit 设置
60
- &::-webkit-scrollbar{
61
- width: $wide;
62
- height: $wide;
63
- }
64
- @extend %webkit-set;
65
-
66
- &:hover, &:focus{
67
-
68
- //IE hovre 设置
69
- @extend %ie-hover-set;
70
-
71
- //webkit hovre 设置
72
- @extend %webkit-hover-set;
73
- }
74
- }
75
-
76
- //纵向滚动条
77
- .auto-scroll, .over-scroll {
78
- overflow-y: auto;
79
- @include scroll_base();
80
- }
81
- .wide-auto-scroll { //(易于拖动)
82
- overflow-y: auto;
83
- @include scroll_base(14px);
84
- }
85
-
86
- //横向滚动条(易于拖动)
87
- .auto-h-scroll{
88
- overflow-x: auto;
89
- @include scroll_base(14px);
90
- }
91
-
92
- //溢出隐藏
93
- .no-scroll, .over-hide{
94
- overflow: hidden;
95
- }
96
-
97
- //溢出显示
98
- .over-show{
99
- overflow: visible;
100
- }
package/sass/special.scss DELETED
@@ -1,13 +0,0 @@
1
- .bg-none { pointer-events: none; } //背景点透效果
2
- .bg-use { pointer-events: auto; } //背景常规效果(非点透)
3
- .touch-none { touch-action: none; } //元素触控禁止
4
-
5
- //元素长按选中禁止
6
- .select-none {
7
- -webkit-touch-callout:none;
8
- -webkit-user-select:none;
9
- -khtml-user-select:none;
10
- -moz-user-select:none;
11
- -ms-user-select:none;
12
- user-select:none;
13
- }
package/sass/table.scss DELETED
@@ -1,103 +0,0 @@
1
- table{
2
- width: 100%;
3
- border-spacing: 0;
4
- }
5
-
6
- .table {
7
- background-color: #fff;
8
-
9
- //常规尺寸
10
- th{
11
- text-align: left;
12
- border-bottom: 1px solid #ddd;
13
- font-size: 1.2rem;
14
- color: #222;
15
- }
16
- &:not([border]) tbody{
17
- tr{
18
- &:nth-child(even){
19
- background-color: #f7f7f7;
20
- }
21
- &:last-child td{
22
- border-bottom: 1px solid #eee;
23
- }
24
- }
25
- }
26
-
27
- td, th{
28
- padding: .5rem 1rem;
29
- }
30
- td {
31
- color: #555;
32
- font-size: 1.1rem;
33
- }
34
-
35
- //宽松尺寸
36
- &[easy]{
37
- td, th{
38
- padding: .7rem 1rem;
39
- }
40
- th{
41
- font-size: 1.3rem;
42
- }
43
- td{
44
- font-size: 1.2rem;
45
- }
46
- }
47
-
48
- //紧凑尺寸
49
- &[compact]{
50
- td, th{
51
- padding: .2rem 1rem;
52
- }
53
- th{
54
- font-size: 1.1rem;
55
- }
56
- td{
57
- font-size: 1rem;
58
- }
59
- }
60
-
61
- //线框样式
62
- &[border]{
63
- border-collapse: collapse;
64
- border-color: inherit;
65
-
66
- th {
67
- background-color: #f7f7f7;
68
- }
69
- }
70
-
71
- //暗色样式
72
- &[dark]{
73
- background-color: #333;
74
-
75
- th{
76
- border-bottom: 1px solid #111;
77
- background-color: #222;
78
- color: #eee;
79
- }
80
- tbody{
81
- tr{
82
- &:nth-child(even){
83
- background-color: #444;
84
- }
85
- &:last-child td{
86
- border-bottom: 1px solid #eee;
87
- }
88
- }
89
- }
90
- td {
91
- color: #999;
92
- }
93
- &[border]{
94
- border-color: #111;
95
- }
96
- }
97
-
98
- //响应式(内容不自动换行,溢出时出现横向滚动条)
99
- &[response]{
100
- white-space: nowrap;
101
- }
102
-
103
- }
package/sass/text.scss DELETED
@@ -1,86 +0,0 @@
1
- p{
2
- margin: 1.4em 0;
3
-
4
- &:empty {
5
- height: 1.4em;
6
- }
7
- }
8
-
9
- h1 {
10
- font-size: 2em;
11
- }
12
-
13
- h2 {
14
- font-size: 1.8em;
15
- }
16
-
17
- h3 {
18
- font-size: 1.6em;
19
- }
20
-
21
- h4 {
22
- font-size: 1.4em;
23
- }
24
-
25
- h5 {
26
- font-size: 1.2em;
27
- }
28
-
29
- h6 {
30
- font-size: 1em;
31
- }
32
-
33
- article {
34
- font-size: 1.2rem;
35
- line-height: 1.7;
36
-
37
- //编辑模式
38
- &[contenteditable]{
39
- border: none;
40
- outline: none;
41
- }
42
-
43
- h1, h2, h3, h4, h5, h6{
44
- margin-bottom: 1em;
45
- }
46
- ol, ul{
47
- margin-bottom: 1.4em;
48
- }
49
- }
50
-
51
- i {
52
- display: inline-block;
53
- }
54
-
55
- abbr {
56
- text-decoration: none;
57
- }
58
-
59
- code {
60
- background-color: #f9f2f4;
61
- color: #c7254e;
62
- font-family: Consolas !important;
63
- padding: 2px 6px;
64
- margin: 0 2px;
65
- border-radius: 4px;
66
- word-break: break-all;
67
- }
68
-
69
- .bold {
70
- font-weight: bold; //文字加粗
71
- }
72
-
73
- .no-wrap { //文本禁止换行
74
- white-space: nowrap;
75
- }
76
-
77
- .ellipsis { //文本省略
78
- overflow: hidden;
79
- text-overflow: ellipsis;
80
- white-space: nowrap;
81
- }
82
-
83
- .resize { //字号基准
84
- font-size: 1rem;
85
- line-height: 1.5;
86
- }
@@ -1,31 +0,0 @@
1
- const path = require("path")
2
- const ExtractText = require("extract-text-webpack-plugin")
3
-
4
- module.exports = {
5
- entry: {
6
- "btx.webapp": "./src/sass/btx.webapp.scss",
7
- "btx": "./src/sass/btx.scss",
8
- "btx.mob": "./src/sass/btx.mob.scss",
9
- "btx.pad": "./src/sass/btx.pad.scss",
10
- },
11
- output: {
12
- filename: "_main.js",
13
- path: path.join(__dirname, "../css")
14
- },
15
- module: {
16
- rules: [
17
- {
18
- test: /\.scss$/,
19
- use: ExtractText.extract({
20
- fallback: "style-loader",
21
- use: ['css-loader', 'sass-loader']
22
- })
23
- }
24
- ]
25
- },
26
- plugins: [
27
- new ExtractText({
28
- filename: `[name].min.css`
29
- })
30
- ]
31
- }
package/tsconfig.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- // https://nuxt.com/docs/guide/concepts/typescript
3
- "extends": "./.nuxt/tsconfig.json"
4
- }