@leaflink/stash 43.5.1 → 44.0.0-beta.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.
@@ -1,404 +0,0 @@
1
- /**
2
-
3
- Sidebar.
4
-
5
- Note: The SCSS herein is used on _both_ the legacy and the modern CSS bundles.
6
- This can be a bit confusing if you are working on a page using the
7
- legacy bundle (ie base_new.html) as the watcher will not be triggered
8
- when this file is updated.
9
-
10
- ◡◠ ✥ ◠◡
11
-
12
- Table of Contents:
13
-
14
- 1. Sidebar
15
- 2. Active styles
16
- 3. Persistent styles
17
-
18
- */
19
-
20
- /* ---------------------------------------
21
- 1. Sidebar
22
- ---------------------------------------- */
23
- // [TODO] BEMify this, ie sidebar vs subnav vs nav
24
- // [TODO] update / lint this file + remove following line
25
- /* stylelint-disable no-descending-specificity */
26
-
27
- $sidenav-colors: (
28
- background: var(--color-purple),
29
- link: var(--color-ice),
30
- active: var(--color-seafoam),
31
- highlight: #140e35,
32
- toggle: #263256
33
- );
34
- $sidebar-light-border: rgba(255, 255, 255, 0.1);
35
-
36
- $item-padding: 18px;
37
- // Hardcode for consistency across all nav items
38
- // TODO: Remove with sidenav rebuild in Vue
39
- $line-height: 1.5;
40
-
41
- .sidebar {
42
- background: map-get($sidenav-colors, 'background');
43
- bottom: 0;
44
- -webkit-overflow-scrolling: touch;
45
- position: fixed;
46
- top: 0;
47
- transform: translate3d(-100%, 0, 0);
48
- transition: transform $primary-transition;
49
- width: $sidebar-width;
50
- z-index: z-index('page');
51
-
52
- &-wrapper {
53
- border-top: border('thin', $sidebar-light-border);
54
- height: calc(100% - #{$top-nav-height});
55
- margin-top: $top-nav-height;
56
- overflow-y: auto;
57
- }
58
-
59
- // TODO move to overlay class
60
- &-overlay {
61
- @include cover();
62
-
63
- background-color: rgba(0, 0, 0, 0.38);
64
- opacity: 0;
65
- transition: opacity $secondary-transition;
66
- visibility: hidden;
67
- z-index: z-index('behind');
68
- }
69
-
70
- .environment-drawer {
71
- background-color: #150e35;
72
- bottom: 0;
73
- position: fixed;
74
- width: 100%;
75
-
76
- .header {
77
- background-color: var(--color-orange);
78
- border-radius: 3px 3px 0 0;
79
- color: map-get($sidenav-colors, 'highlight');
80
- cursor: pointer;
81
- font-size: 14px;
82
- height: 25px;
83
- padding: 3px 3px 3px 20px;
84
- text-transform: uppercase;
85
-
86
- .pull-left {
87
- float: left !important;
88
- }
89
-
90
- .pull-right {
91
- float: right !important;
92
- }
93
- }
94
-
95
- .content {
96
- background-color: map-get($sidenav-colors, 'highlight');
97
- display: none;
98
- min-height: 100px;
99
- padding: 10px 0 0 10px;
100
-
101
- &.open {
102
- display: block !important;
103
- }
104
-
105
- p {
106
- color: var(--color-white);
107
- line-height: 16px;
108
- }
109
- }
110
- }
111
- }
112
-
113
- .company-picker {
114
- padding: space(3) space(2);
115
-
116
- .dropdown__button + .dropdown__content {
117
- background: map-get($sidenav-colors, 'highlight');
118
- border: border(thin, $sidebar-light-border);
119
- border-radius: $border-radius;
120
- border-top: none;
121
- display: none;
122
- margin: 0;
123
- max-width: 360px; // TODO magic var
124
- min-width: 200px; // TODO magic var
125
- position: absolute;
126
- transform: translateX(calc(var(--offset) * 1px));
127
- width: 100%;
128
- z-index: z-index(control);
129
-
130
- a {
131
- border-radius: $border-radius;
132
- color: map-get($sidenav-colors, 'link');
133
- font-size: typo('small', 'size');
134
- padding: 8px 6px 0 6px;
135
-
136
- &:hover {
137
- background-color: $sidebar-light-border;
138
- color: var(--color-ice);
139
- }
140
- }
141
-
142
- .is-active > a {
143
- color: var(--color-seafoam);
144
- }
145
-
146
- &.is-active {
147
- border-top-left-radius: 0;
148
- border-top-right-radius: 0;
149
- display: block;
150
- }
151
-
152
- // no top arrow-anchor on this instance
153
- &::after {
154
- display: none;
155
- }
156
- }
157
-
158
- .dropdown {
159
- width: 100%;
160
-
161
- &__toggle {
162
- button {
163
- background-color: map-get($sidenav-colors, 'highlight');
164
- border: border('thin', $sidebar-light-border);
165
- color: var(--color-ice);
166
- font-size: typo('small', 'size');
167
- font-weight: font-weight('medium');
168
- overflow: hidden;
169
- padding-left: 12px;
170
- padding-right: 30px;
171
- text-align: left;
172
- text-overflow: ellipsis;
173
- white-space: normal;
174
- width: 100%;
175
-
176
- &:focus {
177
- box-shadow: none;
178
- }
179
- }
180
-
181
- .icon {
182
- margin-top: -(calc(icon('default', 'height') / 2));
183
- position: absolute;
184
- right: 9px;
185
- top: 50%;
186
- }
187
-
188
- &.is-active > button {
189
- border-bottom-left-radius: 0;
190
- border-bottom-right-radius: 0;
191
- }
192
-
193
- &:not(.dropdown__button) button {
194
- cursor: auto;
195
- }
196
- }
197
- }
198
-
199
- .description,
200
- .name {
201
- line-height: typo('body', 'line-height');
202
- }
203
-
204
- .description {
205
- opacity: 0.5;
206
- }
207
-
208
- .name {
209
- opacity: 1;
210
- }
211
-
212
- .badge {
213
- text-transform: uppercase;
214
- width: 36px;
215
- }
216
-
217
- &__nav {
218
- padding-left: 0;
219
- }
220
- }
221
-
222
- .sidenav {
223
- opacity: 0;
224
- overflow: auto;
225
- padding: 0 0 #{calc($top-nav-height / 2)};
226
- transition: opacity $primary-transition;
227
- transition-delay: 0.2s;
228
-
229
- > ul { padding: 0; }
230
-
231
- .icon {
232
- margin-right: 6px;
233
- vertical-align: bottom;
234
- }
235
-
236
- .icon--chevron-left {
237
- position: absolute;
238
- right: 12px;
239
- top: calc(50% - 7px);
240
- transition: transform $secondary-transition;
241
- }
242
-
243
- a,
244
- button {
245
- background-color: transparent;
246
- border: none;
247
- cursor: pointer;
248
- display: block;
249
- font-weight: font-weight('medium');
250
- line-height: $line-height;
251
- outline: none;
252
- padding: 8px $item-padding;
253
- position: relative;
254
- text-align: left;
255
- width: 100%;
256
-
257
- &,
258
- &:hover,
259
- &:focus {
260
- color: map-get($sidenav-colors, 'link');
261
- text-decoration: none;
262
- }
263
-
264
- &.is-open {
265
- color: inherit;
266
- }
267
- }
268
-
269
- a:hover,
270
- a:focus,
271
- button:hover,
272
- button:focus,
273
- .is-active > a {
274
- background-color: map-get($sidenav-colors, 'highlight');
275
- }
276
-
277
- .is-open > button {
278
- background-color: map-get($sidenav-colors, 'toggle');
279
-
280
- > .icon--chevron-left {
281
- transform: rotate(-90deg);
282
- }
283
- }
284
-
285
- .is-active > a {
286
- color: map-get($sidenav-colors, 'active');
287
- }
288
-
289
- .is-open {
290
- .subnav {
291
- a,
292
- button {
293
- padding-left: 40px;
294
- }
295
- }
296
- }
297
- }
298
-
299
- .nav__item {
300
- display: block;
301
- list-style: none;
302
- position: relative;
303
-
304
- &--toggle {
305
- &::before {
306
- background-color: map-get($sidenav-colors, 'seafoam');
307
- content: '';
308
- display: block;
309
- height: 100%;
310
- left: 0;
311
- position: absolute;
312
- top: 0;
313
- transition: width $secondary-transition;
314
- width: 0;
315
- z-index: 100;
316
- }
317
-
318
- &.is-open::before {
319
- width: 6px;
320
- }
321
- }
322
-
323
- .badge,
324
- .icon--warning {
325
- float: right;
326
- }
327
-
328
- &.is-active {
329
- &::before {
330
- background-color: var(--color-seafoam);
331
- content: '';
332
- display: block;
333
- height: 100%;
334
- left: 0;
335
- position: absolute;
336
- top: 0;
337
- width: space(1);
338
- z-index: z-index('content');
339
- }
340
- }
341
- }
342
-
343
- .subnav {
344
- list-style: none;
345
- margin-bottom: 0;
346
- padding-left: 0;
347
-
348
- &.collapse {
349
- display: none;
350
- }
351
-
352
- .is-open {
353
- border-left: none;
354
-
355
- .subnav {
356
- a,
357
- button {
358
- padding-left: 55px;
359
- }
360
- }
361
- }
362
- }
363
-
364
-
365
- /* ---------------------------------------
366
- 2. Active
367
- ---------------------------------------- */
368
-
369
- .sidebar-is-showing {
370
- overflow: hidden;
371
- overscroll-behavior-y: contain;
372
- touch-action: none; /* prevent scrolling */
373
-
374
- .sidenav {
375
- opacity: 1;
376
- }
377
-
378
- .sidebar {
379
- @include elevation('high');
380
-
381
- transform: translate3d(0, 0, 0);
382
-
383
- &-overlay {
384
- opacity: 1;
385
- visibility: visible;
386
- z-index: z-index('page');
387
- }
388
- }
389
- }
390
-
391
-
392
- /* ---------------------------------------
393
- 3. Persistent
394
- ---------------------------------------- */
395
-
396
- @include breakpoint(xl) {
397
- .sidebar {
398
- transform: translate3d(0, 0, 0);
399
- }
400
-
401
- .sidenav {
402
- opacity: 1;
403
- }
404
- }
@@ -1,219 +0,0 @@
1
- .logo {
2
- display: block;
3
- height: $logo-height;
4
-
5
- // TODO: Temporary, throwaway with theming refactor
6
- .env-ocs & {
7
- height: 46px;
8
- }
9
-
10
- &__leaflink {
11
- @include breakpoint(sm-only) {
12
- opacity: 0;
13
- transition: opacity 0.1s;
14
- transition-delay: 0s;
15
- }
16
-
17
- .sidebar-is-showing & {
18
- opacity: 1;
19
- transition-delay: 0.2s;
20
- }
21
- }
22
- }
23
-
24
- .logo-burger {
25
- align-items: center;
26
- display: flex;
27
- height: $top-nav-height;
28
- padding-left: 14px;
29
- position: fixed;
30
- z-index: z-index('screen');
31
- }
32
-
33
- .button--burger {
34
- background: none;
35
- cursor: pointer;
36
- margin-left: -7px;
37
- padding: 0;
38
- transition: color $secondary-transition;
39
-
40
- &:focus {
41
- box-shadow: none;
42
- }
43
-
44
- .sidebar-is-showing & {
45
- color: var(--color-white);
46
- }
47
-
48
- // TODO: Temporary, throwaway with theming refactor
49
- .env-ocs.sidebar-is-showing & {
50
- color: var(--color-ice-700);
51
- }
52
-
53
- @include breakpoint('xl') {
54
- display: none;
55
- }
56
- }
57
-
58
- .top-header {
59
- @include elevation('high');
60
-
61
- align-items: center;
62
- background-color: var(--color-white);
63
- border: none;
64
- display: flex;
65
- height: $top-nav-height;
66
- justify-content: flex-end;
67
- padding: 7px 14px;
68
- position: fixed;
69
- top: 0;
70
- width: 100%;
71
- z-index: z-index(page);
72
-
73
- &__message {
74
- display: none;
75
- margin-left: $sidebar-width;
76
-
77
- @include breakpoint('xl') {
78
- display: block;
79
- }
80
- }
81
-
82
- &__item {
83
- display: flex;
84
-
85
- svg {
86
- height: 20px;
87
- vertical-align: bottom;
88
- width: 20px;
89
- }
90
- }
91
-
92
- &__navbar {
93
- align-items: center;
94
- display: flex;
95
- margin-left: auto;
96
- }
97
-
98
- &__nav {
99
- list-style: none;
100
- margin: 0;
101
- padding: 0;
102
-
103
- &-button {
104
- background-color: transparent;
105
- border: none;
106
- color: var(--color-ice-700);
107
- display: block;
108
- margin: 0 space(2);
109
-
110
- &:focus,
111
- &:hover {
112
- background-color: transparent;
113
- text-decoration: none;
114
- }
115
- }
116
-
117
- img {
118
- vertical-align: middle;
119
- }
120
- }
121
-
122
- .icon {
123
- vertical-align: middle;
124
-
125
- &--hamburger-menu {
126
- fill: var(--color-white);
127
- }
128
- }
129
-
130
- .dropdown__content::after {
131
- background: var(--color-ice-200);
132
- right: space(2);
133
- }
134
- }
135
-
136
- .account {
137
- margin-left: 0.875rem;
138
- margin-right: 0.875rem;
139
-
140
- &__avatar {
141
- border: border(thin, var(--color-white));
142
- border-radius: 50%;
143
- cursor: pointer;
144
- max-height: 36px;
145
- max-width: 36px;
146
-
147
- img {
148
- border: border(medium, var(--color-white));
149
- border-radius: 50%;
150
- max-width: 100%;
151
- vertical-align: middle;
152
- }
153
-
154
- &:hover {
155
- border: border('thin', var(--color-blue));
156
- }
157
- }
158
-
159
- &__nav {
160
- border-top: border('thin');
161
- padding: 0.4375rem;
162
-
163
- a:hover {
164
- background: var(--color-blue);
165
- color: var(--color-white);
166
- }
167
- }
168
-
169
- &__user-info {
170
- background-color: var(--color-ice-200);
171
- border-top-left-radius: $border-radius;
172
- border-top-right-radius: $border-radius;
173
- padding: 0.875rem;
174
-
175
- div:first-child {
176
- color: var(--color-ice-900);
177
- font-size: typo('h4', 'size');
178
- font-weight: typo('h4', 'weight');
179
- }
180
- }
181
-
182
- .dropdown__content {
183
- margin-right: 0;
184
- min-width: 185px;
185
- top: 48px;
186
-
187
- &::after {
188
- background: var(--color-ice-200);
189
- right: space(2);
190
- }
191
- }
192
- }
193
-
194
- .language-picker {
195
- .dropdown__content {
196
- margin-right: space(2);
197
- top: 43px;
198
-
199
- &::after {
200
- background: var(--color-white);
201
- }
202
- }
203
-
204
- &__toggle {
205
- outline: 0;
206
-
207
- // TODO: Clean up icon specificity in top-header
208
- & &-icon {
209
- height: icon('default', 'height');
210
- width: icon('default', 'width');
211
- }
212
-
213
- &:hover &-icon,
214
- &:focus &-icon,
215
- &.is-active &-icon {
216
- color: var(--color-blue);
217
- }
218
- }
219
- }
@@ -1,15 +0,0 @@
1
- /**
2
-
3
- Elements: styles for bare HTML elements (like h1, a, etc.) which,
4
- normally, come with default browser styles. Things in
5
- here will be inherited throughout.
6
-
7
- */
8
-
9
- @import 'buttons';
10
- @import 'forms';
11
- @import 'lists';
12
- @import 'links';
13
- @import 'misc';
14
- @import 'tables';
15
- @import 'tooltips';