Skip to content

Commit

Permalink
use short classes for styling default import
Browse files Browse the repository at this point in the history
  • Loading branch information
vinaybadgujar102 committed Dec 2, 2024
1 parent b5bc263 commit 1ca2173
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/DefaultInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const DefaultInput: React.FC<DefaultInputProps> = ({

return (
<input
className="default-input"
className="default-input fw-400 text-md"
placeholder={placeholder}
style={baseStyle}
type={type}
Expand Down
2 changes: 0 additions & 2 deletions src/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ h6 {

/* input field */
.default-input {
font-size: 1em;
font-weight: 400;
padding: 8px 16px;
border-radius: 8px;
outline: none;
Expand Down
12 changes: 12 additions & 0 deletions src/short.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,22 @@
height: 100%;
}

.fw-400 {
font-weight: 400;
}

.fw-600 {
font-weight: 600;
}

.text-sm {
font-size: 0.856rem;
}

.text-md {
font-size: 1rem;
}

.text-lg {
font-size: 1.25rem;
}
Expand Down

0 comments on commit 1ca2173

Please sign in to comment.