diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-25 09:20:01 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-11-25 09:20:01 +0100 |
| commit | 207a2540101b2f216bde94ae53286d2e52f044e3 (patch) | |
| tree | 0d36c7d3ea8b87f654aa47384d16f1f8f96a0157 /frontend/src/css/Button.module.css | |
| parent | feat/rankings: optimize Steam ID comparison (#236) (diff) | |
| download | lphub-207a2540101b2f216bde94ae53286d2e52f044e3.tar.gz lphub-207a2540101b2f216bde94ae53286d2e52f044e3.tar.bz2 lphub-207a2540101b2f216bde94ae53286d2e52f044e3.zip | |
frontend: begin port to css modules, sidebar refactor
Diffstat (limited to 'frontend/src/css/Button.module.css')
| -rw-r--r-- | frontend/src/css/Button.module.css | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/frontend/src/css/Button.module.css b/frontend/src/css/Button.module.css new file mode 100644 index 0000000..d1c3ad7 --- /dev/null +++ b/frontend/src/css/Button.module.css | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | .default, .defaultWide, .sidebar, .logout { | ||
| 2 | border: none; | ||
| 3 | border-radius: 24px; | ||
| 4 | padding: 5px 10px; | ||
| 5 | background-color: #2b2e46; | ||
| 6 | font-family: BarlowSemiCondensed-Regular; | ||
| 7 | color: #CDCFDF; | ||
| 8 | font-size: 18px; | ||
| 9 | cursor: pointer; | ||
| 10 | transition: all 0.2s ease; | ||
| 11 | } | ||
| 12 | |||
| 13 | .sidebar.selected { | ||
| 14 | background-color: #202232; | ||
| 15 | } | ||
| 16 | |||
| 17 | .sidebar.selected:hover { | ||
| 18 | background-color: #202232; | ||
| 19 | } | ||
| 20 | |||
| 21 | .default:hover, .defaultWide:hover, .sidebar:hover { | ||
| 22 | background-color: rgb(38, 42, 62); | ||
| 23 | } | ||
| 24 | |||
| 25 | .defaultWide { | ||
| 26 | width: 100%; | ||
| 27 | } | ||
| 28 | |||
| 29 | .default.error, .defaultWide.error { | ||
| 30 | background-color: rgb(147, 45, 45); | ||
| 31 | } | ||
| 32 | |||
| 33 | .default.error:hover, .defaultWide.error { | ||
| 34 | background-color: rgb(105, 36, 36); | ||
| 35 | } | ||
| 36 | |||
| 37 | .sidebar { | ||
| 38 | display: flex; | ||
| 39 | width: 100%; | ||
| 40 | align-items: center; | ||
| 41 | font-family: BarlowSemiCondensed-Regular; | ||
| 42 | padding: 8px 12px; | ||
| 43 | height: 42px; | ||
| 44 | padding-right: 4px; | ||
| 45 | text-wrap: nowrap; | ||
| 46 | transition: all 0.2s ease; | ||
| 47 | } | ||
| 48 | |||
| 49 | .sidebar.min { | ||
| 50 | padding: 8px 9px; | ||
| 51 | } | ||
| 52 | |||
| 53 | .sidebar.min>span { | ||
| 54 | opacity: 0; | ||
| 55 | animation: sidebar_text_out 0.2s ease; | ||
| 56 | transform: translateX(-200px); | ||
| 57 | } | ||
| 58 | |||
| 59 | .sidebar img { | ||
| 60 | height: 24px; | ||
| 61 | } | ||
| 62 | |||
| 63 | .sidebar.profile>img { | ||
| 64 | border-radius: 24px; | ||
| 65 | } | ||
| 66 | |||
| 67 | .sidebar>span { | ||
| 68 | padding: 0px 8px; | ||
| 69 | transition: all 0.2s ease; | ||
| 70 | } | ||
| 71 | |||
| 72 | .logout { | ||
| 73 | background-color: #00000000; | ||
| 74 | display: flex; | ||
| 75 | align-items: center; | ||
| 76 | } | ||
| 77 | |||
| 78 | @keyframes sidebar_text_out { | ||
| 79 | 0% { | ||
| 80 | opacity: 1; | ||
| 81 | transform: translateX(0px); | ||
| 82 | } | ||
| 83 | 50% { | ||
| 84 | opacity: 0; | ||
| 85 | transform: translateX(0px); | ||
| 86 | } | ||
| 87 | 60%, 100% { | ||
| 88 | transform: translateX(-200px); | ||
| 89 | } | ||
| 90 | } | ||
| 91 | |||