UX: Minor style improvements and consistency

This commit is contained in:
Kris 2018-09-04 14:53:12 -04:00
parent a518ac58fc
commit a8742f4c64
3 changed files with 63 additions and 40 deletions

View File

@ -1,7 +1,7 @@
{{#explorer-container hideSchema=hideSchema everEditing=everEditing}} {{#explorer-container hideSchema=hideSchema everEditing=everEditing}}
{{#if disallow}} {{#if disallow}}
<h2>{{i18n "explorer.admins_only"}}</h2> <h1>{{i18n "explorer.admins_only"}}</h1>
{{else}} {{else}}
{{#unless selectedQueryId}} {{#unless selectedQueryId}}
<div class="query-list"> <div class="query-list">
@ -35,9 +35,7 @@
{{#if selectedItem}} {{#if selectedItem}}
{{#if editing}} {{#if editing}}
<div class="name"> <div class="name">
<div class="previous"> {{d-button action="goHome" icon="chevron-left" class="previous"}}
{{d-button action="goHome" icon="chevron-left" class="no-text btn-med"}}
</div>
<div class="name-text-field"> <div class="name-text-field">
{{text-field value=selectedItem.name}} {{text-field value=selectedItem.name}}
</div> </div>
@ -47,11 +45,10 @@
</div> </div>
{{else}} {{else}}
<div class="name"> <div class="name">
<div class="previous"> {{d-button action="goHome" icon="chevron-left" class="previous"}}
{{d-button action="goHome" icon="chevron-left" class="no-text btn-med"}} <h1>{{selectedItem.name}}
</div> <a {{action "editName" class="edit-query-name"}}>{{d-icon "pencil"}}</a>
<h2>{{selectedItem.name}}</h2> </h1>
{{d-button action="editName" icon="pencil" class="no-text btn-small"}}
</div> </div>
<div class="desc"> <div class="desc">
{{selectedItem.description}} {{selectedItem.description}}

View File

@ -3,7 +3,7 @@
{{/if}} {{/if}}
<div class="{{if hideSchema "hidden"}}"> <div class="{{if hideSchema "hidden"}}">
{{text-field value=filter placeholderKey="explorer.schema.filter"}} {{text-field value=filter placeholderKey="explorer.schema.filter"}}
{{d-button action="collapseSchema" icon="chevron-right" class="no-text btn-small"}} {{d-button action="collapseSchema" icon="chevron-right" class="no-text"}}
{{conditional-loading-spinner condition=loading}} {{conditional-loading-spinner condition=loading}}
<div class="schema-container"> <div class="schema-container">
<ul> <ul>

View File

@ -25,7 +25,6 @@
} }
} }
.editor-panel { .editor-panel {
float: left; float: left;
.ace-wrapper { .ace-wrapper {
@ -48,14 +47,14 @@
height: 400px; height: 400px;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
color: $secondary-low; color: $primary-high;
font-size: 11px; font-size: $font-down-2;
input { input {
padding: 4px; padding: 4px;
margin: 3px; margin: 3px;
// 100% - padding + margin * 2 - border - button - buttonborder // 100% - padding + margin * 2 - border - button - buttonborder
width: calc(100% - 14px - 1px - 22px - 2px); width: calc(100% - 14px - 1px - 40px - 2px);
} }
.schema-table-name { .schema-table-name {
font-weight: bold; font-weight: bold;
@ -77,7 +76,7 @@
padding-bottom: 2px; padding-bottom: 2px;
} }
dl > div { dl > div {
clear:both; clear: both;
} }
dt { dt {
display: inline-block; display: inline-block;
@ -105,9 +104,15 @@
.popup-info { .popup-info {
color: $primary-medium; color: $primary-medium;
.popup { display: none; } .popup {
&:hover .popup { display: block; } display: none;
&:focus .popup { display: block; } }
&:hover .popup {
display: block;
}
&:focus .popup {
display: block;
}
.popup { .popup {
position: absolute; position: absolute;
@ -139,22 +144,33 @@
} }
.query-edit { .query-edit {
.name h2 { .name {
display: flex;
align-items: center;
margin-bottom: 1em;
h1 {
display: inline-block; display: inline-block;
color: $secondary-low; margin: 0 0.5em 0 0;
color: $primary;
a {
color: currentColor;
}
}
}
button.previous {
margin-right: 0.5em;
.d-icon {
margin-left: -0.15em; // fixing fontawesome horizontal alignment
}
} }
.name-text-field { .name-text-field {
padding-top: 0.75em; width: 100%;
width: calc(100% - 10px);
} }
.name .previous { .name input,
padding: 0.2em; .desc textarea {
display: inline-block; width: 100%;
padding-right: 0.25em; box-sizing: border-box;
font-size: 1.2em; margin: 0;
}
.name input, .desc textarea {
width: calc(100% - 10px);
} }
&:not(.editing) .desc { &:not(.editing) .desc {
margin: 10px 0; margin: 10px 0;
@ -169,7 +185,9 @@
} }
} }
.clear { clear: both; } .clear {
clear: both;
}
.schema-title { .schema-title {
display: block; display: block;
@ -207,14 +225,20 @@
} }
} }
.query-list, .query-create, .query-edit, .query-results, .query-params, .https-warning { .query-list,
.query-create,
.query-edit,
.query-results,
.query-params,
.https-warning {
margin: 10px 0; margin: 10px 0;
} }
.query-list { .query-list {
display: flex; display: flex;
.combo-box, button { .combo-box,
margin-right: .5em; button {
margin-right: 0.5em;
} }
li.none { li.none {
display: none; display: none;
@ -231,8 +255,11 @@
} }
.heading { .heading {
position: relative; position: relative;
color: $primary-high; color: $primary-medium;
padding: 50px 0px 0px 0px; padding: 50px 0px 0px 0px;
th.sortable {
font-weight: normal;
}
.heading-toggle { .heading-toggle {
bottom: 0; bottom: 0;
position: absolute; position: absolute;
@ -245,7 +272,7 @@
width: 100%; width: 100%;
} }
.query-name { .query-name {
color: $secondary-low; color: $primary;
} }
.query-desc { .query-desc {
color: $primary-high; color: $primary-high;
@ -254,8 +281,7 @@
color: $primary-high; color: $primary-high;
} }
.query-created-at { .query-created-at {
color: $secondary-medium; color: $primary-medium;
font-weight: bold;
} }
} }
tr a { tr a {