diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-06 13:05:39 +0200 |
|---|---|---|
| committer | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-06 13:05:39 +0200 |
| commit | edff87fdf77b32fd03ee26892226068a53fbfaa6 (patch) | |
| tree | de6ed2b1acf0c39421983bebe9737e8a615a950d /frontend/src/css/Rankings.css | |
| parent | refactor: maplist page (diff) | |
| download | lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.tar.gz lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.tar.bz2 lphub-edff87fdf77b32fd03ee26892226068a53fbfaa6.zip | |
refactor: rankings page
Diffstat (limited to 'frontend/src/css/Rankings.css')
| -rw-r--r-- | frontend/src/css/Rankings.css | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/frontend/src/css/Rankings.css b/frontend/src/css/Rankings.css new file mode 100644 index 0000000..8e49ef9 --- /dev/null +++ b/frontend/src/css/Rankings.css | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | .nav-container { | ||
| 2 | justify-content: center; | ||
| 3 | display: flex; | ||
| 4 | } | ||
| 5 | |||
| 6 | .nav-container div { | ||
| 7 | display: flex; | ||
| 8 | width: 100%; | ||
| 9 | background-color: #202232; | ||
| 10 | margin-top: 20px; | ||
| 11 | border-radius: 2000px; | ||
| 12 | overflow: hidden; | ||
| 13 | gap: 3px; | ||
| 14 | } | ||
| 15 | |||
| 16 | .nav-container button { | ||
| 17 | background-color: #2B2E46; | ||
| 18 | color: inherit; | ||
| 19 | border: none; | ||
| 20 | font-family: inherit; | ||
| 21 | cursor: pointer; | ||
| 22 | display: flex; | ||
| 23 | width: 100%; | ||
| 24 | justify-content: center; | ||
| 25 | font-size: 26px; | ||
| 26 | padding: 10px 0px; | ||
| 27 | transition: all 0.1s; | ||
| 28 | } | ||
| 29 | |||
| 30 | .nav-container button:hover, .nav-container button.selected { | ||
| 31 | background-color: #202232; | ||
| 32 | } | ||
| 33 | |||
| 34 | .nav-1 div { | ||
| 35 | width: 65%; | ||
| 36 | } | ||
| 37 | |||
| 38 | .nav-2 div { | ||
| 39 | width: 80%; | ||
| 40 | } | ||
| 41 | |||
| 42 | .rankings-leaderboard { | ||
| 43 | width: 100%; | ||
| 44 | display: flex; | ||
| 45 | justify-content: center; | ||
| 46 | font-size: 20px; | ||
| 47 | align-items: center; | ||
| 48 | margin-top: 20px; | ||
| 49 | } | ||
| 50 | |||
| 51 | .ranks-container { | ||
| 52 | display: flex; | ||
| 53 | width: calc(60% - 20px); | ||
| 54 | padding: 8px 8px; | ||
| 55 | background-color: #202232; | ||
| 56 | border-radius: 32px; | ||
| 57 | flex-direction: column; | ||
| 58 | gap: 7px; | ||
| 59 | } | ||
| 60 | |||
| 61 | .leaderboard-entry { | ||
| 62 | display: grid; | ||
| 63 | grid-template-columns: 20% 40% 40%; | ||
| 64 | text-align: center; | ||
| 65 | align-items: center; | ||
| 66 | width: 100%; | ||
| 67 | background-color: #2B2E46; | ||
| 68 | border-radius: 2000px; | ||
| 69 | padding: 6px 0px; | ||
| 70 | } | ||
| 71 | |||
| 72 | .leaderboard-entry div:nth-child(2) { | ||
| 73 | text-align: left; | ||
| 74 | } | ||
| 75 | |||
| 76 | .leaderboard-entry div { | ||
| 77 | display: flex; | ||
| 78 | align-items: center; | ||
| 79 | } | ||
| 80 | |||
| 81 | .leaderboard-entry div span { | ||
| 82 | margin-left: 5px; | ||
| 83 | } | ||
| 84 | |||
| 85 | .leaderboard-entry img { | ||
| 86 | height: 34px; | ||
| 87 | border-radius: 2000px; | ||
| 88 | } | ||
| 89 | |||
| 90 | .leaderboard-entry.header { | ||
| 91 | background-color: rgba(0, 0, 0, 0); | ||
| 92 | font-family: "BarlowSemiCondensed-SemiBold"; | ||
| 93 | padding: 2px 0px; | ||
| 94 | } | ||
| 95 | |||
| 96 | .leaderboard-entry.header span:nth-child(2) { | ||
| 97 | text-align: left; | ||
| 98 | } | ||
| 99 | |||
| 100 | .ranks-container .splitter { | ||
| 101 | width: calc(100% - 20px); | ||
| 102 | display: flex; | ||
| 103 | height: 0.13em; | ||
| 104 | background-color: #b7b9c6; | ||
| 105 | border-radius: 200px; | ||
| 106 | transform: translateX(10px); | ||
| 107 | } | ||