q2-tecton-theme 1.14.3 → 1.16.0

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.
@@ -0,0 +1,111 @@
1
+ @mixin grid() {
2
+ @for $index from 1 through 12 {
3
+ &-#{$index} {
4
+ flex: 0 0 #{100% * $index/12};
5
+ max-width: #{100% * $index/12};
6
+ }
7
+
8
+ &-offset-#{$index} {
9
+ // Deprecated: Will be removed when upgrade path easier
10
+ margin-left: #{100% * $index/12};
11
+ }
12
+ }
13
+ }
14
+
15
+ .q2-row {
16
+ display: flex;
17
+ flex-flow: row wrap;
18
+ margin: 0 calc(var(--app-scale-3x) * -1 / 2);
19
+
20
+ &.no-gutters {
21
+ margin: 0;
22
+
23
+ .q2-col {
24
+ padding: 0;
25
+ }
26
+ }
27
+
28
+ &.left-align-columns {
29
+ justify-content: flex-start;
30
+ }
31
+
32
+ &.center-align-columns {
33
+ justify-content: center;
34
+ }
35
+
36
+ &.right-align-columns {
37
+ justify-content: flex-end;
38
+ }
39
+
40
+ &.top-align-columns {
41
+ align-items: flex-start;
42
+ }
43
+
44
+ &.v-center-align-columns {
45
+ align-items: center;
46
+ }
47
+
48
+ &.bottom-align-columns {
49
+ align-items: flex-end;
50
+ }
51
+
52
+ .q2-col {
53
+ flex: 1 1 auto;
54
+ box-sizing: border-box;
55
+ padding: 0 calc(var(--app-scale-3x, 15px) / 2);
56
+
57
+ &,
58
+ &.xs {
59
+ @include grid();
60
+ }
61
+
62
+ &.sm {
63
+ @include breakpoint(sm) {
64
+ @include grid();
65
+ }
66
+ }
67
+
68
+ &.md {
69
+ @include breakpoint(md) {
70
+ @include grid();
71
+ }
72
+ }
73
+
74
+ &.lg {
75
+ @include breakpoint(lg) {
76
+ @include grid();
77
+ }
78
+ }
79
+
80
+ &.xl {
81
+ @include breakpoint(xl) {
82
+ @include grid();
83
+ }
84
+ }
85
+
86
+ &.left-align {
87
+ margin-right: auto;
88
+ }
89
+
90
+ &.center-align {
91
+ margin-left: auto;
92
+ margin-right: auto;
93
+ }
94
+
95
+ &.right-align {
96
+ margin-left: auto;
97
+ }
98
+
99
+ &.top-align {
100
+ align-self: flex-start;
101
+ }
102
+
103
+ &.v-center-align {
104
+ align-self: center;
105
+ }
106
+
107
+ &.bottom-align {
108
+ align-self: flex-end;
109
+ }
110
+ }
111
+ }
@@ -0,0 +1,3 @@
1
+ @import 'normalize';
2
+ @import 'typography';
3
+ @import 'grid';
@@ -0,0 +1,268 @@
1
+ /*
2
+ Tecton Normalize
3
+ Inpsired by base q2-app _bootstrap.scss but conflicting resets are removed.
4
+ */
5
+
6
+ article,
7
+ aside,
8
+ details,
9
+ figcaption,
10
+ figure,
11
+ footer,
12
+ header,
13
+ hgroup,
14
+ main,
15
+ nav,
16
+ section,
17
+ address,
18
+ summary {
19
+ display: block;
20
+ }
21
+
22
+ audio,
23
+ canvas,
24
+ video {
25
+ display: inline-block;
26
+ }
27
+
28
+ audio:not([controls]) {
29
+ display: none;
30
+ height: 0;
31
+ }
32
+
33
+ [hidden] {
34
+ display: none;
35
+ }
36
+
37
+ html {
38
+ font-family: var(--t-font-family, sans-serif);
39
+
40
+ /* stylelint-disable */
41
+ -webkit-text-size-adjust: 100%;
42
+ -ms-text-size-adjust: 100%;
43
+
44
+ /* stylelint-enable */
45
+ }
46
+
47
+ body {
48
+ margin: 0;
49
+ }
50
+
51
+ a:focus {
52
+ outline: thin dotted;
53
+ }
54
+
55
+ a:active,
56
+ a:hover {
57
+ outline: 0;
58
+ }
59
+
60
+ b,
61
+ strong {
62
+ font-weight: 700;
63
+ }
64
+
65
+ dfn {
66
+ font-style: italic;
67
+ }
68
+
69
+ hr {
70
+ height: 0;
71
+ margin-top: var(--app-scale-4x, 20px);
72
+ margin-bottom: var(--app-scale-4x, 20px);
73
+ border: 0;
74
+ border-top: 1px solid var(--t-gray-12, #d9d9d9);
75
+ box-sizing: content-box;
76
+ }
77
+
78
+ div,
79
+ input,
80
+ a {
81
+ box-sizing: border-box;
82
+ }
83
+
84
+ code,
85
+ kbd,
86
+ pre,
87
+ samp {
88
+ font-family: var(--t-font-family-monospaced, 'monospace, serif');
89
+ font-size: 1em;
90
+ }
91
+
92
+ pre {
93
+ white-space: pre-wrap;
94
+ }
95
+
96
+ q {
97
+ quotes: '\201C''\201D''\2018''\2019';
98
+ }
99
+
100
+ sub,
101
+ sup {
102
+ position: relative;
103
+ font-size: 75%;
104
+ line-height: 0;
105
+ vertical-align: baseline;
106
+ }
107
+
108
+ sup {
109
+ top: -0.5em;
110
+ }
111
+
112
+ sub {
113
+ bottom: -0.25em;
114
+ }
115
+
116
+ img {
117
+ border: 0;
118
+ }
119
+
120
+ svg:not(:root) {
121
+ overflow: hidden;
122
+ }
123
+
124
+ figure {
125
+ margin: 0;
126
+ }
127
+
128
+ legend {
129
+ padding: 0;
130
+ border: 0;
131
+ }
132
+
133
+ button,
134
+ input,
135
+ select,
136
+ textarea {
137
+ margin: 0;
138
+ box-sizing: border-box;
139
+ font-family: inherit;
140
+ line-height: inherit;
141
+ font-size: 100%;
142
+ }
143
+
144
+ button,
145
+ input {
146
+ line-height: normal;
147
+ }
148
+
149
+ button,
150
+ select {
151
+ text-transform: none;
152
+ }
153
+
154
+ button,
155
+ html input[type='button'],
156
+ input[type='reset'],
157
+ input[type='submit'] {
158
+ cursor: pointer;
159
+
160
+ /* stylelint-disable */
161
+ -webkit-appearance: button;
162
+
163
+ /* stylelint-enable */
164
+ }
165
+
166
+ button[disabled],
167
+ html input[disabled] {
168
+ cursor: default;
169
+ }
170
+
171
+ input[type='checkbox'],
172
+ input[type='radio'] {
173
+ padding: 0;
174
+ box-sizing: border-box;
175
+ }
176
+
177
+ input[type='search'] {
178
+ box-sizing: content-box;
179
+
180
+ /* stylelint-disable */
181
+ -webkit-appearance: textfield;
182
+
183
+ /* stylelint-enable */
184
+ }
185
+
186
+ input[type='search']::-webkit-search-cancel-button,
187
+ input[type='search']::-webkit-search-decoration {
188
+ /* stylelint-disable */
189
+ -webkit-appearance: none;
190
+
191
+ /* stylelint-enable */
192
+ }
193
+
194
+ button::-moz-focus-inner,
195
+ input::-moz-focus-inner {
196
+ padding: 0;
197
+ border: 0;
198
+ }
199
+
200
+ textarea {
201
+ overflow: auto;
202
+ vertical-align: top;
203
+ }
204
+
205
+ table {
206
+ border-collapse: collapse;
207
+ border-spacing: 0;
208
+ }
209
+
210
+ button,
211
+ input,
212
+ select[multiple],
213
+ textarea {
214
+ background-image: none;
215
+ }
216
+
217
+ .sr-only {
218
+ position: absolute;
219
+ width: 1px;
220
+ height: 1px;
221
+ padding: 0;
222
+ margin: -1px;
223
+ overflow: hidden;
224
+ clip: rect(0 0 0 0);
225
+ border: 0;
226
+ }
227
+
228
+ cite {
229
+ font-style: normal;
230
+ }
231
+
232
+ p {
233
+ margin: 0 0 var(--app-scale-2x, 10px);
234
+ }
235
+
236
+ ul,
237
+ ol {
238
+ margin-top: 0;
239
+ margin-bottom: var(--app-scale-2x, 10px);
240
+ }
241
+
242
+ ul ul,
243
+ ol ul,
244
+ ul ol,
245
+ ol ol {
246
+ margin-bottom: 0;
247
+ }
248
+
249
+ dl {
250
+ margin-bottom: var(--app-scale-4x, 20px);
251
+ }
252
+
253
+ dt,
254
+ dd {
255
+ line-height: 1.428571429;
256
+ }
257
+
258
+ dt {
259
+ font-weight: 700;
260
+ }
261
+
262
+ dd {
263
+ margin-left: 0;
264
+ }
265
+
266
+ address {
267
+ display: block;
268
+ }
@@ -0,0 +1,115 @@
1
+ // set `$type-unit: 'rem';` in _base.scss to convert font-size to rem
2
+ @mixin large-heading-margin() {
3
+ margin-top: var(--app-scale-4x, 20px);
4
+ margin-bottom: var(--app-scale-2x, 10px);
5
+ }
6
+
7
+ @mixin small-heading-margin() {
8
+ margin-top: var(--app-scale-2x, 10px);
9
+ margin-bottom: var(--app-scale-2x, 10px);
10
+ }
11
+
12
+ @mixin h1() {
13
+ font-weight: var(--app-h1-font-weight, 400);
14
+ font-size: var(--app-h1-font-size-small, 25px);
15
+ letter-spacing: var(--app-h1-letter-spacing);
16
+ @include breakpoint(sm) {
17
+ font-size: var(--app-h1-font-size, 29px);
18
+ }
19
+ }
20
+
21
+ @mixin h2() {
22
+ font-size: var(--app-h2-font-size, 20px);
23
+ font-weight: var(--app-h2-font-weight, 600);
24
+ text-transform: var(--app-h2-text-transform, uppercase);
25
+ letter-spacing: var(--app-h2-letter-spacing, 0.5px);
26
+ }
27
+
28
+ @mixin h3() {
29
+ font-size: var(--app-h3-font-size, 17px);
30
+ font-weight: var(--app-h3-font-weight, 600);
31
+ text-transform: var(--app-h3-text-transform);
32
+ letter-spacing: var(--app-h3-letter-spacing);
33
+ }
34
+
35
+ @mixin h4() {
36
+ font-size: var(--app-h4-font-size, 14px);
37
+ font-weight: var(--app-h4-font-weight, 600);
38
+ text-transform: var(--app-h4-text-transform);
39
+ letter-spacing: var(--app-h4-letter-spacing);
40
+ }
41
+
42
+ h1,
43
+ h2,
44
+ h3,
45
+ .heading-1,
46
+ .heading-2,
47
+ .heading-3 {
48
+ @include large-heading-margin;
49
+ }
50
+
51
+ h4,
52
+ h5,
53
+ h6,
54
+ .heading-4,
55
+ .heading-5,
56
+ .heading-6 {
57
+ @include small-heading-margin;
58
+ }
59
+
60
+ h1,
61
+ .heading-1 {
62
+ @include h1();
63
+ }
64
+
65
+ h2,
66
+ .heading-2 {
67
+ @include h2();
68
+ }
69
+
70
+ h3,
71
+ .heading-3 {
72
+ @include h3();
73
+ }
74
+
75
+ h4,
76
+ .heading-4 {
77
+ @include h4();
78
+ }
79
+
80
+ h5,
81
+ h6,
82
+ .heading-5,
83
+ .heading-6 {
84
+ font-size: inherit;
85
+ font-weight: 400;
86
+ }
87
+
88
+ p {
89
+ font-size: var(--app-font-size, 14px);
90
+ font-weight: 400;
91
+ line-height: 1.5;
92
+ }
93
+
94
+ small,
95
+ .small-copy {
96
+ font-size: var(--app-font-size-small, 12px);
97
+ font-weight: 400;
98
+ }
99
+
100
+ .light {
101
+ font-weight: 300;
102
+ }
103
+
104
+ .semibold {
105
+ font-weight: 600;
106
+ }
107
+
108
+ .bold {
109
+ font-weight: 700;
110
+ }
111
+
112
+ .empty-state,
113
+ .no-history {
114
+ font-style: italic;
115
+ }
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- console.warn("This file is only meant for compilation do not use it directly");
package/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- import "./q2-tecton-theme.scss"
2
- console.warn("This file is only meant for compilation do not use it directly")