This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
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.
♻️ #289 UploadButton をCSSModules に置換え
- Loading branch information
Showing
3 changed files
with
66 additions
and
63 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/components/Upload/UploadButton/UploadButton.module.css
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,40 @@ | ||
.button { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 10px; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 8px 20px; | ||
background: var(--primary-color); | ||
border-radius: 4px; | ||
} | ||
|
||
.button:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
.text { | ||
flex: none; | ||
flex-grow: 0; | ||
order: 0; | ||
width: 128px; | ||
height: 18px; | ||
font-family: Roboto, sans-serif; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 18px; | ||
color: var(--white-color); | ||
} | ||
|
||
.text:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
.disabled-button { | ||
opacity: 0.5; | ||
} | ||
|
||
.disabled-text { | ||
opacity: 0.5; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/components/Upload/UploadButton/UploadButton.module.css.d.ts
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,7 @@ | ||
declare const styles: { | ||
readonly button: string; | ||
readonly text: string; | ||
readonly 'disabled-button': string; | ||
readonly 'disabled-text': string; | ||
}; | ||
export = styles; |
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