Skip to content

Commit 828172f

Browse files
author
Caio Tarifa
committed
Adding a button menu, JS needed.
1 parent 96fc2d4 commit 828172f

File tree

2 files changed

+39
-17
lines changed

2 files changed

+39
-17
lines changed

app/assets/stylesheets/formadmin/atoms/_menu-button.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
}
4040
}
4141

42-
4342
@at-root .opened-menu & {
4443
i {
4544
background-color: transparent;

app/assets/stylesheets/formadmin/layouts/_header.scss

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.header {
2+
align-items: center;
23
background-color: rgba($primary-color, 0.95);
34
backdrop-filter: blur(3px);
4-
display: table;
5+
display: flex;
56
color: $white;
67
height: 50px;
78
position: fixed;
@@ -12,11 +13,9 @@
1213
z-index: 10;
1314

1415
.site_title {
15-
display: table-cell;
1616
font-weight: bold;
1717
margin: 0 20px 0 0;
1818
padding: 0 30px;
19-
vertical-align: middle;
2019
}
2120

2221
#site_title_image {
@@ -25,9 +24,6 @@
2524
}
2625

2726
.header-item {
28-
display: table-cell;
29-
vertical-align: middle;
30-
3127
&,
3228
ul {
3329
margin: 0;
@@ -145,7 +141,6 @@
145141

146142
#utility_nav {
147143
color: $silver;
148-
display: table-cell;
149144
margin: 0;
150145
padding: 0 20px 0 0;
151146
text-align: right;
@@ -171,31 +166,59 @@
171166

172167
// Medias
173168
@media #{$largest-phone-screen} {
174-
.site_title {
175-
padding: 0 15px;
176-
}
177-
178169
#tabs,
179170
#utility_nav {
180171
display: none;
181172
left: 0;
182173
position: absolute;
174+
right: 0;
183175
top: 50px;
184-
width: 100%;
176+
}
177+
178+
.site_title {
179+
padding: 0 15px;
185180
}
186181

187182
.menu-button {
188183
display: block;
189-
position: relative;
190-
right: -23px;
191-
top: 13px;
184+
margin-left: auto;
185+
margin-right: 15px;
186+
margin-top: -5px;
192187
}
193188

194-
.opened-menu & {
189+
@at-root .opened-menu & {
195190
#tabs,
196191
#utility_nav {
197192
display: block;
198193
}
199194
}
195+
196+
// display: block;
197+
// .site_title {
198+
// padding: 0 15px;
199+
// }
200+
//
201+
// #tabs,
202+
// #utility_nav {
203+
// display: none;
204+
// left: 0;
205+
// position: absolute;
206+
// top: 50px;
207+
// width: 100%;
208+
// }
209+
//
210+
// .menu-button {
211+
// float: left;
212+
// margin-right: 15px;
213+
// position: relative;
214+
// top: 13px;
215+
// }
216+
//
217+
// .opened-menu & {
218+
// #tabs,
219+
// #utility_nav {
220+
// display: block;
221+
// }
222+
// }
200223
}
201224
}

0 commit comments

Comments
 (0)