Skip to content
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
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 tem 3 vezes o tamanho da fonte do meu root</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
29 changes: 22 additions & 7 deletions exercicio1/style.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
#texto-fonte-root{
*{
margin: 0;
padding: 0;
}

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

#texto-paddings-verticais{

background-color: aqua;
padding: 2 em 0;
}

#altura-porcentagem-comprimento{

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

#comprimento-metade-altura{

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

.container{
border: 1px solid black;
width: 400px;
height: 400px;
font-size: 20px;
}

#fonte-setenta{
ul{
height: 100%;
}

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

#comprimento-pai{

background-color: orange;
width: 10%;
}

#altura-pai{

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

main{
display: flex;
flex-wrap: wrap;
}

section{
border: 1px solid black;
width: 32vw;
height: 40vh;
display: flex;
align-items: center;
justify-content: center;
}

@media screen and (max-width: 480px) {
main{
flex-direction: column;
}

section {
width: 100vw;
height: 20vh;
align-items: flex-start;
color: red;
}
}
23 changes: 22 additions & 1 deletion fixacao/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* {
* {
padding: 0;
margin: 0;
font-family: Helvetica, sans-serif;
Expand Down Expand Up @@ -45,4 +45,25 @@
color: white;
padding: 20px;
width: 100%;
}

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

header{
position: fixed;
top: 0;
text-align: center;
}

main {
flex-direction: column;
height: 150vh;
margin-top: 90px;
}

footer{
position: sticky;
bottom: 0;
}

}