Skip to content

Commit

Permalink
πŸ’„:: #7 css μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
hyosin-Jang committed Mar 7, 2022
1 parent 40b70e5 commit efdcd34
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/component/Auth/RegisterButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { theme, flexCenter } from '../../style/theme';
import styled from 'styled-components';
Expand Down Expand Up @@ -33,7 +32,7 @@ const Wrapper = styled.div`
color: black;
font-size: 1.4rem;
&:hover {
background: ${theme.color.Main_lighten};
background: ${theme.color.Main};
color: white;
}
`;
5 changes: 3 additions & 2 deletions src/component/Auth/RightAlignedLink.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import styled from 'styled-components';
import { useNavigate } from 'react-router-dom';
import { theme } from '../../style/theme';
Expand All @@ -25,11 +24,13 @@ export default RightAlignedLink;
const Aligner = styled.div`
text-align: right;
display: flex;
width: 58rem;
margin-top: 2rem;
.styled-link {
color: ${theme.color.medium_gray};
font-size: 1.6rem;
display: flex;
margin-left: 31rem;
margin-right: 0;
border-bottom: 1px solid ${theme.color.medium_gray};
&:hover {
color: ${theme.color.medium_gray};
Expand Down
25 changes: 25 additions & 0 deletions src/style/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ export const flexCenter = css`
justify-content: center;
`;

export const inputlabel = css`
font-size: 1.6rem;
margin-bottom: 1rem;
font-weight: bold;
color: #9e9e9e;
`;

export const inputForm = css`
width: 58rem;
border: 0;
border-bottom: 1px solid #e0e0e0;
outline: none;
padding-bottom: 1rem;
border-radius: 0px;
line-height: 2.5rem;
font-size: 1.4rem;
margin-top: 1rem;
margin-bottom: 1.8rem;
::placeholder {
color: #e0e0e0;
}
&.error {
border-bottom: 1px solid red;
}
`;
// fontλž‘ margin은 아직 λ””μžμΈμ— 맞게 μˆ˜μ • μ•ˆν•œ μƒνƒœμž…λ‹ˆλ‹€
export const margins = {
sm: '.5rem',
Expand Down

0 comments on commit efdcd34

Please sign in to comment.