diff --git a/shared/css/control_bar.scss b/shared/css/control_bar.scss index 5b8188a3..a25953c7 100644 --- a/shared/css/control_bar.scss +++ b/shared/css/control_bar.scss @@ -62,17 +62,6 @@ $background:lightgray; align-items: center; border: 2px solid rgba(0, 0, 0, 0); border-left: 0; - - .arrow { - border: solid black; - border-width: 0 3px 3px 0; - display: inline-block; - padding: 3px; - transform: rotate(45deg); - -webkit-transform: rotate(45deg); - - vertical-align: text-bottom; - } } &:hover { @@ -149,5 +138,62 @@ $background:lightgray; hr:last-child { display: none; } + + .hidden { + display: none!important; + } + + .disabled { + + } + + .bookmark, .directory { + display: flex!important; + flex-direction: row; + + align-items: center; + justify-content: stretch; + + .name { + flex-grow: 1; + flex-shrink: 1; + } + + .icon, .arrow { + flex-grow: 0; + flex-shrink: 0; + } + + .arrow { + margin-right: 5px; + } + } + + .directory { + &:hover { + > .sub-container, > .sub-container .sub-menu { + display: block; + } + } + + &:not(:hover) { + .sub-container { + display: none; + } + } + + .sub-container { + padding-right: 3px; + position: relative; + } + + .sub-menu { + display: none; + left: 100%; + top: -13px; + position: absolute; + margin-left: 3px; + } + } } } \ No newline at end of file diff --git a/shared/css/modal-bookmarks.scss b/shared/css/modal-bookmarks.scss new file mode 100644 index 00000000..28721bc2 --- /dev/null +++ b/shared/css/modal-bookmarks.scss @@ -0,0 +1,141 @@ +.modal .modal-bookmarks { + padding: 5px; + display: flex; + flex-direction: column; + justify-content: stretch; + + .bookmark-list { + flex-grow: 1; + flex-shrink: 1; + + display: flex; + flex-direction: column; + justify-content: stretch; + + .list { + display: flex; + flex-direction: column; + justify-content: start; + + overflow-y: auto; + + .entry { + flex-grow: 1; + flex-shrink: 1; + + > .name { + cursor: pointer; + } + + &.bookmark { + &.selected { + background-color: #0000FF77; + } + } + + &.directory { + &.selected { + > .name { + background-color: #0000FF77; + } + } + + > .name { + border: 0 solid gray; + border-bottom: 1px solid #ad9d9d33; + } + .members { + margin-left: 15px; + } + } + } + } + } + + .buttons { + flex-grow: 0; + flex-shrink: 0; + + margin-top: 5px; + text-align: right; + + button { + margin-left: 5px; + } + } + + .group_box:not(:first-of-type) { + flex-grow: 0; + flex-shrink: 0; + } + + .bookmark-setting { + .group_box { + margin-top: 5px; + } + + .property { + display: flex; + flex-direction: row; + justify-content: stretch; + + &:not(:first-of-type) { + margin-top: 5px; + } + + input, select, .default-channel-container { + flex-grow: 1; + flex-shrink: 1; + } + + .default-channel-container { + display: flex; + flex-direction: row; + justify-content: stretch; + + button { + margin-left: 5px; + max-width: 120px; + } + } + + .key { + width: 160px; + flex-grow: 0; + flex-shrink: 0; + } + } + } +} + +.modal .modal-bookmark-create { + .property { + margin-top: 5px; + + display: flex; + flex-direction: row; + justify-content: stretch; + + .key { + flex-grow: 0; + flex-shrink: 0; + + width: 150px; + } + + select, input { + flex-grow: 1; + flex-shrink: 1; + } + } + + .buttons { + text-align: right; + + button { + min-width: 200px; + } + + margin-bottom: 5px; + } +} \ No newline at end of file diff --git a/shared/css/modal-connect.scss b/shared/css/modal-connect.scss new file mode 100644 index 00000000..8f511742 --- /dev/null +++ b/shared/css/modal-connect.scss @@ -0,0 +1,28 @@ +.modal .modal-connect { + margin-top: 5px; + + > div:not(:first-of-type) { + margin-top: 5px; + } + + .profile-select-container { + display: flex; + flex-direction: row; + justify-content: space-between; + + select { + width: 150px; + } + } + + .profile-invalid { + display: flex; + flex-direction: column; + justify-content: start; + + > div { + display: inline-flex; + flex-direction: row; + } + } +} \ No newline at end of file diff --git a/shared/css/modal-settings.scss b/shared/css/modal-settings.scss index 8f5e1c8e..e792feeb 100644 --- a/shared/css/modal-settings.scss +++ b/shared/css/modal-settings.scss @@ -244,4 +244,138 @@ } } } +} + +.modal .settings-profiles { + margin: 5px; + > div:not(:first-of-type) { + margin-top: 5px; + } + + .profile-status-container { + display: flex; + flex-direction: row; + + justify-content: space-between; + } + + .profile-list { + user-select: none; + + display: flex; + flex-direction: column; + + .list { + display: flex; + flex-direction: column; + justify-content: start; + + overflow-y: auto; + + border: solid 1px lightgray; + padding: 2px; + background: #33333318; + + height: 50%; + min-height: 50%; + max-height: 50%; + + .entry { + display: flex; + flex-direction: row; + justify-content: stretch; + cursor: pointer; + + &.default { + .name { + font-weight: bold; + } + } + + .name { + flex-grow: 1; + flex-shrink: 1; + } + + &.selected { + background: #0000FF77; + } + + + .button { + cursor: pointer; + + &:hover { + background-color: #00000010; + } + } + } + } + + .management { + width: 100%; + + display: flex; + flex-direction: row; + justify-content: stretch; + + margin-top: 5px; + float: right; + + .space { + flex-grow: 1; + } + + button:not(:first-of-type) { + margin-left: 5px; + } + } + } + + .general-settings { + display: flex; + flex-direction: column; + justify-content: start; + + .setting { + &:not(:first-of-type) { + margin-top: 5px; + } + + display: flex; + flex-direction: row; + justify-content: stretch; + + .key { + flex-grow: 0; + flex-shrink: 0; + width: 200px; + } + + input, div { + flex-grow: 1; + flex-shrink: 1; + } + + .select-container { + text-align: right; + } + } + } + + .identity-settings { + display: none; + + &.active { + display: block; + } + + &.identity-settings-teaforo { + /* + .connected, .disconnected { + display: none + } + */ + } + } } \ No newline at end of file diff --git a/shared/css/modals.scss b/shared/css/modals.scss index 4658a269..ec8d4048 100644 --- a/shared/css/modals.scss +++ b/shared/css/modals.scss @@ -101,15 +101,21 @@ .group_box { - display: grid; - grid-template-rows: min-content; + display: flex; + flex-direction: column; + justify-content: stretch; .header { + flex-grow: 0; + flex-shrink: 0; float: left; margin-bottom: 2px; } .content { + flex-grow: 1; + flex-shrink: 1; + background: rgba(0, 0, 0, .035); border: lightgray solid 1px; border-radius: 0 2px; @@ -372,6 +378,7 @@ border: solid black; border-width: 0 3px 3px 0; padding: 3px; + height: 10px; &.right { transform: rotate(-45deg); diff --git a/shared/html/index.php b/shared/html/index.php index c9bf4a01..a97d4167 100644 --- a/shared/html/index.php +++ b/shared/html/index.php @@ -49,6 +49,8 @@ + + diff --git a/shared/html/templates.html b/shared/html/templates.html index 1854e1f4..a52b88fe 100644 --- a/shared/html/templates.html +++ b/shared/html/templates.html @@ -20,15 +20,14 @@
- +