@bitstack/ng-boundary 14.0.1-alpha.5 → 14.0.1-alpha.7
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/esm2020/lib/bs-boundary.mjs +11 -36
- package/esm2020/lib/model.mjs +1 -1
- package/fesm2015/bitstack-ng-boundary.mjs +10 -32
- package/fesm2015/bitstack-ng-boundary.mjs.map +1 -1
- package/fesm2020/bitstack-ng-boundary.mjs +10 -35
- package/fesm2020/bitstack-ng-boundary.mjs.map +1 -1
- package/lib/bs-boundary.d.ts +7 -17
- package/lib/model.d.ts +0 -4
- package/package.json +4 -4
- package/src/styles/_awd.scss +22 -100
- package/styles.scss +1 -3
- package/src/styles/_mixin.scss +0 -107
- package/src/styles/_responsive.scss +0 -698
- package/src/styles/_variables.scss +0 -29
package/src/styles/_mixin.scss
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@use "responsive";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/* Small devices (portrait tablets and large phones, 376px and up) */
|
|
5
|
-
@mixin s {
|
|
6
|
-
@media only screen and (min-width: 481px) and (min-height: 746px) {
|
|
7
|
-
@content;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// only mobile
|
|
12
|
-
@mixin landscape {
|
|
13
|
-
@media only screen and (orientation: landscape) and (any-pointer: coarse) {
|
|
14
|
-
@content;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin portrait {
|
|
19
|
-
@media only screen and (orientation: portrait) and (any-pointer: coarse) {
|
|
20
|
-
@content;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@mixin pc_landscape {
|
|
25
|
-
@media only screen and (orientation: landscape) {
|
|
26
|
-
@content;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@mixin pc_portrait {
|
|
31
|
-
@media only screen and (orientation: portrait) {
|
|
32
|
-
@content;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
@mixin text-center {
|
|
38
|
-
text-align: center;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin text-shadow($color) {
|
|
42
|
-
text-shadow: -1px 0 $color, 0 1px $color, 1px 0 $color, 0 -1px $color;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@mixin size($w, $h: $w) {
|
|
46
|
-
width: $w;
|
|
47
|
-
height: $h;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@mixin hideScrollbar {
|
|
51
|
-
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
52
|
-
scrollbar-width: none;
|
|
53
|
-
&::-webkit-scrollbar {
|
|
54
|
-
display: none;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@mixin flexCenter {
|
|
59
|
-
display: flex;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
align-items: center;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@mixin bg-contain {
|
|
65
|
-
background: center / contain no-repeat;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@mixin bg-cover {
|
|
69
|
-
background: center / cover no-repeat;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@mixin devBorder($color: aqua) {
|
|
73
|
-
box-shadow: inset 0 0 0 1px $color;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// WebP 圖片支持 mixin - 自動生成 WebP fallback
|
|
77
|
-
// 使用方法: @include bg-image-webp("/assets/images/_common/img-support/img.png");
|
|
78
|
-
@mixin bg-image-webp($png-path) {
|
|
79
|
-
$webp-path: str-replace($png-path, '.png', '.webp');
|
|
80
|
-
|
|
81
|
-
@supports (background-image: image-set(url("x.webp") type("image/webp"))){
|
|
82
|
-
background-image: image-set(
|
|
83
|
-
url($webp-path) type("image/webp"),
|
|
84
|
-
url($png-path) type("image/png")
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
@supports not (background-image: image-set(url("x.webp") type("image/webp"))){
|
|
88
|
-
background-image: url($png-path);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// 辅助函数:字符串替换
|
|
93
|
-
@function str-replace($string, $search, $replace: '') {
|
|
94
|
-
$index: str-index($string, $search);
|
|
95
|
-
@if $index {
|
|
96
|
-
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
|
97
|
-
}
|
|
98
|
-
@return $string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.scale-btn {
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
transition: transform 0.1s;
|
|
104
|
-
&:active {
|
|
105
|
-
transform: scale(0.9);
|
|
106
|
-
}
|
|
107
|
-
}
|