@microsoft/atlas-css 3.43.0 → 3.44.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.
- package/README.md +42 -42
- package/dist/class-names.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +91 -91
- package/src/atomics/README.md +56 -56
- package/src/atomics/aspect-ratio.scss +13 -13
- package/src/atomics/background.scss +11 -11
- package/src/atomics/border.scss +113 -113
- package/src/atomics/colors.scss +204 -204
- package/src/atomics/display.scss +33 -33
- package/src/atomics/flex.scss +74 -71
- package/src/atomics/gap.scss +60 -60
- package/src/atomics/image.scss +15 -15
- package/src/atomics/index.scss +18 -18
- package/src/atomics/line-clamp.scss +15 -15
- package/src/atomics/list.scss +8 -3
- package/src/atomics/overflow.scss +9 -9
- package/src/atomics/position.scss +19 -19
- package/src/atomics/shadow.scss +19 -19
- package/src/atomics/spacing-auto.scss +52 -52
- package/src/atomics/spacing.scss +98 -98
- package/src/atomics/typography.scss +203 -203
- package/src/atomics/visually-hidden.scss +4 -4
- package/src/atomics/width.scss +44 -44
- package/src/components/README.md +69 -69
- package/src/components/banner.scss +69 -69
- package/src/components/breadcrumbs.scss +37 -37
- package/src/components/button-reset.scss +8 -8
- package/src/components/button.scss +241 -241
- package/src/components/buttons.scss +93 -93
- package/src/components/card.scss +252 -252
- package/src/components/form/checkbox.scss +141 -141
- package/src/components/form/form.scss +67 -67
- package/src/components/form/help.scss +18 -18
- package/src/components/form/index.scss +8 -8
- package/src/components/form/input.scss +143 -143
- package/src/components/form/label.scss +14 -14
- package/src/components/form/radio.scss +121 -121
- package/src/components/form/select.scss +116 -116
- package/src/components/form/textarea.scss +82 -82
- package/src/components/gradient-card.scss +14 -14
- package/src/components/gradient.scss +85 -85
- package/src/components/hero.scss +197 -197
- package/src/components/icon.scss +20 -20
- package/src/components/image.scss +44 -44
- package/src/components/index.scss +27 -27
- package/src/components/layout.scss +189 -189
- package/src/components/link-button.scss +34 -34
- package/src/components/markdown.scss +158 -158
- package/src/components/media.scss +22 -22
- package/src/components/message.scss +74 -74
- package/src/components/notification.scss +101 -101
- package/src/components/pagination.scss +183 -183
- package/src/components/persona.scss +60 -60
- package/src/components/popover.scss +42 -42
- package/src/components/scroll.scss +26 -26
- package/src/components/segmented-control.scss +128 -128
- package/src/components/site-header.scss +255 -255
- package/src/components/stretched-link.scss +8 -8
- package/src/components/table.scss +114 -114
- package/src/components/toggle.scss +86 -86
- package/src/core/animations.scss +55 -55
- package/src/core/bare-elements.scss +38 -38
- package/src/core/focus.scss +45 -45
- package/src/core/font-stack.scss +28 -28
- package/src/core/index.scss +7 -7
- package/src/core/minireset.scss +79 -79
- package/src/core/normalize.scss +353 -353
- package/src/core/themes.scss +91 -91
- package/src/index.scss +5 -5
- package/src/mixins/center.scss +11 -11
- package/src/mixins/code-block.scss +43 -43
- package/src/mixins/colors.scss +6 -6
- package/src/mixins/control.scss +43 -43
- package/src/mixins/dismiss.scss +22 -22
- package/src/mixins/focus.scss +23 -23
- package/src/mixins/font-size.scss +35 -35
- package/src/mixins/force-colors.scss +5 -5
- package/src/mixins/gradient.scss +11 -11
- package/src/mixins/index.scss +17 -17
- package/src/mixins/layout-gap.scss +7 -7
- package/src/mixins/line-clamp.scss +15 -15
- package/src/mixins/loader.scss +16 -16
- package/src/mixins/media-queries.scss +61 -61
- package/src/mixins/overlay.scss +12 -12
- package/src/mixins/transparency.scss +15 -15
- package/src/mixins/unselectable.scss +13 -13
- package/src/mixins/visually-hidden.scss +12 -12
- package/src/tokens/animation.scss +8 -8
- package/src/tokens/border.scss +12 -12
- package/src/tokens/breakpoints.scss +11 -11
- package/src/tokens/colors.scss +239 -239
- package/src/tokens/direction.scss +25 -25
- package/src/tokens/display.scss +5 -5
- package/src/tokens/focus.scss +9 -9
- package/src/tokens/font-stack.scss +10 -10
- package/src/tokens/index.scss +17 -17
- package/src/tokens/layout.scss +17 -17
- package/src/tokens/palette.scss +200 -200
- package/src/tokens/position.scss +5 -5
- package/src/tokens/schemes.scss +14 -14
- package/src/tokens/shadow.scss +11 -11
- package/src/tokens/spacing.scss +25 -25
- package/src/tokens/themes.scss +318 -318
- package/src/tokens/typography.scss +33 -33
- package/src/tokens/z-index.scss +20 -20
- package/tokens/README.md +34 -34
- package/tokens/index.js +246 -246
- package/tokens/types.d.ts +35 -35
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/atlas-css",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Styles backing the Atlas Design System used by Microsoft's Developer Relations.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
|
-
"lint": "stylelint \"./src/**/*.scss\"",
|
|
8
|
-
"lint-fix": "stylelint \"./src/**/*.scss\" --fix",
|
|
9
|
-
"start": "parcel watch src/index.scss",
|
|
10
|
-
"build": "npm run build:css && npm run tokens && npm run class-names",
|
|
11
|
-
"build:css": "wireit",
|
|
12
|
-
"tokens": "wireit",
|
|
13
|
-
"class-names": "wireit",
|
|
14
|
-
"prepublishOnly": "npm run lint && npm run build"
|
|
15
|
-
},
|
|
16
|
-
"wireit": {
|
|
17
|
-
"build:css": {
|
|
18
|
-
"command": "parcel build src/index.scss --no-cache",
|
|
19
|
-
"files": [
|
|
20
|
-
"./src/**/*.scss"
|
|
21
|
-
],
|
|
22
|
-
"output": [
|
|
23
|
-
"./dist/**/*.css"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"tokens": {
|
|
27
|
-
"command": "node ./tokens/index.js",
|
|
28
|
-
"files": [
|
|
29
|
-
"./tokens/index.js",
|
|
30
|
-
"./src/tokens/**/*.scss"
|
|
31
|
-
],
|
|
32
|
-
"output": [
|
|
33
|
-
"./dist/tokens.json",
|
|
34
|
-
"./dist/tokens.ts"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
"class-names": {
|
|
38
|
-
"command": "node ./class-names/index.js",
|
|
39
|
-
"files": [
|
|
40
|
-
"./class-names/index.js",
|
|
41
|
-
"./dist/index.css"
|
|
42
|
-
],
|
|
43
|
-
"dependencies": [
|
|
44
|
-
"build:css",
|
|
45
|
-
"tokens"
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"homepage": "https://github.com/microsoft/atlas-design",
|
|
50
|
-
"repository": {
|
|
51
|
-
"type": "git",
|
|
52
|
-
"url": "https://github.com/microsoft/atlas-design"
|
|
53
|
-
},
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"registry": "https://registry.npmjs.org"
|
|
56
|
-
},
|
|
57
|
-
"files": [
|
|
58
|
-
"dist",
|
|
59
|
-
"src",
|
|
60
|
-
"tokens"
|
|
61
|
-
],
|
|
62
|
-
"keywords": [
|
|
63
|
-
"microsoft",
|
|
64
|
-
"atlas",
|
|
65
|
-
"design-system",
|
|
66
|
-
"css",
|
|
67
|
-
"scss"
|
|
68
|
-
],
|
|
69
|
-
"resolutions": {
|
|
70
|
-
"sass": "grass"
|
|
71
|
-
},
|
|
72
|
-
"author": "Microsoft Corporation",
|
|
73
|
-
"license": "MIT",
|
|
74
|
-
"devDependencies": {
|
|
75
|
-
"@microsoft/stylelint-config-atlas": "4.1.0",
|
|
76
|
-
"@parcel/transformer-sass": "^2.
|
|
77
|
-
"css-tree": "^2.3.1",
|
|
78
|
-
"eslint-plugin-security": "^1.7.1",
|
|
79
|
-
"fs-extra": "^11.1.1",
|
|
80
|
-
"parcel": "^2.
|
|
81
|
-
"lightningcss": "1.
|
|
82
|
-
"prettier": "^2.8.8",
|
|
83
|
-
"quicktype-core": "^23.0.48",
|
|
84
|
-
"grass": "^1.0.2",
|
|
85
|
-
"sass-export": "^2.1.2",
|
|
86
|
-
"stylelint": "^15.9.0",
|
|
87
|
-
"stylelint-config-prettier": "^9.0.5",
|
|
88
|
-
"stylelint-prettier": "^3.0.0",
|
|
89
|
-
"wireit": "^0.9.5"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/atlas-css",
|
|
3
|
+
"version": "3.44.1",
|
|
4
|
+
"description": "Styles backing the Atlas Design System used by Microsoft's Developer Relations.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
|
+
"lint": "stylelint \"./src/**/*.scss\"",
|
|
8
|
+
"lint-fix": "stylelint \"./src/**/*.scss\" --fix",
|
|
9
|
+
"start": "parcel watch src/index.scss",
|
|
10
|
+
"build": "npm run build:css && npm run tokens && npm run class-names",
|
|
11
|
+
"build:css": "wireit",
|
|
12
|
+
"tokens": "wireit",
|
|
13
|
+
"class-names": "wireit",
|
|
14
|
+
"prepublishOnly": "npm run lint && npm run build"
|
|
15
|
+
},
|
|
16
|
+
"wireit": {
|
|
17
|
+
"build:css": {
|
|
18
|
+
"command": "parcel build src/index.scss --no-cache",
|
|
19
|
+
"files": [
|
|
20
|
+
"./src/**/*.scss"
|
|
21
|
+
],
|
|
22
|
+
"output": [
|
|
23
|
+
"./dist/**/*.css"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"tokens": {
|
|
27
|
+
"command": "node ./tokens/index.js",
|
|
28
|
+
"files": [
|
|
29
|
+
"./tokens/index.js",
|
|
30
|
+
"./src/tokens/**/*.scss"
|
|
31
|
+
],
|
|
32
|
+
"output": [
|
|
33
|
+
"./dist/tokens.json",
|
|
34
|
+
"./dist/tokens.ts"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"class-names": {
|
|
38
|
+
"command": "node ./class-names/index.js",
|
|
39
|
+
"files": [
|
|
40
|
+
"./class-names/index.js",
|
|
41
|
+
"./dist/index.css"
|
|
42
|
+
],
|
|
43
|
+
"dependencies": [
|
|
44
|
+
"build:css",
|
|
45
|
+
"tokens"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/microsoft/atlas-design",
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://github.com/microsoft/atlas-design"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"registry": "https://registry.npmjs.org"
|
|
56
|
+
},
|
|
57
|
+
"files": [
|
|
58
|
+
"dist",
|
|
59
|
+
"src",
|
|
60
|
+
"tokens"
|
|
61
|
+
],
|
|
62
|
+
"keywords": [
|
|
63
|
+
"microsoft",
|
|
64
|
+
"atlas",
|
|
65
|
+
"design-system",
|
|
66
|
+
"css",
|
|
67
|
+
"scss"
|
|
68
|
+
],
|
|
69
|
+
"resolutions": {
|
|
70
|
+
"sass": "grass"
|
|
71
|
+
},
|
|
72
|
+
"author": "Microsoft Corporation",
|
|
73
|
+
"license": "MIT",
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@microsoft/stylelint-config-atlas": "4.1.0",
|
|
76
|
+
"@parcel/transformer-sass": "^2.12.0",
|
|
77
|
+
"css-tree": "^2.3.1",
|
|
78
|
+
"eslint-plugin-security": "^1.7.1",
|
|
79
|
+
"fs-extra": "^11.1.1",
|
|
80
|
+
"parcel": "^2.12.0",
|
|
81
|
+
"lightningcss": "^1.25.1",
|
|
82
|
+
"prettier": "^2.8.8",
|
|
83
|
+
"quicktype-core": "^23.0.48",
|
|
84
|
+
"grass": "^1.0.2",
|
|
85
|
+
"sass-export": "^2.1.2",
|
|
86
|
+
"stylelint": "^15.9.0",
|
|
87
|
+
"stylelint-config-prettier": "^9.0.5",
|
|
88
|
+
"stylelint-prettier": "^3.0.0",
|
|
89
|
+
"wireit": "^0.9.5"
|
|
90
|
+
}
|
|
91
|
+
}
|
package/src/atomics/README.md
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
# Atlas Atomics
|
|
2
|
-
|
|
3
|
-
Welcome to Atomics ⚛! These are small, single purpose, CSS classes that can be used to compose great things. Visit this article for a [longer definition of Atomic CSS here](https://css-tricks.com/lets-define-exactly-atomic-css/).
|
|
4
|
-
|
|
5
|
-
## Categories of classes
|
|
6
|
-
|
|
7
|
-
Most of our classes fall into one of several categories. Those that affect ...
|
|
8
|
-
|
|
9
|
-
- display (ex. `.display-inline-flex`)
|
|
10
|
-
- spacing (ex. `.margin-inline-lg`);
|
|
11
|
-
- color (ex. `.color-primary`)
|
|
12
|
-
- typography (ex. `.font-size-md`);
|
|
13
|
-
- flex properties (ex. `.justify-content-center`)
|
|
14
|
-
- and more ...
|
|
15
|
-
|
|
16
|
-
## Naming patterns
|
|
17
|
-
|
|
18
|
-
All of our atomic classes try to follow the same pattern.
|
|
19
|
-
|
|
20
|
-
```txt
|
|
21
|
-
.<css-property-name>-<value>
|
|
22
|
-
// or
|
|
23
|
-
.<css-property-name>-<value>-<screensize>
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## CSS Property Values
|
|
27
|
-
|
|
28
|
-
The first part of nearly every Atomic class represent the css property that it will modify. For example, `display` in the class `.display-flex` matches the property value from the corresponding css rule `display: flex;`. We hope this will provide a clear and easily intuited pattern for our Atomics and encourage everyone to learn the fundamentals of CSS.
|
|
29
|
-
|
|
30
|
-
## Values
|
|
31
|
-
|
|
32
|
-
While CSS properties are straightfoward (they just match the CSS), the value property is not always as easy to guess. We have a few rules that help us figure out how to write values in class names.
|
|
33
|
-
|
|
34
|
-
1. When the CSS value is a string (such as `flex-end` in `justify-content: flex-end`, or `grid` in `display: grid;`) then we just use that string directly (meaning these classes become `.justify-content-flex-end` and `.display-grid`).
|
|
35
|
-
2. In some cases, such as themed colors values, values are associated concepts.
|
|
36
|
-
- Such as `primary` in the class `.color-primary`. (The `primary` is blue on light theme and yellow on high contrast theme.)
|
|
37
|
-
- Such as `semibold` in the class `font-weight-semibold`.
|
|
38
|
-
3. When a value refers to a pixel value is involved we will just write out the number.
|
|
39
|
-
- Some width based classes use this approach. `width-100` means `width: 100px`.
|
|
40
|
-
4. When a em/rem value is involved, that value is typically represented as an at-least-two-letter-t-shirt size.
|
|
41
|
-
- Spacing and non-heading typography values follow this convention, as in `xs, sm, md, lg, xl, xxl` in `margin-top-xl`, and `font-size-md`.
|
|
42
|
-
- Within a set of values that require units such as the one above, 0 is represented by the string `none`.
|
|
43
|
-
5. Within a series of values that are all unitless numbers, those numbers are used directly, as in `flex-grow: 1;` being represented by `flex-grow-1`.
|
|
44
|
-
6. When a shorthand property's value is multi-part, we choose a reasonable default and omit the value completely.
|
|
45
|
-
- In the case `border: 1px solid $border` the class becomes simply `.border`.
|
|
46
|
-
- In this case further modification would still be available.
|
|
47
|
-
|
|
48
|
-
## Screen sizes
|
|
49
|
-
|
|
50
|
-
Screen sizes are represented by one of the following strings:
|
|
51
|
-
|
|
52
|
-
- `tablet`, representing screens tablet and larger.
|
|
53
|
-
- `desktop`, representing screen desktop width and larger.
|
|
54
|
-
- `widescreen`, representing very wide screens to infinity.
|
|
55
|
-
|
|
56
|
-
Use a mobile first approach when using Atomics, including the universally applicable class (i.e. the one that does not have a screensize at the end), and when necessary overwrite its values on larger screens.
|
|
1
|
+
# Atlas Atomics
|
|
2
|
+
|
|
3
|
+
Welcome to Atomics ⚛! These are small, single purpose, CSS classes that can be used to compose great things. Visit this article for a [longer definition of Atomic CSS here](https://css-tricks.com/lets-define-exactly-atomic-css/).
|
|
4
|
+
|
|
5
|
+
## Categories of classes
|
|
6
|
+
|
|
7
|
+
Most of our classes fall into one of several categories. Those that affect ...
|
|
8
|
+
|
|
9
|
+
- display (ex. `.display-inline-flex`)
|
|
10
|
+
- spacing (ex. `.margin-inline-lg`);
|
|
11
|
+
- color (ex. `.color-primary`)
|
|
12
|
+
- typography (ex. `.font-size-md`);
|
|
13
|
+
- flex properties (ex. `.justify-content-center`)
|
|
14
|
+
- and more ...
|
|
15
|
+
|
|
16
|
+
## Naming patterns
|
|
17
|
+
|
|
18
|
+
All of our atomic classes try to follow the same pattern.
|
|
19
|
+
|
|
20
|
+
```txt
|
|
21
|
+
.<css-property-name>-<value>
|
|
22
|
+
// or
|
|
23
|
+
.<css-property-name>-<value>-<screensize>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## CSS Property Values
|
|
27
|
+
|
|
28
|
+
The first part of nearly every Atomic class represent the css property that it will modify. For example, `display` in the class `.display-flex` matches the property value from the corresponding css rule `display: flex;`. We hope this will provide a clear and easily intuited pattern for our Atomics and encourage everyone to learn the fundamentals of CSS.
|
|
29
|
+
|
|
30
|
+
## Values
|
|
31
|
+
|
|
32
|
+
While CSS properties are straightfoward (they just match the CSS), the value property is not always as easy to guess. We have a few rules that help us figure out how to write values in class names.
|
|
33
|
+
|
|
34
|
+
1. When the CSS value is a string (such as `flex-end` in `justify-content: flex-end`, or `grid` in `display: grid;`) then we just use that string directly (meaning these classes become `.justify-content-flex-end` and `.display-grid`).
|
|
35
|
+
2. In some cases, such as themed colors values, values are associated concepts.
|
|
36
|
+
- Such as `primary` in the class `.color-primary`. (The `primary` is blue on light theme and yellow on high contrast theme.)
|
|
37
|
+
- Such as `semibold` in the class `font-weight-semibold`.
|
|
38
|
+
3. When a value refers to a pixel value is involved we will just write out the number.
|
|
39
|
+
- Some width based classes use this approach. `width-100` means `width: 100px`.
|
|
40
|
+
4. When a em/rem value is involved, that value is typically represented as an at-least-two-letter-t-shirt size.
|
|
41
|
+
- Spacing and non-heading typography values follow this convention, as in `xs, sm, md, lg, xl, xxl` in `margin-top-xl`, and `font-size-md`.
|
|
42
|
+
- Within a set of values that require units such as the one above, 0 is represented by the string `none`.
|
|
43
|
+
5. Within a series of values that are all unitless numbers, those numbers are used directly, as in `flex-grow: 1;` being represented by `flex-grow-1`.
|
|
44
|
+
6. When a shorthand property's value is multi-part, we choose a reasonable default and omit the value completely.
|
|
45
|
+
- In the case `border: 1px solid $border` the class becomes simply `.border`.
|
|
46
|
+
- In this case further modification would still be available.
|
|
47
|
+
|
|
48
|
+
## Screen sizes
|
|
49
|
+
|
|
50
|
+
Screen sizes are represented by one of the following strings:
|
|
51
|
+
|
|
52
|
+
- `tablet`, representing screens tablet and larger.
|
|
53
|
+
- `desktop`, representing screen desktop width and larger.
|
|
54
|
+
- `widescreen`, representing very wide screens to infinity.
|
|
55
|
+
|
|
56
|
+
Use a mobile first approach when using Atomics, including the universally applicable class (i.e. the one that does not have a screensize at the end), and when necessary overwrite its values on larger screens.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
$aspect-ratios: (
|
|
2
|
-
'1-1': '1 / 1',
|
|
3
|
-
'2-1': '2 / 1',
|
|
4
|
-
'4-3': '4 / 3',
|
|
5
|
-
'9-16': '9 / 16',
|
|
6
|
-
'16-9': '16 / 9'
|
|
7
|
-
) !default;
|
|
8
|
-
|
|
9
|
-
@each $name, $ratio in $aspect-ratios {
|
|
10
|
-
.aspect-ratio-#{$name} {
|
|
11
|
-
aspect-ratio: #{$ratio} !important;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
$aspect-ratios: (
|
|
2
|
+
'1-1': '1 / 1',
|
|
3
|
+
'2-1': '2 / 1',
|
|
4
|
+
'4-3': '4 / 3',
|
|
5
|
+
'9-16': '9 / 16',
|
|
6
|
+
'16-9': '16 / 9'
|
|
7
|
+
) !default;
|
|
8
|
+
|
|
9
|
+
@each $name, $ratio in $aspect-ratios {
|
|
10
|
+
.aspect-ratio-#{$name} {
|
|
11
|
+
aspect-ratio: #{$ratio} !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
$background-sizes: 100, 200 !default;
|
|
2
|
-
|
|
3
|
-
@each $size in $background-sizes {
|
|
4
|
-
.background-size-#{$size} {
|
|
5
|
-
background-size: #{$size}px;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.background-image-pattern {
|
|
10
|
-
background-image: var(--background-image-pattern);
|
|
11
|
-
}
|
|
1
|
+
$background-sizes: 100, 200 !default;
|
|
2
|
+
|
|
3
|
+
@each $size in $background-sizes {
|
|
4
|
+
.background-size-#{$size} {
|
|
5
|
+
background-size: #{$size}px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.background-image-pattern {
|
|
10
|
+
background-image: var(--background-image-pattern);
|
|
11
|
+
}
|
package/src/atomics/border.scss
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
.border {
|
|
2
|
-
border: $border-width solid $border !important;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.border-md {
|
|
6
|
-
border: $border-width-md solid $border !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.border-lg {
|
|
10
|
-
border: $border-width-lg solid $border !important;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.border-none {
|
|
14
|
-
border: none !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Rules for each side
|
|
18
|
-
|
|
19
|
-
@each $border-key, $direction in $logical-directions {
|
|
20
|
-
.border-#{$border-key} {
|
|
21
|
-
border-#{$direction}: $border-width solid $border !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.border-#{$border-key}-md {
|
|
25
|
-
border-#{$direction}: $border-width-md solid $border !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.border-#{$border-key}-lg {
|
|
29
|
-
border-#{$direction}: $border-width-lg solid $border !important;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.border-#{$border-key}-none {
|
|
33
|
-
border-#{$direction}: 0 !important;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@include tablet {
|
|
38
|
-
.border-tablet {
|
|
39
|
-
border: $border-width solid $border !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.border-md-tablet {
|
|
43
|
-
border: $border-width-md solid $border !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.border-lg-tablet {
|
|
47
|
-
border: $border-width-lg solid $border !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.border-none-tablet {
|
|
51
|
-
border: none !important;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Rules for each side
|
|
55
|
-
|
|
56
|
-
@each $border-key, $direction in $logical-directions {
|
|
57
|
-
.border-#{$border-key}-tablet {
|
|
58
|
-
border-#{$direction}: $border-width solid $border !important;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.border-#{$border-key}-md-tablet {
|
|
62
|
-
border-#{$direction}: $border-width-md solid $border !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.border-#{$border-key}-lg-tablet {
|
|
66
|
-
border-#{$direction}: $border-width-lg solid $border !important;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.border-#{$border-key}-none-tablet {
|
|
70
|
-
border-#{$direction}: 0 !important;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Radius
|
|
76
|
-
|
|
77
|
-
.border-radius-sm {
|
|
78
|
-
border-radius: $border-radius-sm !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.border-radius {
|
|
82
|
-
border-radius: $border-radius !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.border-radius-lg {
|
|
86
|
-
border-radius: $border-radius-lg !important;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.border-radius-rounded {
|
|
90
|
-
border-radius: $border-radius-rounded !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Colors
|
|
94
|
-
|
|
95
|
-
@each $name, $color-set in $colors {
|
|
96
|
-
$base: nth($color-set, $color-index-base);
|
|
97
|
-
|
|
98
|
-
.border-color-#{$name} {
|
|
99
|
-
border-color: $base !important;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.border-color-accent {
|
|
104
|
-
border-color: $border-accent !important;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.border-high-contrast {
|
|
108
|
-
border: $border-width solid $border-white-high-contrast !important;
|
|
109
|
-
|
|
110
|
-
&-hover:hover {
|
|
111
|
-
border: $border-width solid $border-yellow-high-contrast !important;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
.border {
|
|
2
|
+
border: $border-width solid $border !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.border-md {
|
|
6
|
+
border: $border-width-md solid $border !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.border-lg {
|
|
10
|
+
border: $border-width-lg solid $border !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.border-none {
|
|
14
|
+
border: none !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Rules for each side
|
|
18
|
+
|
|
19
|
+
@each $border-key, $direction in $logical-directions {
|
|
20
|
+
.border-#{$border-key} {
|
|
21
|
+
border-#{$direction}: $border-width solid $border !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.border-#{$border-key}-md {
|
|
25
|
+
border-#{$direction}: $border-width-md solid $border !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.border-#{$border-key}-lg {
|
|
29
|
+
border-#{$direction}: $border-width-lg solid $border !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.border-#{$border-key}-none {
|
|
33
|
+
border-#{$direction}: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include tablet {
|
|
38
|
+
.border-tablet {
|
|
39
|
+
border: $border-width solid $border !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.border-md-tablet {
|
|
43
|
+
border: $border-width-md solid $border !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.border-lg-tablet {
|
|
47
|
+
border: $border-width-lg solid $border !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.border-none-tablet {
|
|
51
|
+
border: none !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Rules for each side
|
|
55
|
+
|
|
56
|
+
@each $border-key, $direction in $logical-directions {
|
|
57
|
+
.border-#{$border-key}-tablet {
|
|
58
|
+
border-#{$direction}: $border-width solid $border !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.border-#{$border-key}-md-tablet {
|
|
62
|
+
border-#{$direction}: $border-width-md solid $border !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.border-#{$border-key}-lg-tablet {
|
|
66
|
+
border-#{$direction}: $border-width-lg solid $border !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.border-#{$border-key}-none-tablet {
|
|
70
|
+
border-#{$direction}: 0 !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Radius
|
|
76
|
+
|
|
77
|
+
.border-radius-sm {
|
|
78
|
+
border-radius: $border-radius-sm !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.border-radius {
|
|
82
|
+
border-radius: $border-radius !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.border-radius-lg {
|
|
86
|
+
border-radius: $border-radius-lg !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.border-radius-rounded {
|
|
90
|
+
border-radius: $border-radius-rounded !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Colors
|
|
94
|
+
|
|
95
|
+
@each $name, $color-set in $colors {
|
|
96
|
+
$base: nth($color-set, $color-index-base);
|
|
97
|
+
|
|
98
|
+
.border-color-#{$name} {
|
|
99
|
+
border-color: $base !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.border-color-accent {
|
|
104
|
+
border-color: $border-accent !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.border-high-contrast {
|
|
108
|
+
border: $border-width solid $border-white-high-contrast !important;
|
|
109
|
+
|
|
110
|
+
&-hover:hover {
|
|
111
|
+
border: $border-width solid $border-yellow-high-contrast !important;
|
|
112
|
+
}
|
|
113
|
+
}
|