Skip to content

Commit

Permalink
Few minor changes to header (#64)
Browse files Browse the repository at this point in the history
* visual improvements based on feedback

* changes made based on reviews

* removed mobile viewport
  • Loading branch information
MariamM110 authored Jul 24, 2023
1 parent 5c27130 commit ff9be49
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
5 changes: 4 additions & 1 deletion assets/style/announcement.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
gap: 0.25rem;
padding-top: 0.8rem;
padding-bottom: 0.8rem;
background-color: var(--misc-dark);
Expand All @@ -12,6 +12,9 @@

.announcement p {
font-size: 0.8125rem;
font-weight: 700;
text-decoration: underline;
text-decoration-thickness: 1px;
}

.announcement-warning {
Expand Down
30 changes: 21 additions & 9 deletions assets/style/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ header {
display: flex;
flex-direction: row;
align-items: center;
gap: 1.3rem;
gap: 1.5rem;
}

.header-size a {
Expand All @@ -36,6 +36,7 @@ header {
.nav-links {
display: flex;
gap: 2rem;
margin-right: 0.5rem;
}

.nav-links a:hover,
Expand All @@ -60,13 +61,26 @@ header {
.site-search {
display: flex;
align-items: center;
gap: 0.38rem;
}

.search-bar {
border: none;
outline: none;
background-color: transparent;
padding-left: 5px;
padding-left: 0.25rem;
padding-top: 3px;
}

input::placeholder {
font-size: 1rem;
font-style: normal;
line-height: 1.3rem;
color: var(--misc-dark);
}

input:focus::placeholder {
color: transparent;
}

.masthead-logo {
Expand All @@ -88,7 +102,7 @@ header {
color: var(--primary-p400);
display: flex;
height: 2.5rem;
padding: 2px;
padding: 1px;
width: 8.8rem;
}

Expand All @@ -110,18 +124,16 @@ header {
display: flex;
justify-content: center;
background: #fff;
color: var(--primary-p400);
transition: background 0.5s ease;
width: 100%;
gap: 5px;
margin: 1px;
padding-left: 0.75rem;
padding-right: 0.4rem;
}

.header-button:hover span {
background: var(--primary-p400);
}

@media (width <= 700px) {
.header-desktop {
display: none;
}
color: #fff;
}

0 comments on commit ff9be49

Please sign in to comment.