Created
February 16, 2018 02:20
-
-
Save anonymous/dd5f9ed87891d56d5b91224448a65c8c to your computer and use it in GitHub Desktop.
eVeWmw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<header class="header"> | |
<div class="holder"> | |
<div class="logo"> | |
Iadasd | |
</div> | |
<div class="name"> | |
DeleteMyData | |
</div> | |
</div> | |
</header> | |
<!-- <main class="main"> | |
<aside class="sidebar-left">S</aside> | |
<div class="content">Main Content</div> | |
<aside class="sidebar-right">S</aside> | |
</main> --> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header { | |
grid-area: header; | |
} | |
.name { | |
grid-area: name; | |
} | |
.logo { | |
grid-area: logo; | |
} | |
aside { | |
grid-area: side; | |
} | |
.wrapper > * { | |
border: 2px solid rgb(233,171,88); | |
border-radius: 5px; | |
background-color: rgba(233,171,88,.5); | |
color: #d9480f; | |
} | |
.wrapper { | |
display: grid; | |
grid-template-columns: repeat(1, 1fr); | |
grid-gap: 10px; | |
grid-auto-rows: minmax(50px, auto); | |
grid-template-areas: "header"; | |
width: 75%; | |
margin: 0 auto; | |
} | |
header { | |
display: grid; | |
grid-template-columns: repeat(3, 1fr); | |
padding: 1em; | |
} | |
header .holder { | |
display: grid; | |
grid-template-columns: [logo] 50px [name] 100px; | |
} | |
@media only screen and (max-width: 740px) { | |
header .holder { | |
grid-column: 2; | |
justify-self: center; | |
} | |
} | |
main { | |
display: grid; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment