Skip to content

Commit ff9be49

Browse files
authored
Few minor changes to header (#64)
* visual improvements based on feedback * changes made based on reviews * removed mobile viewport
1 parent 5c27130 commit ff9be49

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

assets/style/announcement.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
justify-content: center;
44
align-items: center;
5-
gap: 1rem;
5+
gap: 0.25rem;
66
padding-top: 0.8rem;
77
padding-bottom: 0.8rem;
88
background-color: var(--misc-dark);
@@ -12,6 +12,9 @@
1212

1313
.announcement p {
1414
font-size: 0.8125rem;
15+
font-weight: 700;
16+
text-decoration: underline;
17+
text-decoration-thickness: 1px;
1518
}
1619

1720
.announcement-warning {

assets/style/header.css

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ header {
2424
display: flex;
2525
flex-direction: row;
2626
align-items: center;
27-
gap: 1.3rem;
27+
gap: 1.5rem;
2828
}
2929

3030
.header-size a {
@@ -36,6 +36,7 @@ header {
3636
.nav-links {
3737
display: flex;
3838
gap: 2rem;
39+
margin-right: 0.5rem;
3940
}
4041

4142
.nav-links a:hover,
@@ -60,13 +61,26 @@ header {
6061
.site-search {
6162
display: flex;
6263
align-items: center;
64+
gap: 0.38rem;
6365
}
6466

6567
.search-bar {
6668
border: none;
6769
outline: none;
6870
background-color: transparent;
69-
padding-left: 5px;
71+
padding-left: 0.25rem;
72+
padding-top: 3px;
73+
}
74+
75+
input::placeholder {
76+
font-size: 1rem;
77+
font-style: normal;
78+
line-height: 1.3rem;
79+
color: var(--misc-dark);
80+
}
81+
82+
input:focus::placeholder {
83+
color: transparent;
7084
}
7185

7286
.masthead-logo {
@@ -88,7 +102,7 @@ header {
88102
color: var(--primary-p400);
89103
display: flex;
90104
height: 2.5rem;
91-
padding: 2px;
105+
padding: 1px;
92106
width: 8.8rem;
93107
}
94108

@@ -110,18 +124,16 @@ header {
110124
display: flex;
111125
justify-content: center;
112126
background: #fff;
127+
color: var(--primary-p400);
113128
transition: background 0.5s ease;
114129
width: 100%;
115130
gap: 5px;
116131
margin: 1px;
132+
padding-left: 0.75rem;
133+
padding-right: 0.4rem;
117134
}
118135

119136
.header-button:hover span {
120137
background: var(--primary-p400);
121-
}
122-
123-
@media (width <= 700px) {
124-
.header-desktop {
125-
display: none;
126-
}
138+
color: #fff;
127139
}

0 commit comments

Comments
 (0)