2 changed files with 86 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Document</title> |
||||
|
<link rel="stylesheet" href="style.css"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<ul class="navigace"> |
||||
|
<li><a href="#">Home</a></li> |
||||
|
<li><a href="#">About</a></li> |
||||
|
<li><a href="#">Contact</a></li> |
||||
|
<li><a href="#">Form</a></li> |
||||
|
</ul> |
||||
|
|
||||
|
<div class="wrapper"> |
||||
|
<header class="header">Header</header> |
||||
|
<article class="main"> |
||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus sit soluta molestias, ullam magni deserunt consequatur aliquam odit tempore beatae, neque dicta perspiciatis eaque. Itaque earum iste necessitatibus ullam. Ea.</p> |
||||
|
</article> |
||||
|
<aside class="aside aside-1"> Aside 1</aside> |
||||
|
<aside class="aside aside-2"> Aside 2</aside> |
||||
|
<footer class="footer"> Footer</footer> |
||||
|
</div> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,59 @@ |
|||||
|
.navigace { |
||||
|
display: flex; |
||||
|
flex-flow: row wrap; |
||||
|
justify-content: flex-end; |
||||
|
|
||||
|
list-style: none; |
||||
|
margin: 0; |
||||
|
} |
||||
|
|
||||
|
.navigace a { |
||||
|
text-decoration: none; |
||||
|
display: block; |
||||
|
padding: 10px; |
||||
|
} |
||||
|
|
||||
|
.navigace a:hover{ |
||||
|
background-color:lightgreen; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
@media all and (max-width: 800px) { |
||||
|
.navigace { |
||||
|
justify-content: space-around; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
@media all and (max-width:600px) { |
||||
|
.navigace { |
||||
|
flex-flow: column wrap; |
||||
|
padding: 0; |
||||
|
} |
||||
|
.navigace a { |
||||
|
text-align: center; |
||||
|
padding: 10px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
.wrapper{ |
||||
|
display: flex; |
||||
|
flex-flow: row wrap; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.wrapper > * { |
||||
|
padding: 10px; |
||||
|
flex: 1 100%; |
||||
|
} |
||||
|
@media all and (min-width: 600px){ |
||||
|
.aside { |
||||
|
flex: 1 0 0; |
||||
|
} |
||||
|
} |
||||
|
@media all and (min-width: 800px){ |
||||
|
.main {flex:3 0px;} |
||||
|
.aside-1 {order: 1;} |
||||
|
.main {order: 2;} |
||||
|
.aside-2 {order: 3;} |
||||
|
.footer {order: 4;} |
||||
|
} |
Loading…
Reference in new issue