Last active
August 5, 2022 17:49
-
-
Save BrenoOPrado/02f459b67a4e1bade3e7d679cf459be1 to your computer and use it in GitHub Desktop.
CSS básico
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
:root { | |
--green-dark: #036b52; | |
--green-light: #d1e7dd; | |
--blue: #006dfb; | |
--purple: #41197f; | |
--black: #222; | |
--white: white; | |
--red-light: #f8d7da; | |
--red-dark: #dc3545; | |
--primary: var(--white); | |
--secondary: #1a1b1c; | |
--accent: #2fc18c; | |
--grey-50: #f8fafc; | |
--grey-200: #e2e8f0; | |
--shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.2) , 0 1px 2px 0 rgba(0, 0, 0, 0.06); | |
--shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1) , 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
--shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.2) , 0 4px 6px -2px rgba(0, 0, 0, 0.08); | |
--borderRadius: 0.25rem; | |
--max-width: 1120px; | |
--transition: 0.3s ease-in-out all; | |
--letterSpacing: 1px; | |
--headingFont: 'Roboto' , sans-serif; | |
--bodyFont: 'Nunito' , sans-serif; | |
} | |
::selection { | |
background-color: var(--green-light); | |
} | |
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Montserrat&display=swap') ; | |
html { | |
font-size: 100%; | |
} | |
body { | |
color: black; | |
font-family: var(--bodyFont); | |
font-weight: 400; | |
line-height: 1.75; | |
} | |
p { | |
margin-bottom: 1rem; | |
} | |
h1 , h2 , h3 , h4 , h5 { | |
font-family: var(--headingFont); | |
font-weight: 400; | |
letter-spacing: var(--letterSpacing); | |
line-height: 1.3; | |
margin: 0; | |
margin-bottom: 1.38rem; | |
text-transform: capitalize; | |
} | |
h1 { | |
font-size: 3.052rem; | |
margin-top: 0; | |
} | |
h2 { | |
font-size: 2.441rem; | |
} | |
h3 { | |
font-size: 1.953rem; | |
} | |
h4 { | |
font-size: 1.563rem; | |
} | |
h5 { | |
font-size: 1.25rem; | |
} | |
small , .text_small { | |
font-size: 0.8rem; | |
} | |
.img { | |
display: block; | |
object-fit: cover; | |
width: 100%; | |
} | |
button { | |
background: var(--accent); | |
border: transparent; | |
border-radius: var(--borderRadius); | |
box-shadow: var(--shadow-1); | |
color: var(--white); | |
cursor: pointer; | |
display: inline-block; | |
font-size: 1.2rem; | |
letter-spacing: var(--letterSpacing); | |
margin-right: 1rem; | |
padding: 0.375rem 0.75rem; | |
text-transform: capitalize; | |
} | |
button:hover { | |
box-shadow: var(--shadow-2); | |
filter: brightness(110%); | |
} | |
button:active { | |
box-shadow: var(--shadow-3); | |
} | |
button:disabled { | |
cursor: wait; | |
opacity: 0.5; | |
} | |
form { | |
background: var(--white); | |
border-radius: var(--borderRadius); | |
box-shadow: var(--shadow-2); | |
padding: 2rem 2.5rem; | |
} | |
input , textarea , select { | |
background: var(--grey-50); | |
border: 1px solid var(--grey-200); | |
border-radius: var(--borderRadius); | |
margin-bottom: 1rem; | |
padding: 0.7rem 0.75rem; | |
width: 100%; | |
} | |
.container { | |
margin: 0 auto; | |
max-width: var(--max-width); | |
} | |
.alert { | |
border-color: transparent; | |
border-radius: var(--borderRadius); | |
margin-bottom: 1rem; | |
padding: 0.375rem 0.75rem; | |
} | |
.danger { | |
background: var(--red-light); | |
color: var(--red-dark); | |
} | |
.success { | |
background: var(--green-light); | |
color: var(--green-dark); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment