diff --git a/css/icons.css b/css/icons.css index ee50b80..2249b6e 100644 --- a/css/icons.css +++ b/css/icons.css @@ -37,3 +37,8 @@ mask-image: url("/res/icons/chevron-first.svg"); transform: rotate(-90deg); } + +.ui.icon > .icon-settings { + -webkit-mask-image: url("/res/icons/settings.svg"); + mask-image: url("/res/icons/settings.svg"); +} diff --git a/css/index.css b/css/index.css index 64b7cc8..abc7604 100644 --- a/css/index.css +++ b/css/index.css @@ -20,6 +20,10 @@ body { overflow: clip; } +.invisible { + display: none !important; +} + .collapsible { background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); @@ -35,6 +39,10 @@ body { margin-bottom: 5px; } +.display-none { + display: none; +} + .collapsible:hover { background-color: #777; } @@ -64,6 +72,89 @@ body { cursor: auto; } +#page-overlay-wrapper { + position: fixed; + + display: flex; + align-items: center; + justify-content: center; + + top: 0; + left: 0; + bottom: 0; + right: 0; + + background-color: #fff6; + backdrop-filter: blur(5px); + + transition-duration: 50ms; + + z-index: 1000; +} + +.page-overlay-window { + display: flex; + flex-direction: column; + align-items: stretch; + + border-radius: 10px; + + color: var(--c-text); + + overflow: hidden; + + position: absolute; + + margin: auto; + + background-color: var(--c-primary); +} + +.page-overlay-window .close { + position: absolute; + + cursor: pointer; + + top: 0; + right: 0; + + margin: 5px; + + width: 25px; + height: 25px; + + -webkit-mask-image: url("/res/icons/x.svg"); + mask-image: url("/res/icons/x.svg"); + + background-color: var(--c-text); +} + +.page-overlay-window .close:hover { + transform: scale(1.1); +} + +.page-overlay-window .title { + padding: 10px; + padding-top: 7px; + + font-size: large; + font-weight: bold; + + margin: auto; + + background-color: var(--c-primary); +} + +#page-overlay { + border: 0; + + max-width: 300px; + max-height: 400px; + + width: 100%; + height: 100%; +} + /* Mask colors for mask inversion */ /* Filters are some magic acquired at https://codepen.io/sosuke/pen/Pjoqqp */ .mask-canvas { @@ -182,6 +273,31 @@ input#host { box-sizing: border-box; } +/* Settings button */ +.ui.icon.header-button { + padding: 0; + border: 0; + + cursor: pointer; + + background-color: transparent; +} + +.ui.icon.header-button > *:first-child { + background-color: black; + + -webkit-mask-size: contain; + mask-size: contain; + + width: 28px; + height: 28px; + transition-duration: 30ms; +} + +.ui.icon.header-button:hover > *:last-child { + transform: scale(1.1); +} + /* Prompt Fields */ div.prompt-wrapper { diff --git a/css/ui/generic.css b/css/ui/generic.css index a7c2271..7be86b1 100644 --- a/css/ui/generic.css +++ b/css/ui/generic.css @@ -7,15 +7,18 @@ } .floating-window-title { + display: flex; + align-items: center; + justify-content: center; + cursor: move; background-color: rgba(104, 104, 104, 0.75); user-select: none; - padding-left: 5px; - padding-right: 5px; - padding-top: 5px; - padding-bottom: 5px; + padding: 5px; + padding-left: 10px; + margin-bottom: auto; font-size: 1.5em; color: black; @@ -40,6 +43,8 @@ div.slider-wrapper { position: relative; height: 20px; border-radius: 5px; + + overflow-y: visible; } div.slider-wrapper * { @@ -95,6 +100,51 @@ div.slider-wrapper > input.text { background-color: transparent; } +/* Autocomplete Select */ +div.autocomplete { + border-radius: 5px; +} + +div.autocomplete > .autocomplete-text { + box-sizing: border-box; + + border-radius: 5px; + + width: 100%; +} + +div.autocomplete > .autocomplete-list { + position: absolute; + + background-color: white; + + overflow-y: auto; + + margin-top: 0; + margin-left: 0; + + max-height: 200px; + min-width: 100%; + max-width: 800px; + + width: fit-content; + z-index: 200; +} + +div.autocomplete > .autocomplete-list > .autocomplete-option { + cursor: pointer; + + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + + padding: 3px; +} + +div.autocomplete > .autocomplete-list > .autocomplete-option:hover { + background-color: #dddf; +} + /* Select Input */ select > option:checked::after { content: ""; diff --git a/index.html b/index.html index f425892..1b27704 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,10 @@ style="left: 10px; top: 10px">