Skip to content

Commit

Permalink
refactor: estilos resscritos em sass
Browse files Browse the repository at this point in the history
  • Loading branch information
zolppy committed Jun 10, 2024
1 parent 9ae8ef7 commit a55dc02
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 0 deletions.
47 changes: 47 additions & 0 deletions src/sass/base/base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@import "./variables.scss";

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
font-size: 16px;

body {
background-color: $soft-black;
color: $soft-white;
font-family: system-ui, sans-serif;
font-size: 1rem;
height: 100svh;

button {
border: none;
font-family: system-ui, sans-serif;
}

button:focus,
a:focus {
outline: none;
border: 2px solid #2f81f7;
}

a {
text-decoration: none;
color: #2f81f7;

&:hover {
text-decoration: underline;
}
}

input:focus {
outline: 1px solid #2f81f7;
}

ul > li {
list-style-type: none;
}
}
}
2 changes: 2 additions & 0 deletions src/sass/base/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$soft-black: #0d1017;
$soft-white: #e6edf3;
120 changes: 120 additions & 0 deletions src/sass/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
@import "./base/base.scss";
@import "./base/variables.scss";

#container {
align-items: center;
display: flex;
flex-direction: column;
margin-top: 2rem;

#logo {
width: 48px;
}

#title {
margin-top: 31px;
font-weight: 300;
font-size: 1.5rem;
letter-spacing: -0.03rem;
}

form {
border: 1px solid rgba(50, 53, 60, 0.5);
margin-top: 1.5em;
height: 220px;
width: 307px;
border-radius: 7px;
background-color: #161b21;
padding: 20px 16px 10px 16px;
font-size: 14px;

label {
margin-bottom: 11px;
}

input {
height: 2rem;
text-indent: 0.6rem;
font-size: 1em;
color: $soft-white;
font-family: system-ui, sans-serif;
background-color: inherit;
border: 1px solid #32353c;
border-radius: 6px;
}

#username-input-container {
display: flex;
flex-direction: column;
}

#password-input-container {
display: flex;
flex-direction: column;
margin-top: 20px;

#password-label-container {
display: flex;
justify-content: space-between;

a {
font-size: 0.9em;
letter-spacing: -0.02rem;
}
}
}

#signin-button {
margin-top: 1em;
height: 2rem;
border-radius: 6px;
background-color: #238636;
color: #fff;
font-weight: 500;
font-size: 0.9rem;
width: 100%;

&:hover {
cursor: pointer;
background-color: #2e9f44;
}
}
}

#create-an-account {
border: 1px solid #32353c;
width: 307px;
border-radius: 7px;
padding: 15px;
margin-top: 15px;
line-height: 1.6rem;
font-size: 0.9em;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

p {
letter-spacing: -0.02em;
}
}

#links-container {
width: 307px;
margin-top: 80px;
font-size: 0.8em;
padding-left: 4px;
padding-right: 4px;
display: flex;
justify-content: space-around;
letter-spacing: -0.04em;

#contact-link {
color: #888;

&:hover {
color: #2f81f7;
}
}
}
}

0 comments on commit a55dc02

Please sign in to comment.