From 76f6216501df11538923f8ad95f8b0659cba2ffb Mon Sep 17 00:00:00 2001 From: db-2001 Date: Sat, 3 Feb 2024 00:41:12 -0500 Subject: [PATCH] Initial commit Resized settings pop-up and fixed scrollable behavior, broke everything inside pop-up (on purpose) --- Website/index.html | 11 ++- Website/styles/style_default.css | 121 +++++++++++++++++++------------ 2 files changed, 83 insertions(+), 49 deletions(-) diff --git a/Website/index.html b/Website/index.html index e757319..d0b781f 100644 --- a/Website/index.html +++ b/Website/index.html @@ -56,7 +56,10 @@ - Settings + + Settings + × +

Download Location:

@@ -105,13 +108,13 @@
-
- -
+ + Apply Settings +
diff --git a/Website/styles/style_default.css b/Website/styles/style_default.css index f875cb4..618a9e1 100644 --- a/Website/styles/style_default.css +++ b/Website/styles/style_default.css @@ -2,7 +2,7 @@ --background-color: #030304; --second-background-color: #fff; --primary-color: #f5a9b8; - --secondary-color: #5bcefa; + --secondary-color: #5bcefa; --accent-color: #fff; --topbar-height: 60px; box-sizing: border-box; @@ -153,20 +153,6 @@ content { z-index: 300; } -#settingsPopup popup-content{ - flex-direction: column; - align-items: start; - margin: 15px 10px; -} - -#settingsPopup popup-content > * { - margin: 5px 10px; -} - -#settingsPopup popup-content .title { - font-weight: bolder; -} - #addPublication { cursor: pointer; background-color: var(--secondary-color); @@ -250,6 +236,7 @@ publication-name{ width: fit-content; font-size: 16pt; font-weight: bold; + color: white; } publication-status { @@ -337,49 +324,93 @@ popup{ flex-direction: column; } +titlebar { + display: flex; + flex-direction: row; + height: 30px; + background-color: var(--primary-color); + color: var(--accent-color); + font-weight: bolder; + padding: 5px 10px; + margin: 0; + align-items: center; + position: relative; +} + +popup-title { + font-size: 14pt; + display: flex; + margin-top: 3px; + margin-left: 5px; +} + +popup-close { + border: none; + background-color: inherit; + color: inherit; + font-weight: inherit; + font-size: 16px; + font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; + display: flex; + cursor: pointer; + margin-left: auto; + margin-right: 5; + height: 20px; + width: 20px; + border-radius: 10px; + align-content: center; + justify-content: center; +} + +popup-close:hover { + background-color: var(--secondary-color); +} + +apply-settings { + border-style: solid; + border-width: 2px; + background-color: var(--secondary-color); + color: var(--accent-color); + font-weight: inherit; + font-size: inherit; + font-family: inherit; + display: flex; + cursor: pointer; + margin-left: auto; + margin-right: -5px; + padding: 5px 20px; + border-radius: 20px; + height: 20px; + align-items: center; + border-color: var(--primary-color); +} + +apply-settings:hover { + border-color: var(--accent-color); +} popup popup-window { position: absolute; z-index: 3; - left: 25%; - top: 100px; - width: 50%; + left: 10%; + top: 10%; + height: 80%; + width: 80%; display: flex; flex-direction: column; background-color: var(--second-background-color); - border-radius: 3px; + border-radius: 15px; overflow: hidden; } -popup popup-window popup-title { - height: 30px; - font-size: 14pt; - font-weight: bolder; - padding: 5px 10px; - margin: 0; - display: flex; - align-items: center; - background-color: var(--primary-color); - color: var(--accent-color) -} - popup popup-window popup-content{ - margin: 15px 10px; display: flex; align-items: center; - justify-content: space-evenly; -} - -popup popup-window popup-content div > * { - margin: 2px 3px 0 0; -} - -popup popup-window popup-content input, select { - padding: 3px 4px; - width: 130px; - border: 1px solid lightgrey; - background-color: var(--accent-color); - border-radius: 3px; + height: calc(100% - 60px); + overflow-y: auto; + overflow-x: hidden; + scrollbar-width: thin; + scrollbar-color: var(--secondary-color) var(--accent-color); } #newMangaPopup > div {