Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
Ajustes Estilo
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcon83 committed Jun 2, 2021
1 parent 5d671a3 commit 6088b6d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 23 deletions.
5 changes: 2 additions & 3 deletions Angular Dia 01 - Intro/my-form2/src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@
}

.container form {
border: 2px solid black;
border: 3px solid black;
width: 35rem;
border-radius: 0.5rem;
display: flex;
flex-direction: column;
}

.form-title {
border-bottom: 2px solid black;
border-bottom: 3px solid black;
text-align: center;
padding: 1rem 0;
margin: 0;
Expand Down
8 changes: 4 additions & 4 deletions Angular Dia 01 - Intro/my-form2/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="container">
<form action="">
<h1 class="form-title">Formulário 2</h1>
<custom-input [nome]="inputNome" [tipo]="inputTexto"></custom-input>
<custom-input [nome]="inputEmail" [tipo]="inputTexto"></custom-input>
<custom-input [nome]="inputSenha" [tipo]="inputPassword"></custom-input>
<h1 class="form-title">Formulário</h1>
<custom-input [nome]="inputNome" [tipo]="inputTipoTexto"></custom-input>
<custom-input [nome]="inputEmail" [tipo]="inputTipoEmail"></custom-input>
<custom-input [nome]="inputSenha" [tipo]="inputTipoSenha"></custom-input>
<custom-input-button></custom-input-button>
</form>
</div>
5 changes: 3 additions & 2 deletions Angular Dia 01 - Intro/my-form2/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export class AppComponent {
inputNome = 'Nome Completo';
inputEmail = 'Email';
inputSenha = 'Senha';
inputTexto = 'text';
inputPassword = 'password';
inputTipoTexto = 'text';
inputTipoEmail = 'email';
inputTipoSenha = 'password';
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.custom-input-button {
width: 40%;
padding: 0.5rem;
margin: 0.5rem auto 1rem;
margin: 1rem auto;
display: block;
border: 0;
color: black;
font-family: "fira code";
font-weight: 500;
border: 2px solid black;
font-family: "press start 2p";
border: 3px solid black;
background-color: transparent;
}

.custom-input-button:hover {
background-color: sienna;
cursor: pointer;
outline: none;
color: white;
background-color: black;
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
.custom-input-group {
display: flex;
flex-direction: column;
padding: 0.5rem 1rem;
padding: 1.5rem 1rem 0;
}

.custom-input {
font-family: "press start 2p";
margin: 0;
padding: 0%;
box-sizing: border-box;
width: 100%;
padding: 0.25rem 0;
font-size: 1.2rem;
padding: 0.5rem 0 0.25rem;
font-size: 1rem;
border: 0;
border-bottom: 2px solid black;
border-bottom: 3px solid black;
}

.custom-input:focus {
outline: none;
border-bottom: 2px solid sienna;
border-bottom: 3px dotted black;
}
14 changes: 10 additions & 4 deletions Angular Dia 01 - Intro/my-form2/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

html {
font-size: 16px;
font-family: "fira code";
font-weight: 500;
font-family: "press start 2p";
font-weight: 400;
}

body {
margin: 0;
padding: 0;
box-sizing: border-box;
min-height: 100vh;
}

*,
*::after,
*::before {
box-sizing: border-box;
}

0 comments on commit 6088b6d

Please sign in to comment.