Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lecongthanh3584 committed Jan 30, 2022
1 parent b023b19 commit a272654
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assets/styles/mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@
width: 99.5%;
}

.header .search {
z-index: -1;
}

.header input:first-child:checked ~ .navigation .content .logo,
.header input:first-child:checked ~ .navigation label {
visibility: hidden;
}

.header input:first-child:checked ~ .search {
z-index: 1;
}


.search button {
right: 22%;
}
Expand Down Expand Up @@ -205,11 +214,19 @@ and (max-height: 415px) {
width: 99.75%;
}

.header .search {
z-index: -1;
}

.header input:first-child:checked ~ .navigation .content .logo,
.header input:first-child:checked ~ .navigation label {
visibility: hidden;
}

.header input:first-child:checked ~ .search {
z-index: 1;
}

.search button {
right: 12%;
}
Expand Down
6 changes: 6 additions & 0 deletions assets/styles/tablet.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and (min-height: 415px) {
position: unset;
line-height: 30px;
}
.header .search {
z-index: -1;
}
.navigation .content {
flex-direction: column;
margin: 0 auto;
Expand Down Expand Up @@ -39,6 +42,9 @@ and (min-height: 415px) {
.header input:first-child:checked ~ .navigation .content .logo{
visibility: hidden;
}
.header input:first-child:checked ~ .search {
z-index: 1;
}
.header .search input {
width: 50%;
right: 30%;
Expand Down

0 comments on commit a272654

Please sign in to comment.