@angelscmf/front 1.0.21 → 1.0.23

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 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-pass></a-pass>` (.a-pass, a-brick.a-pass, div.a-pass, p.a-pass, span.a-pass, ul.a-pass)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angelscmf/front",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -2,6 +2,14 @@
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/AngelsPass';
11
+ @forward 'AngelsScreenRanges';
5
12
  @forward 'angelsTags/a-block';
13
+ @forward 'angelsTags/a-brick';
6
14
  @forward 'angelsTags/a-infra';
7
15
  @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
+ }
@@ -118,6 +118,7 @@
118
118
  }
119
119
 
120
120
  :root {
121
+ --a-header1-color: var(--a-headers-color);
121
122
  --a-header1-lineHeight: var(--a-headers-lineHeight);
122
123
  --a-header1-margin: 0;
123
124
  --a-header1-size: #{AngelsVariables.$aFontSize + 6};
@@ -125,13 +126,16 @@
125
126
 
126
127
  h1,
127
128
  h1.a-h1 {
128
- color: var(--a-header1-color, var(--a-headers-color));
129
+ color: var(--a-header1-color);
129
130
  font-size: var(--a-header1-size);
131
+ font-weight: normal;
132
+ line-height: var(--a-header1-lineHeight);
130
133
  margin: var(--a-header1-margin);
131
134
  padding: 0;
132
135
  }
133
136
 
134
137
  :root {
138
+ --a-header2-color: var(--a-headers-color);
135
139
  --a-header2-lineHeight: var(--a-headers-lineHeight);
136
140
  --a-header2-margin: 0;
137
141
  --a-header2-size: #{AngelsVariables.$aFontSize + 5};
@@ -139,15 +143,17 @@
139
143
 
140
144
  h2,
141
145
  h2.a-h2 {
142
- color: var(--a-header2-color, var(--a-headers-color));
146
+ color: var(--a-header2-color);
143
147
  font-size: var(--a-header2-size);
144
148
  font-weight: normal;
145
149
  letter-spacing: 2px;
150
+ line-height: var(--a-header2-lineHeight);
146
151
  margin: var(--a-header2-margin);
147
152
  padding: 0;
148
153
  }
149
154
 
150
155
  :root {
156
+ --a-header3-color: var(--a-headers-color);
151
157
  --a-header3-lineHeight: var(--a-headers-lineHeight);
152
158
  --a-header3-margin: 0;
153
159
  --a-header3-size: #{AngelsVariables.$aFontSize + 4};
@@ -155,15 +161,17 @@
155
161
 
156
162
  h3,
157
163
  h3.a-h3 {
158
- color: var(--a-header3-color, var(--a-headers-color));
164
+ color: var(--a-header3-color);
159
165
  font-size: var(--a-header3-size);
160
166
  font-weight: normal;
161
167
  letter-spacing: 2px;
168
+ line-height: var(--a-header3-lineHeight);
162
169
  margin: var(--a-header3-margin);
163
170
  padding: 0;
164
171
  }
165
172
 
166
173
  :root {
174
+ --a-header4-color: var(--a-headers-color);
167
175
  --a-header4-lineHeight: var(--a-headers-lineHeight);
168
176
  --a-header4-margin: 0;
169
177
  --a-header4-size: #{AngelsVariables.$aFontSize + 3};
@@ -171,12 +179,17 @@
171
179
 
172
180
  h4,
173
181
  h4.a-h4 {
182
+ color: var(--a-header4-color);
174
183
  font-size: var(--a-header4-size);
184
+ font-weight: normal;
185
+ letter-spacing: 2px;
186
+ line-height: var(--a-header4-lineHeight);
175
187
  margin: var(--a-header4-margin);
176
188
  padding: 0;
177
189
  }
178
190
 
179
191
  :root {
192
+ --a-header5-color: var(--a-headers-color);
180
193
  --a-header5-lineHeight: var(--a-headers-lineHeight);
181
194
  --a-header5-margin: 0;
182
195
  --a-header5-size: #{AngelsVariables.$aFontSize + 2};
@@ -184,12 +197,17 @@
184
197
 
185
198
  h5,
186
199
  h5.a-h5 {
200
+ color: var(--a-header5-color);
187
201
  font-size: var(--a-header5-size);
202
+ font-weight: normal;
203
+ letter-spacing: 2px;
204
+ line-height: var(--a-header5-lineHeight);
188
205
  margin: var(--a-header5-margin);
189
206
  padding: 0;
190
207
  }
191
208
 
192
209
  :root {
210
+ --a-header6-color: var(--a-headers-color);
193
211
  --a-header6-lineHeight: var(--a-headers-lineHeight);
194
212
  --a-header6-margin: 0;
195
213
  --a-header6-size: #{AngelsVariables.$aFontSize + 1};
@@ -197,7 +215,11 @@
197
215
 
198
216
  h6,
199
217
  h6.a-h6 {
218
+ color: var(--a-header6-color);
200
219
  font-size: var(--a-header6-size);
220
+ font-weight: normal;
221
+ letter-spacing: 2px;
222
+ line-height: var(--a-header6-lineHeight);
201
223
  margin: var(--a-header6-margin);
202
224
  padding: 0;
203
225
  }
@@ -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
+ }
@@ -29,6 +29,8 @@
29
29
  --a-fontFamily: Verdana, Arial, Helvetica, sans-serif;
30
30
  --a-fontSize: 16px;
31
31
  --a-lineHeight: 24px;
32
+ --a-lineHeightHalf: 12px;
33
+ --a-lineHeightQuarter: 6px;
32
34
  --a-note-color: palevioletred;
33
35
  --a-textColor: #4B2E2E;
34
36
  }
@@ -21,7 +21,7 @@ $aFontSize: 16px;
21
21
  */
22
22
  $a-mobile-min-width: 300px;
23
23
  // $a-mobile-max-width: 413.98px;
24
- $a-mobile-max-width: 533.98px;
24
+ $a-mobile-max-width: 539.98px;
25
25
  // $a-tablet-min-width: 414px;
26
26
  $a-tablet-min-width: 540px;
27
27
  $a-tablet-max-width: 767.98px;
@@ -0,0 +1,38 @@
1
+ :root {
2
+ --a-alert-space: var(--a-lineHeightHalf);
3
+ --a-alert-spaceHalf: var(--a-lineHeightQuarter);
4
+ --a-alert-borderColor: #ff6b6b;
5
+ --a-alert-background: #fff5f5;
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
+ span.a-alert {
18
+ padding: 0 var(--a-alert-spaceHalf);
19
+ }
20
+
21
+ ul.a-alert {
22
+ list-style-type: disc;
23
+ padding-top: var(--a-alert-space);
24
+ padding-bottom: var(--a-alert-space);
25
+ }
26
+
27
+ a-alert,
28
+ .a-alert {
29
+ box-shadow: inset 0 0 2px 2px var(--a-alert-borderColor);
30
+ background: var(--a-alert-background);
31
+ color: var(--a-alert-color);
32
+ border-radius: var(--a-borderRadius);
33
+ position: relative;
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
1
+ :root {
2
+ --a-debug-space: var(--a-lineHeightHalf);
3
+ --a-debug-spaceHalf: var(--a-lineHeightQuarter);
4
+ --a-debug-borderColor: #f0ad4e;
5
+ --a-debug-background: #fffaf0;
6
+ --a-debug-color: #5d3c00;
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
+ span.a-debug {
18
+ padding: 0 var(--a-debug-spaceHalf);
19
+ }
20
+
21
+ ul.a-debug {
22
+ list-style-type: disc;
23
+ padding-top: var(--a-debug-space);
24
+ padding-bottom: var(--a-debug-space);
25
+ }
26
+
27
+ a-debug,
28
+ .a-debug {
29
+ box-shadow: inset 0 0 0px 1px var(--a-debug-borderColor);
30
+ background: var(--a-debug-background);
31
+ color: var(--a-debug-color);
32
+ border-radius: var(--a-borderRadius);
33
+ position: relative;
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
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: #fff1f0;
6
+ --a-error-color: #c0392b;
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
+ span.a-error {
18
+ padding: 0 var(--a-error-spaceHalf);
19
+ }
20
+
21
+ ul.a-error {
22
+ list-style-type: disc;
23
+ padding-top: var(--a-error-space);
24
+ padding-bottom: var(--a-error-space);
25
+ }
26
+
27
+ a-error,
28
+ .a-error {
29
+ box-shadow: inset 0 0 0px 1px var(--a-error-borderColor);
30
+ background: var(--a-error-background);
31
+ color: var(--a-error-color);
32
+ border-radius: var(--a-borderRadius);
33
+ position: relative;
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
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: #f0f8ff;
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
+ span.a-info {
18
+ padding: 0 var(--a-info-spaceHalf);
19
+ }
20
+
21
+ ul.a-info {
22
+ list-style-type: disc;
23
+ padding-top: var(--a-info-space);
24
+ padding-bottom: var(--a-info-space);
25
+ }
26
+
27
+ a-info,
28
+ .a-info {
29
+ box-shadow: inset 0 0 0px 1px var(--a-info-borderColor);
30
+ background: var(--a-info-background);
31
+ color: var(--a-info-color);
32
+ border-radius: var(--a-borderRadius);
33
+ position: relative;
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,38 @@
1
+ :root {
2
+ --a-pass-space: var(--a-lineHeightHalf);
3
+ --a-pass-spaceHalf: var(--a-lineHeightQuarter);
4
+ --a-pass-borderColor: #38d9a9;
5
+ --a-pass-background: #f0fffa;
6
+ --a-pass-color: #0b8f6a;
7
+ }
8
+
9
+ a-pass,
10
+ div.a-pass,
11
+ p.a-pass {
12
+ display: block;
13
+ padding: var(--a-pass-space);
14
+ }
15
+
16
+ a-brick.a-pass,
17
+ span.a-pass {
18
+ padding: 0 var(--a-pass-spaceHalf);
19
+ }
20
+
21
+ ul.a-pass {
22
+ list-style-type: disc;
23
+ padding-top: var(--a-pass-space);
24
+ padding-bottom: var(--a-pass-space);
25
+ }
26
+
27
+ a-pass,
28
+ .a-pass {
29
+ box-shadow: inset 0 0 0px 1px var(--a-pass-borderColor);
30
+ background: var(--a-pass-background);
31
+ color: var(--a-pass-color);
32
+ border-radius: var(--a-borderRadius);
33
+ position: relative;
34
+
35
+ &:empty {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,3 @@
1
+ a-brick {
2
+ display: inline-block;
3
+ }