diff --git a/webui/css/style.css b/webui/css/style.css index 5cbd621..2e4a642 100644 --- a/webui/css/style.css +++ b/webui/css/style.css @@ -8361,8 +8361,8 @@ body { .main-container .app-controls, .main-container .device-controls, .main-container .key-entries-controls { - display: grid; - grid-template-columns: repeat(3, 1fr); + display: flex; + flex-wrap: wrap; gap: 10px; margin-bottom: 10px; } diff --git a/webui/css/style.min.css b/webui/css/style.min.css index bb969c0..261c849 100644 --- a/webui/css/style.min.css +++ b/webui/css/style.min.css @@ -6,4 +6,4 @@ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2023 Fonticons, Inc. - */:root,:host{--fa-style-family-classic: "Font Awesome 6 Free";--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url("../webfonts/fa-solid-900.woff2") format("woff2"),url("../webfonts/fa-solid-900.ttf") format("truetype")}.fas,.fa-solid{font-weight:900}:root{font-family:monospace;user-select:none}body{margin:10px;background-color:#faebd7}.hidden{display:none !important}.invisible{visibility:hidden !important}.button{cursor:pointer}.main-container{display:flex;flex-direction:column;align-items:center}.main-container .key-entries{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px;margin-bottom:5px;padding:5px;max-height:320px;overflow:hidden}.main-container .key-entries .key-container{display:grid;grid-template-rows:max-content 1fr max-content;width:100px;height:100px;border-top:1px solid rgba(128,128,128,.7490196078);border-left:1px solid rgba(128,128,128,.7490196078);border-radius:10px;box-sizing:border-box;box-shadow:3px 3px 2px 1px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container.blank{background-color:rgba(0,0,0,0) !important}.main-container .key-entries .key-container .key-type-icon{grid-row:1;cursor:help;background-color:#faebd7;border-radius:10px 0 10px 0;padding:0 2px 0 0;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-handle{justify-self:end;grid-row:1;cursor:grab;background-color:#faebd7;border-radius:0 10px 0 10px;padding:0 0 0 2px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container.blank .key-label{display:none}.main-container .key-entries .key-container .key-label{grid-row:2;grid-column:1/3;justify-self:center;align-self:center;font-weight:bold;word-break:break-all;background-color:#faebd7;border-radius:10px;padding:2px 6px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-controls{display:flex;grid-row:3;grid-column:1/3;justify-self:end;background-color:#faebd7;border-radius:10px 0 10px 0;padding:2px 0 0 2px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-type-icon,.main-container .key-entries .key-container .button{width:22px;height:22px;display:flex;justify-content:center;align-items:center}.main-container .key-entries .key-container.blank .button.delete{display:none}.main-container .key-entries .key-container.blank .button.open,.main-container .key-entries .key-container.macro .button.open{display:none}.main-container .key-entries .key-container:nth-child(9n){margin-bottom:50px}.main-container .app-controls,.main-container .device-controls,.main-container .key-entries-controls{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px;margin-bottom:10px}.main-container .app-controls .button,.main-container .app-controls .info,.main-container .device-controls .button,.main-container .device-controls .info,.main-container .key-entries-controls .button,.main-container .key-entries-controls .info{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100px;height:50px;box-sizing:border-box;align-self:flex-end;user-select:none;word-break:break-word}.main-container .app-controls .button,.main-container .device-controls .button,.main-container .key-entries-controls .button{background-color:#03a9f4;border:1px solid gray}.dialog-container{position:absolute;top:0;left:0;height:100%;width:100%}.dialog-container .dialog{display:grid;grid-auto-columns:auto 40px;column-gap:4px;position:absolute;width:fit-content;min-width:320px;background-color:#fff;border:1px solid rgba(128,128,128,.7490196078);border-radius:4px;box-sizing:border-box;box-shadow:5px 5px 4px 2px rgba(128,128,128,.7490196078);overflow:auto}.dialog-container .dialog .dialog-header{grid-row:1;grid-column:1/3;display:grid;align-items:center;justify-content:center;height:40px;background-color:#505050;color:#fff;font-weight:bold;font-size:large;cursor:move}.dialog-container .dialog .dialog-inputs{grid-row:2;grid-column:1/3;display:grid;align-items:start;row-gap:4px;margin-left:4px;margin-top:4px}.dialog-container .dialog .dialog-inputs .dialog-type-input,.dialog-container .dialog .dialog-inputs .dialog-label-input{margin-right:44px}.dialog-container .dialog .dialog-inputs .dialog-details summary{cursor:pointer}.dialog-container .dialog .dialog-inputs .dialog-macros{display:grid;grid-template-columns:1fr 40px;gap:4px}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable{display:grid;gap:4px;background-color:#fff;border:1px solid gray;box-sizing:border-box;padding:4px;max-height:174px;overflow:auto}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container{display:flex;gap:4px;align-items:center;height:30px;padding:4px;background-color:#cddc39;border:1px solid gray;border-radius:5px;box-sizing:border-box}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container .macro-entry-handle{cursor:grab}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container .macro-entry-additionals{margin:0 0 0 auto;cursor:pointer}.dialog-container .dialog.blank .dialog-inputs .dialog-label,.dialog-container .dialog.blank .dialog-inputs .dialog-color,.dialog-container .dialog.blank .dialog-inputs .dialog-content,.dialog-container .dialog.blank .dialog-inputs .dialog-encoder,.dialog-container .dialog.group .dialog-inputs .dialog-content,.dialog-container .dialog.macro .dialog-inputs .dialog-encoder{display:none}.dialog-container .dialog .dialog-button{display:flex;justify-content:center;align-items:center;width:40px;height:40px;background-color:#fff;border:1px solid gray;box-sizing:border-box;cursor:pointer}.dialog-container .dialog .dialog-button.close{grid-row:1;grid-column:2;background-color:#f08080}.dialog-container .dialog .dialog-button.ok{grid-row:3;grid-column:2;background-color:#03a9f4;margin-top:4px} \ No newline at end of file + */:root,:host{--fa-style-family-classic: "Font Awesome 6 Free";--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url("../webfonts/fa-solid-900.woff2") format("woff2"),url("../webfonts/fa-solid-900.ttf") format("truetype")}.fas,.fa-solid{font-weight:900}:root{font-family:monospace;user-select:none}body{margin:10px;background-color:#faebd7}.hidden{display:none !important}.invisible{visibility:hidden !important}.button{cursor:pointer}.main-container{display:flex;flex-direction:column;align-items:center}.main-container .key-entries{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px;margin-bottom:5px;padding:5px;max-height:320px;overflow:hidden}.main-container .key-entries .key-container{display:grid;grid-template-rows:max-content 1fr max-content;width:100px;height:100px;border-top:1px solid rgba(128,128,128,.7490196078);border-left:1px solid rgba(128,128,128,.7490196078);border-radius:10px;box-sizing:border-box;box-shadow:3px 3px 2px 1px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container.blank{background-color:rgba(0,0,0,0) !important}.main-container .key-entries .key-container .key-type-icon{grid-row:1;cursor:help;background-color:#faebd7;border-radius:10px 0 10px 0;padding:0 2px 0 0;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-handle{justify-self:end;grid-row:1;cursor:grab;background-color:#faebd7;border-radius:0 10px 0 10px;padding:0 0 0 2px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container.blank .key-label{display:none}.main-container .key-entries .key-container .key-label{grid-row:2;grid-column:1/3;justify-self:center;align-self:center;font-weight:bold;word-break:break-all;background-color:#faebd7;border-radius:10px;padding:2px 6px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-controls{display:flex;grid-row:3;grid-column:1/3;justify-self:end;background-color:#faebd7;border-radius:10px 0 10px 0;padding:2px 0 0 2px;box-shadow:inset 1px 1px 2px 0px rgba(128,128,128,.7490196078)}.main-container .key-entries .key-container .key-type-icon,.main-container .key-entries .key-container .button{width:22px;height:22px;display:flex;justify-content:center;align-items:center}.main-container .key-entries .key-container.blank .button.delete{display:none}.main-container .key-entries .key-container.blank .button.open,.main-container .key-entries .key-container.macro .button.open{display:none}.main-container .key-entries .key-container:nth-child(9n){margin-bottom:50px}.main-container .app-controls,.main-container .device-controls,.main-container .key-entries-controls{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}.main-container .app-controls .button,.main-container .app-controls .info,.main-container .device-controls .button,.main-container .device-controls .info,.main-container .key-entries-controls .button,.main-container .key-entries-controls .info{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100px;height:50px;box-sizing:border-box;align-self:flex-end;user-select:none;word-break:break-word}.main-container .app-controls .button,.main-container .device-controls .button,.main-container .key-entries-controls .button{background-color:#03a9f4;border:1px solid gray}.dialog-container{position:absolute;top:0;left:0;height:100%;width:100%}.dialog-container .dialog{display:grid;grid-auto-columns:auto 40px;column-gap:4px;position:absolute;width:fit-content;min-width:320px;background-color:#fff;border:1px solid rgba(128,128,128,.7490196078);border-radius:4px;box-sizing:border-box;box-shadow:5px 5px 4px 2px rgba(128,128,128,.7490196078);overflow:auto}.dialog-container .dialog .dialog-header{grid-row:1;grid-column:1/3;display:grid;align-items:center;justify-content:center;height:40px;background-color:#505050;color:#fff;font-weight:bold;font-size:large;cursor:move}.dialog-container .dialog .dialog-inputs{grid-row:2;grid-column:1/3;display:grid;align-items:start;row-gap:4px;margin-left:4px;margin-top:4px}.dialog-container .dialog .dialog-inputs .dialog-type-input,.dialog-container .dialog .dialog-inputs .dialog-label-input{margin-right:44px}.dialog-container .dialog .dialog-inputs .dialog-details summary{cursor:pointer}.dialog-container .dialog .dialog-inputs .dialog-macros{display:grid;grid-template-columns:1fr 40px;gap:4px}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable{display:grid;gap:4px;background-color:#fff;border:1px solid gray;box-sizing:border-box;padding:4px;max-height:174px;overflow:auto}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container{display:flex;gap:4px;align-items:center;height:30px;padding:4px;background-color:#cddc39;border:1px solid gray;border-radius:5px;box-sizing:border-box}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container .macro-entry-handle{cursor:grab}.dialog-container .dialog .dialog-inputs .dialog-macros .dialog-sortable .macro-entry-container .macro-entry-additionals{margin:0 0 0 auto;cursor:pointer}.dialog-container .dialog.blank .dialog-inputs .dialog-label,.dialog-container .dialog.blank .dialog-inputs .dialog-color,.dialog-container .dialog.blank .dialog-inputs .dialog-content,.dialog-container .dialog.blank .dialog-inputs .dialog-encoder,.dialog-container .dialog.group .dialog-inputs .dialog-content,.dialog-container .dialog.macro .dialog-inputs .dialog-encoder{display:none}.dialog-container .dialog .dialog-button{display:flex;justify-content:center;align-items:center;width:40px;height:40px;background-color:#fff;border:1px solid gray;box-sizing:border-box;cursor:pointer}.dialog-container .dialog .dialog-button.close{grid-row:1;grid-column:2;background-color:#f08080}.dialog-container .dialog .dialog-button.ok{grid-row:3;grid-column:2;background-color:#03a9f4;margin-top:4px} \ No newline at end of file diff --git a/webui/scss/style.scss b/webui/scss/style.scss index 0b6def3..4e47731 100644 --- a/webui/scss/style.scss +++ b/webui/scss/style.scss @@ -151,8 +151,8 @@ body { .app-controls, .device-controls, .key-entries-controls { - display: grid; - grid-template-columns: repeat(3, 1fr); + display: flex; + flex-wrap: wrap; gap: $key-entries-gap; margin-bottom: $key-entries-gap;