@alfalab/core-components-vars 11.0.2 → 11.1.0-alfasans

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/mixins.css CHANGED
@@ -119,3 +119,17 @@
119
119
  -webkit-box-orient: vertical;
120
120
  overflow: hidden;
121
121
  }
122
+
123
+ @define-mixin visually-hidden {
124
+ /* Hack from https://htmlacademy.ru/blog/css/short-12 */
125
+ position: absolute;
126
+ width: 1px;
127
+ height: 1px;
128
+ margin: -1px;
129
+ border: 0;
130
+ padding: 0;
131
+ white-space: nowrap;
132
+ clip-path: inset(100%);
133
+ clip: rect(0 0 0 0);
134
+ overflow: hidden;
135
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-vars",
3
- "version": "11.0.2",
3
+ "version": "11.1.0-alfasans",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,6 +10,9 @@
10
10
  "main": "index.js",
11
11
  "module": "esm/index.js",
12
12
  "style": "index.css",
13
+ "scripts": {
14
+ "build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
15
+ },
13
16
  "publishConfig": {
14
17
  "access": "public",
15
18
  "directory": "dist"
package/src/mixins.css CHANGED
@@ -119,3 +119,17 @@
119
119
  -webkit-box-orient: vertical;
120
120
  overflow: hidden;
121
121
  }
122
+
123
+ @define-mixin visually-hidden {
124
+ /* Hack from https://htmlacademy.ru/blog/css/short-12 */
125
+ position: absolute;
126
+ width: 1px;
127
+ height: 1px;
128
+ margin: -1px;
129
+ border: 0;
130
+ padding: 0;
131
+ white-space: nowrap;
132
+ clip-path: inset(100%);
133
+ clip: rect(0 0 0 0);
134
+ overflow: hidden;
135
+ }