Spaces:
Running
Running
Create main.component.scss
Browse files
flare-ui/src/app/components/main/main.component.scss
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.main-layout {
|
2 |
+
display: flex;
|
3 |
+
flex-direction: column;
|
4 |
+
height: 100vh;
|
5 |
+
background-color: #fafafa;
|
6 |
+
|
7 |
+
.header-toolbar {
|
8 |
+
position: sticky;
|
9 |
+
top: 0;
|
10 |
+
z-index: 100;
|
11 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
12 |
+
|
13 |
+
mat-toolbar-row {
|
14 |
+
padding: 0 16px;
|
15 |
+
}
|
16 |
+
|
17 |
+
.logo {
|
18 |
+
display: flex;
|
19 |
+
align-items: center;
|
20 |
+
gap: 8px;
|
21 |
+
font-size: 20px;
|
22 |
+
font-weight: 500;
|
23 |
+
|
24 |
+
mat-icon {
|
25 |
+
vertical-align: middle;
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
.spacer {
|
30 |
+
flex: 1;
|
31 |
+
}
|
32 |
+
|
33 |
+
.header-actions {
|
34 |
+
display: flex;
|
35 |
+
align-items: center;
|
36 |
+
gap: 16px;
|
37 |
+
|
38 |
+
.username {
|
39 |
+
display: flex;
|
40 |
+
align-items: center;
|
41 |
+
gap: 8px;
|
42 |
+
font-size: 14px;
|
43 |
+
|
44 |
+
mat-icon {
|
45 |
+
font-size: 20px;
|
46 |
+
width: 20px;
|
47 |
+
height: 20px;
|
48 |
+
vertical-align: middle;
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
.activity-button {
|
53 |
+
position: relative;
|
54 |
+
|
55 |
+
mat-icon {
|
56 |
+
vertical-align: middle;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
nav {
|
63 |
+
background-color: white;
|
64 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
65 |
+
position: sticky;
|
66 |
+
top: 64px;
|
67 |
+
z-index: 99;
|
68 |
+
|
69 |
+
.mat-mdc-tab-nav-bar {
|
70 |
+
padding: 0 16px;
|
71 |
+
}
|
72 |
+
|
73 |
+
.mat-mdc-tab-link {
|
74 |
+
height: 48px;
|
75 |
+
opacity: 0.7;
|
76 |
+
font-weight: 500;
|
77 |
+
|
78 |
+
&.mdc-tab--active {
|
79 |
+
opacity: 1;
|
80 |
+
}
|
81 |
+
|
82 |
+
.tab-content {
|
83 |
+
display: flex;
|
84 |
+
align-items: center;
|
85 |
+
gap: 8px;
|
86 |
+
|
87 |
+
mat-icon {
|
88 |
+
font-size: 20px;
|
89 |
+
width: 20px;
|
90 |
+
height: 20px;
|
91 |
+
vertical-align: middle;
|
92 |
+
}
|
93 |
+
|
94 |
+
span {
|
95 |
+
vertical-align: middle;
|
96 |
+
}
|
97 |
+
}
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
.main-content {
|
102 |
+
flex: 1;
|
103 |
+
overflow: auto;
|
104 |
+
background-color: #fafafa;
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
// Material overrides
|
109 |
+
::ng-deep {
|
110 |
+
.mat-toolbar-single-row {
|
111 |
+
height: 64px;
|
112 |
+
}
|
113 |
+
|
114 |
+
.mat-mdc-menu-panel {
|
115 |
+
margin-top: 8px;
|
116 |
+
}
|
117 |
+
|
118 |
+
.mat-mdc-tab-header {
|
119 |
+
border-bottom: none;
|
120 |
+
}
|
121 |
+
|
122 |
+
.mat-mdc-tab-labels {
|
123 |
+
gap: 8px;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
|
127 |
+
// Responsive
|
128 |
+
@media (max-width: 768px) {
|
129 |
+
.main-layout {
|
130 |
+
nav {
|
131 |
+
.mat-mdc-tab-nav-bar {
|
132 |
+
padding: 0 8px;
|
133 |
+
}
|
134 |
+
|
135 |
+
.mat-mdc-tab-link {
|
136 |
+
min-width: auto;
|
137 |
+
padding: 0 12px;
|
138 |
+
|
139 |
+
.tab-content span {
|
140 |
+
display: none;
|
141 |
+
}
|
142 |
+
}
|
143 |
+
}
|
144 |
+
}
|
145 |
+
}
|