Fixed code smell 'Variables should not be shadowed'.

Fixed all the duplicate CSS blocks issues raised by SonarQube.
This commit is contained in:
Aditya Toshniwal
2020-07-14 15:45:01 +05:30
committed by Akshay Joshi
parent 0013a3b047
commit 161c9b0fc7
11 changed files with 118 additions and 165 deletions

View File

@@ -50,6 +50,7 @@
& .ajs-body {
& .ajs-content {
top: 0 !important;
bottom: 0px !important;
padding: 0px;
}
}
@@ -131,10 +132,6 @@
}
}
.alertify.ajs-frameless .ajs-body .ajs-content {
bottom: 0px !important;
}
.alertify.ajs-maximized .ajs-commands,
.alertify.ajs-resizable .ajs-commands {
margin: 2px 0px 0 0;

View File

@@ -129,6 +129,7 @@
table.backgrid {
position: initial;
overflow: auto;
}
.backgrid td.editor input[type=password] {
@@ -209,9 +210,12 @@ table.backgrid {
border-color: $color-gray-light;
border-style: inset inset inset solid;
border-width: 2px 1px 0;
margin: 0px, 15px;
margin-top: -10px;
height: 38px;
min-height: 40px;
vertical-align: bottom;
}
.subnode-footer .ajs-button {
margin: 2px 2px 0;
}
@@ -266,12 +270,6 @@ table.backgrid {
background: $color-bg;
}
}
.subnode-footer {
height: 38px;
margin: 0px, 15px;
min-height: 40px;
vertical-align: bottom;
}
.sub-node-form {
height: auto;
@@ -300,10 +298,6 @@ table.backgrid {
color: $color-danger;
}
table.backgrid {
overflow: auto;
}
.backgrid tbody {
& td.edit-cell.editor {
background-color: $color-gray-light !important;

View File

@@ -192,19 +192,7 @@ legend {
border-top: none !important;
}
}
}
}
& tbody {
& tr {
& th, & td {
border-top: $panel-border;
border-bottom: none;
}
}
}
& thead {
& tr {
& th {
&:first-of-type {
border-left: none;
@@ -216,9 +204,13 @@ legend {
}
}
}
& tbody {
& tr {
& th, & td {
border-top: $panel-border;
border-bottom: none;
}
& td {
&:first-of-type {
border-left: none;

View File

@@ -97,13 +97,6 @@
display: none;
}
.CodeMirror-foldmarker {
color: $color-primary;
text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
line-height: .3;
cursor: pointer;
}
.CodeMirror-linenumber {
color: $color-fg;
}

View File

@@ -1,6 +1,3 @@
.pgadmin-control-group {
min-width: 34px;
}
.control-label {
margin: 0px;
display: inline-block;
@@ -312,8 +309,15 @@
.pgadmin-control-group {
margin: 0rem 0rem $form-group-margin-bottom 0rem;
padding: 0rem;
margin: 0rem 0rem $form-group-margin-bottom 0rem;
padding: 0rem;
min-width: 34px;
&.sql, &.sqltab {
margin: 0px;
padding: 0px;
height: 100%;
}
}
.pgadmin-controls {
@@ -514,14 +518,6 @@ fieldset.inline-fieldset > div {
padding: 15px;
}
.pgadmin-control-group{
&.sql, &.sqltab {
margin: 0px;
padding: 0px;
height: 100%;
}
}
.tab-pane.sql-code-control {
& .pgadmin-control-group{
margin: 0px;
@@ -683,12 +679,6 @@ div.rolmembership {
margin-top: 15px;
}
.inline-tab-panel {
float: left; width: 100%;
background-color: $header-bg;
border: 1px solid $border-color;
border-radius: $card-border-radius;
}
.inline-tab-panel > ul.nav-tabs > li:first-child > a,
.inline-tab-panel > ul.nav-tabs > li:first-child > a:active,
@@ -705,6 +695,10 @@ div.rolmembership {
}
.inline-tab-panel {
float: left; width: 100%;
background-color: $header-bg;
border: 1px solid $border-color;
border-radius: $card-border-radius;
& > .tab-content {
padding: 0px;
margin: 0px;
@@ -717,10 +711,6 @@ div.rolmembership {
}
}
.inline-tab-panel > .tab-content > div.tab-pane {
padding: 0px;
}
.inline-tab-panel > ul.tab-content > div.tab-pane {
min-height: 150px; padding: 0px !important;
}
@@ -734,6 +724,7 @@ div.rolmembership {
}
.inline-tab-panel > .tab-content > div.tab-pane {
padding: 0px;
& > .pgadmin-control-group {
& > div.subnode {
border: none !important;

View File

@@ -73,10 +73,6 @@
top: $title-height;
}
.wcLayoutGrid, .wcLayoutGrid tr, .wcLayoutGrid td {
border: 1px solid $panel-border-color;
}
.wcPanelTab, .wcFrameTitle{
color: $color-fg;
padding: $tabs-padding;