-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-bar.css
45 lines (40 loc) · 1013 Bytes
/
app-bar.css
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
.spx-app-bar {
position: fixed;
z-index: var(--spx-z-app-bar);
height: var(--spx-app-bar-height);
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
background: var(--spx-color-app-bar);
color: var(--spx-color-on-app-bar);
padding: 4px;
box-shadow: var(--spx-shadow-medium);
&[spx-position='top'] {
top: 0;
}
&[spx-position='bottom'] {
bottom: 0;
}
&:has(.spx-app-bar-section:only-child) {
justify-content: center;
}
}
@media only screen and (min-width: 960px) {
html.spx-app {
> body {
.spx-app-bar {
transition-property: width;
transition-timing-function: var(--spx-sidebar-transition-timing-function);
transition-duration: var(--spx-sidebar-transition-duration);
}
&:has(.spx-sidebar[data-open]:not([data-closing])) {
.spx-app-bar {
width: calc(100% - var(--spx-sidebar-width-full));
}
}
}
}
}