|
|
@ -4,6 +4,8 @@ |
|
|
<title>Título Página</title> |
|
|
<title>Título Página</title> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
<link rel="stylesheet" href="styles/base.css" /> |
|
|
<link rel="stylesheet" href="styles/base.css" /> |
|
|
|
|
|
<link rel="stylesheet/less" type="text/css" href="styles/base.less" /> |
|
|
|
|
|
<script src="scripts/less/less.min.js"></script> |
|
|
</head> |
|
|
</head> |
|
|
<body> |
|
|
<body> |
|
|
<header> |
|
|
<header> |
|
|
@ -21,14 +23,14 @@ |
|
|
</section> |
|
|
</section> |
|
|
<hr/> |
|
|
<hr/> |
|
|
<style> |
|
|
<style> |
|
|
div[data-colunas="grid"] { |
|
|
|
|
|
display: grid; |
|
|
|
|
|
grid-template-columns: auto auto auto; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
div[data-colunas="grid"] { |
|
|
|
|
|
display: grid; |
|
|
|
|
|
grid-template-columns: auto auto auto; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
<section> |
|
|
|
|
|
|
|
|
<section id="bloco-grid"> |
|
|
<h1>GRID</h1> |
|
|
<h1>GRID</h1> |
|
|
<div data-colunas="grid"> |
|
|
|
|
|
|
|
|
<div data-colunas="grid" class="grid"> |
|
|
<div> |
|
|
<div> |
|
|
<h2>Carro</h2> |
|
|
<h2>Carro</h2> |
|
|
<p>Andam em estradas, têm quatro pneus.</p> |
|
|
<p>Andam em estradas, têm quatro pneus.</p> |
|
|
@ -44,31 +46,28 @@ div[data-colunas="grid"] { |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
</section> |
|
|
<hr/> |
|
|
<hr/> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
} |
|
|
|
|
|
div.tipos-veiculos[data-colunas="flex"] > div { |
|
|
|
|
|
flex: 50%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
display: flex; |
|
|
|
|
|
flex-direction: row; |
|
|
|
|
|
} |
|
|
|
|
|
div.tipos-veiculos[data-colunas="flex"] > div { |
|
|
|
|
|
flex: 50%; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 500px) { |
|
|
|
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 500px) and (max-width: 800px) { |
|
|
|
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
background-color: #555500; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@media (max-width: 500px) { |
|
|
|
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 500px) and (max-width: 800px) { |
|
|
|
|
|
div[data-colunas="flex"] { |
|
|
|
|
|
background-color: #555500; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
<section> |
|
|
|
|
|
|
|
|
<section id="bloco-flex"> |
|
|
<h1>FLEX</h1> |
|
|
<h1>FLEX</h1> |
|
|
<div class="tipos-veiculos" data-colunas="flex"> |
|
|
<div class="tipos-veiculos" data-colunas="flex"> |
|
|
<div> |
|
|
<div> |
|
|
@ -86,5 +85,6 @@ div.tipos-veiculos[data-colunas="flex"] > div { |
|
|
</div> |
|
|
</div> |
|
|
</section> |
|
|
</section> |
|
|
</main> |
|
|
</main> |
|
|
|
|
|
<script src="scripts/main.js"></script> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |