/
calcite-shell.scss
executable file
·97 lines (85 loc) · 1.62 KB
/
calcite-shell.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**
* CSS Custom Properties
*
* These properties can be overridden using the component's tag as selector.
*
* @prop --calcite-shell-tip-spacing: the left/right positioning of the tip-manager when slotted within a shell
*/
:host {
@extend %component-host;
@apply w-full
h-full
absolute
flex
flex-col
overflow-hidden
inset-0;
--calcite-shell-tip-spacing: 26vw;
}
.main {
@apply h-full
w-full
flex-auto
flex
flex-row
relative
justify-between
overflow-hidden;
}
.main--reversed {
@apply flex-row-reverse;
}
.content {
@apply flex
flex-col
flex-nowrap
h-full
overflow-auto
w-full;
}
.content ::slotted(calcite-shell-center-row),
.content ::slotted(calcite-panel),
.content ::slotted(calcite-flow) {
@apply self-stretch flex-auto;
max-height: unset;
}
.content--behind {
@apply border-0
absolute
inset-0
z-0;
display: initial;
}
::slotted(calcite-shell-center-row) {
width: unset;
}
::slotted(.header .heading) {
@apply font-normal text--2-wrap;
}
::slotted(calcite-shell-panel),
::slotted(calcite-shell-center-row) {
@apply relative;
z-index: 1;
}
::slotted(calcite-panel),
::slotted(calcite-flow) {
@apply border
border-color-3
border-solid
border-l-0
border-r-0;
}
slot[name="center-row"]::slotted(calcite-shell-center-row:not([detached])) {
@apply border-l border-r border-color-3;
}
::slotted(calcite-tip-manager) {
@apply rounded
shadow-2
absolute
animate-in-up
box-border;
bottom: theme("spacing.2");
left: var(--calcite-shell-tip-spacing);
right: var(--calcite-shell-tip-spacing);
z-index: 2;
}