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.
- package/favicon.png +0 -0
- package/index.js +3289 -0
- package/index.js.gz +0 -0
- package/index.umd.cjs +1 -0
- package/package.json +11 -23
- package/README.md +0 -42
- package/app.vue +0 -162
- package/assets/css/_main.js +0 -73
- package/assets/css/btx.min.css +0 -1
- package/assets/css/btx.mob.min.css +0 -1
- package/assets/css/btx.pad.min.css +0 -1
- package/assets/css/btx.webapp.min.css +0 -1
- package/assets/css/custom_fonts/iconfont.css +0 -37
- package/assets/css/custom_fonts/iconfont.eot +0 -0
- package/assets/css/custom_fonts/iconfont.svg +0 -47
- package/assets/css/custom_fonts/iconfont.ttf +0 -0
- package/assets/css/custom_fonts/iconfont.woff +0 -0
- package/assets/css/custom_fonts/iconfont.woff2 +0 -0
- package/assets/css/res-l.css +0 -47
- package/assets/css/res-m.css +0 -47
- package/assets/css/res-s.css +0 -61
- package/assets/custom_fonts/iconfont.css +0 -37
- package/assets/custom_fonts/iconfont.eot +0 -0
- package/assets/custom_fonts/iconfont.svg +0 -47
- package/assets/custom_fonts/iconfont.ttf +0 -0
- package/assets/custom_fonts/iconfont.woff +0 -0
- package/assets/custom_fonts/iconfont.woff2 +0 -0
- package/assets/js/Btx.js +0 -196
- package/assets/js/Utils.js +0 -421
- package/assets/js/fastclick.js +0 -802
- package/assets/js/lazy.min.js +0 -2
- package/assets/js/touchwipe.js +0 -111
- package/assets/server.js +0 -8
- package/assets/start_site_code_str.js +0 -119
- package/cdn/css/btx.min.css +0 -1
- package/cdn/css/btx.min.css.map +0 -1
- package/cdn/fonts/iconfont.ttf +0 -0
- package/cdn/fonts/iconfont.woff +0 -0
- package/cdn/fonts/iconfont.woff2 +0 -0
- package/components/BTXUI/app/app-wid.vue +0 -182
- package/components/BTXUI/btn/btn-wid.vue +0 -128
- package/components/BTXUI/carousel/carousel-wid.vue +0 -138
- package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
- package/components/BTXUI/confirm/confirm-wid.vue +0 -279
- package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
- package/components/BTXUI/content/content-node-wid.vue +0 -114
- package/components/BTXUI/content/content-tag-wid.vue +0 -25
- package/components/BTXUI/content/content-wid.vue +0 -254
- package/components/BTXUI/core/anis/ani-fail.vue +0 -46
- package/components/BTXUI/core/anis/ani-loading.vue +0 -32
- package/components/BTXUI/core/anis/ani-notic.vue +0 -47
- package/components/BTXUI/core/anis/ani-success.vue +0 -48
- package/components/BTXUI/core/b-drag.vue +0 -258
- package/components/BTXUI/core/b-grid.vue +0 -84
- package/components/BTXUI/core/b-hot.vue +0 -171
- package/components/BTXUI/core/b-icon.vue +0 -76
- package/components/BTXUI/core/b-img.vue +0 -84
- package/components/BTXUI/core/b-input.vue +0 -198
- package/components/BTXUI/core/b-list.vue +0 -276
- package/components/BTXUI/core/b-text/doc.ts +0 -9
- package/components/BTXUI/core/b-text/index.vue +0 -16
- package/components/BTXUI/core/b-textarea.vue +0 -58
- package/components/BTXUI/core/b-video.vue +0 -35
- package/components/BTXUI/core/b-view/doc.ts +0 -10
- package/components/BTXUI/core/b-view/index.vue +0 -20
- package/components/BTXUI/core/b-webview.vue +0 -20
- package/components/BTXUI/core/lib/ChapterLink.js +0 -49
- package/components/BTXUI/core/lib/Search.vue +0 -60
- package/components/BTXUI/core/styles/doc.ts +0 -55
- package/components/BTXUI/core/styles/index.vue +0 -98
- package/components/BTXUI/core/styles/prestyles.ts +0 -471
- package/components/BTXUI/core/styles/theme.ts +0 -29
- package/components/BTXUI/drawer/drawer-wid.vue +0 -165
- package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
- package/components/BTXUI/form/form-select-wid.vue +0 -57
- package/components/BTXUI/form/form-wid.vue +0 -324
- package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
- package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
- package/components/BTXUI/index.js +0 -83
- package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
- package/components/BTXUI/pannel/pannel-wid.vue +0 -167
- package/components/BTXUI/range/range-wid.vue +0 -134
- package/components/BTXUI/search/search-wid.vue +0 -80
- package/components/BTXUI/select/select-wid.vue +0 -186
- package/components/BTXUI/slider/slider-wid.vue +0 -444
- package/components/BTXUI/tab/tab-wid.vue +0 -109
- package/components/BTXUI/table/table-wid.vue +0 -324
- package/components/BTXUI/tag/tag-wid.vue +0 -183
- package/components/BTXUI/tags/tags-wid.vue +0 -121
- package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
- package/components/BTXUI/upload/upload-wid.vue +0 -215
- package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
- package/components/header-info.vue +0 -167
- package/composables/@types.ts +0 -4
- package/composables/api.ts +0 -18
- package/env.d.ts +0 -5
- package/main.js +0 -16
- package/nuxt.config.ts +0 -51
- package/pages/article.vue +0 -16
- package/pages/download.vue +0 -50
- package/pages/example/app_wid/app/data_demo.vue +0 -9
- package/pages/example/app_wid/app/download_demo.vue +0 -9
- package/pages/example/app_wid/app/list_demo.vue +0 -11
- package/pages/example/app_wid/app/system_demo.vue +0 -9
- package/pages/example/app_wid/app_wid_demo.vue +0 -198
- package/pages/example/app_wid/btn_wid_demo.vue +0 -179
- package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
- package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
- package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
- package/pages/example/app_wid/content_wid_demo.vue +0 -369
- package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
- package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
- package/pages/example/app_wid/form_wid_demo.vue +0 -550
- package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
- package/pages/example/app_wid/index.js +0 -158
- package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
- package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
- package/pages/example/app_wid/range_wid_demo.vue +0 -101
- package/pages/example/app_wid/search_wid_demo.vue +0 -75
- package/pages/example/app_wid/select_wid_demo.vue +0 -217
- package/pages/example/app_wid/slider_wid_demo.vue +0 -143
- package/pages/example/app_wid/tab_wid_demo.vue +0 -170
- package/pages/example/app_wid/table_wid_demo.vue +0 -377
- package/pages/example/app_wid/tag_wid_demo.vue +0 -133
- package/pages/example/app_wid/tags_wid_demo.vue +0 -143
- package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
- package/pages/example/app_wid/upload_wid_demo.vue +0 -123
- package/pages/example/base_wid/b_drag_demo.vue +0 -159
- package/pages/example/base_wid/b_grid_demo.vue +0 -225
- package/pages/example/base_wid/b_hot_demo.vue +0 -135
- package/pages/example/base_wid/b_icon_demo.vue +0 -80
- package/pages/example/base_wid/b_img_demo.vue +0 -95
- package/pages/example/base_wid/b_input_demo.vue +0 -171
- package/pages/example/base_wid/b_list_demo.vue +0 -241
- package/pages/example/base_wid/b_style_demo.vue +0 -928
- package/pages/example/base_wid/b_text_demo.vue +0 -36
- package/pages/example/base_wid/b_textarea_demo.vue +0 -64
- package/pages/example/base_wid/b_video_demo.vue +0 -42
- package/pages/example/base_wid/b_view_demo.vue +0 -36
- package/pages/example/base_wid/index.js +0 -76
- package/pages/example/content.js +0 -49
- package/pages/example/global_style/animation.vue +0 -197
- package/pages/example/global_style/color.vue +0 -134
- package/pages/example/global_style/decoration.vue +0 -546
- package/pages/example/global_style/icon.vue +0 -345
- package/pages/example/global_style/index.js +0 -52
- package/pages/example/global_style/layout.vue +0 -846
- package/pages/example/global_style/special.vue +0 -37
- package/pages/example/global_style/table.vue +0 -298
- package/pages/example/global_style/text.vue +0 -159
- package/pages/index.vue +0 -43
- package/pages/level_widget.vue +0 -11
- package/pages/start.vue +0 -200
- package/plugins/index.ts +0 -2
- package/public/favicon.gif +0 -0
- package/public/fonts/iconfont.ttf +0 -0
- package/public/fonts/iconfont.woff +0 -0
- package/public/fonts/iconfont.woff2 +0 -0
- package/public/img/banner.jpg +0 -0
- package/public/img/banner2.jpg +0 -0
- package/public/img/bg_pattern.png +0 -0
- package/public/img/btx.jpg +0 -0
- package/public/img/btx_ui.jpg +0 -0
- package/public/img/dir.png +0 -0
- package/public/img/f.png +0 -0
- package/public/img/head.jpg +0 -0
- package/public/img/head2.jpg +0 -0
- package/public/img/home_ico.png +0 -0
- package/public/img/icons.svg +0 -164
- package/public/img/mechanism/b-style.png +0 -0
- package/public/img/mechanism/slider-wid.png +0 -0
- package/public/img/mechanism/upload-wid.png +0 -0
- package/public/img/transform_origin.png +0 -0
- package/sass/animation.scss +0 -400
- package/sass/btx.mob.scss +0 -10
- package/sass/btx.pad.scss +0 -3
- package/sass/btx.scss +0 -22
- package/sass/btx.webapp.scss +0 -22
- package/sass/colors.scss +0 -65
- package/sass/decoration.scss +0 -220
- package/sass/flex.scss +0 -29
- package/sass/icons.scss +0 -100
- package/sass/layout.scss +0 -88
- package/sass/reset.scss +0 -111
- package/sass/response/flex_mixin.scss +0 -91
- package/sass/response/layout_mixin.scss +0 -227
- package/sass/response/main.scss +0 -59
- package/sass/response/text_mixin.scss +0 -65
- package/sass/scroll.scss +0 -100
- package/sass/special.scss +0 -13
- package/sass/table.scss +0 -103
- package/sass/text.scss +0 -86
- package/sass/webpack.config.js +0 -31
- 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
|
-
}
|
package/sass/response/main.scss
DELETED
|
@@ -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
|
-
}
|
package/sass/webpack.config.js
DELETED
|
@@ -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