@ws-serenity/sass-styling 0.0.1 → 1.0.2
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/lib/sass/alignment.scss +8 -0
- package/lib/sass/functions.scss +3 -0
- package/lib/sass/index.scss +6 -0
- package/lib/sass/keyframes.scss +23 -0
- package/package.json +17 -17
- package/readme.md +15 -1
package/lib/sass/alignment.scss
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@mixin shake-animation($color, $animation-duration, $animation-curve) {
|
|
2
|
+
animation: shake $animation-duration $animation-curve;
|
|
3
|
+
|
|
4
|
+
// @formatter:off
|
|
5
|
+
@keyframes shake {
|
|
6
|
+
// allow pass color
|
|
7
|
+
5%, 45% { transform: translate3d(-1px, 0, 0); }
|
|
8
|
+
10%, 40% { transform: translate3d(2px, 0, 0); }
|
|
9
|
+
20%, 80% { color: $color; }
|
|
10
|
+
15%, 25%, 35% { transform: translate3d(-4px, 0, 0); }
|
|
11
|
+
20%, 30% { transform: translate3d(4px, 0, 0); }
|
|
12
|
+
}
|
|
13
|
+
// @formatter:on
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// @formatter:off
|
|
18
|
+
@keyframes oscillating {
|
|
19
|
+
0% { opacity: 100%; }
|
|
20
|
+
50% { opacity: 50%; }
|
|
21
|
+
100% { opacity: 100%; }
|
|
22
|
+
}
|
|
23
|
+
// @formatter:on
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ws-serenity/sass-styling",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "",
|
|
5
|
-
"directories": {
|
|
6
|
-
"lib": "lib"
|
|
7
|
-
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
-
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"sass": "1.
|
|
13
|
-
},
|
|
14
|
-
"keywords": [],
|
|
15
|
-
"author": "",
|
|
16
|
-
"license": "ISC"
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ws-serenity/sass-styling",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"directories": {
|
|
6
|
+
"lib": "lib"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"sass": "^1.66.1"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC"
|
|
17
|
+
}
|
package/readme.md
CHANGED
|
@@ -4,7 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
## Sass
|
|
6
6
|
|
|
7
|
-
Папка не обладает сайд-эффектами, ее можно импортировать сколько
|
|
7
|
+
Папка не обладает сайд-эффектами, ее можно импортировать сколько угодно.
|
|
8
|
+
|
|
9
|
+
Общий импорт:
|
|
10
|
+
```scss
|
|
11
|
+
@import '@ws-serenity/sass-styling/lib/sass';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Содержимое
|
|
15
|
+
- `adaptive` - миксины для адаптива
|
|
16
|
+
- `alignment` - размещение элементов (flex, margin-center,...)
|
|
17
|
+
- `functions` - полезные sass-функции
|
|
18
|
+
- `keyframes` - анимации
|
|
19
|
+
- `styling` - внешний вид (максимальное скругление, background-alpha)
|
|
20
|
+
- `svgUtils` - цвет и размер svg
|
|
21
|
+
- `textUtils` - оверфлоу текста
|
|
8
22
|
|
|
9
23
|
## Side-effect
|
|
10
24
|
|