Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aula ao vivo #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercicio1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<ul>
<li id="texto-fonte-root"> A minha fonte tme 3 vezes o tamanho da fonte do meu root</li>
<li id="texto-fonte-root"> A minha fonte tme 3 vezes o tamanho da fonte do meu root-raiz</li>
<li id="texto-paddings-verticais">Os meus paddings verticais possuem 2 vezes o tamanho da minha fonte</li>
<li id="altura-porcentagem-comprimento">A minha altura assume vinte porcento do comprimento da tela toda</li>
<li id="comprimento-metade-altura">Já o meu comprimento assume metade da altura da tela toda</li>
Expand Down
30 changes: 23 additions & 7 deletions exercicio1/style.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
#texto-fonte-root{
*{
margin: 0;
padding: 0;
}

#texto-fonte-root{
font-size: 3rem;
}

#texto-paddings-verticais{

padding-top: 2em;
padding-bottom: 2em;
/* ou usa padding: 2em 0 */
}

#altura-porcentagem-comprimento{

height: 20vw;
background-color: blue;
}

#comprimento-metade-altura{

width: 50vh;
background-color: aqua;
}

.container{
Expand All @@ -20,14 +29,21 @@
font-size: 20px;
}

ul{
height: 800px;
}
#fonte-setenta{

font-size: 70%;
/* font-size: 0.7em; */
}

#comprimento-pai{

background-color: aqua;
width: 10%;
/* width: 0.1em; */
}

#altura-pai{

background-color: brown;
height: 50%;
}
55 changes: 55 additions & 0 deletions exercicio2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
* {
margin: 0;
padding: 0;
}

section {
width: 150px;
height: 150px;

background: blue;
}

main {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}

@media screen and (max-width : 480px) {

/* and (min-width : 320px) */
main {
display: block;
background-color: red;
}

section {
width: 100%;
margin: 20px 0;
}
}

@media screen and (min-width : 481px) and (max-width: 800px) {
main {
display: block;
background-color: yellow;
}

section {
width: 100%;
margin: 20px 0;
}
}

@media screen and (min-width : 800px) {
main {
display: block;
background-color: green;
}

section {
width: 100%;
margin: 20px 0;
}
}