diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-10-26 13:29:53 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-26 12:29:53 +0300 |
| commit | d2470b157f84844539c34adfaf77548069f47bd0 (patch) | |
| tree | b537237557666d0a18155be1fa5436a04455cdc7 | |
| parent | feat/frontend: center hamburger close button (#284) (diff) | |
| download | lphub-d2470b157f84844539c34adfaf77548069f47bd0.tar.gz lphub-d2470b157f84844539c34adfaf77548069f47bd0.tar.bz2 lphub-d2470b157f84844539c34adfaf77548069f47bd0.zip | |
feat/frontend: tablet breakpoints (#285)
| -rw-r--r-- | frontend/src/App.css | 8 | ||||
| -rw-r--r-- | frontend/src/components/Sidebar.tsx | 20 | ||||
| -rw-r--r-- | frontend/src/components/Summary.tsx | 4 | ||||
| -rw-r--r-- | frontend/src/css/About.css | 17 | ||||
| -rw-r--r-- | frontend/src/css/Dialog.css | 25 | ||||
| -rw-r--r-- | frontend/src/css/Games.css | 41 | ||||
| -rw-r--r-- | frontend/src/css/Maplist.css | 37 | ||||
| -rw-r--r-- | frontend/src/css/Maps.css | 136 | ||||
| -rw-r--r-- | frontend/src/css/ModMenu.css | 63 | ||||
| -rw-r--r-- | frontend/src/css/Profile.css | 86 | ||||
| -rw-r--r-- | frontend/src/css/Rankings.css | 32 | ||||
| -rw-r--r-- | frontend/src/css/Rules.css | 6 | ||||
| -rw-r--r-- | frontend/src/css/Sidebar.css | 59 | ||||
| -rw-r--r-- | frontend/src/css/UploadRunDialog.css | 45 |
14 files changed, 567 insertions, 12 deletions
diff --git a/frontend/src/App.css b/frontend/src/App.css index 8325f87..96711f9 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css | |||
| @@ -94,6 +94,14 @@ body { | |||
| 94 | src: local('BarlowSemiCondensed-Regular'), url(./fonts/BarlowSemiCondensed-SemiBold.ttf) format('truetype'); | 94 | src: local('BarlowSemiCondensed-Regular'), url(./fonts/BarlowSemiCondensed-SemiBold.ttf) format('truetype'); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 98 | main { | ||
| 99 | width: calc(100% - 20rem); | ||
| 100 | left: 19rem; | ||
| 101 | font-size: 2rem; | ||
| 102 | } | ||
| 103 | } | ||
| 104 | |||
| 97 | @media screen and (max-width: 768px) { | 105 | @media screen and (max-width: 768px) { |
| 98 | * { | 106 | * { |
| 99 | box-sizing: border-box; | 107 | box-sizing: border-box; |
diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index c45ec27..0a7efa8 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx | |||
| @@ -60,7 +60,7 @@ const Sidebar: React.FC<SidebarProps> = ({ setToken, profile, setProfile, onUplo | |||
| 60 | setSidebarOpen(false); | 60 | setSidebarOpen(false); |
| 61 | side.style.width = "320px" | 61 | side.style.width = "320px" |
| 62 | btn.forEach((e, i) => { | 62 | btn.forEach((e, i) => { |
| 63 | e.style.width = "310px" | 63 | e.style.width = (window.innerWidth > 1024) ? "310px" : "265px" |
| 64 | e.style.padding = "0.4em 0 0 11px" | 64 | e.style.padding = "0.4em 0 0 11px" |
| 65 | setTimeout(() => { | 65 | setTimeout(() => { |
| 66 | span[i].style.opacity = "1" | 66 | span[i].style.opacity = "1" |
| @@ -225,15 +225,15 @@ const Sidebar: React.FC<SidebarProps> = ({ setToken, profile, setProfile, onUplo | |||
| 225 | </Link> | 225 | </Link> |
| 226 | ))} | 226 | ))} |
| 227 | {searchData?.players.map((q, index) => | 227 | {searchData?.players.map((q, index) => |
| 228 | ( | 228 | ( |
| 229 | <Link to={ | 229 | <Link to={ |
| 230 | profile && q.steam_id === profile.steam_id ? "/profile" : | 230 | profile && q.steam_id === profile.steam_id ? "/profile" : |
| 231 | `/users/${q.steam_id}` | 231 | `/users/${q.steam_id}` |
| 232 | } className='search-player' key={index} onClick={_close_mobile_search_and_menu}> | 232 | } className='search-player' key={index} onClick={_close_mobile_search_and_menu}> |
| 233 | <img src={q.avatar_link} alt='pfp'></img> | 233 | <img src={q.avatar_link} alt='pfp'></img> |
| 234 | <span style={{ fontSize: `${36 - q.user_name.length * 0.8}px` }}>{q.user_name}</span> | 234 | <span style={{ fontSize: `${36 - q.user_name.length * 0.8}px` }}>{q.user_name}</span> |
| 235 | </Link> | 235 | </Link> |
| 236 | ))} | 236 | ))} |
| 237 | 237 | ||
| 238 | </div> | 238 | </div> |
| 239 | </div> | 239 | </div> |
diff --git a/frontend/src/components/Summary.tsx b/frontend/src/components/Summary.tsx index 72b5bf0..922960b 100644 --- a/frontend/src/components/Summary.tsx +++ b/frontend/src/components/Summary.tsx | |||
| @@ -140,11 +140,11 @@ const Summary: React.FC<SummaryProps> = ({ selectedRun, setSelectedRun, data }) | |||
| 140 | <section id='section4' className='summary1'> | 140 | <section id='section4' className='summary1'> |
| 141 | <div id='difficulty'> | 141 | <div id='difficulty'> |
| 142 | <span>Difficulty</span> | 142 | <span>Difficulty</span> |
| 143 | {data.map.difficulty <= 2 && (<span style={{ color: "lime" }}>Very easy</span>)} | 143 | {data.map.difficulty <= 2 && (<span style={{ color: "lime" }}>Very Easy</span>)} |
| 144 | {data.map.difficulty > 2 && data.map.difficulty <= 4 && (<span style={{ color: "green" }}>Easy</span>)} | 144 | {data.map.difficulty > 2 && data.map.difficulty <= 4 && (<span style={{ color: "green" }}>Easy</span>)} |
| 145 | {data.map.difficulty > 4 && data.map.difficulty <= 6 && (<span style={{ color: "yellow" }}>Medium</span>)} | 145 | {data.map.difficulty > 4 && data.map.difficulty <= 6 && (<span style={{ color: "yellow" }}>Medium</span>)} |
| 146 | {data.map.difficulty > 6 && data.map.difficulty <= 8 && (<span style={{ color: "orange" }}>Hard</span>)} | 146 | {data.map.difficulty > 6 && data.map.difficulty <= 8 && (<span style={{ color: "orange" }}>Hard</span>)} |
| 147 | {data.map.difficulty > 8 && data.map.difficulty <= 10 && (<span style={{ color: "red" }}>Very hard</span>)} | 147 | {data.map.difficulty > 8 && data.map.difficulty <= 10 && (<span style={{ color: "red" }}>Very Hard</span>)} |
| 148 | <div> | 148 | <div> |
| 149 | {data.map.difficulty <= 2 ? (<div className='difficulty-rating' style={{ backgroundColor: "lime" }}></div>) : (<div className='difficulty-rating'></div>)} | 149 | {data.map.difficulty <= 2 ? (<div className='difficulty-rating' style={{ backgroundColor: "lime" }}></div>) : (<div className='difficulty-rating'></div>)} |
| 150 | {data.map.difficulty > 2 && data.map.difficulty <= 4 ? (<div className='difficulty-rating' style={{ backgroundColor: "green" }}></div>) : (<div className='difficulty-rating'></div>)} | 150 | {data.map.difficulty > 2 && data.map.difficulty <= 4 ? (<div className='difficulty-rating' style={{ backgroundColor: "green" }}></div>) : (<div className='difficulty-rating'></div>)} |
diff --git a/frontend/src/css/About.css b/frontend/src/css/About.css index c29e0bc..07454ca 100644 --- a/frontend/src/css/About.css +++ b/frontend/src/css/About.css | |||
| @@ -23,6 +23,23 @@ h2 { | |||
| 23 | font-size: 60px; | 23 | font-size: 60px; |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 27 | #about { | ||
| 28 | width: calc(100% - 340px); | ||
| 29 | left: 310px; | ||
| 30 | padding-right: 25px; | ||
| 31 | font-size: 22px; | ||
| 32 | } | ||
| 33 | |||
| 34 | h1 { | ||
| 35 | font-size: 68px; | ||
| 36 | } | ||
| 37 | |||
| 38 | h2 { | ||
| 39 | font-size: 52px; | ||
| 40 | } | ||
| 41 | } | ||
| 42 | |||
| 26 | @media screen and (max-width: 768px) { | 43 | @media screen and (max-width: 768px) { |
| 27 | #about { | 44 | #about { |
| 28 | width: 100%; | 45 | width: 100%; |
diff --git a/frontend/src/css/Dialog.css b/frontend/src/css/Dialog.css index d2f0528..1e03ca3 100644 --- a/frontend/src/css/Dialog.css +++ b/frontend/src/css/Dialog.css | |||
| @@ -95,6 +95,31 @@ | |||
| 95 | } | 95 | } |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 99 | .dialog-container { | ||
| 100 | left: -280px; | ||
| 101 | } | ||
| 102 | |||
| 103 | .dialog { | ||
| 104 | min-width: 380px; | ||
| 105 | max-width: 500px; | ||
| 106 | } | ||
| 107 | |||
| 108 | .dialog-header { | ||
| 109 | font-size: 22px; | ||
| 110 | } | ||
| 111 | |||
| 112 | .dialog-description { | ||
| 113 | font-size: 17px; | ||
| 114 | padding: 13px 9px; | ||
| 115 | } | ||
| 116 | |||
| 117 | .dialog-btns-container button { | ||
| 118 | padding: 6px 12px; | ||
| 119 | font-size: 17px; | ||
| 120 | } | ||
| 121 | } | ||
| 122 | |||
| 98 | @media screen and (max-width: 768px) { | 123 | @media screen and (max-width: 768px) { |
| 99 | .dialog-container { | 124 | .dialog-container { |
| 100 | left: 0; | 125 | left: 0; |
diff --git a/frontend/src/css/Games.css b/frontend/src/css/Games.css index 2fe5efa..9b1780c 100644 --- a/frontend/src/css/Games.css +++ b/frontend/src/css/Games.css | |||
| @@ -98,6 +98,47 @@ span>b { | |||
| 98 | font-family: BarlowCondensed-Bold; | 98 | font-family: BarlowCondensed-Bold; |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 102 | .games-page { | ||
| 103 | left: 280px; | ||
| 104 | width: calc(100% - 280px); | ||
| 105 | } | ||
| 106 | |||
| 107 | .games-page-item-content { | ||
| 108 | left: 40px; | ||
| 109 | width: calc(100% - 80px); | ||
| 110 | } | ||
| 111 | |||
| 112 | .games-page-header { | ||
| 113 | margin-top: 40px; | ||
| 114 | margin-left: 40px; | ||
| 115 | } | ||
| 116 | |||
| 117 | span>b { | ||
| 118 | font-size: 48px; | ||
| 119 | } | ||
| 120 | |||
| 121 | .games-page-item { | ||
| 122 | height: 220px; | ||
| 123 | } | ||
| 124 | |||
| 125 | .games-page-item-header { | ||
| 126 | height: 45%; | ||
| 127 | } | ||
| 128 | |||
| 129 | .games-page-item-body-item { | ||
| 130 | height: 90px; | ||
| 131 | } | ||
| 132 | |||
| 133 | .games-page-item-body-item-title { | ||
| 134 | font-size: 22px; | ||
| 135 | } | ||
| 136 | |||
| 137 | .games-page-item-body-item-num { | ||
| 138 | font-size: 44px; | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 101 | @media screen and (max-width: 768px) { | 142 | @media screen and (max-width: 768px) { |
| 102 | .games-page { | 143 | .games-page { |
| 103 | left: 0; | 144 | left: 0; |
diff --git a/frontend/src/css/Maplist.css b/frontend/src/css/Maplist.css index 65c3a28..612c0a5 100644 --- a/frontend/src/css/Maplist.css +++ b/frontend/src/css/Maplist.css | |||
| @@ -198,6 +198,43 @@ h3 { | |||
| 198 | } | 198 | } |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 202 | h1 { | ||
| 203 | font-size: 48px; | ||
| 204 | } | ||
| 205 | |||
| 206 | h3 { | ||
| 207 | font-size: 36px; | ||
| 208 | margin: 0px 8px; | ||
| 209 | } | ||
| 210 | |||
| 211 | .portal-count { | ||
| 212 | font-size: 80px; | ||
| 213 | } | ||
| 214 | |||
| 215 | .blur.map span:nth-child(1) { | ||
| 216 | font-size: 50px; | ||
| 217 | } | ||
| 218 | |||
| 219 | .game-cat-button { | ||
| 220 | font-size: 20px; | ||
| 221 | } | ||
| 222 | |||
| 223 | .maplist { | ||
| 224 | grid-template-columns: repeat(2, 1fr); | ||
| 225 | grid-gap: 18px; | ||
| 226 | margin: 18px 0px; | ||
| 227 | } | ||
| 228 | |||
| 229 | .maplist-entry span { | ||
| 230 | font-size: 18px; | ||
| 231 | } | ||
| 232 | |||
| 233 | .map-entry-image { | ||
| 234 | height: 180px; | ||
| 235 | } | ||
| 236 | } | ||
| 237 | |||
| 201 | @media screen and (max-width: 768px) { | 238 | @media screen and (max-width: 768px) { |
| 202 | h1 { | 239 | h1 { |
| 203 | font-size: 36px; | 240 | font-size: 36px; |
diff --git a/frontend/src/css/Maps.css b/frontend/src/css/Maps.css index 66e11c7..14eed05 100644 --- a/frontend/src/css/Maps.css +++ b/frontend/src/css/Maps.css | |||
| @@ -477,6 +477,7 @@ p>span.portal-count { | |||
| 477 | border: 0; | 477 | border: 0; |
| 478 | transition: background-color .1s; | 478 | transition: background-color .1s; |
| 479 | background-color: #2b2e46; | 479 | background-color: #2b2e46; |
| 480 | box-sizing: border-box; | ||
| 480 | } | 481 | } |
| 481 | 482 | ||
| 482 | .leaderboard-record>span:nth-child(1) { | 483 | .leaderboard-record>span:nth-child(1) { |
| @@ -508,12 +509,19 @@ p>span.portal-count { | |||
| 508 | display: grid; | 509 | display: grid; |
| 509 | grid-template-columns: 50% 50%; | 510 | grid-template-columns: 50% 50%; |
| 510 | place-items: left; | 511 | place-items: left; |
| 512 | box-sizing: border-box; | ||
| 513 | min-width: 0; | ||
| 514 | overflow: hidden; | ||
| 511 | } | 515 | } |
| 512 | 516 | ||
| 513 | .leaderboard-record>div>a>span { | 517 | .leaderboard-record>div>a>span { |
| 514 | display: flex; | 518 | display: flex; |
| 515 | place-items: center; | 519 | place-items: center; |
| 516 | height: 44px; | 520 | height: 44px; |
| 521 | min-width: 0; | ||
| 522 | overflow: hidden; | ||
| 523 | text-overflow: ellipsis; | ||
| 524 | white-space: nowrap; | ||
| 517 | } | 525 | } |
| 518 | 526 | ||
| 519 | .leaderboard-record>span>button { | 527 | .leaderboard-record>span>button { |
| @@ -858,6 +866,134 @@ p>span.portal-count { | |||
| 858 | border-bottom: 7px solid transparent; | 866 | border-bottom: 7px solid transparent; |
| 859 | } | 867 | } |
| 860 | 868 | ||
| 869 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 870 | #section1 { | ||
| 871 | margin: 18px 0 0 0; | ||
| 872 | } | ||
| 873 | |||
| 874 | .nav-button { | ||
| 875 | height: 38px; | ||
| 876 | font-size: 17px; | ||
| 877 | } | ||
| 878 | |||
| 879 | #section2 { | ||
| 880 | margin: 36px 0 0 0; | ||
| 881 | gap: 2px; | ||
| 882 | } | ||
| 883 | |||
| 884 | #section2>.nav-button { | ||
| 885 | height: 45px; | ||
| 886 | font-size: 20px; | ||
| 887 | } | ||
| 888 | |||
| 889 | #section3 { | ||
| 890 | margin: 36px 0 0 0; | ||
| 891 | grid-template-columns: 1fr; | ||
| 892 | gap: 18px; | ||
| 893 | } | ||
| 894 | |||
| 895 | #category { | ||
| 896 | height: 320px; | ||
| 897 | width: 100%; | ||
| 898 | max-width: 100%; | ||
| 899 | } | ||
| 900 | |||
| 901 | #category>p { | ||
| 902 | font-size: 44px; | ||
| 903 | } | ||
| 904 | |||
| 905 | p>span.portal-count { | ||
| 906 | font-size: 88px; | ||
| 907 | } | ||
| 908 | |||
| 909 | #history { | ||
| 910 | width: 100%; | ||
| 911 | max-width: 100%; | ||
| 912 | } | ||
| 913 | |||
| 914 | #records { | ||
| 915 | height: 232px; | ||
| 916 | } | ||
| 917 | |||
| 918 | .record-top, | ||
| 919 | .record { | ||
| 920 | font-size: 17px; | ||
| 921 | } | ||
| 922 | |||
| 923 | #section4 { | ||
| 924 | grid-template-columns: 1fr 1fr; | ||
| 925 | gap: 18px; | ||
| 926 | margin: 36px 0 0 0; | ||
| 927 | } | ||
| 928 | |||
| 929 | #difficulty>span:nth-child(2) { | ||
| 930 | font-size: 36px; | ||
| 931 | } | ||
| 932 | |||
| 933 | #count>div { | ||
| 934 | font-size: 44px; | ||
| 935 | } | ||
| 936 | |||
| 937 | #section5 { | ||
| 938 | margin: 36px 0 18px 0; | ||
| 939 | } | ||
| 940 | |||
| 941 | #description { | ||
| 942 | min-height: 300px; | ||
| 943 | } | ||
| 944 | |||
| 945 | #description>iframe { | ||
| 946 | width: 100%; | ||
| 947 | max-width: 100%; | ||
| 948 | height: 250px; | ||
| 949 | margin: 20px 0; | ||
| 950 | padding: 0; | ||
| 951 | box-sizing: border-box; | ||
| 952 | } | ||
| 953 | |||
| 954 | #description>h3 { | ||
| 955 | font-size: 2.2rem; | ||
| 956 | } | ||
| 957 | |||
| 958 | #description-text { | ||
| 959 | font-size: 19px; | ||
| 960 | } | ||
| 961 | |||
| 962 | #section6 { | ||
| 963 | margin: 36px 0 18px 0; | ||
| 964 | min-height: 540px; | ||
| 965 | } | ||
| 966 | |||
| 967 | #leaderboard-top { | ||
| 968 | font-size: 18px; | ||
| 969 | padding-left: 50px; | ||
| 970 | } | ||
| 971 | |||
| 972 | .leaderboard-record { | ||
| 973 | font-size: 18px; | ||
| 974 | padding: 0 0 0 50px; | ||
| 975 | grid-template-columns: 4% 5% 38% 5% 4% 14% 14% 16%; | ||
| 976 | } | ||
| 977 | |||
| 978 | .leaderboard-record>div>a>span>img { | ||
| 979 | height: 32px; | ||
| 980 | } | ||
| 981 | |||
| 982 | #section7 { | ||
| 983 | margin: 36px 0 18px 0; | ||
| 984 | } | ||
| 985 | |||
| 986 | #discussion-search>input, | ||
| 987 | #discussion-send>input { | ||
| 988 | font-size: 18px; | ||
| 989 | } | ||
| 990 | |||
| 991 | #discussion-thread>div:nth-child(2) { | ||
| 992 | font-size: 18px; | ||
| 993 | max-height: 460px; | ||
| 994 | } | ||
| 995 | } | ||
| 996 | |||
| 861 | @media screen and (max-width: 1480px) { | 997 | @media screen and (max-width: 1480px) { |
| 862 | #section3.summary1 { | 998 | #section3.summary1 { |
| 863 | grid-template-columns: auto; | 999 | grid-template-columns: auto; |
diff --git a/frontend/src/css/ModMenu.css b/frontend/src/css/ModMenu.css index f09a4b0..d6cdc27 100644 --- a/frontend/src/css/ModMenu.css +++ b/frontend/src/css/ModMenu.css | |||
| @@ -141,6 +141,69 @@ div#modview>div:nth-child(2) { | |||
| 141 | font-size: 21px; | 141 | font-size: 21px; |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 145 | #modview_block { | ||
| 146 | left: 280px; | ||
| 147 | width: calc(100% - 280px); | ||
| 148 | } | ||
| 149 | |||
| 150 | #modview-menu { | ||
| 151 | left: calc(50% + 140px); | ||
| 152 | top: 100px; | ||
| 153 | } | ||
| 154 | |||
| 155 | #modview-menu-image { | ||
| 156 | grid-template-columns: 1fr; | ||
| 157 | } | ||
| 158 | |||
| 159 | #modview-menu-image>div:nth-child(1), | ||
| 160 | #modview-menu-image>div:nth-child(2) { | ||
| 161 | width: 450px; | ||
| 162 | height: auto; | ||
| 163 | } | ||
| 164 | |||
| 165 | #modview-menu-image>div>img { | ||
| 166 | width: 450px; | ||
| 167 | } | ||
| 168 | |||
| 169 | #modview-menu-image>div>button { | ||
| 170 | width: 280px; | ||
| 171 | margin-left: 85px; | ||
| 172 | font-size: 18px; | ||
| 173 | } | ||
| 174 | |||
| 175 | #modview-menu-add, | ||
| 176 | #modview-menu-edit { | ||
| 177 | grid-template-columns: 1fr 1fr 1fr; | ||
| 178 | font-size: 36px; | ||
| 179 | } | ||
| 180 | |||
| 181 | #modview-menu-add>div, | ||
| 182 | #modview-menu-edit>div { | ||
| 183 | width: 180px; | ||
| 184 | font-size: 18px; | ||
| 185 | } | ||
| 186 | |||
| 187 | #modview-route-description>textarea { | ||
| 188 | width: 680px; | ||
| 189 | height: 140px; | ||
| 190 | } | ||
| 191 | |||
| 192 | #modview-md { | ||
| 193 | width: 700px; | ||
| 194 | height: 260px; | ||
| 195 | top: 380px; | ||
| 196 | } | ||
| 197 | |||
| 198 | #modview-md>p { | ||
| 199 | font-size: 19px; | ||
| 200 | } | ||
| 201 | |||
| 202 | div#modview { | ||
| 203 | width: 280px; | ||
| 204 | } | ||
| 205 | } | ||
| 206 | |||
| 144 | @media screen and (max-width: 768px) { | 207 | @media screen and (max-width: 768px) { |
| 145 | #modview_block { | 208 | #modview_block { |
| 146 | left: 0; | 209 | left: 0; |
diff --git a/frontend/src/css/Profile.css b/frontend/src/css/Profile.css index ccf88f4..26e2eb8 100644 --- a/frontend/src/css/Profile.css +++ b/frontend/src/css/Profile.css | |||
| @@ -288,6 +288,92 @@ span.titles { | |||
| 288 | cursor: pointer; | 288 | cursor: pointer; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 292 | #section1.profile { | ||
| 293 | margin: 18px; | ||
| 294 | grid-template-columns: 220px 1fr; | ||
| 295 | height: 180px; | ||
| 296 | } | ||
| 297 | |||
| 298 | #section1.profile>div:first-child { | ||
| 299 | margin: 6px 28px 6px 28px; | ||
| 300 | scale: 0.85; | ||
| 301 | } | ||
| 302 | |||
| 303 | #profile-top { | ||
| 304 | height: 90px; | ||
| 305 | grid-template-columns: 75% 25%; | ||
| 306 | } | ||
| 307 | |||
| 308 | #profile-top>div:nth-child(1) { | ||
| 309 | font-size: 44px; | ||
| 310 | } | ||
| 311 | |||
| 312 | #profile-top>div:nth-child(1)>div>img { | ||
| 313 | margin: 10px; | ||
| 314 | } | ||
| 315 | |||
| 316 | span.titles { | ||
| 317 | margin: 10px 10px 10px 0; | ||
| 318 | font-size: 16px; | ||
| 319 | padding: 5px 16px 0px 16px; | ||
| 320 | } | ||
| 321 | |||
| 322 | #profile-top>div:nth-child(2)>a>img { | ||
| 323 | height: 44px; | ||
| 324 | } | ||
| 325 | |||
| 326 | #profile-bottom { | ||
| 327 | height: 90px; | ||
| 328 | } | ||
| 329 | |||
| 330 | #profile-bottom>div>span:nth-child(1) { | ||
| 331 | font-size: 16px; | ||
| 332 | } | ||
| 333 | |||
| 334 | #profile-bottom>div>span:nth-child(2) { | ||
| 335 | font-size: 24px; | ||
| 336 | } | ||
| 337 | |||
| 338 | #profile-bottom>div>span:nth-child(2)>span { | ||
| 339 | font-size: 12px; | ||
| 340 | } | ||
| 341 | |||
| 342 | #section2.profile { | ||
| 343 | margin: 18px; | ||
| 344 | height: 55px; | ||
| 345 | } | ||
| 346 | |||
| 347 | #section2.profile>button { | ||
| 348 | font-size: 22px; | ||
| 349 | } | ||
| 350 | |||
| 351 | #section3.profile1 { | ||
| 352 | margin: 18px; | ||
| 353 | } | ||
| 354 | |||
| 355 | #profileboard-nav>select { | ||
| 356 | margin: 10px 18px 18px 18px; | ||
| 357 | height: 48px; | ||
| 358 | font-size: 22px; | ||
| 359 | } | ||
| 360 | |||
| 361 | #profileboard-top { | ||
| 362 | font-size: 18px; | ||
| 363 | padding-left: 35px; | ||
| 364 | margin: 0 18px; | ||
| 365 | grid-template-columns: 16% 16% 5% 16% 5% 14% 14% 14%; | ||
| 366 | } | ||
| 367 | |||
| 368 | .profileboard-record { | ||
| 369 | margin: 10px 18px 0px 18px; | ||
| 370 | width: calc(100% - 36px); | ||
| 371 | padding: 0 0 0 35px; | ||
| 372 | font-size: 18px; | ||
| 373 | grid-template-columns: 16% 16% 5% 16% 5% 14% 14% 14%; | ||
| 374 | } | ||
| 375 | } | ||
| 376 | |||
| 291 | @media screen and (max-width: 768px) { | 377 | @media screen and (max-width: 768px) { |
| 292 | * { | 378 | * { |
| 293 | box-sizing: border-box; | 379 | box-sizing: border-box; |
diff --git a/frontend/src/css/Rankings.css b/frontend/src/css/Rankings.css index b644ecd..ac1be93 100644 --- a/frontend/src/css/Rankings.css +++ b/frontend/src/css/Rankings.css | |||
| @@ -107,6 +107,38 @@ | |||
| 107 | transform: translateX(10px); | 107 | transform: translateX(10px); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 111 | .nav-container button { | ||
| 112 | font-size: 23px; | ||
| 113 | padding: 9px 0px; | ||
| 114 | } | ||
| 115 | |||
| 116 | .nav-1 div { | ||
| 117 | width: 70%; | ||
| 118 | } | ||
| 119 | |||
| 120 | .nav-2 div { | ||
| 121 | width: 82%; | ||
| 122 | } | ||
| 123 | |||
| 124 | .rankings-leaderboard { | ||
| 125 | font-size: 18px; | ||
| 126 | } | ||
| 127 | |||
| 128 | .ranks-container { | ||
| 129 | width: calc(70% - 20px); | ||
| 130 | } | ||
| 131 | |||
| 132 | .leaderboard-entry { | ||
| 133 | grid-template-columns: 18% 42% 40%; | ||
| 134 | font-size: 16px; | ||
| 135 | } | ||
| 136 | |||
| 137 | .leaderboard-entry img { | ||
| 138 | height: 30px; | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 110 | @media screen and (max-width: 768px) { | 142 | @media screen and (max-width: 768px) { |
| 111 | 143 | ||
| 112 | .nav-1 div, | 144 | .nav-1 div, |
diff --git a/frontend/src/css/Rules.css b/frontend/src/css/Rules.css index b7807cf..b066f02 100644 --- a/frontend/src/css/Rules.css +++ b/frontend/src/css/Rules.css | |||
| @@ -2,6 +2,12 @@ main { | |||
| 2 | font-size: 24px; | 2 | font-size: 24px; |
| 3 | } | 3 | } |
| 4 | 4 | ||
| 5 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 6 | main { | ||
| 7 | font-size: 22px; | ||
| 8 | } | ||
| 9 | } | ||
| 10 | |||
| 5 | @media screen and (max-width: 768px) { | 11 | @media screen and (max-width: 768px) { |
| 6 | main { | 12 | main { |
| 7 | font-size: 18px; | 13 | font-size: 18px; |
diff --git a/frontend/src/css/Sidebar.css b/frontend/src/css/Sidebar.css index 36ceb9c..413f32d 100644 --- a/frontend/src/css/Sidebar.css +++ b/frontend/src/css/Sidebar.css | |||
| @@ -308,6 +308,65 @@ a { | |||
| 308 | display: none; | 308 | display: none; |
| 309 | } | 309 | } |
| 310 | 310 | ||
| 311 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 312 | #sidebar { | ||
| 313 | width: 280px; | ||
| 314 | } | ||
| 315 | |||
| 316 | #logo-text { | ||
| 317 | font-size: 30px; | ||
| 318 | line-height: 32px; | ||
| 319 | } | ||
| 320 | |||
| 321 | #logo-text>span>b { | ||
| 322 | font-size: 50px; | ||
| 323 | } | ||
| 324 | |||
| 325 | .sidebar-button, | ||
| 326 | .logout-button, | ||
| 327 | .submit-run-button { | ||
| 328 | width: 265px; | ||
| 329 | height: 40px; | ||
| 330 | } | ||
| 331 | |||
| 332 | input#searchbar[type=text] { | ||
| 333 | width: 200px; | ||
| 334 | height: 28px; | ||
| 335 | font-size: 18px; | ||
| 336 | } | ||
| 337 | |||
| 338 | #search-data { | ||
| 339 | max-height: calc(100vh - 172px); | ||
| 340 | } | ||
| 341 | |||
| 342 | .search-map, | ||
| 343 | .search-player { | ||
| 344 | width: calc(100% - 50px); | ||
| 345 | height: 75px; | ||
| 346 | margin: 9px 6px 0 6px; | ||
| 347 | } | ||
| 348 | |||
| 349 | .search-map>span { | ||
| 350 | font-size: 15px; | ||
| 351 | } | ||
| 352 | |||
| 353 | .search-map>span:nth-child(3) { | ||
| 354 | font-size: 26px; | ||
| 355 | } | ||
| 356 | |||
| 357 | .search-player { | ||
| 358 | padding: 0 14px; | ||
| 359 | } | ||
| 360 | |||
| 361 | .search-player>img { | ||
| 362 | height: 55px; | ||
| 363 | } | ||
| 364 | |||
| 365 | .search-player>span { | ||
| 366 | font-size: 23px; | ||
| 367 | } | ||
| 368 | } | ||
| 369 | |||
| 311 | @media screen and (max-width: 768px) { | 370 | @media screen and (max-width: 768px) { |
| 312 | 371 | ||
| 313 | #sidebar { | 372 | #sidebar { |
diff --git a/frontend/src/css/UploadRunDialog.css b/frontend/src/css/UploadRunDialog.css index 56c2080..0237521 100644 --- a/frontend/src/css/UploadRunDialog.css +++ b/frontend/src/css/UploadRunDialog.css | |||
| @@ -165,6 +165,51 @@ button:hover { | |||
| 165 | align-items: flex-start; | 165 | align-items: flex-start; |
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | @media screen and (min-width: 769px) and (max-width: 1024px) { | ||
| 169 | div#upload-run { | ||
| 170 | width: 280px; | ||
| 171 | } | ||
| 172 | |||
| 173 | #upload-run-menu { | ||
| 174 | left: calc(50% + 140px); | ||
| 175 | top: 100px; | ||
| 176 | } | ||
| 177 | |||
| 178 | #upload-run-menu-add, | ||
| 179 | #upload-run-menu-edit { | ||
| 180 | font-size: 36px; | ||
| 181 | } | ||
| 182 | |||
| 183 | #upload-run-menu-add>div, | ||
| 184 | #upload-run-menu-edit>div { | ||
| 185 | font-size: 19px; | ||
| 186 | padding: 0px 13px; | ||
| 187 | } | ||
| 188 | |||
| 189 | .upload-run-dropdown-container .dropdown-cur { | ||
| 190 | width: 220px; | ||
| 191 | } | ||
| 192 | |||
| 193 | .upload-run-dropdown { | ||
| 194 | width: 240px; | ||
| 195 | max-height: 280px; | ||
| 196 | } | ||
| 197 | |||
| 198 | .upload-run-demo-name { | ||
| 199 | width: 350px; | ||
| 200 | } | ||
| 201 | |||
| 202 | .upload-run-drag-area { | ||
| 203 | width: 340px; | ||
| 204 | height: 140px; | ||
| 205 | } | ||
| 206 | |||
| 207 | button, | ||
| 208 | input { | ||
| 209 | font-size: 17px; | ||
| 210 | } | ||
| 211 | } | ||
| 212 | |||
| 168 | @media screen and (max-width: 768px) { | 213 | @media screen and (max-width: 768px) { |
| 169 | div#upload-run { | 214 | div#upload-run { |
| 170 | width: 90vw; | 215 | width: 90vw; |