@ws-serenity/sass-styling 0.0.1 → 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.
@@ -26,3 +26,11 @@
26
26
  %margin-center {
27
27
  margin: 0 auto;
28
28
  }
29
+
30
+ %absolute-stretch {
31
+ position: absolute;
32
+ top: 0;
33
+ left: 0;
34
+ right: 0;
35
+ bottom: 0;
36
+ }
@@ -0,0 +1,3 @@
1
+ @function hex-to-rgba($hex, $alpha) {
2
+ @return rgba(red($hex), green($hex), blue($hex), $alpha);
3
+ }
@@ -0,0 +1,6 @@
1
+ @import './adaptive';
2
+ @import './alignment';
3
+ @import './functions';
4
+ @import './styling';
5
+ @import './svgUtils';
6
+ @import './textUtils';
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ws-serenity/sass-styling",
3
- "version": "0.0.1",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "directories": {
6
6
  "lib": "lib"
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