mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Subnode collection layout improvements, with additional tweaks from me.
This commit is contained in:
@@ -22,10 +22,12 @@ function($, _, S, pgAdmin, pgBrowser, Alertify) {
|
||||
},
|
||||
schema: [{
|
||||
id: 'provider', label: '{{ _('Provider') }}',
|
||||
type: 'text', editable: true
|
||||
type: 'text', editable: true,
|
||||
cellHeaderClasses:'width_percent_50'
|
||||
},{
|
||||
id: 'security_label', label: '{{ _('Security Label') }}',
|
||||
type: 'text', editable: true
|
||||
type: 'text', editable: true,
|
||||
cellHeaderClasses:'width_percent_50'
|
||||
}],
|
||||
validate: function() {
|
||||
var err = {},
|
||||
|
||||
@@ -234,13 +234,13 @@
|
||||
template: _.template([
|
||||
'<tr class="<%= header ? "header" : "" %>">',
|
||||
' <td class="renderable">',
|
||||
' <label>',
|
||||
' <label class="privilege_label">',
|
||||
' <input type="checkbox" name="privilege" privilege="<%- privilege_type %>" target="<%- target %>" <%= privilege ? \'checked\' : "" %>></input>',
|
||||
' <%- privilege_label %>',
|
||||
' </label>',
|
||||
' </td>',
|
||||
' <td class="renderable">',
|
||||
' <label>',
|
||||
' <label class="privilege_label">',
|
||||
' <input type="checkbox" name="with_grant" privilege="<%- privilege_type %>" target="<%- target %>" <%= with_grant ? \'checked\' : "" %> <%= enable_with_grant ? "" : \'disabled\'%>></input>',
|
||||
' WITH GRANT OPTION',
|
||||
' </label>',
|
||||
|
||||
@@ -91,47 +91,47 @@ iframe {
|
||||
}
|
||||
|
||||
.dropdown-submenu>.dropdown-menu {
|
||||
top:0;
|
||||
left:100%;
|
||||
margin-top:-6px;
|
||||
margin-left:-1px;
|
||||
-webkit-border-radius:0 6px 6px 6px;
|
||||
-moz-border-radius:0 6px 6px 6px;
|
||||
border-radius:0 6px 6px 6px;
|
||||
top: 0;
|
||||
left: 100%;
|
||||
margin-top: -6px;
|
||||
margin-left: -1px;
|
||||
-webkit-border-radius: 0 6px 6px 6px;
|
||||
-moz-border-radius: 0 6px 6px 6px;
|
||||
border-radius: 0 6px 6px 6px;
|
||||
}
|
||||
|
||||
.dropdown-submenu:hover>.dropdown-menu {
|
||||
display:block;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.dropdown-submenu>a:after {
|
||||
display:block;
|
||||
display: block;
|
||||
content:" ";
|
||||
float:right;
|
||||
width:0;
|
||||
height:0;
|
||||
border-color:transparent;
|
||||
border-style:solid;
|
||||
border-width:5px 0 5px 5px;
|
||||
border-left-color:#cccccc;
|
||||
margin-top:5px;
|
||||
margin-right:-10px;
|
||||
float: right;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 0 5px 5px;
|
||||
border-left-color: #cccccc;
|
||||
margin-top: 5px;
|
||||
margin-right: -10px;
|
||||
}
|
||||
|
||||
.dropdown-submenu:hover>a:after {
|
||||
border-left-color:#ffffff;
|
||||
border-left-color: #ffffff;
|
||||
}
|
||||
|
||||
.dropdown-submenu.pull-left {
|
||||
float:none;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.dropdown-submenu.pull-left>.dropdown-menu {
|
||||
left:-100%;
|
||||
margin-left:10px;
|
||||
-webkit-border-radius:6px 0 6px 6px;
|
||||
-moz-border-radius:6px 0 6px 6px;
|
||||
border-radius:6px 0 6px 6px;
|
||||
left: -100%;
|
||||
margin-left: 10px;
|
||||
-webkit-border-radius: 6px 0 6px 6px;
|
||||
-moz-border-radius: 6px 0 6px 6px;
|
||||
border-radius: 6px 0 6px 6px;
|
||||
}
|
||||
|
||||
.navbar-inverse > li > a,
|
||||
@@ -270,10 +270,7 @@ iframe {
|
||||
.control-label {
|
||||
min-width: 250px;
|
||||
margin: 0px;
|
||||
padding-top: 3px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
padding-bottom: 3px;
|
||||
padding: 5px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
@@ -470,18 +467,20 @@ fieldset[disabled] .form-control {
|
||||
}
|
||||
|
||||
.subnode > table.backgrid{
|
||||
width: 99%;
|
||||
margin: 0.1% 0.49%;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
padding: 0;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.backgrid thead th{
|
||||
background-color: #2c76b4;
|
||||
background-color: #2C76B4;
|
||||
}
|
||||
|
||||
.backgrid th, .backgrid td {
|
||||
line-height: 18px;
|
||||
font-size: 12px;
|
||||
letter-spacing:0.7px
|
||||
}
|
||||
|
||||
.backgrid td {
|
||||
@@ -492,7 +491,7 @@ fieldset[disabled] .form-control {
|
||||
}
|
||||
|
||||
.backgrid thead th a {
|
||||
color: #ffffff;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.backgrid > th.object {
|
||||
@@ -513,24 +512,27 @@ fieldset[disabled] .form-control {
|
||||
}
|
||||
|
||||
.subnode-header {
|
||||
background-color:#2c76b4;
|
||||
height:35px;
|
||||
color:#FFFFFF;
|
||||
border-radius:5px 5px 0px 0px;
|
||||
padding-top:3px;
|
||||
background-color: #2C76B4;
|
||||
height: 35px;
|
||||
color: #FFFFFF;
|
||||
border-radius: 3px 3px 0px 0px;
|
||||
padding-top: 3px;
|
||||
}
|
||||
|
||||
.subnode-header .control-label {
|
||||
font-size: 14px;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
|
||||
.subnode-header > button.add {
|
||||
float:right;
|
||||
margin-right:15px;
|
||||
float: right;
|
||||
margin-right: 3px;
|
||||
margin-bottom: 3px;
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.subnode {
|
||||
margin-top:5px;
|
||||
padding-top:0px;
|
||||
border-left:1px solid #dadada;
|
||||
border-bottom:1px solid #ddd;
|
||||
border-right:1px solid #ddd;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.subnode-dialog {
|
||||
@@ -539,26 +541,26 @@ fieldset[disabled] .form-control {
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
right: 0;
|
||||
height:auto;
|
||||
height: auto;
|
||||
margin-left: 23px;
|
||||
background-color: #dadada;
|
||||
margin-top: 0px;
|
||||
border: 1px solid #a9a9a9;
|
||||
}
|
||||
.subnode-body {
|
||||
height:auto;
|
||||
overflow:inherit;
|
||||
height: auto;
|
||||
overflow: inherit;
|
||||
|
||||
}
|
||||
.subnode-footer {
|
||||
height:38px;
|
||||
height: 38px;
|
||||
margin: 0px, 15px;
|
||||
min-height:40px;
|
||||
min-height: 40px;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.sub-node-form {
|
||||
height:auto;
|
||||
height: auto;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
@@ -635,25 +637,26 @@ table.backgrid tr.new {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
top :0;
|
||||
top : 0;
|
||||
}
|
||||
|
||||
.pg-prop-footer{
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
bottom :0;
|
||||
bottom : 0;
|
||||
}
|
||||
.subnode-header-form {
|
||||
background-color:#2c76b4;
|
||||
color:#FFFFFF;
|
||||
padding:3px 0 10px 0;
|
||||
background-color: #F5F5F5;
|
||||
color: black;
|
||||
padding: 3px 0 10px 0;
|
||||
border-top: solid 1.5px white;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.subnode-header-form button.add {
|
||||
float:right;
|
||||
margin-right:15px;
|
||||
float: right;
|
||||
margin-right: 0px;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-search--inline .select2-search__field {
|
||||
@@ -739,5 +742,39 @@ div.inline-tab-panel > ul.tab-content > div.tab-pane > *:last-child {
|
||||
}
|
||||
.pgadmin-control-error-message
|
||||
{
|
||||
padding-left:4px;
|
||||
padding-left: 4px;
|
||||
}
|
||||
.btn-group-sm>.btn, .btn-sm
|
||||
{
|
||||
font-size: 11px;
|
||||
padding: 3px 3px;
|
||||
}
|
||||
|
||||
td.edit-cell.editable.sortable.renderable.editor {
|
||||
outline: 0px;
|
||||
}
|
||||
|
||||
.privilege_label
|
||||
{
|
||||
font-size: 10px!important;
|
||||
}
|
||||
.backgrid th, .backgrid td
|
||||
{
|
||||
padding: 2px;
|
||||
font-weight: normal!important;
|
||||
}
|
||||
.pg-panel-depends-container > table > thead > tr > th {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.backgrid th:first-child , .backgrid th:last-child{
|
||||
border-left-color: #2C76B4;
|
||||
}
|
||||
|
||||
.backgrid th:last-child{
|
||||
border-right-color: #2C76B4;
|
||||
}
|
||||
.select2-container .select2-selection--single .select2-selection__rendered
|
||||
{
|
||||
padding-left: 3px;
|
||||
}
|
||||
Reference in New Issue
Block a user