@codetectonics/mantle 2.0.3 → 2.0.5
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/fesm2022/codetectonics-mantle.mjs +410 -410
- package/fesm2022/codetectonics-mantle.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/styles/_index.scss +32 -0
- package/src/lib/styles/base/_button-theme.scss +46 -0
- package/src/lib/styles/base/_chip-theme.scss +51 -0
- package/src/lib/styles/base/_dashboard-page-theme.scss +70 -0
- package/src/lib/styles/base/_dialog-theme.scss +36 -0
- package/src/lib/styles/base/_dynamic-layout-theme.scss +138 -0
- package/src/lib/styles/base/_file-drop-theme.scss +47 -0
- package/src/lib/styles/base/_form-theme.scss +89 -0
- package/src/lib/styles/base/_list-page-theme.scss +32 -0
- package/src/lib/styles/base/_markdown-theme.scss +18 -0
- package/src/lib/styles/base/_navbar-theme.scss +103 -0
- package/src/lib/styles/base/_page-theme.scss +41 -0
- package/src/lib/styles/base/_rich-text-editor-theme.scss +77 -0
- package/src/lib/styles/base/_section-title-theme.scss +31 -0
- package/src/lib/styles/base/_snackbar-theme.scss +66 -0
- package/src/lib/styles/base/_tabbed-page-theme.scss +48 -0
- package/src/lib/styles/base/_table-theme.scss +62 -0
- package/src/lib/styles/base/_text-theme.scss +117 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {}
|
|
5
|
+
|
|
6
|
+
@mixin typography($theme) {
|
|
7
|
+
.quill-editor {
|
|
8
|
+
.ql-container {
|
|
9
|
+
font: mat.get-theme-typography($theme, body-1, font);
|
|
10
|
+
letter-spacing: mat.get-theme-typography($theme, body-1, letter-spacing);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin theme($theme) {
|
|
16
|
+
@include color($theme);
|
|
17
|
+
@include typography($theme);
|
|
18
|
+
|
|
19
|
+
.rich-text-editor-wrapper, .rich-text-display-wrapper {
|
|
20
|
+
display: flex !important;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
place-content: stretch flex-start;
|
|
24
|
+
align-items: stretch;
|
|
25
|
+
height: 100%;
|
|
26
|
+
width: 100%;
|
|
27
|
+
|
|
28
|
+
label {
|
|
29
|
+
flex: 0 0 auto;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.quill-editor {
|
|
34
|
+
flex: 1 0 auto;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
height: 1px;
|
|
37
|
+
|
|
38
|
+
display: flex !important;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
place-content: stretch flex-start;
|
|
41
|
+
align-items: stretch;
|
|
42
|
+
width: 100%;
|
|
43
|
+
|
|
44
|
+
.ql-toolbar {
|
|
45
|
+
flex: 0 0 auto;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ql-container {
|
|
50
|
+
flex: 1 0 auto;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
height: 1px;
|
|
53
|
+
border: 1px solid #ccc !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ql-table-better {
|
|
57
|
+
th, td {
|
|
58
|
+
vertical-align: top;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ql-mention-list-container {
|
|
65
|
+
z-index: 1000 !important;
|
|
66
|
+
position: absolute !important;
|
|
67
|
+
overflow: visible !important;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.rich-text-display-wrapper {
|
|
72
|
+
.ql-toolbar {
|
|
73
|
+
display: none !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
.section-title {
|
|
6
|
+
background-color: mat.get-theme-color($theme, primary);
|
|
7
|
+
color: white;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin typography($theme) {
|
|
12
|
+
.section-title {
|
|
13
|
+
line-height: 1em;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin theme($theme) {
|
|
19
|
+
@include color($theme);
|
|
20
|
+
@include typography($theme);
|
|
21
|
+
|
|
22
|
+
.section-title {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
height: 48px;
|
|
25
|
+
padding-top: calc((48px - 1em) / 2);
|
|
26
|
+
padding-bottom: calc((48px - 1em) / 2);
|
|
27
|
+
padding-left: 20px;
|
|
28
|
+
padding-right: 20px;
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
.info-announcement {
|
|
6
|
+
.mdc-snackbar__surface {
|
|
7
|
+
background-color: mat.get-theme-color($theme, primary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.mat-mdc-snack-bar-label {
|
|
11
|
+
color: white !important;
|
|
12
|
+
font-weight: 500 !important;
|
|
13
|
+
|
|
14
|
+
.mat-icon {
|
|
15
|
+
color: white !important;
|
|
16
|
+
font-weight: 400 !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.success-announcement {
|
|
22
|
+
.mdc-snackbar__surface {
|
|
23
|
+
background-color: #96C137 !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mat-mdc-snack-bar-label {
|
|
27
|
+
color: white !important;
|
|
28
|
+
font-weight: 500 !important;
|
|
29
|
+
|
|
30
|
+
.mat-icon {
|
|
31
|
+
color: white !important;
|
|
32
|
+
font-weight: 400 !important;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.warn-announcement {
|
|
38
|
+
.mdc-snackbar__surface {
|
|
39
|
+
background-color: mat.get-theme-color($theme, warn, 900);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mat-mdc-snack-bar-label {
|
|
43
|
+
color: white !important;
|
|
44
|
+
font-weight: 500 !important;
|
|
45
|
+
|
|
46
|
+
.mat-icon {
|
|
47
|
+
color: white !important;
|
|
48
|
+
font-weight: 400 !important;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin typography($theme) {
|
|
55
|
+
.info-announcement,
|
|
56
|
+
.success-announcement,
|
|
57
|
+
.warn-announcement {
|
|
58
|
+
font: mat.get-theme-typography($theme, body-2, font);
|
|
59
|
+
letter-spacing: mat.get-theme-typography($theme, body-2, letter-spacing);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin theme($theme) {
|
|
64
|
+
@include color($theme);
|
|
65
|
+
@include typography($theme);
|
|
66
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
.tabbed-page {
|
|
6
|
+
background-color: mat.get-theme-color($theme, primary, 50);
|
|
7
|
+
|
|
8
|
+
.main-content {
|
|
9
|
+
background-color: white;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin typography($theme) {
|
|
15
|
+
.tabbed-page {
|
|
16
|
+
.mat-mdc-tab-label {
|
|
17
|
+
font: mat.get-theme-typography($theme, button, font);
|
|
18
|
+
letter-spacing: mat.get-theme-typography($theme, button, letter-spacing);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin theme($theme) {
|
|
24
|
+
@include color($theme);
|
|
25
|
+
@include typography($theme);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tabbed-page {
|
|
29
|
+
padding: 0;
|
|
30
|
+
|
|
31
|
+
.tab-bar {
|
|
32
|
+
padding: 12px 32px 0 32px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tab-content {
|
|
36
|
+
padding: 12px 32px;
|
|
37
|
+
|
|
38
|
+
.main-content {
|
|
39
|
+
padding: 24px 32px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (max-width: 991px) {
|
|
43
|
+
.main-content {
|
|
44
|
+
padding: 24px 16px 0 16px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
table {
|
|
6
|
+
.mat-mdc-row.clickable-row:hover {
|
|
7
|
+
.mat-mdc-cell {
|
|
8
|
+
background-color: mat.get-theme-color($theme, accent, 50);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.mat-mdc-row.striped-row:nth-child(even) {
|
|
13
|
+
background-color: mat.get-theme-color($theme, primary, 50);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin typography($theme) {
|
|
19
|
+
table {
|
|
20
|
+
th {
|
|
21
|
+
font: mat.get-theme-typography($theme, subtitle-2, font);
|
|
22
|
+
letter-spacing: mat.get-theme-typography($theme, subtitle-2, letter-spacing);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
td {
|
|
26
|
+
font: mat.get-theme-typography($theme, body-2, font);
|
|
27
|
+
letter-spacing: mat.get-theme-typography($theme, body-2, letter-spacing);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin theme($theme) {
|
|
33
|
+
@include color($theme);
|
|
34
|
+
@include typography($theme);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
table {
|
|
38
|
+
.mat-mdc-row.clickable-row {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
th, td {
|
|
43
|
+
padding-left: 8px !important;
|
|
44
|
+
padding-right: 8px !important;
|
|
45
|
+
|
|
46
|
+
&:first-of-type {
|
|
47
|
+
padding-left: 24px !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:last-of-type {
|
|
51
|
+
padding-right: 24px !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.horizontal-scroll-table {
|
|
57
|
+
overflow-x: auto;
|
|
58
|
+
|
|
59
|
+
th, td {
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
@mixin color($theme) {
|
|
5
|
+
.primary-text {
|
|
6
|
+
color: mat.get-theme-color($theme, primary) !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.accent-text {
|
|
10
|
+
color: mat.get-theme-color($theme, accent) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.warn-text {
|
|
14
|
+
color: mat.get-theme-color($theme, warn) !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin typography($theme) {
|
|
19
|
+
body, .body-1 {
|
|
20
|
+
font: mat.get-theme-typography($theme, body-1, font);
|
|
21
|
+
letter-spacing: mat.get-theme-typography($theme, body-1, letter-spacing);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.body-2 {
|
|
25
|
+
font: mat.get-theme-typography($theme, body-2, font);
|
|
26
|
+
letter-spacing: mat.get-theme-typography($theme, body-2, letter-spacing);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h1, .headline-1, .headline {
|
|
30
|
+
font: mat.get-theme-typography($theme, headline-1, font);
|
|
31
|
+
letter-spacing: mat.get-theme-typography($theme, headline-1, letter-spacing);
|
|
32
|
+
|
|
33
|
+
font-size: 24px;
|
|
34
|
+
line-height: 32px;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
margin: 0 0 16px 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
h2, .headline-2, .title {
|
|
40
|
+
font: mat.get-theme-typography($theme, headline-2, font);
|
|
41
|
+
letter-spacing: mat.get-theme-typography($theme, headline-2, letter-spacing);
|
|
42
|
+
|
|
43
|
+
font-size: 20px;
|
|
44
|
+
line-height: 32px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
margin: 0 0 16px 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
h3, .headline-3 {
|
|
50
|
+
font: mat.get-theme-typography($theme, headline-3, font);
|
|
51
|
+
letter-spacing: mat.get-theme-typography($theme, headline-3, letter-spacing);
|
|
52
|
+
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 28px;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
margin: 0 0 16px 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
h4, .headline-4 {
|
|
60
|
+
font: mat.get-theme-typography($theme, headline-4, font);
|
|
61
|
+
letter-spacing: mat.get-theme-typography($theme, headline-4, letter-spacing);
|
|
62
|
+
|
|
63
|
+
font-size: 15px;
|
|
64
|
+
line-height: 24px;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
margin: 0 0 16px 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
h5, .headline-5 {
|
|
70
|
+
font: mat.get-theme-typography($theme, headline-5, font);
|
|
71
|
+
letter-spacing: mat.get-theme-typography($theme, headline-5, letter-spacing);
|
|
72
|
+
|
|
73
|
+
font-size: calc(14px * .83);
|
|
74
|
+
line-height: 20px;
|
|
75
|
+
font-weight: 400;
|
|
76
|
+
margin: 0 0 12px 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
h6, .headline-6 {
|
|
80
|
+
font: mat.get-theme-typography($theme, headline-6, font);
|
|
81
|
+
letter-spacing: mat.get-theme-typography($theme, headline-6, letter-spacing);
|
|
82
|
+
|
|
83
|
+
font-size: calc(14px * .67);
|
|
84
|
+
line-height: 20px;
|
|
85
|
+
font-weight: 400;
|
|
86
|
+
margin: 0 0 12px 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.subtitle-1, .subtitle {
|
|
90
|
+
font: mat.get-theme-typography($theme, subtitle-1, font);
|
|
91
|
+
letter-spacing: mat.get-theme-typography($theme, subtitle-1, letter-spacing);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.subtitle-2 {
|
|
95
|
+
font: mat.get-theme-typography($theme, subtitle-2, font);
|
|
96
|
+
letter-spacing: mat.get-theme-typography($theme, subtitle-2, letter-spacing);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.caption, label {
|
|
100
|
+
font: mat.get-theme-typography($theme, caption, font);
|
|
101
|
+
letter-spacing: mat.get-theme-typography($theme, caption, letter-spacing);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
button, .button {
|
|
105
|
+
font: mat.get-theme-typography($theme, button, font);
|
|
106
|
+
letter-spacing: mat.get-theme-typography($theme, button, letter-spacing);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
b, strong {
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@mixin theme($theme) {
|
|
115
|
+
@include color($theme);
|
|
116
|
+
@include typography($theme);
|
|
117
|
+
}
|