From 607a7d04cb736fc5c16f2e0490fe362e0bf8831b Mon Sep 17 00:00:00 2001 From: AntoninoP Date: Thu, 18 Jul 2024 13:52:42 +0200 Subject: [PATCH] fix css --- .../ServerDetails/ServerDetails.module.scss | 176 ++++++++++-------- 1 file changed, 100 insertions(+), 76 deletions(-) diff --git a/src/pages/ServerDetails/ServerDetails.module.scss b/src/pages/ServerDetails/ServerDetails.module.scss index 81dcf6f..e23d9fd 100644 --- a/src/pages/ServerDetails/ServerDetails.module.scss +++ b/src/pages/ServerDetails/ServerDetails.module.scss @@ -1,83 +1,107 @@ -/* ServerDetails.module.scss */ .serverDetailsContainer { - padding-top: var(--navbar-height); - background-color: var(--main-bg-color); - display: flex; - flex-direction: column; - align-items: center; - color: var(--text-color); - } - + padding-top: var(--navbar-height); + background-color: var(--main-bg-color); + display: flex; + flex-direction: column; + align-items: center; + color: var(--text-color); + width: 100%; + box-sizing: border-box; +} + +.details { + margin-top: 5rem; + padding: 3rem; + padding-top: 0; + background-color: var(--card-bg-color); + width: 100%; + max-width: 60rem; + border-radius: 1rem; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + box-sizing: border-box; +} + +.formGroup { + margin-bottom: 2.5rem; + display: flex; + flex-direction: column; +} + +.formGroup label { + font-weight: bold; + margin-bottom: 1.2rem; + font-size: 1.4rem; +} + +.formGroup input, +.formGroup select { + width: 100%; + padding: 1.2rem; + height: 3.5rem; + background-color: var(--input-bg-color); + border: 1px solid var(--input-border-color); + border-radius: 0.5rem; + color: var(--text-color); + font-size: 1.2rem; + box-sizing: border-box; +} + +.saveButton, +.quitButton { + padding: 1.2rem 2.5rem; + color: var(--button-text-color); + border: none; + border-radius: 0.5rem; + cursor: pointer; + transition: background-color 0.3s; + font-size: 1.2rem; + margin-top: 1rem; +} + +.saveButton { + background-color: var(--button-bg-color); +} + +.quitButton { + background-color: gray; + margin-left: 1rem; +} + +.saveButton:hover { + background-color: var(--button-bg-hover-color); +} + +.error { + color: red; + font-size: 1.2rem; +} + +.details h1 { + font-size: 2.5rem; + margin-bottom: 3rem; +} + +@media (max-width: 768px) { .details { - margin-top: 5rem; - padding: 3rem; - padding-top: 0rem; - background-color: var(--card-bg-color); - width: 60rem; - border-radius: 1rem; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); - } - - .formGroup { - margin-bottom: 2.5rem; - display: flex; - flex-direction: column; - } - - .formGroup label { - font-weight: bold; - margin-bottom: 1.2rem; - font-size: 1.4rem; - } - - .formGroup input, - .formGroup select { - width: calc(100% - 2px); - padding: 1.2rem; - height: 3.5rem; - background-color: var(--input-bg-color); - border: 1px solid var(--input-border-color); - border-radius: 0.5rem; - color: var(--text-color); - font-size: 1.2rem; - box-sizing: border-box; - } - - .saveButton { - padding: 1.2rem 2.5rem; - background-color: var(--button-bg-color); - color: var(--button-text-color); - border: none; - border-radius: 0.5rem; - cursor: pointer; - transition: background-color 0.3s; - font-size: 1.2rem; - align-self: flex-start; - } - - .quitButton{ - padding: 1.2rem 2.5rem; - background-color: gray; - color: var(--button-text-color); - border: none; - border-radius: 0.5rem; - cursor: pointer; - transition: background-color 0.3s; - font-size: 1.2rem; - align-self: flex-start; - margin-left: 3rem; + width: 90%; + padding: 2rem; } - .saveButton:hover { - background-color: var(--button-bg-hover-color); + .formGroup input, + .formGroup select { + height: 3rem; + font-size: 1rem; + padding: 1rem; } - - .error { - color: red; - font-size: 1.2rem; + + .saveButton, + .quitButton { + padding: 1rem 2rem; + font-size: 1rem; } - + .details h1 { - font-size: 2.5rem; - margin-bottom: 3rem; - } \ No newline at end of file + font-size: 2rem; + margin-bottom: 2rem; + } +}