Skip to content

Commit c6d8ca8

Browse files
authored
Merge pull request #5 from boostorg/v3
header bug
2 parents 8a8b65f + f499077 commit c6d8ca8

2 files changed

Lines changed: 35 additions & 13 deletions

File tree

static/css/v3/header.css

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
========================================================================== */
44

55
.header {
6-
max-width: 1440px;
6+
--header-width: 1440px;
77
--header-radius: var(--border-radius-l, 8px);
88

99
--header-height: 48px;
@@ -15,16 +15,27 @@
1515
font-size: var(--Sizes-Small, 14px);
1616
font-style: normal;
1717
font-weight: 400;
18+
19+
width: 100%;
20+
max-width: var(--header-width);
21+
margin: 0 auto;
1822
color: var(--color-text-primary, var(--text-color));
1923
}
2024

25+
@media (min-width: 1440px) {
26+
.header {
27+
min-width: var(--header-width);
28+
}
29+
}
30+
2131
.header__inner {
2232
display: flex;
2333
align-items: center;
2434
justify-content: space-between;
2535
gap: var(--space-s, 4px);
2636
height: var(--header-height);
27-
max-width: 80rem;
37+
width: 100%;
38+
max-width: 100%;
2839
margin: 0 auto;
2940
}
3041

@@ -73,8 +84,8 @@
7384
top: 50%;
7485
right: var(--space-s, 4px);
7586
transform: translateY(-50%);
76-
width: 6px;
77-
height: 6px;
87+
width: 4px;
88+
height: 4px;
7889
border-radius: 50%;
7990
background: var(--color-surface-brand-accent-default, var(--primary-color));
8091
}
@@ -124,17 +135,18 @@
124135
}
125136

126137
.header__search-kbd {
127-
display: inline-flex;
138+
display: flex;
128139
align-items: center;
129140
gap: 2px;
130141
height: 24px;
131-
padding: var(--space-default, 8px);
142+
padding: 8px;
143+
color: var(--Text-Primary, #050816);
132144
font-family: var(--Typefaces-Sans, "Mona Sans VF");
133145
font-size: var(--Sizes-XS, 12px);
134146
font-style: normal;
135147
font-weight: 400;
136-
line-height: var(--line-height-default, 1.2);
137-
color: var(--color-text-tertiary, var(--color-text-primary));
148+
line-height: 120%;
149+
letter-spacing: -0.12px;
138150
border-radius: var(--border-radius-m, 6px);
139151
background: var(--color-surface-mid, #F7F7F8);
140152
}
@@ -165,11 +177,13 @@
165177
}
166178

167179
.header__latest-trigger {
168-
display: inline-flex;
180+
display: flex;
181+
justify-content: space-between;
169182
align-items: center;
170183
gap: var(--space-s, 4px);
171-
min-height: var(--header-height);
172-
padding: var(--space-s, 4px) var(--space-default, 8px);
184+
width: 93px;
185+
height: var(--header-height);
186+
padding: 16px;
173187
color: var(--color-text-primary, var(--text-color));
174188
text-decoration: none;
175189
font-size: var(--Sizes-Small, 14px);
@@ -179,6 +193,12 @@
179193
background: var(--header-control-bg);
180194
}
181195

196+
.header__latest-trigger .header__icon--chevron {
197+
width: 16px;
198+
height: 16px;
199+
flex-shrink: 0;
200+
}
201+
182202
.header__latest-trigger:hover {
183203
border-radius: var(--border-radius-m, 6px);
184204
background: var(--Navigation-Hover, var(--color-navigation-hover, #D5D6D8));
@@ -365,7 +385,7 @@ html.dark .header__user-trigger .header__user-avatar-inner .fa-user {
365385
.header__utilities {
366386
display: flex;
367387
align-items: center;
368-
gap: var(--space-default, 8px);
388+
gap: var(--space-s, 4px);
369389
}
370390

371391
.header__nav--desktop {

templates/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,12 @@
359359
{% flag "v3" %}
360360
<div class="bg-slate text-white text-center py-2 font-semibold">v3 flag enabled</div>
361361
{% endflag %}
362+
{% flag "v3" %}
363+
{% include "v3/includes/_header_v3.html" %}
364+
{% endflag %}
362365
{% block main_content_wrapper %}<div class="max-w-7xl md:px-3 mx-auto transition-all">{% endblock %}
363366
{% block content_header %}
364367
{% flag "v3" %}
365-
{% include "v3/includes/_header_v3.html" %}
366368
{% else %}
367369
{% include "includes/_header.html" %}
368370
{% endflag %}

0 commit comments

Comments
 (0)