@cas-smartdesign/styles 3.6.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/LICENSE +8 -0
- package/dist/docs/doc.css +1 -0
- package/dist/docs/doc.mjs +273 -0
- package/dist/docs/index.html +30 -0
- package/dist/styles.css +3 -0
- package/dist/styles.css.map +36 -0
- package/dist/theme.css +3 -0
- package/dist/theme.css.map +38 -0
- package/npm-third-party-licenses.json +187 -0
- package/package.json +31 -0
- package/readme.md +59 -0
- package/scss/modules/_app.scss +10 -0
- package/scss/modules/_base_colors.scss +170 -0
- package/scss/modules/_button.scss +37 -0
- package/scss/modules/_colors.scss +9 -0
- package/scss/modules/_index.scss +9 -0
- package/scss/modules/_link.scss +11 -0
- package/scss/modules/_misc.scss +6 -0
- package/scss/modules/_spacing.scss +29 -0
- package/scss/modules/_token.scss +16 -0
- package/scss/modules/_typography.scss +28 -0
- package/scss/styles.scss +2 -0
- package/scss/theme.scss +95 -0
- package/scss/variables/_base_colors.scss +22 -0
- package/scss/variables/_button.scss +13 -0
- package/scss/variables/_colors.scss +6 -0
- package/scss/variables/_field.scss +1 -0
- package/scss/variables/_index.scss +6 -0
- package/scss/variables/_spacing.scss +4 -0
- package/scss/variables/_typography.scss +11 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import "../variables/button";
|
|
2
|
+
@import "../variables/spacing";
|
|
3
|
+
|
|
4
|
+
.sd-button {
|
|
5
|
+
background: $sd-button-background;
|
|
6
|
+
color: $sd-button-color;
|
|
7
|
+
border: none;
|
|
8
|
+
outline: none;
|
|
9
|
+
padding: 0 $sd-normal-spacing;
|
|
10
|
+
height: 32px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background: $sd-button-hover-background;
|
|
15
|
+
}
|
|
16
|
+
&:focus {
|
|
17
|
+
background: $sd-button-focus-background;
|
|
18
|
+
}
|
|
19
|
+
&:active {
|
|
20
|
+
background: $sd-button-active-background;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.primary {
|
|
24
|
+
background: $sd-primary-button-background;
|
|
25
|
+
color: $sd-primary-button-color;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background: $sd-primary-button-hover-background;
|
|
29
|
+
}
|
|
30
|
+
&:focus {
|
|
31
|
+
background: $sd-primary-button-focus-background;
|
|
32
|
+
}
|
|
33
|
+
&:active {
|
|
34
|
+
background: $sd-primary-button-active-background;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import "../variables/spacing";
|
|
2
|
+
|
|
3
|
+
.sd-tiny-padding {
|
|
4
|
+
padding: $sd-tiny-spacing;
|
|
5
|
+
}
|
|
6
|
+
.sd-tiny-margin {
|
|
7
|
+
margin: $sd-tiny-spacing;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sd-small-padding {
|
|
11
|
+
padding: $sd-small-spacing;
|
|
12
|
+
}
|
|
13
|
+
.sd-small-margin {
|
|
14
|
+
margin: $sd-small-spacing;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sd-normal-padding {
|
|
18
|
+
padding: $sd-normal-spacing;
|
|
19
|
+
}
|
|
20
|
+
.sd-normal-margin {
|
|
21
|
+
margin: $sd-normal-spacing;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sd-large-padding {
|
|
25
|
+
padding: $sd-large-spacing;
|
|
26
|
+
}
|
|
27
|
+
.sd-large-margin {
|
|
28
|
+
margin: $sd-large-spacing;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@import "../variables/base_colors";
|
|
2
|
+
@import "../variables/spacing";
|
|
3
|
+
|
|
4
|
+
.sd-token-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.sd-token {
|
|
10
|
+
height: 28px;
|
|
11
|
+
margin: $sd-tiny-spacing $sd-small-spacing $sd-tiny-spacing 0px;
|
|
12
|
+
padding: 0 $sd-small-spacing;
|
|
13
|
+
background: $sd-palegrey;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../variables/typography";
|
|
2
|
+
@import "../variables/spacing";
|
|
3
|
+
|
|
4
|
+
.sd-primary-text {
|
|
5
|
+
font-family: $sd-font-family;
|
|
6
|
+
font-size: $sd-primary-font-size;
|
|
7
|
+
color: $sd-primary-text-color;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sd-secondary-text,
|
|
11
|
+
.sd-field-caption {
|
|
12
|
+
font-family: $sd-font-family;
|
|
13
|
+
font-size: $sd-secondary-font-size;
|
|
14
|
+
color: $sd-secondary-text-color;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sd-heading-text {
|
|
18
|
+
font-family: $sd-font-family-light;
|
|
19
|
+
font-size: $sd-heading-font-size;
|
|
20
|
+
font-weight: $sd-heading-font-weight;
|
|
21
|
+
color: $sd-heading-text-color;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sd-content-heading {
|
|
25
|
+
@extend .sd-heading-text;
|
|
26
|
+
|
|
27
|
+
padding-bottom: $sd-normal-spacing;
|
|
28
|
+
}
|
package/scss/styles.scss
ADDED
package/scss/theme.scss
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@import "./variables/index";
|
|
2
|
+
@import "./modules/index";
|
|
3
|
+
|
|
4
|
+
body {
|
|
5
|
+
@extend .sd-web-app;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
h1 {
|
|
9
|
+
@extend .sd-heading-text;
|
|
10
|
+
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
h2,
|
|
16
|
+
h3,
|
|
17
|
+
h4,
|
|
18
|
+
h5,
|
|
19
|
+
h6 {
|
|
20
|
+
@extend .sd-content-heading;
|
|
21
|
+
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
label {
|
|
26
|
+
@extend .sd-field-caption;
|
|
27
|
+
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
a {
|
|
32
|
+
@extend .sd-hyperlink;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
small {
|
|
36
|
+
@extend .sd-secondary-text;
|
|
37
|
+
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
button,
|
|
42
|
+
input[type="button"] {
|
|
43
|
+
@extend .sd-button;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
hr {
|
|
47
|
+
@extend .sd-separator-line;
|
|
48
|
+
|
|
49
|
+
margin: $sd-tiny-spacing 0;
|
|
50
|
+
border: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
section {
|
|
54
|
+
@extend .sd-content-background;
|
|
55
|
+
@extend .sd-large-padding;
|
|
56
|
+
|
|
57
|
+
margin: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
input[type="text"],
|
|
61
|
+
input[type="password"],
|
|
62
|
+
textarea {
|
|
63
|
+
@extend .sd-primary-text;
|
|
64
|
+
background: $sd-content-background;
|
|
65
|
+
width: 100%;
|
|
66
|
+
border: none;
|
|
67
|
+
border-bottom: 1px solid $sd-field-underline-color;
|
|
68
|
+
margin-bottom: $sd-small-spacing; // Give space for the underline
|
|
69
|
+
padding-top: 2px;
|
|
70
|
+
padding-bottom: 2px + 1px; // Give space for the focus underline
|
|
71
|
+
|
|
72
|
+
&:focus {
|
|
73
|
+
border-bottom: 2px solid $sd-interaction-color;
|
|
74
|
+
outline: none;
|
|
75
|
+
padding-bottom: 2px;
|
|
76
|
+
}
|
|
77
|
+
&:-moz-read-only {
|
|
78
|
+
border-bottom: 1px dashed $sd-field-underline-color;
|
|
79
|
+
padding-bottom: 2px + 1px; // Give space for the focus underline
|
|
80
|
+
}
|
|
81
|
+
&:read-only {
|
|
82
|
+
border-bottom: 1px dashed $sd-field-underline-color;
|
|
83
|
+
padding-bottom: 2px + 1px; // Give space for the focus underline
|
|
84
|
+
}
|
|
85
|
+
&:disabled {
|
|
86
|
+
border-bottom: 1px dashed $sd-field-underline-color;
|
|
87
|
+
background: $sd-content-background;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
textarea {
|
|
92
|
+
box-sizing: content-box;
|
|
93
|
+
resize: none;
|
|
94
|
+
height: 120px;
|
|
95
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
$sd-red: #cc0017;
|
|
2
|
+
$sd-orange: #ff6b11;
|
|
3
|
+
$sd-yellow: #ffbb11;
|
|
4
|
+
$sd-lightgreen: #8abd0c;
|
|
5
|
+
$sd-green: #009621;
|
|
6
|
+
$sd-teal: #0099c5;
|
|
7
|
+
$sd-lightblue: #0d98ff;
|
|
8
|
+
$sd-blue: #1467ba;
|
|
9
|
+
$sd-pink: #c41579;
|
|
10
|
+
$sd-purple: #6c127b;
|
|
11
|
+
$sd-brown: #593b20;
|
|
12
|
+
$sd-white: #fff;
|
|
13
|
+
$sd-palegrey: #f2f2f2;
|
|
14
|
+
$sd-lightgrey: #d9d9d9;
|
|
15
|
+
$sd-silver: #ccc;
|
|
16
|
+
$sd-grey: #767676;
|
|
17
|
+
$sd-darkgrey: #555;
|
|
18
|
+
$sd-black: #111;
|
|
19
|
+
|
|
20
|
+
$field-validation-warn-color: #555555;
|
|
21
|
+
$field-validation-suggest-color: #bf8800;
|
|
22
|
+
$field-validation-error-color: #cc0017;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import "colors";
|
|
2
|
+
|
|
3
|
+
$sd-button-color: $sd-interaction-color !default;
|
|
4
|
+
$sd-button-background: rgba($sd-button-color, 0) !default; /* Transparent */
|
|
5
|
+
$sd-button-hover-background: mix($sd-button-color, $sd-button-background, 10%);
|
|
6
|
+
$sd-button-focus-background: mix($sd-button-color, $sd-button-background, 10%);
|
|
7
|
+
$sd-button-active-background: mix($sd-button-color, $sd-button-background, 20%);
|
|
8
|
+
|
|
9
|
+
$sd-primary-button-color: $sd-white !default;
|
|
10
|
+
$sd-primary-button-background: $sd-button-color !default;
|
|
11
|
+
$sd-primary-button-hover-background: mix($sd-primary-button-color, $sd-primary-button-background, 10%);
|
|
12
|
+
$sd-primary-button-focus-background: mix($sd-primary-button-color, $sd-primary-button-background, 10%);
|
|
13
|
+
$sd-primary-button-active-background: mix($sd-primary-button-color, $sd-primary-button-background, 20%);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$sd-field-underline-color: #959595;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@import "./colors";
|
|
2
|
+
|
|
3
|
+
$sd-font-family: "Segoe UI", "Lucida Sans", Arial, sans-serif !default;
|
|
4
|
+
$sd-font-family-light: "Segoe UI Light", "Segoe UI", "Lucida Sans", Arial, sans-serif !default;
|
|
5
|
+
$sd-primary-font-size: 16px !default;
|
|
6
|
+
$sd-primary-text-color: $sd-black !default;
|
|
7
|
+
$sd-secondary-font-size: 13px !default;
|
|
8
|
+
$sd-secondary-text-color: $sd-grey !default;
|
|
9
|
+
$sd-heading-font-size: 24px !default;
|
|
10
|
+
$sd-heading-font-weight: lighter !default;
|
|
11
|
+
$sd-heading-text-color: $sd-darkgrey !default;
|