fix: update design of header
This commit is contained in:
@@ -12,22 +12,29 @@
|
||||
|
||||
.container {
|
||||
box-sizing: content-box;
|
||||
display: grid;
|
||||
/** Third column is Book button */
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.mainLinks {
|
||||
background-color: #f3f2f1;
|
||||
}
|
||||
|
||||
.navBar {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 80px 1fr;
|
||||
padding-bottom: 1.5px;
|
||||
}
|
||||
|
||||
.expanderBtn {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
justify-self: flex-start;
|
||||
left: 0;
|
||||
padding: 0.75rem 0.5rem 1rem;
|
||||
padding: 12px 8px 16px;
|
||||
transition: 0.3s;
|
||||
user-select: none;
|
||||
}
|
||||
@@ -36,12 +43,12 @@
|
||||
.iconBars::after,
|
||||
.iconBars::before {
|
||||
background: #757575;
|
||||
border-radius: 0.1428571429rem;
|
||||
border-radius: 2.3px;
|
||||
display: inline-block;
|
||||
height: 0.2857142857rem;
|
||||
height: 4.6px;
|
||||
position: relative;
|
||||
transition: 0.3s;
|
||||
width: 2rem;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
.iconBars::after,
|
||||
@@ -49,15 +56,15 @@
|
||||
content: "";
|
||||
left: 0;
|
||||
position: absolute;
|
||||
transform-origin: 0.1428571429rem center;
|
||||
transform-origin: 2.286px center;
|
||||
}
|
||||
|
||||
.iconBars::after {
|
||||
top: -0.5rem;
|
||||
top: -8px;
|
||||
}
|
||||
|
||||
.iconBars::before {
|
||||
top: 0.5rem;
|
||||
top: 8px;
|
||||
}
|
||||
|
||||
.expanded .iconBars {
|
||||
@@ -68,7 +75,7 @@
|
||||
.expanded .iconBars::before {
|
||||
top: 0;
|
||||
transform-origin: 50% 50%;
|
||||
width: 2rem;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
.expanded .iconBars::after {
|
||||
@@ -90,21 +97,28 @@
|
||||
}
|
||||
|
||||
.logoLink {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-self: center;
|
||||
display: inline;
|
||||
height: 100%;
|
||||
width: 80px;
|
||||
padding: 16px 0 8px;
|
||||
}
|
||||
|
||||
.list {
|
||||
.logo {
|
||||
width: 80px;
|
||||
object-fit: fill;
|
||||
}
|
||||
.listWrapper {
|
||||
background-color: #fff;
|
||||
border-top: 1px solid #e3e0db;
|
||||
display: none;
|
||||
list-style: none;
|
||||
overflow-y: visible;
|
||||
padding-bottom: 20px;
|
||||
margin: 0;
|
||||
padding-inline-start: 0;
|
||||
}
|
||||
|
||||
.list.isOpen {
|
||||
.listWrapper.isOpen {
|
||||
display: block;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
@@ -122,13 +136,14 @@
|
||||
|
||||
.link {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
font-family:
|
||||
Helvetica Neue,
|
||||
Helvetica,
|
||||
Arial,
|
||||
sans-serif;
|
||||
font-size: 0.875rem;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 20px;
|
||||
@@ -148,59 +163,73 @@
|
||||
display: block;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
line-height: 22.4px;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.mobileLink {
|
||||
color: #000;
|
||||
display: block;
|
||||
font-family: Helvetica;
|
||||
font-size: 0.875rem;
|
||||
padding: 5px 0;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1366px) {
|
||||
.logoLink {
|
||||
width: 5rem;
|
||||
}
|
||||
|
||||
.li {
|
||||
background-color: #f3f2f1;
|
||||
}
|
||||
.buttonContainer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1367px) {
|
||||
.mainMenu {
|
||||
box-shadow: none;
|
||||
background-color: hsla(0, 0%, 100%, 0.95);
|
||||
position: relative;
|
||||
z-index: unset;
|
||||
}
|
||||
|
||||
.container {
|
||||
gap: 30px;
|
||||
grid-template-columns: minmax(100px, auto) 1fr;
|
||||
padding: 0px 30px;
|
||||
}
|
||||
|
||||
.mainLinks {
|
||||
padding-top: 2.5px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.navBar {
|
||||
grid-template-columns: 132.18px 1fr auto;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.expanderBtn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.logo {
|
||||
max-width: none;
|
||||
min-width: 98px;
|
||||
.logoLink {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
padding: 30px 10px 30px 15px;
|
||||
width: auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.list {
|
||||
.logo {
|
||||
width: 102.18px;
|
||||
object-fit: cover;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.listWrapper {
|
||||
border-top: none;
|
||||
display: block;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-bottom: 0;
|
||||
padding-top: 0;
|
||||
position: static;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.list.isOpen {
|
||||
.listWrapper.isOpen {
|
||||
position: static;
|
||||
}
|
||||
|
||||
@@ -208,6 +237,7 @@
|
||||
display: table-cell;
|
||||
float: none;
|
||||
vertical-align: middle;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.link {
|
||||
@@ -227,3 +257,20 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
.navBar {
|
||||
grid-template-columns: 140px auto 1fr;
|
||||
}
|
||||
|
||||
.logoLink {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
padding: 27px 30px 26px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.listWrapper {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user