Move view and keyboard into user settings dialog

This commit is contained in:
Nick O'Leary
2017-04-28 20:49:01 +01:00
parent 8135da71bd
commit 5938143002
17 changed files with 643 additions and 124 deletions

View File

@@ -46,6 +46,7 @@
overflow: auto;
}
.editor-tray-body {
position: relative;
form {
margin: 20px;
}

View File

@@ -19,31 +19,88 @@
padding-top: 10px;
}
#user-settings-tab-keyboard .red-ui-editableList-container {
border-radius: 0;
border: none;
padding: 0;
}
.keyboard-shortcut-entry.keyboard-shortcut-list-header {
padding:0 30px 0 5px;
padding:0 5px 0 5px;
div {
color: #666 !important;
}
.red-ui-searchBox-container {
width: calc(100% - 20px);
}
.keyboard-shortcut-entry-scope {
text-align: center;
}
}
#keyboard-shortcut-list {
.keyboard-shortcut-list-header {
border-bottom: 1px solid $primary-border-color;
}
.keyboard-shortcut-list {
position: absolute;
top:30px;
left:10px;
right:10px;
bottom:10px;
li {
padding: 0;
.red-ui-editableList-item-content {
padding: 8px;
cursor: pointer;
}
}
li:hover {
background: #f6f6f6;
}
}
.keyboard-shortcut-entry {
padding: 0px 20px 0 10px;
div {
display: inline-block;
}
// white-space: nowrap;
select {
margin: 0;
width: calc(100% - 30px);
font-size: 0.9em;
margin-right: 5px;
}
}
.keyboard-shortcut-entry-key {
width:150px;
width:160px;
vertical-align: middle;
input {
margin:0;
width: calc(100% - 5px);
}
}
.keyboard-shortcut-entry-text {
vertical-align: middle;
width: calc(100% - 160px - 100px - 10px);
overflow: hidden;
i {
color: #ccc;
margin-right: 5px;
}
}
.keyboard-shortcut-entry-scope {
float: right;
width:100px;
color: #999;
vertical-align: middle;
text-align: right;
}
.keyboard-shortcut-entry:not(.keyboard-shortcut-list-header) {
.keyboard-shortcut-entry-scope {
font-size: 0.8em;
}
}
.keyboard-shortcut-entry-unassigned {
color: #999;
@@ -51,7 +108,21 @@
font-style: italic;
}
}
.keyboard-shortcut-entry-expanded {
.keyboard-shortcut-entry-key {
width: 150px;
}
.keyboard-shortcut-entry-text {
}
.keyboard-shortcut-entry-scope {
width: 110px;
}
span {
display: none;
}
}
.keyboard-shortcut-edit {
}
.help-key {
border: 1px solid #ddd;
padding: 4px;

View File

@@ -80,12 +80,28 @@
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.button-group-vertical & {
display: block;
min-width: 22px;
}
.button-group-vertical &:not(:first-child) {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.button-group-vertical &:not(:last-child) {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
&:focus {
outline: 1px solid $workspace-button-color-focus-outline;
}
}
.button-group-vertical {
display: inline-block;
vertical-align: middle;
}
.button-group:not(:last-child) {
margin-right: 10px;
}

View File

@@ -45,6 +45,8 @@
@import "palette-editor";
@import "diff";
@import "userSettings";
@import "ui/common/editableList";
@import "ui/common/searchBox";

View File

@@ -113,6 +113,50 @@
&.red-ui-tabs-add.red-ui-tabs-scrollable {
padding-right: 59px;
}
&.red-ui-tabs-vertical {
box-sizing: border-box;
height: 100%;
border-right: 1px solid $primary-border-color;
margin: 0;
background: #f3f3f3;
overflow: visible;
.red-ui-tabs-scroll-container {
height: auto;
overflow-x:visible;
overflow-y: scroll;
}
& ul {
padding: 0;
height: auto;
border: none;
width: calc(100% + 1px);
li {
width: 100%;
display: block;
margin: 0;
border: none;
border-right: 1px solid $primary-border-color;
height: auto;
&:not(:first-child) {
border-top: 1px solid $secondary-border-color;
}
&:last-child {
border-bottom: 1px solid $secondary-border-color;
}
a.red-ui-tab-label {
padding: 9px;
}
&.active {
border-right: 1px solid #fff;
}
}
}
}
}
.red-ui-tab-button {
position: absolute;

View File

@@ -0,0 +1,59 @@
/**
* Copyright JS Foundation and other contributors, http://js.foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**/
#user-settings-tabs-container {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 120px;
background: #f3f3f3;
}
#user-settings-tabs-content {
position: absolute;
top: 0;
left: 120px;
right: 0;
bottom: 0;
padding: 0;
h3:not(:first-child) {
border-top: 1px solid $secondary-border-color;
margin-top: 15px;
margin-bottom: 10px;
padding-top: 20px;
}
label {
display: inline-block;
min-width: 100px;
input {
vertical-align: top;
padding-bottom: 0;
}
}
input {
margin-bottom: 0;
}
input[type='number'] {
width: 60px;
}
}
#user-settings-tab-view {
padding: 8px 20px 20px;
}
.user-settings-row {
padding: 5px 10px 2px;
}