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

exercicio1 #8

Open
wants to merge 4 commits 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 @@ -16,7 +16,7 @@
</ul>

<div class="container">
<ul>
<ul class="potato">
<li id="fonte-setenta">A minha fonte é setenta porcento da fonte do meu pai</li>
<li id="comprimento-pai">O meu comprimento é dez porcento do comprimento do meu pai</li>
<li id="altura-pai">A minha altura é dez porcento da altura do meu pai</li>
Expand Down
33 changes: 27 additions & 6 deletions exercicio1/style.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,54 @@
#texto-fonte-root{
*{
margin: 0px;
}

/* html{

font-size: 5px;
} */


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

#texto-paddings-verticais{

background-color: aqua;
padding: 2rem 0px;
}

#altura-porcentagem-comprimento{
height: 20vw;

}

#comprimento-metade-altura{

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

.container{
.potato{
border: 1px solid black;
width: 400px;
font-size: 20px;
height: 800px;
background-color: blanchedalmond;


}

#fonte-setenta{

#fonte-setenta{
font-size: 70%;
}

#comprimento-pai{
border: 1px solid black;
width: 10%;

}

#altura-pai{

background-color: blue;
height: 10%;
}
47 changes: 47 additions & 0 deletions exercicio2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
* {
margin: 0px;
}

main {
display: grid;
/* grid-template-columns: repeat(auto-fit, 186px); */
grid-template-columns: 1fr 1fr 1fr;
min-height: 100vh;
background-color: aqua;
grid-template-rows: 40vh 40vh;
}

section {
display: grid;
border: 1px solid black;
background-color: bisque;
justify-items: center;
align-items: center;
}

@media screen and (max-device-width:480px) and (min-device-width:280px) {
main {
display: grid;
grid-template-columns: 1fr;
color: red;
grid-template-rows: none;
}
section{
align-items: start;
color: bisque;
}
}

@media screen and (min-device-width : 481px) and (max-device-width : 800px) {

main {
display: grid;
grid-template-columns: 1fr;
color: purple;
font-size: 30px;
grid-template-rows: none;
}
section{
align-items: end;
}
}
21 changes: 16 additions & 5 deletions fixacao/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
}

main {
height: 77vh;
min-height: 77vh;
max-width: 800px;
display: flex;
flex-direction: row;

margin: 20px auto;
gap: 10px;
}
Expand All @@ -39,10 +39,21 @@
}

footer {
position: absolute;
bottom: 0;
background-color: black;
color: white;
padding: 20px;
width: 100%;
}
}

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

main {
flex-direction: column;
}




/* celulares */

}