-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from Mario-Duarte/feat/ui-development
Las units updates
- Loading branch information
Showing
10 changed files
with
69 additions
and
85 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
export const InputContainer = styled.div` | ||
position: relative; | ||
width: 100%; | ||
background-color: var(--box-bg-color); | ||
border-radius: 5px; | ||
padding: 20px 10px; | ||
margin-top: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
|
||
export const StyledInput = styled.input` | ||
background: none; | ||
appearance: none; | ||
color: var(--color-main-copy); | ||
border: none; | ||
width: 100%; | ||
text-align: center; | ||
font-size: 2rem; | ||
font-weight: 600; | ||
padding: 0; | ||
letter-spacing: 0; | ||
&:focus { | ||
outline: none; | ||
} | ||
`; | ||
|
||
export const Label = styled.label` | ||
color: var(--color-main-copy); | ||
margin-top: 20px; | ||
text-transform: uppercase; | ||
`; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
export const InputContainer = styled.div` | ||
position: relative; | ||
width: 100%; | ||
background-color: var(--box-bg-color); | ||
border-radius: 5px; | ||
padding: 20px 10px; | ||
margin-top: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
|
||
export const StyledInput = styled.input` | ||
background: none; | ||
appearance: none; | ||
color: var(--color-main-copy); | ||
border: none; | ||
width: 100%; | ||
text-align: center; | ||
font-size: 2rem; | ||
font-weight: 600; | ||
padding: 0; | ||
letter-spacing: 0; | ||
&:focus { | ||
outline: none; | ||
} | ||
`; | ||
|
||
export const Label = styled.label` | ||
color: var(--color-main-copy); | ||
margin-top: 20px; | ||
text-transform: uppercase; | ||
`; |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import styled, { css } from "styled-components"; | ||
|
||
export const ChildFocus = css` | ||
transition: box-shadow 0.4s ease-in-out; | ||
&:focus-within { | ||
box-shadow: 0 0 1px 1px var(--color-focus); | ||
} | ||
`; | ||
|
||
export const InputContainer = styled.div` | ||
position: relative; | ||
width: 100%; | ||
background-color: var(--box-bg-color); | ||
border-radius: 5px; | ||
padding: 20px 10px; | ||
margin-top: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
${ChildFocus} | ||
`; | ||
|
||
export const StyledInput = styled.input` | ||
background: none; | ||
appearance: none; | ||
color: var(--color-main-copy); | ||
border: none; | ||
width: 100%; | ||
text-align: center; | ||
font-size: 2rem; | ||
font-weight: 600; | ||
padding: 0; | ||
letter-spacing: 0; | ||
&:focus { | ||
outline: none; | ||
} | ||
`; | ||
|
||
export const Label = styled.label` | ||
color: var(--color-main-copy); | ||
margin-top: 20px; | ||
text-transform: uppercase; | ||
font-size: 0.75rem; | ||
`; |