@angelscmf/front 1.0.22 → 1.0.24
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 +49 -0
- package/package.json +1 -1
- package/sass/AngelsDesign.scss +10 -0
- package/sass/_AngelsClasses.scss +15 -0
- package/sass/_AngelsScreenRanges.scss +105 -0
- package/sass/_AngelsTheme.scss +2 -0
- package/sass/_AngelsVariables.scss +1 -1
- package/sass/angelsMessages/_AngelsAlert.scss +39 -0
- package/sass/angelsMessages/_AngelsDebug.scss +39 -0
- package/sass/angelsMessages/_AngelsDone.scss +39 -0
- package/sass/angelsMessages/_AngelsError.scss +39 -0
- package/sass/angelsMessages/_AngelsInfo.scss +39 -0
- package/sass/angelsMessages/_AngelsTip.scss +39 -0
- package/sass/angelsMessages/_AngelsWarn.scss +39 -0
- package/sass/angelsTags/_a-brick.scss +3 -0
package/README.md
CHANGED
|
@@ -5,3 +5,52 @@
|
|
|
5
5
|
or
|
|
6
6
|
|
|
7
7
|
> npm i -D @angelscmf/front
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# Angels' CMF CSS
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Angels' Screen Ranges
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Super Ranges
|
|
17
|
+
|
|
18
|
+
.a-mobile-only
|
|
19
|
+
.a-desktops-only
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Only Range
|
|
23
|
+
|
|
24
|
+
.a-mobile-only
|
|
25
|
+
.a-tablet-only
|
|
26
|
+
.a-laptop-only
|
|
27
|
+
.a-desktop-only
|
|
28
|
+
.a-large-only
|
|
29
|
+
.a-extra-only
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Range and Less
|
|
33
|
+
|
|
34
|
+
.a-mobile-only
|
|
35
|
+
.a-tablet-and-less
|
|
36
|
+
.a-laptop-and-less
|
|
37
|
+
.a-desktop-and-less
|
|
38
|
+
.a-large-and-less
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Range and More
|
|
42
|
+
|
|
43
|
+
.a-tablet-and-more
|
|
44
|
+
.a-laptop-and-more
|
|
45
|
+
.a-desktop-and-more
|
|
46
|
+
.a-large-and-more
|
|
47
|
+
.a-extra-only
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## Angels' Messages
|
|
51
|
+
|
|
52
|
+
* `<a-alert></a-alert>` (.a-alert, a-brick.a-alert, div.a-alert, p.a-alert, span.a-alert, ul.a-alert)
|
|
53
|
+
* `<a-debug></a-debug>` (.a-debug, a-brick.a-debug, div.a-debug, p.a-debug, span.a-debug, ul.a-debug)
|
|
54
|
+
* `<a-error></a-error>` .a-error, a-brick.a-error, div.a-error, p.a-error, span.a-error, ul.a-error
|
|
55
|
+
* `<a-info></a-info>` (.a-info, a-brick.a-info, div.a-info, p.a-info, span.a-info, ul.a-info)
|
|
56
|
+
* `<a-done></a-done>` (.a-done, a-brick.a-done, div.a-done, p.a-done, span.a-done, ul.a-done)
|
package/package.json
CHANGED
package/sass/AngelsDesign.scss
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
@forward 'AngelsTheme';
|
|
3
3
|
@forward 'AngelsPageLayout';
|
|
4
4
|
@forward 'AngelsHTMLElements';
|
|
5
|
+
@forward 'AngelsClasses';
|
|
6
|
+
@forward 'angelsMessages/AngelsAlert';
|
|
7
|
+
@forward 'angelsMessages/AngelsDebug';
|
|
8
|
+
@forward 'angelsMessages/AngelsError';
|
|
9
|
+
@forward 'angelsMessages/AngelsInfo';
|
|
10
|
+
@forward 'angelsMessages/AngelsDone';
|
|
11
|
+
@forward 'angelsMessages/AngelsTip';
|
|
12
|
+
@forward 'angelsMessages/AngelsWarn';
|
|
13
|
+
@forward 'AngelsScreenRanges';
|
|
5
14
|
@forward 'angelsTags/a-block';
|
|
15
|
+
@forward 'angelsTags/a-brick';
|
|
6
16
|
@forward 'angelsTags/a-infra';
|
|
7
17
|
@forward 'angelsTags/a-page';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angels' CMF Elements' styles.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@use "AngelsVariables";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tech info class for small print information.
|
|
9
|
+
*
|
|
10
|
+
* @example `<div class="a-tech-info">Release: 1.0.0</div>`
|
|
11
|
+
*/
|
|
12
|
+
.a-tech-info {
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
font-family: 'Courier New', Courier, monospace;
|
|
15
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@use "AngelsVariables" as *;
|
|
2
|
+
|
|
3
|
+
.a-mobiles-only {
|
|
4
|
+
|
|
5
|
+
@media (min-width: $a-laptop-max-width) {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.a-desktops-only {
|
|
11
|
+
|
|
12
|
+
@media (min-width: $a-desktop-min-width) {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.a-mobile-only {
|
|
18
|
+
@media (min-width: $a-mobile-min-width) {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.a-tablet-only {
|
|
24
|
+
@media (min-width: $a-tablet-min-width) and (max-width: $a-tablet-max-width) {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.a-laptop-only {
|
|
30
|
+
@media (min-width: $a-laptop-min-width) and (max-width: $a-laptop-max-width) {
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.a-desktop-only {
|
|
36
|
+
@media (min-width: $a-desktop-min-width) and (max-width: $a-desktop-max-width) {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.a-large-only {
|
|
42
|
+
@media (min-width: $a-large-min-width) and (max-width: $a-large-max-width) {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.a-extra-only {
|
|
48
|
+
@media (min-width: $a-extra-min-width) {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* a Range and Less section
|
|
55
|
+
*/
|
|
56
|
+
.a-tablet-and-less {
|
|
57
|
+
@media (min-width: $a-laptop-min-width) {
|
|
58
|
+
display: none;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.a-laptop-and-less {
|
|
63
|
+
@media (min-width: $a-desktop-min-width) {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.a-desktop-and-less {
|
|
69
|
+
@media (min-width: $a-large-min-width) {
|
|
70
|
+
display: none;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.a-large-and-less {
|
|
75
|
+
@media (min-width: $a-extra-min-width) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* a Range and More section
|
|
82
|
+
*/
|
|
83
|
+
.a-tablet-and-more {
|
|
84
|
+
@media (max-width: $a-mobile-max-width) {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.a-laptop-and-more {
|
|
90
|
+
@media (max-width: $a-tablet-max-width) {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.a-desktop-and-more {
|
|
96
|
+
@media (max-width: $a-laptop-max-width) {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.a-large-and-more {
|
|
102
|
+
@media (max-width: $a-desktop-max-width) {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
}
|
package/sass/_AngelsTheme.scss
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-alert-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-alert-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-alert-borderColor: #b71c1c;
|
|
5
|
+
--a-alert-background: #ffe6e6;
|
|
6
|
+
--a-alert-color: #d90429;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-alert,
|
|
10
|
+
div.a-alert,
|
|
11
|
+
p.a-alert {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-alert-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-alert,
|
|
17
|
+
a.a-alert,
|
|
18
|
+
span.a-alert {
|
|
19
|
+
padding: 0 var(--a-alert-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-alert {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-alert-space);
|
|
25
|
+
padding-bottom: var(--a-alert-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-alert,
|
|
29
|
+
.a-alert {
|
|
30
|
+
background: var(--a-alert-background);
|
|
31
|
+
border-left: 4px solid var(--a-alert-borderColor);
|
|
32
|
+
color: var(--a-alert-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-debug-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-debug-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-debug-borderColor: #a29bfe;
|
|
5
|
+
--a-debug-background: #f8f7ff;
|
|
6
|
+
--a-debug-color: #443c78;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-debug,
|
|
10
|
+
div.a-debug,
|
|
11
|
+
p.a-debug {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-debug-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-debug,
|
|
17
|
+
a.a-debug,
|
|
18
|
+
span.a-debug {
|
|
19
|
+
padding: 0 var(--a-debug-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-debug {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-debug-space);
|
|
25
|
+
padding-bottom: var(--a-debug-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-debug,
|
|
29
|
+
.a-debug {
|
|
30
|
+
background: var(--a-debug-background);
|
|
31
|
+
border-left: 4px solid var(--a-debug-borderColor);
|
|
32
|
+
color: var(--a-debug-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-done-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-done-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-done-borderColor: #2ecc71;
|
|
5
|
+
--a-done-background: #f3fff7;
|
|
6
|
+
--a-done-color: #1b7944;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-done,
|
|
10
|
+
div.a-done,
|
|
11
|
+
p.a-done {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-done-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-done,
|
|
17
|
+
a.a-done,
|
|
18
|
+
span.a-done {
|
|
19
|
+
padding: 0 var(--a-done-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-done {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-done-space);
|
|
25
|
+
padding-bottom: var(--a-done-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-done,
|
|
29
|
+
.a-done {
|
|
30
|
+
background: var(--a-done-background);
|
|
31
|
+
border-left: 4px solid var(--a-done-borderColor);
|
|
32
|
+
color: var(--a-done-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-error-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-error-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-error-borderColor: #f28b82;
|
|
5
|
+
--a-error-background: #fff5f5;
|
|
6
|
+
--a-error-color: #c62828;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-error,
|
|
10
|
+
div.a-error,
|
|
11
|
+
p.a-error {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-error-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-error,
|
|
17
|
+
a.a-error,
|
|
18
|
+
span.a-error {
|
|
19
|
+
padding: 0 var(--a-error-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-error {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-error-space);
|
|
25
|
+
padding-bottom: var(--a-error-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-error,
|
|
29
|
+
.a-error {
|
|
30
|
+
background: var(--a-error-background);
|
|
31
|
+
border-left: 4px solid var(--a-error-borderColor);
|
|
32
|
+
color: var(--a-error-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-info-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-info-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-info-borderColor: #4dabf7;
|
|
5
|
+
--a-info-background: #f5faff;
|
|
6
|
+
--a-info-color: #1c5d99;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-info,
|
|
10
|
+
div.a-info,
|
|
11
|
+
p.a-info {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-info-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-info,
|
|
17
|
+
a.a-info,
|
|
18
|
+
span.a-info {
|
|
19
|
+
padding: 0 var(--a-info-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-info {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-info-space);
|
|
25
|
+
padding-bottom: var(--a-info-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-info,
|
|
29
|
+
.a-info {
|
|
30
|
+
background: var(--a-info-background);
|
|
31
|
+
border-left: 4px solid var(--a-info-borderColor);
|
|
32
|
+
color: var(--a-info-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-tip-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-tip-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-tip-borderColor: #d0d7de;
|
|
5
|
+
--a-tip-background: #f9fafb;
|
|
6
|
+
--a-tip-color: #6c757d;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-tip,
|
|
10
|
+
div.a-tip,
|
|
11
|
+
p.a-tip {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-tip-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-tip,
|
|
17
|
+
a.a-tip,
|
|
18
|
+
span.a-tip {
|
|
19
|
+
padding: 0 var(--a-tip-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-tip {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-tip-space);
|
|
25
|
+
padding-bottom: var(--a-tip-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-tip,
|
|
29
|
+
.a-tip {
|
|
30
|
+
background: var(--a-tip-background);
|
|
31
|
+
border-left: 4px solid var(--a-tip-borderColor);
|
|
32
|
+
color: var(--a-tip-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--a-warn-space: var(--a-lineHeightHalf);
|
|
3
|
+
--a-warn-spaceHalf: var(--a-lineHeightQuarter);
|
|
4
|
+
--a-warn-borderColor: #ffc107;
|
|
5
|
+
--a-warn-background: #fffdf0;
|
|
6
|
+
--a-warn-color: #8a6d1f;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a-warn,
|
|
10
|
+
div.a-warn,
|
|
11
|
+
p.a-warn {
|
|
12
|
+
display: block;
|
|
13
|
+
padding: var(--a-warn-space);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
a-brick.a-warn,
|
|
17
|
+
a.a-warn,
|
|
18
|
+
span.a-warn {
|
|
19
|
+
padding: 0 var(--a-warn-spaceHalf);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ul.a-warn {
|
|
23
|
+
list-style-type: disc;
|
|
24
|
+
padding-top: var(--a-warn-space);
|
|
25
|
+
padding-bottom: var(--a-warn-space);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a-warn,
|
|
29
|
+
.a-warn {
|
|
30
|
+
background: var(--a-warn-background);
|
|
31
|
+
border-left: 4px solid var(--a-warn-borderColor);
|
|
32
|
+
color: var(--a-warn-color);
|
|
33
|
+
border-radius: var(--a-borderRadius);
|
|
34
|
+
position: relative;
|
|
35
|
+
|
|
36
|
+
&:empty {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|