Skip to content

Commit

Permalink
responsive beta imp
Browse files Browse the repository at this point in the history
  • Loading branch information
ttran293 committed Aug 22, 2021
1 parent 2b306b7 commit 6022425
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 6 deletions.
143 changes: 138 additions & 5 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* * { border: 1px solid red; } */
/* * {
box-sizing: border-box;
border: 1px solid red;
} */

/* --------------- Main Design ---------------*/

Expand All @@ -8,13 +11,12 @@ header{
margin: 0;
height: 70px;
background-color: white;


}

body{
margin: 0;
font-family: 'IBM Plex Sans Thai Looped', sans-serif;
overflow: auto;
}

footer{
Expand All @@ -32,8 +34,6 @@ h2{

.header-outer{
display: flex;
height: 100%;
width: 50%;
margin: auto auto;
justify-content: center;

Expand Down Expand Up @@ -373,3 +373,136 @@ color: white;
.copyright{
margin: 0 auto;
}



/* Responsive Website */
.m-header-outer{
display: none;
}

a {
color: #fff;
text-decoration: none;
}

.p-menu1{
height: 100%;
}




/* Hamburger */
.hamburger1 {
height: 45px;
margin: 10px;
display: -ms-grid;
display: grid;
grid-template-rows: repeat(3, 1fr);
justify-items: center;
z-index: 120;
}

.hamburger1 div {
background-color: rgb(61, 61, 61);
position: relative;
width: 40px;
height: 5px;
margin-top: 7px;
-webkit-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}

#toggle1 {
display: none;
}

#toggle1:checked + .hamburger1 .top {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
margin-top: 22.5px;
}

#toggle1:checked + .hamburger1 .meat {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
margin-top: -5px;
}

#toggle1:checked + .hamburger1 .bottom {
-webkit-transform: scale(0);
transform: scale(0);
}

#toggle1:checked ~ .menu1 {
height: 340px;
}


/* Menu */
.menu1 {
width: 100%;
background-color: #02173F;
margin: 0;
display: -ms-grid;
display: grid;
grid-template-rows: 1fr repeat(4, 0.5fr);
grid-row-gap: 25px;
padding: 0;
list-style: none;
clear: both;
width: auto;
text-align: center;
height: 0px;
overflow: hidden;
transition: height .4s ease;
z-index: 120;
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}

.menu1 a:first-child {
margin-top: 40px;
}

.menu1 a:last-child {
margin-bottom: 40px;
}

.link1 {
width: 100%;
margin: 0;
padding: 10px 0;
font: 700 20px 'Oswald', sans-serif;
}

.link1:hover {
background-color: #fff;
color: rgb(61, 61, 61);
-webkit-transition: all 0.3s ease;
transition: all 0.3s ease;
}

@media only screen and (max-width: 768px) {
header{
margin: 0;
font-size: 16px;
}

.header-outer{
display: none;
}

.m-header-outer{
display: contents;
width: 100%;
}

.introduction{
height: 50vh;
width: 100%;
}


}
19 changes: 18 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,26 @@
<a href="#tet">Experience</a>
<a href="#a">Skills</a>
</ul>

</nav>
</div>

<section class="p-menu1">
<nav id="navbar" class="navigation" role="navigation">
<input id="toggle1" type="checkbox" />
<label class="hamburger1" for="toggle1">
<div class="top"></div>
<div class="meat"></div>
<div class="bottom"></div>
</label>

<nav class="menu1">
<a class="link1" href="">Our Models</a>
<a class="link1" href="">Specialties</a>
<a class="link1" href="">About</a>
<a class="link1" href="">Blog</a>
</nav>
</nav>
</section>
</header>
<hr id= b>
<body>
Expand Down

0 comments on commit 6022425

Please sign in to comment.