btxui 1.0.1
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/README.md +42 -0
- package/app.vue +162 -0
- package/assets/css/_main.js +73 -0
- package/assets/css/btx.min.css +1 -0
- package/assets/css/btx.mob.min.css +1 -0
- package/assets/css/btx.pad.min.css +1 -0
- package/assets/css/btx.webapp.min.css +1 -0
- package/assets/css/custom_fonts/iconfont.css +37 -0
- package/assets/css/custom_fonts/iconfont.eot +0 -0
- package/assets/css/custom_fonts/iconfont.svg +47 -0
- 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 +47 -0
- package/assets/css/res-m.css +47 -0
- package/assets/css/res-s.css +61 -0
- package/assets/custom_fonts/iconfont.css +37 -0
- package/assets/custom_fonts/iconfont.eot +0 -0
- package/assets/custom_fonts/iconfont.svg +47 -0
- 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 +196 -0
- package/assets/js/Utils.js +421 -0
- package/assets/js/fastclick.js +802 -0
- package/assets/js/lazy.min.js +2 -0
- package/assets/js/touchwipe.js +111 -0
- package/assets/server.js +8 -0
- package/assets/start_site_code_str.js +119 -0
- package/cdn/css/btx.min.css +1 -0
- package/cdn/css/btx.min.css.map +1 -0
- 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 +182 -0
- package/components/BTXUI/btn/btn-wid.vue +128 -0
- package/components/BTXUI/carousel/carousel-wid.vue +138 -0
- package/components/BTXUI/checkbox/checkbox-wid.vue +72 -0
- package/components/BTXUI/confirm/confirm-wid.vue +279 -0
- package/components/BTXUI/content/content-checkbox-wid.vue +44 -0
- package/components/BTXUI/content/content-node-wid.vue +114 -0
- package/components/BTXUI/content/content-tag-wid.vue +25 -0
- package/components/BTXUI/content/content-wid.vue +254 -0
- package/components/BTXUI/core/anis/ani-fail.vue +46 -0
- package/components/BTXUI/core/anis/ani-loading.vue +32 -0
- package/components/BTXUI/core/anis/ani-notic.vue +47 -0
- package/components/BTXUI/core/anis/ani-success.vue +48 -0
- package/components/BTXUI/core/b-drag.vue +258 -0
- package/components/BTXUI/core/b-grid.vue +84 -0
- package/components/BTXUI/core/b-hot.vue +171 -0
- package/components/BTXUI/core/b-icon.vue +76 -0
- package/components/BTXUI/core/b-img.vue +84 -0
- package/components/BTXUI/core/b-input.vue +198 -0
- package/components/BTXUI/core/b-list.vue +276 -0
- package/components/BTXUI/core/b-text/doc.ts +9 -0
- package/components/BTXUI/core/b-text/index.vue +16 -0
- package/components/BTXUI/core/b-textarea.vue +58 -0
- package/components/BTXUI/core/b-video.vue +35 -0
- package/components/BTXUI/core/b-view/doc.ts +10 -0
- package/components/BTXUI/core/b-view/index.vue +20 -0
- package/components/BTXUI/core/b-webview.vue +20 -0
- package/components/BTXUI/core/lib/ChapterLink.js +49 -0
- package/components/BTXUI/core/lib/Search.vue +60 -0
- package/components/BTXUI/core/styles/doc.ts +55 -0
- package/components/BTXUI/core/styles/index.vue +98 -0
- package/components/BTXUI/core/styles/prestyles.ts +471 -0
- package/components/BTXUI/core/styles/theme.ts +29 -0
- package/components/BTXUI/drawer/drawer-wid.vue +165 -0
- package/components/BTXUI/drawer/title-tag-wid.vue +114 -0
- package/components/BTXUI/form/form-select-wid.vue +57 -0
- package/components/BTXUI/form/form-wid.vue +324 -0
- package/components/BTXUI/formPannel/form-pannel-wid.vue +133 -0
- package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +149 -0
- package/components/BTXUI/index.js +83 -0
- package/components/BTXUI/pageFlip/page-flip-wid.vue +206 -0
- package/components/BTXUI/pannel/pannel-wid.vue +167 -0
- package/components/BTXUI/range/range-wid.vue +134 -0
- package/components/BTXUI/search/search-wid.vue +80 -0
- package/components/BTXUI/select/select-wid.vue +186 -0
- package/components/BTXUI/slider/slider-wid.vue +444 -0
- package/components/BTXUI/tab/tab-wid.vue +109 -0
- package/components/BTXUI/table/table-wid.vue +324 -0
- package/components/BTXUI/tag/tag-wid.vue +183 -0
- package/components/BTXUI/tags/tags-wid.vue +121 -0
- package/components/BTXUI/tooltip/tooltip-wid.vue +146 -0
- package/components/BTXUI/upload/upload-wid.vue +215 -0
- package/components/BTXUI/waterfall/waterfall-wid.vue +166 -0
- package/components/header-info.vue +167 -0
- package/composables/@types.ts +4 -0
- package/composables/api.ts +18 -0
- package/env.d.ts +5 -0
- package/main.js +6 -0
- package/nuxt.config.ts +51 -0
- package/package.json +23 -0
- package/pages/article.vue +16 -0
- package/pages/download.vue +50 -0
- package/pages/example/app_wid/app/data_demo.vue +9 -0
- package/pages/example/app_wid/app/download_demo.vue +9 -0
- package/pages/example/app_wid/app/list_demo.vue +11 -0
- package/pages/example/app_wid/app/system_demo.vue +9 -0
- package/pages/example/app_wid/app_wid_demo.vue +198 -0
- package/pages/example/app_wid/btn_wid_demo.vue +179 -0
- package/pages/example/app_wid/carousel_wid_demo.vue +152 -0
- package/pages/example/app_wid/checkbox_wid_demo.vue +65 -0
- package/pages/example/app_wid/confirm_wid_demo.vue +197 -0
- package/pages/example/app_wid/content_wid_demo.vue +369 -0
- package/pages/example/app_wid/drawer_wid_demo.vue +155 -0
- package/pages/example/app_wid/form_pannel_wid_demo.vue +338 -0
- package/pages/example/app_wid/form_wid_demo.vue +550 -0
- package/pages/example/app_wid/imgs_upload_wid_demo.vue +159 -0
- package/pages/example/app_wid/index.js +158 -0
- package/pages/example/app_wid/page_flip_wid_demo.vue +99 -0
- package/pages/example/app_wid/pannel_wid_demo.vue +177 -0
- package/pages/example/app_wid/range_wid_demo.vue +101 -0
- package/pages/example/app_wid/search_wid_demo.vue +75 -0
- package/pages/example/app_wid/select_wid_demo.vue +217 -0
- package/pages/example/app_wid/slider_wid_demo.vue +143 -0
- package/pages/example/app_wid/tab_wid_demo.vue +170 -0
- package/pages/example/app_wid/table_wid_demo.vue +377 -0
- package/pages/example/app_wid/tag_wid_demo.vue +133 -0
- package/pages/example/app_wid/tags_wid_demo.vue +143 -0
- package/pages/example/app_wid/tooltip_wid_demo.vue +117 -0
- package/pages/example/app_wid/upload_wid_demo.vue +123 -0
- package/pages/example/base_wid/b_drag_demo.vue +159 -0
- package/pages/example/base_wid/b_grid_demo.vue +225 -0
- package/pages/example/base_wid/b_hot_demo.vue +135 -0
- package/pages/example/base_wid/b_icon_demo.vue +80 -0
- package/pages/example/base_wid/b_img_demo.vue +95 -0
- package/pages/example/base_wid/b_input_demo.vue +171 -0
- package/pages/example/base_wid/b_list_demo.vue +241 -0
- package/pages/example/base_wid/b_style_demo.vue +928 -0
- package/pages/example/base_wid/b_text_demo.vue +36 -0
- package/pages/example/base_wid/b_textarea_demo.vue +64 -0
- package/pages/example/base_wid/b_video_demo.vue +42 -0
- package/pages/example/base_wid/b_view_demo.vue +36 -0
- package/pages/example/base_wid/index.js +76 -0
- package/pages/example/content.js +49 -0
- package/pages/example/global_style/animation.vue +197 -0
- package/pages/example/global_style/color.vue +134 -0
- package/pages/example/global_style/decoration.vue +546 -0
- package/pages/example/global_style/icon.vue +345 -0
- package/pages/example/global_style/index.js +52 -0
- package/pages/example/global_style/layout.vue +846 -0
- package/pages/example/global_style/special.vue +37 -0
- package/pages/example/global_style/table.vue +298 -0
- package/pages/example/global_style/text.vue +159 -0
- package/pages/index.vue +29 -0
- package/pages/level_widget.vue +11 -0
- package/pages/start.vue +200 -0
- package/plugins/index.ts +2 -0
- 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 +164 -0
- 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 +400 -0
- package/sass/btx.mob.scss +10 -0
- package/sass/btx.pad.scss +3 -0
- package/sass/btx.scss +22 -0
- package/sass/btx.webapp.scss +22 -0
- package/sass/colors.scss +65 -0
- package/sass/decoration.scss +220 -0
- package/sass/flex.scss +29 -0
- package/sass/icons.scss +100 -0
- package/sass/layout.scss +88 -0
- package/sass/reset.scss +111 -0
- package/sass/response/flex_mixin.scss +91 -0
- package/sass/response/layout_mixin.scss +227 -0
- package/sass/response/main.scss +59 -0
- package/sass/response/text_mixin.scss +65 -0
- package/sass/scroll.scss +100 -0
- package/sass/special.scss +13 -0
- package/sass/table.scss +103 -0
- package/sass/text.scss +86 -0
- package/sass/webpack.config.js +31 -0
- package/tsconfig.json +4 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
$duration: .7s;
|
|
2
|
+
$fast_duration: .4s;
|
|
3
|
+
$slow_duration: 1.4s;
|
|
4
|
+
|
|
5
|
+
%duration {
|
|
6
|
+
animation-duration: $duration;
|
|
7
|
+
}
|
|
8
|
+
%reverse {
|
|
9
|
+
animation-direction: reverse;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.trans { //中速过度动画
|
|
14
|
+
transition: all $duration;
|
|
15
|
+
}
|
|
16
|
+
.trans-fast { //快速过度动画
|
|
17
|
+
transition: all $fast_duration;
|
|
18
|
+
}
|
|
19
|
+
.trans-slow { //慢速过度动画
|
|
20
|
+
transition: all $slow_duration;
|
|
21
|
+
}
|
|
22
|
+
.trans-no { //无过度动画
|
|
23
|
+
transition: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
//过渡动画延迟
|
|
28
|
+
@for $i from 1 to 10{
|
|
29
|
+
.trans-delay-d#{$i} {
|
|
30
|
+
transition-delay: #{calc($i / 10)}s;
|
|
31
|
+
}
|
|
32
|
+
@if $i < 6 {
|
|
33
|
+
.trans-delay-#{$i} {
|
|
34
|
+
transition-delay: #{$i}s;
|
|
35
|
+
}
|
|
36
|
+
.trans-delay-#{$i}d5 {
|
|
37
|
+
transition-delay: #{$i + .5}s;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
//animation 动画 ---------------------------------------------------------------
|
|
44
|
+
|
|
45
|
+
.ani { //中速动画
|
|
46
|
+
animation-duration: $duration;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ani-fast { //快速动画
|
|
50
|
+
animation-duration: $fast_duration;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ani-slow { //慢速动画
|
|
54
|
+
animation-duration: $slow_duration;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ani-mode-forwards {
|
|
58
|
+
animation-fill-mode: forwards;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ani-mode-backwards {
|
|
62
|
+
animation-fill-mode: backwards;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ani-mode-both {
|
|
66
|
+
animation-fill-mode: both;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
//animation 动画延迟
|
|
70
|
+
@for $i from 1 to 11{
|
|
71
|
+
@if $i < 10 {
|
|
72
|
+
.ani-delay-d#{$i} {
|
|
73
|
+
animation-delay: #{calc($i / 10)}s !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.ani-delay-#{$i} {
|
|
77
|
+
animation-delay: #{$i}s !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
//animation 动画迭代
|
|
83
|
+
@for $i from 1 to 7{
|
|
84
|
+
.ani-loop-#{$i} {
|
|
85
|
+
animation-iteration-count: $i;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.ani-loop {
|
|
89
|
+
animation-iteration-count: infinite;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
.ani-fade-in,
|
|
94
|
+
.ani-fade-out{ //淡入动画
|
|
95
|
+
animation-name: fadeIn;
|
|
96
|
+
@extend %duration;
|
|
97
|
+
}
|
|
98
|
+
.ani-fade-out{ //淡出动画
|
|
99
|
+
@extend %reverse;
|
|
100
|
+
}
|
|
101
|
+
@-webkit-keyframes fadeIn {
|
|
102
|
+
from {
|
|
103
|
+
opacity: 0;
|
|
104
|
+
visibility: hidden;
|
|
105
|
+
}
|
|
106
|
+
to{
|
|
107
|
+
opacity: 1;
|
|
108
|
+
visibility: visible;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
@keyframes fadeIn {
|
|
112
|
+
from {
|
|
113
|
+
opacity: 0;
|
|
114
|
+
visibility: hidden;
|
|
115
|
+
}
|
|
116
|
+
to{
|
|
117
|
+
opacity: 1;
|
|
118
|
+
visibility: visible;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
.ani-scale-fade-in,
|
|
124
|
+
.ani-scale-fade-out{ //缩放式淡入动画
|
|
125
|
+
animation-name: scaleFadeIn;
|
|
126
|
+
@extend %duration;
|
|
127
|
+
}
|
|
128
|
+
.ani-scale-fade-out{ //放缩式淡出动画
|
|
129
|
+
@extend %reverse;
|
|
130
|
+
}
|
|
131
|
+
@-webkit-keyframes scaleFadeIn {
|
|
132
|
+
from {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
-webkit-transform: scale(0);
|
|
135
|
+
}
|
|
136
|
+
to{
|
|
137
|
+
opacity: 1;
|
|
138
|
+
-webkit-transform: scale(1);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
@keyframes scaleFadeIn {
|
|
142
|
+
from {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: scale(0);
|
|
145
|
+
}
|
|
146
|
+
to{
|
|
147
|
+
opacity: 1;
|
|
148
|
+
transform: scale(1);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
.ani-v-stretch-h-in { //先垂直后水平伸展式动画
|
|
154
|
+
animation-name: stretchV2HIn;
|
|
155
|
+
animation-timing-function: ease-out;
|
|
156
|
+
@extend %duration;
|
|
157
|
+
}
|
|
158
|
+
@-webkit-keyframes stretchV2HIn {
|
|
159
|
+
0% {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
-webkit-transform: scale(0, 0);
|
|
162
|
+
}
|
|
163
|
+
70% {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
-webkit-transform: scale(.2, 1);
|
|
166
|
+
}
|
|
167
|
+
100%{
|
|
168
|
+
-webkit-transform: scale(1, 1);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
@keyframes stretchV2HIn {
|
|
172
|
+
0% {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
transform: scale(0, 0);
|
|
175
|
+
}
|
|
176
|
+
70% {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
transform: scale(.2, 1);
|
|
179
|
+
}
|
|
180
|
+
100%{
|
|
181
|
+
transform: scale(1, 1);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
.ani-h-stretch-v-in { //先水平后垂直伸展式动画
|
|
187
|
+
animation-name: stretchH2VIn;
|
|
188
|
+
animation-timing-function: ease-out;
|
|
189
|
+
@extend %duration;
|
|
190
|
+
}
|
|
191
|
+
@-webkit-keyframes stretchH2VIn {
|
|
192
|
+
0% {
|
|
193
|
+
opacity: 0;
|
|
194
|
+
-webkit-transform: scale(0, 0);
|
|
195
|
+
}
|
|
196
|
+
70% {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
-webkit-transform: scale(1, .2);
|
|
199
|
+
}
|
|
200
|
+
100%{
|
|
201
|
+
-webkit-transform: scale(1, 1);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
@keyframes stretchH2VIn {
|
|
205
|
+
0% {
|
|
206
|
+
opacity: 0;
|
|
207
|
+
transform: scale(0, 0);
|
|
208
|
+
}
|
|
209
|
+
70% {
|
|
210
|
+
opacity: 1;
|
|
211
|
+
transform: scale(1, .2);
|
|
212
|
+
}
|
|
213
|
+
100%{
|
|
214
|
+
transform: scale(1, 1);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
//由左向右滑动动画
|
|
220
|
+
.ani-left-to-right{
|
|
221
|
+
animation-name: aniLeftSliderToRight;
|
|
222
|
+
@extend %duration;
|
|
223
|
+
}
|
|
224
|
+
@-webkit-keyframes aniLeftSliderToRight {
|
|
225
|
+
from {
|
|
226
|
+
-webkit-transform: translateX(-150%);
|
|
227
|
+
}
|
|
228
|
+
to{
|
|
229
|
+
-webkit-transform: translateX(0%);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
@keyframes aniLeftSliderToRight {
|
|
233
|
+
from {
|
|
234
|
+
transform: translateX(-150%);
|
|
235
|
+
}
|
|
236
|
+
to{
|
|
237
|
+
transform: translateX(0%);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
//由右向左滑动动画
|
|
243
|
+
.ani-right-to-left{
|
|
244
|
+
animation-name: aniRightSliderToLeft;
|
|
245
|
+
@extend %duration;
|
|
246
|
+
}
|
|
247
|
+
@-webkit-keyframes aniRightSliderToLeft {
|
|
248
|
+
from {
|
|
249
|
+
-webkit-transform: translateX(150%);
|
|
250
|
+
}
|
|
251
|
+
to{
|
|
252
|
+
-webkit-transform: translateX(0%);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
@keyframes aniRightSliderToLeft {
|
|
256
|
+
from {
|
|
257
|
+
transform: translateX(150%);
|
|
258
|
+
}
|
|
259
|
+
to{
|
|
260
|
+
transform: translateX(0%);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
//由上向下滑动动画
|
|
266
|
+
.ani-top-to-bottom{
|
|
267
|
+
animation-name: aniTopSliderToBottom;
|
|
268
|
+
@extend %duration;
|
|
269
|
+
}
|
|
270
|
+
@-webkit-keyframes aniTopSliderToBottom {
|
|
271
|
+
from {
|
|
272
|
+
-webkit-transform: translateY(-150%);
|
|
273
|
+
}
|
|
274
|
+
to{
|
|
275
|
+
-webkit-transform: translateY(0%);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
@keyframes aniTopSliderToBottom {
|
|
279
|
+
from {
|
|
280
|
+
transform: translateY(-150%);
|
|
281
|
+
}
|
|
282
|
+
to{
|
|
283
|
+
transform: translateY(0%);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
//由下向上滑动动画
|
|
289
|
+
.ani-bottom-to-top{
|
|
290
|
+
animation-name: aniBottomSliderToTop;
|
|
291
|
+
@extend %duration;
|
|
292
|
+
}
|
|
293
|
+
@-webkit-keyframes aniBottomSliderToTop {
|
|
294
|
+
from {
|
|
295
|
+
-webkit-transform: translateY(150%);
|
|
296
|
+
}
|
|
297
|
+
to{
|
|
298
|
+
-webkit-transform: translateY(0%);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
@keyframes aniBottomSliderToTop {
|
|
302
|
+
from {
|
|
303
|
+
transform: translateY(150%);
|
|
304
|
+
}
|
|
305
|
+
to{
|
|
306
|
+
transform: translateY(0%);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
//旋转 360 度动画
|
|
312
|
+
.ani-rotate {
|
|
313
|
+
animation-name: aniRotate;
|
|
314
|
+
@extend %duration;
|
|
315
|
+
}
|
|
316
|
+
@-webkit-keyframes aniRotate {
|
|
317
|
+
0%{
|
|
318
|
+
-webkit-transform: rotate(0deg);
|
|
319
|
+
}
|
|
320
|
+
100%{
|
|
321
|
+
-webkit-transform: rotate(360deg);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
@keyframes aniRotate {
|
|
325
|
+
0%{
|
|
326
|
+
transform: rotate(0deg);
|
|
327
|
+
}
|
|
328
|
+
100%{
|
|
329
|
+
transform: rotate(360deg);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
//旋转 180 度动画
|
|
335
|
+
.ani-rotate-half {
|
|
336
|
+
animation-name: aniRotateHalf;
|
|
337
|
+
@extend %duration;
|
|
338
|
+
}
|
|
339
|
+
@-webkit-keyframes aniRotateHalf {
|
|
340
|
+
0%{
|
|
341
|
+
-webkit-transform: rotate(0deg);
|
|
342
|
+
}
|
|
343
|
+
100%{
|
|
344
|
+
-webkit-transform: rotate(180deg);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
@keyframes aniRotateHalf {
|
|
348
|
+
0%{
|
|
349
|
+
transform: rotate(0deg);
|
|
350
|
+
}
|
|
351
|
+
100%{
|
|
352
|
+
transform: rotate(180deg);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
//旋转 90 度动画
|
|
358
|
+
.ani-rotate-90 {
|
|
359
|
+
animation-name: aniRotate90;
|
|
360
|
+
@extend %duration;
|
|
361
|
+
}
|
|
362
|
+
@-webkit-keyframes aniRotate90 {
|
|
363
|
+
0%{
|
|
364
|
+
-webkit-transform: rotate(0deg);
|
|
365
|
+
}
|
|
366
|
+
100%{
|
|
367
|
+
-webkit-transform: rotate(90deg);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
@keyframes aniRotate90 {
|
|
371
|
+
0%{
|
|
372
|
+
transform: rotate(0deg);
|
|
373
|
+
}
|
|
374
|
+
100%{
|
|
375
|
+
transform: rotate(90deg);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
//旋转 45 度动画
|
|
381
|
+
.ani-rotate-45 {
|
|
382
|
+
animation-name: aniRotate45;
|
|
383
|
+
@extend %duration;
|
|
384
|
+
}
|
|
385
|
+
@-webkit-keyframes aniRotate45 {
|
|
386
|
+
0%{
|
|
387
|
+
-webkit-transform: rotate(0deg);
|
|
388
|
+
}
|
|
389
|
+
100%{
|
|
390
|
+
-webkit-transform: rotate(45deg);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
@keyframes aniRotate45 {
|
|
394
|
+
0%{
|
|
395
|
+
transform: rotate(0deg);
|
|
396
|
+
}
|
|
397
|
+
100%{
|
|
398
|
+
transform: rotate(45deg);
|
|
399
|
+
}
|
|
400
|
+
}
|
package/sass/btx.scss
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "./colors.scss";
|
|
2
|
+
|
|
3
|
+
@import "./reset.scss";
|
|
4
|
+
|
|
5
|
+
@import "./text.scss";
|
|
6
|
+
|
|
7
|
+
@import "./layout.scss";
|
|
8
|
+
|
|
9
|
+
@import "./table.scss";
|
|
10
|
+
|
|
11
|
+
@import "./decoration.scss";
|
|
12
|
+
|
|
13
|
+
@import "./animation.scss";
|
|
14
|
+
|
|
15
|
+
@import "./icons.scss";
|
|
16
|
+
|
|
17
|
+
@import "./special.scss";
|
|
18
|
+
|
|
19
|
+
@import "./response/main.scss";
|
|
20
|
+
|
|
21
|
+
@include auto_gen_response_class();
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "./reset.scss";
|
|
2
|
+
|
|
3
|
+
@import "./scroll.scss";
|
|
4
|
+
|
|
5
|
+
@import "./icons.scss";
|
|
6
|
+
|
|
7
|
+
@import "./response/flex_mixin.scss";
|
|
8
|
+
|
|
9
|
+
//栅格系统
|
|
10
|
+
|
|
11
|
+
//全局样式
|
|
12
|
+
@include auto_gen_grid_class("");
|
|
13
|
+
|
|
14
|
+
//平板端
|
|
15
|
+
@media only screen and (max-width: 1367px){
|
|
16
|
+
@include auto_gen_grid_class(-m);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//移动端
|
|
20
|
+
@media only screen and (max-width: 740px){
|
|
21
|
+
@include auto_gen_grid_class(-s);
|
|
22
|
+
}
|
package/sass/colors.scss
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
$none: transparent; //全透明色
|
|
2
|
+
|
|
3
|
+
$main: #051c24; //主题色-遂蓝
|
|
4
|
+
|
|
5
|
+
$sub: #b4967a; //辅助色-锡金
|
|
6
|
+
|
|
7
|
+
$light: #fff; //纯白
|
|
8
|
+
|
|
9
|
+
$dark: #111; //纯黑
|
|
10
|
+
|
|
11
|
+
$dgray: #373737; //深灰
|
|
12
|
+
|
|
13
|
+
$mgray: #a7a7a7; //中灰
|
|
14
|
+
|
|
15
|
+
$lgray: #eee; //浅灰
|
|
16
|
+
|
|
17
|
+
$blue: #4085f3; //湛蓝
|
|
18
|
+
|
|
19
|
+
$red: #ec4334; //玫红
|
|
20
|
+
|
|
21
|
+
$green: #02b9a1; //青绿
|
|
22
|
+
|
|
23
|
+
$yellow: #fdba00; //橙黄
|
|
24
|
+
|
|
25
|
+
$neutral: rgba(130,130,130,.15); //中性色
|
|
26
|
+
|
|
27
|
+
//生成色彩(文字、填充、描边)类
|
|
28
|
+
@mixin auto_gen_color_class {
|
|
29
|
+
$colors: (none $none), (sub $sub), (main $main), (light $light), (dark $dark), (dgray $dgray), (mgray $mgray), (lgray $lgray), (blue $blue), (green $green), (yellow $yellow), (red $red), (neutral, $neutral);
|
|
30
|
+
@each $color in $colors{
|
|
31
|
+
.color-#{"" + nth($color, 1)}{
|
|
32
|
+
color: nth($color, 2);
|
|
33
|
+
}
|
|
34
|
+
.bg-color-#{"" + nth($color, 1)}{
|
|
35
|
+
background-color: nth($color, 2);
|
|
36
|
+
}
|
|
37
|
+
.line-#{"" + nth($color, 1)}{
|
|
38
|
+
border-color: nth($color, 2) !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@include auto_gen_color_class();
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
//生成不透明度阶梯类
|
|
46
|
+
%visibility {
|
|
47
|
+
visibility: visible;
|
|
48
|
+
};
|
|
49
|
+
@mixin auto_gen_opacity_class {
|
|
50
|
+
.alpha-0 {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
visibility: hidden;
|
|
53
|
+
}
|
|
54
|
+
@for $i from 1 to 10{
|
|
55
|
+
.alpha-d#{$i} {
|
|
56
|
+
opacity: calc($i / 10);
|
|
57
|
+
@extend %visibility;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
.alpha-1 {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
@extend %visibility;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@include auto_gen_opacity_class();
|