btxui 1.0.2 → 1.0.3

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 (197) hide show
  1. package/demo.html +1 -0
  2. package/index.common.js +93 -0
  3. package/index.common.js.map +1 -0
  4. package/index.umd.js +104 -0
  5. package/index.umd.js.map +1 -0
  6. package/index.umd.min.js +2 -0
  7. package/index.umd.min.js.map +1 -0
  8. package/package.json +12 -23
  9. package/README.md +0 -42
  10. package/app.vue +0 -162
  11. package/assets/css/_main.js +0 -73
  12. package/assets/css/btx.min.css +0 -1
  13. package/assets/css/btx.mob.min.css +0 -1
  14. package/assets/css/btx.pad.min.css +0 -1
  15. package/assets/css/btx.webapp.min.css +0 -1
  16. package/assets/css/custom_fonts/iconfont.css +0 -37
  17. package/assets/css/custom_fonts/iconfont.eot +0 -0
  18. package/assets/css/custom_fonts/iconfont.svg +0 -47
  19. package/assets/css/custom_fonts/iconfont.ttf +0 -0
  20. package/assets/css/custom_fonts/iconfont.woff +0 -0
  21. package/assets/css/custom_fonts/iconfont.woff2 +0 -0
  22. package/assets/css/res-l.css +0 -47
  23. package/assets/css/res-m.css +0 -47
  24. package/assets/css/res-s.css +0 -61
  25. package/assets/custom_fonts/iconfont.css +0 -37
  26. package/assets/custom_fonts/iconfont.eot +0 -0
  27. package/assets/custom_fonts/iconfont.svg +0 -47
  28. package/assets/custom_fonts/iconfont.ttf +0 -0
  29. package/assets/custom_fonts/iconfont.woff +0 -0
  30. package/assets/custom_fonts/iconfont.woff2 +0 -0
  31. package/assets/js/Btx.js +0 -196
  32. package/assets/js/Utils.js +0 -421
  33. package/assets/js/fastclick.js +0 -802
  34. package/assets/js/lazy.min.js +0 -2
  35. package/assets/js/touchwipe.js +0 -111
  36. package/assets/server.js +0 -8
  37. package/assets/start_site_code_str.js +0 -119
  38. package/cdn/css/btx.min.css +0 -1
  39. package/cdn/css/btx.min.css.map +0 -1
  40. package/cdn/fonts/iconfont.ttf +0 -0
  41. package/cdn/fonts/iconfont.woff +0 -0
  42. package/cdn/fonts/iconfont.woff2 +0 -0
  43. package/components/BTXUI/app/app-wid.vue +0 -182
  44. package/components/BTXUI/btn/btn-wid.vue +0 -128
  45. package/components/BTXUI/carousel/carousel-wid.vue +0 -138
  46. package/components/BTXUI/checkbox/checkbox-wid.vue +0 -72
  47. package/components/BTXUI/confirm/confirm-wid.vue +0 -279
  48. package/components/BTXUI/content/content-checkbox-wid.vue +0 -44
  49. package/components/BTXUI/content/content-node-wid.vue +0 -114
  50. package/components/BTXUI/content/content-tag-wid.vue +0 -25
  51. package/components/BTXUI/content/content-wid.vue +0 -254
  52. package/components/BTXUI/core/anis/ani-fail.vue +0 -46
  53. package/components/BTXUI/core/anis/ani-loading.vue +0 -32
  54. package/components/BTXUI/core/anis/ani-notic.vue +0 -47
  55. package/components/BTXUI/core/anis/ani-success.vue +0 -48
  56. package/components/BTXUI/core/b-drag.vue +0 -258
  57. package/components/BTXUI/core/b-grid.vue +0 -84
  58. package/components/BTXUI/core/b-hot.vue +0 -171
  59. package/components/BTXUI/core/b-icon.vue +0 -76
  60. package/components/BTXUI/core/b-img.vue +0 -84
  61. package/components/BTXUI/core/b-input.vue +0 -198
  62. package/components/BTXUI/core/b-list.vue +0 -276
  63. package/components/BTXUI/core/b-text/doc.ts +0 -9
  64. package/components/BTXUI/core/b-text/index.vue +0 -16
  65. package/components/BTXUI/core/b-textarea.vue +0 -58
  66. package/components/BTXUI/core/b-video.vue +0 -35
  67. package/components/BTXUI/core/b-view/doc.ts +0 -10
  68. package/components/BTXUI/core/b-view/index.vue +0 -20
  69. package/components/BTXUI/core/b-webview.vue +0 -20
  70. package/components/BTXUI/core/lib/ChapterLink.js +0 -49
  71. package/components/BTXUI/core/lib/Search.vue +0 -60
  72. package/components/BTXUI/core/styles/doc.ts +0 -55
  73. package/components/BTXUI/core/styles/index.vue +0 -98
  74. package/components/BTXUI/core/styles/prestyles.ts +0 -471
  75. package/components/BTXUI/core/styles/theme.ts +0 -29
  76. package/components/BTXUI/drawer/drawer-wid.vue +0 -165
  77. package/components/BTXUI/drawer/title-tag-wid.vue +0 -114
  78. package/components/BTXUI/form/form-select-wid.vue +0 -57
  79. package/components/BTXUI/form/form-wid.vue +0 -324
  80. package/components/BTXUI/formPannel/form-pannel-wid.vue +0 -133
  81. package/components/BTXUI/imgsUpload/imgs-upload-wid.vue +0 -149
  82. package/components/BTXUI/index.js +0 -83
  83. package/components/BTXUI/pageFlip/page-flip-wid.vue +0 -206
  84. package/components/BTXUI/pannel/pannel-wid.vue +0 -167
  85. package/components/BTXUI/range/range-wid.vue +0 -134
  86. package/components/BTXUI/search/search-wid.vue +0 -80
  87. package/components/BTXUI/select/select-wid.vue +0 -186
  88. package/components/BTXUI/slider/slider-wid.vue +0 -444
  89. package/components/BTXUI/tab/tab-wid.vue +0 -109
  90. package/components/BTXUI/table/table-wid.vue +0 -324
  91. package/components/BTXUI/tag/tag-wid.vue +0 -183
  92. package/components/BTXUI/tags/tags-wid.vue +0 -121
  93. package/components/BTXUI/tooltip/tooltip-wid.vue +0 -146
  94. package/components/BTXUI/upload/upload-wid.vue +0 -215
  95. package/components/BTXUI/waterfall/waterfall-wid.vue +0 -166
  96. package/components/header-info.vue +0 -167
  97. package/composables/@types.ts +0 -4
  98. package/composables/api.ts +0 -18
  99. package/env.d.ts +0 -5
  100. package/main.js +0 -16
  101. package/nuxt.config.ts +0 -51
  102. package/pages/article.vue +0 -16
  103. package/pages/download.vue +0 -50
  104. package/pages/example/app_wid/app/data_demo.vue +0 -9
  105. package/pages/example/app_wid/app/download_demo.vue +0 -9
  106. package/pages/example/app_wid/app/list_demo.vue +0 -11
  107. package/pages/example/app_wid/app/system_demo.vue +0 -9
  108. package/pages/example/app_wid/app_wid_demo.vue +0 -198
  109. package/pages/example/app_wid/btn_wid_demo.vue +0 -179
  110. package/pages/example/app_wid/carousel_wid_demo.vue +0 -152
  111. package/pages/example/app_wid/checkbox_wid_demo.vue +0 -65
  112. package/pages/example/app_wid/confirm_wid_demo.vue +0 -197
  113. package/pages/example/app_wid/content_wid_demo.vue +0 -369
  114. package/pages/example/app_wid/drawer_wid_demo.vue +0 -155
  115. package/pages/example/app_wid/form_pannel_wid_demo.vue +0 -338
  116. package/pages/example/app_wid/form_wid_demo.vue +0 -550
  117. package/pages/example/app_wid/imgs_upload_wid_demo.vue +0 -159
  118. package/pages/example/app_wid/index.js +0 -158
  119. package/pages/example/app_wid/page_flip_wid_demo.vue +0 -99
  120. package/pages/example/app_wid/pannel_wid_demo.vue +0 -177
  121. package/pages/example/app_wid/range_wid_demo.vue +0 -101
  122. package/pages/example/app_wid/search_wid_demo.vue +0 -75
  123. package/pages/example/app_wid/select_wid_demo.vue +0 -217
  124. package/pages/example/app_wid/slider_wid_demo.vue +0 -143
  125. package/pages/example/app_wid/tab_wid_demo.vue +0 -170
  126. package/pages/example/app_wid/table_wid_demo.vue +0 -377
  127. package/pages/example/app_wid/tag_wid_demo.vue +0 -133
  128. package/pages/example/app_wid/tags_wid_demo.vue +0 -143
  129. package/pages/example/app_wid/tooltip_wid_demo.vue +0 -117
  130. package/pages/example/app_wid/upload_wid_demo.vue +0 -123
  131. package/pages/example/base_wid/b_drag_demo.vue +0 -159
  132. package/pages/example/base_wid/b_grid_demo.vue +0 -225
  133. package/pages/example/base_wid/b_hot_demo.vue +0 -135
  134. package/pages/example/base_wid/b_icon_demo.vue +0 -80
  135. package/pages/example/base_wid/b_img_demo.vue +0 -95
  136. package/pages/example/base_wid/b_input_demo.vue +0 -171
  137. package/pages/example/base_wid/b_list_demo.vue +0 -241
  138. package/pages/example/base_wid/b_style_demo.vue +0 -928
  139. package/pages/example/base_wid/b_text_demo.vue +0 -36
  140. package/pages/example/base_wid/b_textarea_demo.vue +0 -64
  141. package/pages/example/base_wid/b_video_demo.vue +0 -42
  142. package/pages/example/base_wid/b_view_demo.vue +0 -36
  143. package/pages/example/base_wid/index.js +0 -76
  144. package/pages/example/content.js +0 -49
  145. package/pages/example/global_style/animation.vue +0 -197
  146. package/pages/example/global_style/color.vue +0 -134
  147. package/pages/example/global_style/decoration.vue +0 -546
  148. package/pages/example/global_style/icon.vue +0 -345
  149. package/pages/example/global_style/index.js +0 -52
  150. package/pages/example/global_style/layout.vue +0 -846
  151. package/pages/example/global_style/special.vue +0 -37
  152. package/pages/example/global_style/table.vue +0 -298
  153. package/pages/example/global_style/text.vue +0 -159
  154. package/pages/index.vue +0 -43
  155. package/pages/level_widget.vue +0 -11
  156. package/pages/start.vue +0 -200
  157. package/plugins/index.ts +0 -2
  158. package/public/favicon.gif +0 -0
  159. package/public/fonts/iconfont.ttf +0 -0
  160. package/public/fonts/iconfont.woff +0 -0
  161. package/public/fonts/iconfont.woff2 +0 -0
  162. package/public/img/banner.jpg +0 -0
  163. package/public/img/banner2.jpg +0 -0
  164. package/public/img/bg_pattern.png +0 -0
  165. package/public/img/btx.jpg +0 -0
  166. package/public/img/btx_ui.jpg +0 -0
  167. package/public/img/dir.png +0 -0
  168. package/public/img/f.png +0 -0
  169. package/public/img/head.jpg +0 -0
  170. package/public/img/head2.jpg +0 -0
  171. package/public/img/home_ico.png +0 -0
  172. package/public/img/icons.svg +0 -164
  173. package/public/img/mechanism/b-style.png +0 -0
  174. package/public/img/mechanism/slider-wid.png +0 -0
  175. package/public/img/mechanism/upload-wid.png +0 -0
  176. package/public/img/transform_origin.png +0 -0
  177. package/sass/animation.scss +0 -400
  178. package/sass/btx.mob.scss +0 -10
  179. package/sass/btx.pad.scss +0 -3
  180. package/sass/btx.scss +0 -22
  181. package/sass/btx.webapp.scss +0 -22
  182. package/sass/colors.scss +0 -65
  183. package/sass/decoration.scss +0 -220
  184. package/sass/flex.scss +0 -29
  185. package/sass/icons.scss +0 -100
  186. package/sass/layout.scss +0 -88
  187. package/sass/reset.scss +0 -111
  188. package/sass/response/flex_mixin.scss +0 -91
  189. package/sass/response/layout_mixin.scss +0 -227
  190. package/sass/response/main.scss +0 -59
  191. package/sass/response/text_mixin.scss +0 -65
  192. package/sass/scroll.scss +0 -100
  193. package/sass/special.scss +0 -13
  194. package/sass/table.scss +0 -103
  195. package/sass/text.scss +0 -86
  196. package/sass/webpack.config.js +0 -31
  197. package/tsconfig.json +0 -4
@@ -1,220 +0,0 @@
1
- .bg-fixed {
2
- background-attachment: fixed;
3
- }
4
- .bg-repeat {
5
- background-repeat: repeat;
6
- }
7
- .bg-repeat-x {
8
- background-repeat: repeat-x;
9
- }
10
- .bg-repeat-y {
11
- background-repeat: repeat-y;
12
- }
13
-
14
-
15
- .bg-size-cover {
16
- background-size: cover;
17
- }
18
- .bg-size-contain {
19
- background-size: contain;
20
- }
21
- .bg-size-max {
22
- background-size: 100% 100%;
23
- }
24
- .bg-size-max-h {
25
- background-size: auto 100%;
26
- }
27
- .bg-size-max-w {
28
- background-size: 100% auto;
29
- }
30
-
31
-
32
- //九宫格背景图定位
33
- .bg-pos-1 {
34
- background-position: 0 0;
35
- }
36
- .bg-pos-2 {
37
- background-position: center 0;
38
- }
39
- .bg-pos-3 {
40
- background-position: 100% 0;
41
- }
42
- .bg-pos-4 {
43
- background-position: 0 center;
44
- }
45
- .bg-pos-5 {
46
- background-position: center;
47
- }
48
- .bg-pos-6 {
49
- background-position: 100% center;
50
- }
51
- .bg-pos-7 {
52
- background-position: 0 100%;
53
- }
54
- .bg-pos-8 {
55
- background-position: center 100%;
56
- }
57
- .bg-pos-9 {
58
- background-position: 100% 100%;
59
- }
60
-
61
-
62
- .round {
63
- border-radius: 50%; //50% 圆角
64
- }
65
- .round-lg { //24px 大圆角
66
- border-radius: 24px;
67
- }
68
- .round-md { //10px 中等圆角
69
- border-radius: 10px;
70
- }
71
- .round-sm { //4px 小型圆角
72
- border-radius: 4px;
73
- }
74
-
75
-
76
- .round-t { //上侧圆角
77
- border-bottom-left-radius: 0;
78
- border-bottom-right-radius: 0;
79
- }
80
- .round-b { //下侧圆角
81
- border-top-left-radius: 0;
82
- border-top-right-radius: 0;
83
- }
84
- .round-l { //左侧圆角
85
- border-top-right-radius: 0;
86
- border-bottom-right-radius: 0;
87
- }
88
- .round-r { //右侧圆角
89
- border-top-left-radius: 0;
90
- border-bottom-left-radius: 0;
91
- }
92
-
93
-
94
- .line { //四周实线描边
95
- border-style: solid;
96
- }
97
- .line-l { //左实线描边
98
- border-left-style: solid;
99
- }
100
- .line-r { //右实线描边
101
- border-right-style: solid;
102
- }
103
- .line-t { //上实线描边
104
- border-top-style: solid;
105
- }
106
- .line-b { //下实线描边
107
- border-bottom-style: solid;
108
- }
109
- .dashed { //四周虚线描边
110
- border-style: dashed;
111
- }
112
- .dashed-l { //左虚线描边
113
- border-left-style: dashed;
114
- }
115
- .dashed-r { //右虚线描边
116
- border-right-style: dashed;
117
- }
118
- .dashed-t { //上虚线描边
119
- border-top-style: dashed;
120
- }
121
- .dashed-b { //下虚线描边
122
- border-bottom-style: dashed;
123
- }
124
- .line-outside { //外侧描边范围
125
- background-clip: padding-box;
126
- }
127
-
128
-
129
- //描边粗细
130
- $thicks: 1 2 4 6 8 10;
131
- @each $thick in $thicks {
132
- .thick-#{$thick} {
133
- border-width: #{$thick}px;
134
- }
135
- }
136
-
137
-
138
- //文字描边
139
- .text-line {
140
- text-shadow:
141
- 1px 0 0 rgba(200, 200, 200, .5),
142
- -1px 0 0 rgba(200, 200, 200, .5),
143
- 0 1px 0 rgba(200, 200, 200, .5),
144
- 0 -1px 0 rgba(200, 200, 200, .5);
145
- }
146
-
147
-
148
- //阴影
149
- .shadow {
150
- box-shadow: 0 4px 17px;
151
- }
152
- .shadow-no {
153
- box-shadow: none;
154
- }
155
- .shadow-sm {
156
- box-shadow: 0 2px 4px;
157
- }
158
- .shadow-lg {
159
- box-shadow: 0 14px 40px;
160
- }
161
- .shadow-relief {
162
- box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);
163
- }
164
-
165
-
166
- //生成三角形
167
- %default-border {
168
- position: relative;
169
- border: 4px solid transparent;
170
- height: 0;
171
- width: 0;
172
- display: inline-block;
173
- }
174
- %v-border {
175
- border-top-width: 3px;
176
- border-bottom-width: 3px;
177
- }
178
- %h-border {
179
- border-left-width: 3px;
180
- border-right-width: 3px;
181
- }
182
- $dirs: (l left), (r right), (t top), (b bottom);
183
- @each $dir in $dirs {
184
- .triangle-#{nth($dir, 1)} {
185
- @extend %default-border;
186
- border-#{nth($dir, 2)}-color: inherit;
187
- @if nth($dir, 1) == l{
188
- @extend %v-border;
189
- left: 4px;
190
- }@else if nth($dir, 1) == r{
191
- @extend %v-border;
192
- right: 4px;
193
- }@else if nth($dir, 1) == t{
194
- @extend %h-border;
195
- top: 4px;
196
- }@else {
197
- @extend %h-border;
198
- bottom: 4px;
199
- }
200
- }
201
- }
202
-
203
-
204
- //模糊滤镜
205
- .blur-no { filter: blur(0px) }
206
- .blur-sm { filter: blur(2px) }
207
- .blur-md { filter: blur(7px) }
208
- .blur-lg { filter: blur(17px) }
209
-
210
- //明度滤镜
211
- .dark-no { filter: brightness(100%) }
212
- .dark-sm { filter: brightness(80%) }
213
- .dark-md { filter: brightness(50%) }
214
- .dark-lg { filter: brightness(20%) }
215
-
216
- //纯度滤镜
217
- .gray-no { filter: grayscale(0%) }
218
- .gray-sm { filter: grayscale(40%) }
219
- .gray-md { filter: grayscale(70%) }
220
- .gray-lg { filter: grayscale(100%) }
package/sass/flex.scss DELETED
@@ -1,29 +0,0 @@
1
- %flex{
2
- display: flex;
3
- justify-content: flex-start;
4
- align-items: stretch;
5
- }
6
-
7
- .grid {
8
- @extend %flex;
9
- flex-wrap: wrap;
10
- align-content: flex-start;
11
- }
12
-
13
- @for $i from 1 to 10 {
14
- .flex-#{$i}, .flex-#{$i}-{
15
- @extend %flex;
16
- }
17
- }
18
-
19
- .flex-between{ //主轴均分排列,两端对齐
20
- @extend %flex;
21
- justify-content: space-between !important;
22
- align-items: center;
23
- }
24
-
25
- .flex-around{ //主轴均分排列
26
- @extend %flex;
27
- justify-content: space-around !important;
28
- align-items: center;
29
- }
package/sass/icons.scss DELETED
@@ -1,100 +0,0 @@
1
- @font-face {
2
- font-family: "defaultICO"; /* Project id 1066215 */
3
- src: url('/cdn/fonts/iconfont.woff2?t=1622074607009') format('woff2'),
4
- url('/cdn/fonts/iconfont.woff?t=1622074607009') format('woff'),
5
- url('/cdn/fonts/iconfont.ttf?t=1622074607009') format('truetype');
6
- }
7
-
8
- [class^="ico-"],
9
- [class*=" ico-"] {
10
- font-family: "defaultICO";
11
- font-style: normal;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- }
15
-
16
- $icons:
17
- (success, "\e620") //正确(成功)
18
- (fail, "\e60c") //错误(失败)
19
- (xiala, "\e6b9") //下拉
20
- (arrow-right, "\e607") //右箭头
21
- (arrow-left, "\e608") //左箭头
22
- (sousuo, "\e66e") //搜索
23
- (play, "\e6a4") //播放
24
- (pause, "\e6a5") //暂停
25
- (guanbi, "\e663") //关闭(old)
26
- (close, "\e663") //关闭
27
- (tianjia, "\e664") //添加(old)
28
- (add, "\e664") //添加
29
- (more, "\e654") //更多
30
- (link, "\e66d") //关联
31
- (save, "\e602") //存储
32
- (del, "\e612") //删除
33
- (mobile, "\e712") //手机
34
- (weibo, "\e609") //微博
35
- (wechat, "\e62d") //微信
36
- (dy, "\e615") //抖音
37
- (bili, "\e617") //b站
38
- (github, "\e761") //github
39
- (download, "\e600") //下载
40
- (ui, "\e63c") //ui
41
- (home, "\e68e") //首页
42
- (list, "\e665") //列表
43
- (brightness, "\e632") //亮度
44
- (data, "\e690") //数据
45
- (user, "\e62b") //用户
46
- (system, "\e611") //系统设置
47
- (order, "\e684") //排序
48
- (exit, "\e618") //退出
49
- (log, "\e60f") //日志
50
- (edit, "\e70c") //编辑
51
- (no-data, "\e62c") //无数据
52
-
53
- (btxstudio-zh, "\e606") //佰逹仕
54
- (company-pad, "\e603") //七武海(实心)
55
- (company-line, "\e604") //七武海(线性)
56
- (company-zh, "\e605") //七武海(文字)
57
- (level, "\e60a") //level
58
- (level_round, "\e60e") //level(圆形实心)
59
- (btxstudio, "\e60b") //btxstudio
60
- (btxstudio-round, "\e60d") //btxstudio(圆形实心)
61
-
62
- (qq, "\e63f") //qq
63
- (weibo2, "\e64c") //微博
64
- (email, "\e619") //邮件
65
- (tel, "\e768") //手机
66
- (fix, "\e614") //传真
67
- (website, "\e63d") //网址
68
- (wechat2, "\e62a") //微信
69
- (eye, "\e7d3") //显示
70
- (brand, "\e610") //徽章
71
- (chart, "\e6cc") //统计
72
- (addr, "\e613") //地址
73
- (space, "\e89f") //空间
74
- (directory, "\e666") //字典
75
- (mail-list, "\e645") //通讯录
76
- (book, "\e68b") //著作
77
- (tesk, "\e601") //任务
78
- (talk, "\e81a") //对话
79
- (trophy, "\e723") //奖杯
80
- (edit, "\eed2") //编辑
81
- (work, "\eee0") //成果
82
- (circle, "\e633") //圈子
83
- (shop, "\e699") //商城
84
- (group, "\e68f") //群
85
- (about, "\e674") //介绍
86
- (time, "\e61a") //时间
87
- (book-list, "\e689") //书籍列表
88
- (book-block-list, "\e688") //书籍块状列表
89
- (pwd, "\e616") //密码
90
- (check-code, "\e626"); //验证码
91
-
92
- //设置字体图标
93
- @mixin set_icons($icons, $prefix:ico){
94
- @each $icon in $icons {
95
- .#{$prefix}-#{nth($icon, 1)}::before {
96
- content: nth($icon, 2);
97
- }
98
- }
99
- }
100
- @include set_icons($icons);
package/sass/layout.scss DELETED
@@ -1,88 +0,0 @@
1
- @import "./scroll.scss";
2
- @import "./flex.scss";
3
-
4
- .box-normal { //标准盒模型
5
- -webkit-box-sizing: content-box;
6
- -moz-box-sizing: content-box;
7
- box-sizing: content-box;
8
- }
9
-
10
- .container { //版心
11
- width: 100%;
12
- margin: 0 auto;
13
- max-width: 1200px;
14
-
15
- &[md], .container-md {
16
- max-width: 960px;
17
- }
18
- &[sm], .container-sm {
19
- max-width: 736px;
20
- }
21
- }
22
-
23
- .item{ //多列布局元素
24
- break-inside: avoid;
25
- -moz-page-break-inside: avoid;
26
- -webkit-column-break-inside: avoid;
27
- }
28
-
29
- .max-screen { // 视口满屏
30
- width: 100%;
31
- height: 100vh;
32
- }
33
-
34
-
35
- //生成 z 轴层级
36
- @mixin auto_gen_z_index(){
37
- .z-1 {
38
- z-index: -1;
39
- }
40
- @for $i from 0 to 11{
41
- .z#{$i} {
42
- z-index: $i;
43
- }
44
- }
45
- }
46
- @include auto_gen_z_index();
47
-
48
-
49
- //生成旋转
50
- @mixin auto_gen_rotate_class($suffix:""){
51
- $degs: 0, 15, 30, 45, 90, 180, 360;
52
- @each $deg in $degs{
53
- .rotate-#{$deg}#{$suffix} {
54
- transform: rotate(#{$deg}deg);
55
- }
56
- }
57
- }
58
- @include auto_gen_rotate_class();
59
-
60
-
61
- //变形中心点
62
- .origin-1 {
63
- transform-origin: left top;
64
- }
65
- .origin-2 {
66
- transform-origin: center top;
67
- }
68
- .origin-3 {
69
- transform-origin: right top;
70
- }
71
- .origin-4 {
72
- transform-origin: left center;
73
- }
74
- .origin-5 {
75
- transform-origin: center center;
76
- }
77
- .origin-6 {
78
- transform-origin: right center;
79
- }
80
- .origin-7 {
81
- transform-origin: left bottom;
82
- }
83
- .origin-8 {
84
- transform-origin: center bottom;
85
- }
86
- .origin-9 {
87
- transform-origin: right bottom;
88
- }
package/sass/reset.scss DELETED
@@ -1,111 +0,0 @@
1
- * {
2
- -webkit-box-sizing: border-box;
3
- -moz-box-sizing: border-box;
4
- box-sizing: border-box;
5
- margin: 0;
6
- padding: 0;
7
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); //高亮颜色透明
8
- -webkit-overflow-scrolling: touch;
9
- background-repeat: no-repeat;
10
- background-origin: border-box;
11
- }
12
-
13
- html {
14
- font-size: 12px;
15
- height: 100%;
16
- letter-spacing: 1px;
17
- }
18
- @media only screen and (max-width: 740px){
19
- html {
20
- letter-spacing: 0px;
21
- }
22
- }
23
-
24
- body {
25
- font-size: 1rem;
26
- font-family: "微软雅黑", Arial;
27
- line-height: 1.5;
28
- color: #373737;
29
- height: 100%;
30
- }
31
-
32
- a {
33
- color: inherit;
34
- text-decoration: none;
35
- }
36
-
37
- ul {
38
- list-style: none;
39
- }
40
-
41
- ol{
42
- list-style-position: inside;
43
- }
44
-
45
- img {
46
- max-width: 100%;
47
- }
48
-
49
- video, audio {
50
- display: block;
51
- width: 100%;
52
- object-fit: fill;
53
- outline: none;
54
- }
55
-
56
- input[type="text"], input[type="password"], input[type="number"], textarea, select, option,
57
- select:hover, option:hover{
58
- width: 100%;
59
- letter-spacing: 1px;
60
- border: none;
61
- background: none;
62
- outline: none;
63
- box-shadow: none;
64
- resize: none;
65
- font-size: inherit;
66
- color: inherit;
67
- font-family: "微软雅黑", Arial;
68
- -webkit-appearance: none; //ios下移除原生样式
69
-
70
- &::placeholder{
71
- opacity: .7;
72
- font-size: .9em;
73
- color: inherit;
74
- }
75
- }
76
-
77
- input[type="text"], input[type="password"], input[type="number"], textarea {
78
- &:focus, &:active, &:hover {
79
- outline: none;
80
- box-shadow: none;
81
- border: none;
82
- }
83
- }
84
-
85
- textarea {
86
- display: block;
87
- }
88
-
89
- button{
90
- border: none;
91
- background-color: transparent;
92
- outline: none;
93
- cursor: pointer;
94
- }
95
-
96
- pre {
97
- line-height: 1.5;
98
- font-size: 1.14rem;
99
- }
100
-
101
- iframe {
102
- border: none;
103
- display: block;
104
- }
105
-
106
- hr {
107
- border: none;
108
- height: 1px;
109
- background-color: rgba(130,130,130,.15);
110
- margin: 1.4rem 0;
111
- }
@@ -1,91 +0,0 @@
1
- //生长方向类
2
- @mixin auto_gen_flex_dir_class($suffix:"") {
3
- .flex#{$suffix}{
4
- display: flex;
5
- justify-content: flex-start;
6
- align-items: stretch;
7
- }
8
- .flex-column#{$suffix}{
9
- display: flex;
10
- justify-content: flex-start;
11
- align-items: stretch;
12
- flex-direction: column;
13
- }
14
- }
15
-
16
- //生成九宫格对齐定位类
17
- @mixin auto_gen_flex_align_class($suffix:"") {
18
- .flex-1#{$suffix} {
19
- justify-content: flex-start;
20
- align-items: flex-start;
21
- }
22
- .flex-2#{$suffix} {
23
- justify-content: center;
24
- align-items: flex-start;
25
- }
26
- .flex-3#{$suffix} {
27
- justify-content: flex-end;
28
- align-items: flex-start;
29
- }
30
- .flex-4#{$suffix} {
31
- justify-content: flex-start;
32
- align-items: center;
33
- }
34
- .flex-5#{$suffix} {
35
- justify-content: center;
36
- align-items: center;
37
- }
38
- .flex-6#{$suffix} {
39
- justify-content: flex-end;
40
- align-items: center;
41
- }
42
- .flex-7#{$suffix} {
43
- align-items: flex-end;
44
- }
45
- .flex-8#{$suffix} {
46
- justify-content: center;
47
- align-items: flex-end;
48
- }
49
- .flex-9#{$suffix} {
50
- justify-content: flex-end;
51
- align-items: flex-end;
52
- }
53
- }
54
-
55
- //生成栅格布局类
56
- @mixin auto_gen_grid_class($suffix:"") {
57
- $percent: "%";
58
- @for $i from 1 to 13 {
59
- .col-#{$i}#{$suffix} {
60
- width: (calc($i / 12) * 100)+#{$percent};
61
- }
62
- .col-offset-#{$i}#{$suffix} {
63
- margin-left: (calc($i / 12) * 100)+#{$percent};
64
- }
65
- }
66
- .col-2d4#{$suffix} {
67
- width: 20%;
68
- }
69
- .col-offset-2d4#{$suffix} {
70
- margin-left: 20%;
71
- }
72
- }
73
-
74
- //生成自生长元素类
75
- @mixin auto_gen_grow_class($suffix:"") {
76
- @for $i from 0 to 10 {
77
- .grow-#{$i}#{$suffix} {
78
- flex-grow: $i;
79
- flex-basis: 0;
80
- }
81
- }
82
- }
83
-
84
- //生成项目排序元素类
85
- @mixin auto_gen_order_class($suffix:"") {
86
- @for $i from 0 to 6 {
87
- .order-#{$i}#{$suffix}{
88
- order: $i;
89
- }
90
- }
91
- }