-
Notifications
You must be signed in to change notification settings - Fork 36
/
layout.scss
84 lines (72 loc) · 1.53 KB
/
layout.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
@use "~/assets/styles/utilities.scss";
[data-layout="agama/base"] {
--agama-header-bg: var(--color-primary);
@extend .shadow;
display: grid;
block-size: 100dvh;
background: white;
overflow: hidden;
grid-template-columns: 1fr;
grid-template-rows: 60px 1fr 70px;
grid-template-areas:
"header"
"body"
"footer"
;
> * {
padding: var(--spacer-small);
}
> header {
@extend .bottom-shadow;
grid-area: header;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--agama-header-bg);
color: white;
fill: white;
h1 {
display: grid;
align-items: center;
gap: var(--spacer-small);
grid-template-columns: var(--header-icon-size) 1fr;
grid-template-areas:
"icon text"
;
svg {
grid-area: icon;
block-size: var(--header-icon-size);
inline-size: var(--header-icon-size);
}
span {
grid-area: text;
}
}
}
main {
grid-area: body;
overflow: auto;
padding-block: var(--spacer-normal);
container-type: inline-size;
container-name: agama-page-content;
}
footer {
grid-area: footer;
@extend .top-shadow;
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
align-items: center;
img {
inline-size: 30%;
max-inline-size: 150px;
}
}
}
[data-type="agama/header-actions"] {
display: flex;
gap: var(--spacer-small);
}
[data-variant="flip-X"] {
transform: scaleX(-1);
}