Created
October 10, 2019 14:11
-
-
Save tgmarinho/8ab80ea0951abad6f2069e98e55850f5 to your computer and use it in GitHub Desktop.
Estilização do Profile com styled-components
This file contains 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
import styled from 'styled-components'; | |
import { darken } from 'polished'; | |
export const Container = styled.div` | |
max-width: 600px; | |
margin: 50px auto; | |
form { | |
display: flex; | |
flex-direction: column; | |
margin-top: 30px; | |
input { | |
background: rgba(0, 0, 0, 0.1); | |
border: 0; | |
border-radius: 4px; | |
height: 44px; | |
padding: 15px; | |
color: #fff; | |
margin: 0 0 10px; | |
&::placeholder { | |
color: rgba(255, 255, 255, 0.7); | |
} | |
} | |
hr { | |
border: 0; | |
height: 1px; | |
background: rgba(255, 255, 255, 0.2); | |
margin: 10px 0 20px; | |
} | |
span { | |
color: #fb6f91; | |
align-self: flex-start; | |
margin: 0 0 10px; | |
font-weight: bold; | |
} | |
button { | |
margin: 5px 0 0; | |
height: 44px; | |
background: #3b9eff; | |
font-weight: bold; | |
color: #fff; | |
border: 0; | |
border-radius: 4px; | |
font-size: 16px; | |
transition: background 0.2s; | |
&:hover { | |
background: ${darken(0.03, '#3b9eff')}; | |
} | |
} | |
a { | |
color: #fff; | |
margin-top: 15px; | |
font-size: 16px; | |
opacity: 0.8; | |
&:hover { | |
opacity: 1; | |
} | |
} | |
} | |
> button { | |
width: 100%; | |
margin: 10px 0 0; | |
height: 44px; | |
background: #f64c75; | |
font-weight: bold; | |
color: #fff; | |
border: 0; | |
border-radius: 4px; | |
font-size: 16px; | |
transition: background 0.2s; | |
&:hover { | |
background: ${darken(0.08, '#f64c75')}; | |
} | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment