Skip to content

Commit e64c605

Browse files
committed
fix(ui): match top menu bar between Eventyay Talk and Tickets components
1 parent a6636c2 commit e64c605

File tree

7 files changed

+177
-59
lines changed

7 files changed

+177
-59
lines changed

app/eventyay/eventyay_common/templates/eventyay_common/base.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,6 @@
168168
<i class="fa fa-solid fa-caret-down"></i>
169169
</a>
170170
</li>
171-
<li>
172-
<a href="{% url 'common:auth.logout' %}" title="{% trans "Log out" %}">
173-
<i class="fa fa-sign-out"></i>
174-
<span class="visible-xs-inline">{% trans "Log out" %}</span>
175-
</a>
176-
</li>
177171
</ul>
178172
<div class="navbar-default sidebar" role="navigation">
179173
<div class="sidebar-nav navbar-nav-collapse navbar-collapse">

app/eventyay/orga/templates/orga/base.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@
148148
{# The menu built by Vue 3 app will be mounted here. The ID must match. #}
149149
<div id='global-nav-menu' class='d-inline-block' />
150150
</li>
151-
<li class="nav-item">
152-
<form action="{% url "eventyay_common:auth.logout" %}" method="post">
153-
{% csrf_token %}
154-
<button class="nav-link active font-text ml-1" type="submit">
155-
<i class="fa fa-sign-out"></i>
156-
<span>{% trans "Log out" %}</span>
157-
</button>
158-
</form>
159-
</li>
160151
</ul>
161152
</nav>
162153
{% staff_need_to_explain request.user as staff_need_to_explain %}

app/eventyay/static/orga/css/_layout.css

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,35 @@ aside.sidebar {
438438
}
439439

440440
/* top navbar, /orga only */
441+
442+
.navbar #global-nav-menu {
443+
display: inline-flex;
444+
align-items: center;
445+
vertical-align: middle;
446+
margin-left: 4px;
447+
margin-right: 10px;
448+
font-weight: normal;
449+
}
450+
451+
.navbar #global-nav-menu button {
452+
padding: 0;
453+
line-height: 1;
454+
}
455+
456+
.navbar #global-nav-menu button > div {
457+
width: 0.70rem;
458+
height: 0.70rem;
459+
margin-left: 6px;
460+
}
461+
462+
.navbar .nav-link .fa-user {
463+
margin-right: 5px;
464+
}
465+
466+
.navbar .navbar-nav .nav-item.d-none.d-md-block {
467+
margin-bottom: 0;
468+
}
469+
441470
nav.navbar,
442471
.navbar {
443472
display: flex;
@@ -455,15 +484,15 @@ nav.navbar,
455484
background-color: var(--color-primary);
456485
border: 1px solid transparent;
457486
border-color: var(--color-border-navbar);
458-
padding: 0.25rem;
459-
z-index: 200;
487+
padding: .375rem;
488+
padding-right: 1.1rem;
460489

461490
.navbar-brand {
462491
padding-top: 0.3125rem;
463-
font-weight: 600;
492+
font-weight: normal;
464493
padding-bottom: 0.3125rem;
465494
margin-right: 1rem;
466-
font-size: 1.25rem;
495+
font-size: 20px;
467496
line-height: inherit;
468497
white-space: nowrap;
469498
font-family: var(--font-family-title);
@@ -473,7 +502,6 @@ nav.navbar,
473502
vertical-align: middle;
474503
height: 30px;
475504
width: auto;
476-
margin: auto;
477505
}
478506
}
479507

@@ -485,6 +513,14 @@ nav.navbar,
485513
margin-top: 0;
486514
list-style: none;
487515
align-items: center;
516+
517+
&.d-block {
518+
margin-right: 0.5rem;
519+
}
520+
521+
.nav-item.d-none.d-md-block {
522+
margin-right: 16px;
523+
}
488524
}
489525

490526
.nav-link {
@@ -501,6 +537,8 @@ nav.navbar,
501537
a,
502538
button {
503539
color: var(--color-offwhite);
540+
font-size: 14px;
541+
font-weight: normal;
504542

505543
&:hover {
506544
text-decoration: none;
@@ -517,30 +555,8 @@ nav.navbar,
517555
font-weight: normal;
518556
}
519557
}
520-
521-
/* Navigation button styling - sharp corners to match Tickets component */
522-
.header-nav.btn-outline-success,
523-
.header-nav .btn-outline-success,
524-
.header-nav.btn-success,
525-
.header-nav .btn-success {
526-
border-radius: 0 !important;
527-
}
528-
529-
/* Navigation button hover, focus, and active states */
530-
.header-nav.btn-outline-success:hover,
531-
.header-nav.btn-outline-success:focus,
532-
.header-nav.btn-outline-success:active,
533-
.header-nav.btn-outline-success.active {
534-
background-color: var(--color-white);
535-
border-color: var(--color-primary);
536-
color: var(--color-primary);
537-
}
538-
539-
/* Active button inset shadow */
540-
.header-nav.btn-outline-success.active,
541-
.header-nav.btn-success,
542-
.header-nav.btn-success.active {
543-
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
558+
.navbar .nav-item form button.nav-link.active {
559+
margin: 0 4px;
544560
}
545561

546562
.speaker-info {
@@ -1683,12 +1699,6 @@ h2 .user-name-display img {
16831699

16841700
ul {
16851701
flex-direction: row;
1686-
1687-
.fa.fa-sign-out {
1688-
padding-left: 12px;
1689-
padding-right: 12px;
1690-
margin-top: 0;
1691-
}
16921702
}
16931703
}
16941704

app/eventyay/static/pretixbase/scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ $navbar-inverse-link-color: white;
4141
$navbar-inverse-link-hover-color: $gray-lighter;
4242
$navbar-inverse-brand-hover-color: $gray-lighter;
4343
$navbar-inverse-color: white;
44+
$navbar-link-color: #f8f9fa;
45+
$navbar-link-hover-color: #fff;
4446

4547
$state-success-bg: white !default;
4648
$state-success-border: $brand-success;

app/eventyay/static/pretixcontrol/scss/_sb-admin-2.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ body {
5050
.navbar-top-links li a {
5151
padding: 15px;
5252
min-height: 50px;
53+
font-size: 14px;
54+
font-weight: normal;
5355
}
5456

5557
.navbar-top-links .dropdown-menu li {

app/eventyay/static/pretixcontrol/scss/_sidebar.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
.navbar-toggle-sidebar {
2-
display: block;
2+
display: flex;
3+
align-items: baseline;
34
float: left;
4-
font-size: 16px;
5+
font-size: 14px;
56
margin-left: 10px;
67
background-color: transparent !important;
78
border: none;
89
padding: 0.5rem;
910
color: #fff;
10-
margin-top: 8px;
11+
margin-top: 12px;
1112
margin-right: 0;
1213
padding-right: 0;
1314
z-index: 1;

app/eventyay/static/pretixcontrol/scss/main.scss

Lines changed: 124 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,86 @@ nav.navbar {
3939
left: 0;
4040
right: 0;
4141
z-index: 1100;
42+
43+
&.navbar-inverse {
44+
.navbar-top-links a,
45+
.btn-link {
46+
color: $navbar-link-color;
47+
font-weight: normal;
48+
49+
i {
50+
color: $navbar-link-color;
51+
}
52+
53+
&:hover,
54+
&:focus {
55+
color: $navbar-link-hover-color;
56+
57+
i {
58+
color: $navbar-link-hover-color;
59+
}
60+
}
61+
}
62+
}
4263
}
4364

4465
#wrapper {
4566
padding-top: var(--navbar-height, 50px);
4667
}
4768

48-
.navbar-brand img {
49-
height: 100%;
50-
width: auto;
51-
display: inline;
69+
.navbar-header {
70+
margin-left: 0;
71+
padding-left: 0;
72+
}
73+
74+
nav.navbar.navbar-inverse #sidebar-toggle,
75+
.navbar-inverse #sidebar-toggle {
76+
color: $navbar-link-color;
77+
font-weight: normal;
78+
79+
i.fa-bars {
80+
margin-top: 3px;
81+
color: $navbar-link-color;
82+
}
83+
84+
&:hover,
85+
&:focus {
86+
color: $navbar-link-hover-color;
87+
88+
i.fa-bars {
89+
color: $navbar-link-hover-color;
90+
}
91+
}
92+
}
93+
94+
nav.navbar.navbar-inverse .navbar-brand,
95+
.navbar-inverse .navbar-brand {
96+
padding-top: 0.3125rem;
97+
font-weight: normal;
98+
padding-bottom: 0.3125rem;
99+
margin-right: 1rem;
100+
margin-top: 0;
101+
font-size: 20px;
102+
line-height: inherit;
103+
white-space: nowrap;
104+
font-family: inherit;
105+
display: flex;
106+
align-items: center;
107+
color: $navbar-link-color;
108+
109+
img {
110+
display: inline-block;
111+
vertical-align: middle;
112+
height: 30px;
113+
width: auto;
114+
margin-top: 2px;
115+
margin-right: 0.5rem;
116+
}
117+
118+
&:hover,
119+
&:focus {
120+
color: $navbar-link-hover-color;
121+
}
52122
}
53123

54124
#side-menu img.fa-img {
@@ -58,6 +128,33 @@ nav.navbar {
58128

59129
nav.navbar .danger, nav.navbar .danger:hover, nav.navbar .danger:active {
60130
background: $brand-danger !important;
131+
font-size: 14px;
132+
font-weight: normal;
133+
}
134+
135+
nav.navbar.navbar-inverse .header-nav,
136+
.navbar-inverse .header-nav {
137+
font-size: 14px;
138+
font-weight: normal;
139+
color: $navbar-link-color;
140+
141+
.fa-caret-down {
142+
margin-left: 14px;
143+
margin-right: 10px;
144+
}
145+
146+
i {
147+
color: $navbar-link-color;
148+
}
149+
150+
&:hover,
151+
&:focus {
152+
color: $navbar-link-hover-color;
153+
154+
i {
155+
color: $navbar-link-hover-color;
156+
}
157+
}
61158
}
62159

63160
.navbar-header .navbar-events {
@@ -69,12 +166,30 @@ nav.navbar .danger, nav.navbar .danger:hover, nav.navbar .danger:active {
69166
margin-bottom: 10px;
70167
}
71168

72-
#button-shop, #button-sudo {
169+
nav.navbar.navbar-inverse #button-shop,
170+
nav.navbar.navbar-inverse #button-sudo,
171+
.navbar-inverse #button-shop,
172+
.navbar-inverse #button-sudo {
73173
padding: 15px;
74174
min-height: 50px;
75175
border: none;
76-
&:hover, &:active {
176+
font-size: 14px;
177+
font-weight: normal;
178+
color: $navbar-link-color;
179+
180+
i {
181+
color: $navbar-link-color;
182+
}
183+
184+
&:hover,
185+
&:focus,
186+
&:active {
77187
text-decoration: none;
188+
color: $navbar-link-hover-color;
189+
190+
i {
191+
color: $navbar-link-hover-color;
192+
}
78193
}
79194
}
80195

@@ -423,11 +538,13 @@ body.loading #wrapper {
423538
background-image: none;
424539
border: 1px solid transparent;
425540
border-radius: 4px;
541+
font-weight: normal;
426542
}
427543
}
428544
.mobile-navbar-view-link {
429545
padding: 6px 10px;
430546
color: white !important;
547+
font-weight: normal;
431548
}
432549

433550
@media (min-width: $screen-md-min) {
@@ -1001,3 +1118,4 @@ h1 .label {
10011118
box-sizing: border-box;
10021119
}
10031120
}
1121+

0 commit comments

Comments
 (0)