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

template finalizado #5

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
16 changes: 16 additions & 0 deletions exercicio1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*{
padding: 0;
box-sizing: border-box;
}

body{
color:orange;
}

.texto-com-background{
background-color: #FFFE57;
}

#texto-com-outra-cor{
color: green;
}
29 changes: 29 additions & 0 deletions exercicio2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
*{
margin: 0;
padding:0;
box-sizing: border-box;
}

header{
position: fixed;
background-color: white;
border-bottom: 0.063rem black solid;
width:100vw;
padding: 0.625rem 1.75rem;
font-family: helvetica;
top:0%;
left: 0%;
}

main{
padding: 3.125rem 1.75rem;
font-family: helvetica;
text-align: center;
}

footer{
margin-top: 900px;
border-top: 0.063rem black solid;
padding: 0.625rem 1.75rem;
font-family: helvetica;
}
2 changes: 1 addition & 1 deletion exercicio3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</head>

<body>
<button>Oi, eu sou um botão</button>
<button class="btn">Oi, eu sou um botão</button>

</body>

Expand Down
21 changes: 21 additions & 0 deletions exercicio3/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

.btn:hover{
background-color:red;
color: white;
}

.btn:active{
background-color:pink;
color: red;
}

.btn{
background-color: white;
display: block;
margin: auto;
}
10 changes: 4 additions & 6 deletions fixacao/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ <h1> Header</h1>
</header>
<nav>Sou uma Nav, e quando chego no topo da tela, fico colada por lá!</nav>
<main>
<section>
<section class="abs">
Sou absoluto no canto inferior direito.
</section>
<section>
<section class="center">
Não mudo de posição, mas meu texto é centralizado.
</section>
<section>
Se você clicar no botão aqui embaixo, eu fico verde.
<br />
<button>Clica aqui!</button>
<section class="hvr">
Se você clicar aqui, eu fico verde.
</section>
</main>
<footer>
Expand Down
33 changes: 32 additions & 1 deletion fixacao/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
margin: 0;
padding: 0;
}

body{
font-family: sans-serif;
background-color: #004643;
Expand All @@ -11,11 +12,13 @@
padding: 20px;
color: #abd1c6;
}

main{
height: 1200px;
padding: 20px;
background-color: #e8e4e6;
margin: 10px;
position: relative;
}

section{
Expand All @@ -25,14 +28,42 @@
padding: 20px;
margin: 10px 0;
}


.center{
text-align: center
}

.abs{
position: absolute;
bottom: 0;
right: 0;
}

.hvr:hover{
cursor: pointer;
}

.hvr:active{
background-color: green;
color: white;
}

nav{
padding: 20px;
background-color: white;
position:sticky;
top:0;
width: 100%;
}

footer{
background-color: #abd1c6;
padding: 20px;
text-align: center;
}

footer:hover{
background-color: yellow;
padding: 20px;
text-align: center;
}