mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-27 16:57:00 -06:00
5799ac14ba
Changed the SCSS/CSS for the below third party libraries to adopt the new look 'n' feel: - wcDocker - Alertify dialogs, and notifications - AciTree - Bootstrap Navbar - Bootstrap Tabs - Bootstrap Drop-Down menu - Backgrid - Select2 Adopated the new the look 'n' feel for the dialogs, wizard, properties, tab panels, tabs, fieldset, subnode control, spinner control, HTML table, and other form controls. - Font is changed to Roboto - Using SCSS variables to define the look 'n' feel - Designer background images for the Login, and Forget password pages in 'web' mode - Improved the look 'n' feel for the key selection in the preferences dialog - Table classes consistency changes across the application - File Open and Save dialog list view changes Author(s): Aditya Toshniwal & Khushboo Vashi
314 lines
5.8 KiB
SCSS
314 lines
5.8 KiB
SCSS
/* Ensure simple forms don't hit the top of the screen */
|
|
body {
|
|
font-family: $font-family-primary;
|
|
}
|
|
|
|
.app-icon {
|
|
font-size: 25px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Use the full width of the screen */
|
|
.container {
|
|
width: 100% !important;
|
|
}
|
|
|
|
/* iFrames should have no border */
|
|
iframe {
|
|
border-width: 0;
|
|
}
|
|
|
|
/* Padding for the treeview */
|
|
.browser-browser-pane {
|
|
padding-left: 0;
|
|
}
|
|
|
|
/* Disabled menu items */
|
|
.mnu-disabled {
|
|
color: $color-gray !important;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
box-shadow: $dropdown-box-shadow;
|
|
}
|
|
|
|
.dropdown-toggle::after {
|
|
font-family: $font-family-icon;
|
|
content: "\f078";
|
|
font-size: 0.6rem;
|
|
vertical-align: 2px;
|
|
margin-left: 0rem;
|
|
border: none;
|
|
width: auto;
|
|
}
|
|
|
|
/*
|
|
* Bootstrap 3 remove submenus as they don't work overly well on Mobile. The
|
|
* following CSS adds them back in - for our purposes they actually work fine
|
|
* on Mobile and are perfectly responsive
|
|
*/
|
|
.dropdown-submenu {
|
|
position: relative;
|
|
}
|
|
.dropdown-submenu>.dropdown-menu {
|
|
-moz-border-radius: $dropdown-border-radius;
|
|
-webkit-border-radius:$dropdown-border-radius;
|
|
border-radius: $dropdown-border-radius;
|
|
left: 100%;
|
|
margin-left: -1px;
|
|
top: $dropdown-submenu-top;
|
|
}
|
|
.dropdown-submenu .dropdown-menu.show {
|
|
background-color: $dropdown-bg;
|
|
}
|
|
|
|
.dropdown-submenu>a:after {
|
|
font-family: $font-family-icon;
|
|
content: "\f054";
|
|
float: right;
|
|
margin-right: -10px;
|
|
font-size: 0.6rem;
|
|
line-height: 2;
|
|
}
|
|
|
|
.dropdown-submenu:hover>a:after {
|
|
border-left-color: $dropdown-link-hover-color;
|
|
}
|
|
.dropdown-submenu.pull-left {
|
|
float: none;
|
|
}
|
|
.dropdown-submenu.pull-left>.dropdown-menu {
|
|
-moz-border-radius: $dropdown-border-radius;
|
|
-webkit-border-radius: $dropdown-border-radius;
|
|
border-radius: $dropdown-border-radius;
|
|
left: -100%;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.dropdown-submenu-visible>.dropdown-item {
|
|
background-color: $dropdown-link-hover-bg;
|
|
color: $dropdown-link-hover-color;
|
|
}
|
|
|
|
/** Overriding secondary button of bootstrap **/
|
|
/* Used Bootstrap 4 Mixin button-variant
|
|
* Refer file : bootstrap/scss/mixins/_buttons.scss
|
|
*/
|
|
.btn-secondary {
|
|
@include button-variant($color-secondary, $btn-secondary-border, $btn-secondary-hover-bg);
|
|
}
|
|
|
|
.form-group fieldset {
|
|
background-color: $color-gray-lighter;
|
|
border-color: $color-gray-lighter;
|
|
border-width: 1px;
|
|
margin-bottom: 2px;
|
|
margin-left: 2px;
|
|
margin-right: 2px;
|
|
padding: 0px 0px 0px 5px;
|
|
}
|
|
.form-group legend {
|
|
font-size: 105%;
|
|
margin-bottom: 0px;
|
|
margin-left: 0;
|
|
padding: 0.1em 0.5em;
|
|
text-align: left;
|
|
width: 95%;
|
|
}
|
|
.form-group .fieldset-content {
|
|
width: 100%;
|
|
}
|
|
.form-group fieldset .caret {
|
|
border-left: 5px solid transparent;
|
|
border-right: 5px solid transparent;
|
|
border-top: 5px solid;
|
|
display: inline-block;
|
|
height: 0;
|
|
margin-left: 2px;
|
|
margin-top: -2px;
|
|
vertical-align: middle;
|
|
width: 0;
|
|
}
|
|
.form-group fieldset .collapsed .caret {
|
|
border-bottom: 5px solid transparent;
|
|
border-left: 5px solid;
|
|
border-top: 5px solid transparent;
|
|
}
|
|
.control-label {
|
|
display: inline-block;
|
|
margin: 0px;
|
|
padding: 5px 25px 5px 5px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
|
|
color: $text-muted;
|
|
}
|
|
|
|
.card-header {
|
|
padding: $card-header-padding;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.table {
|
|
margin-bottom: 0rem;
|
|
}
|
|
|
|
.table-bordered {
|
|
border: $panel-border;
|
|
|
|
& thead {
|
|
& th, & td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
& tr {
|
|
font-weight: bold !important;
|
|
// for first row, remove top border
|
|
&:first-of-type{
|
|
& td, & th {
|
|
border-top: none !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
& tbody {
|
|
& tr {
|
|
& th, & td {
|
|
border-top: $panel-border;
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
& thead, & tbody {
|
|
& tr {
|
|
& td, & th {
|
|
&:first-of-type {
|
|
border-left: none;
|
|
}
|
|
|
|
&:last-of-type {
|
|
border-right: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.table.table-hover {
|
|
& > tbody {
|
|
& > tr:not(.nohover):not(.empty):hover, tr.selected {
|
|
background-color: $table-hover-bg-color;
|
|
& > td {
|
|
border-top: $table-hover-border;
|
|
border-bottom: $table-hover-border;
|
|
}
|
|
}
|
|
|
|
& > tr.nohover {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Override default bootstrap popover fonts & size */
|
|
.popover-content {
|
|
font-family: $font-family-primary;
|
|
font-size: 13px;
|
|
}
|
|
|
|
|
|
/* Remove default left padding from checkbox for bootstrap-switch */
|
|
.checkbox {
|
|
margin-bottom: 0px !important;
|
|
margin-top: 0px !important;
|
|
}
|
|
.checkbox label {
|
|
padding-left: 0px !important;
|
|
margin-bottom: 0px !important;
|
|
}
|
|
.bootstrap-switch > .bootstrap-switch-container > input {
|
|
border: 0px solid $color-fg;
|
|
height: 0px;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
width: 0px;
|
|
}
|
|
.switch-cell {
|
|
height: 0px;
|
|
width: 0px;
|
|
}
|
|
|
|
/* Center align the switch in backgrid */
|
|
td.switch-cell > div.bootstrap-switch {
|
|
display: block;
|
|
margin: auto;
|
|
}
|
|
|
|
.nav {
|
|
&.nav-tabs {
|
|
height: $title-height;
|
|
border-top-left-radius: inherit;
|
|
border-top-right-radius: inherit;
|
|
|
|
& .nav-link {
|
|
border: none !important;
|
|
padding: $tabs-padding;
|
|
color: $color-fg-theme;
|
|
font-weight: bold;
|
|
&.active {
|
|
border-bottom: $active-border !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.navbar-nav .nav-item > .dropdown-menu {
|
|
top: $navbar-dropdown-top;
|
|
}
|
|
|
|
.bootstrap-datetimepicker-widget td, .bootstrap-datetimepicker-widget th {
|
|
display: table-cell;
|
|
white-space: normal;
|
|
}
|
|
|
|
.navbar-brand {
|
|
color: $color-brand !important;
|
|
background: $color-brand-bg !important;
|
|
margin-right: 0rem;
|
|
padding-left: 0.5rem !important;
|
|
padding-right: 1rem !important;
|
|
min-height: $title-height;
|
|
padding: 0rem;
|
|
display: flex;
|
|
align-items: center !important;
|
|
}
|
|
|
|
.navbar-brand:hover {
|
|
color: $color-brand !important;
|
|
}
|
|
.navbar-brand:focus {
|
|
color: $color-brand !important;
|
|
}
|
|
|
|
.btn-sm-sq {
|
|
@extend .btn-sm;
|
|
line-height: 0.7rem;
|
|
}
|
|
|
|
|
|
.bootstrap-switch.bootstrap-switch-disabled, .bootstrap-switch.bootstrap-switch-readonly {
|
|
background-color: $input-disabled-bg !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
.btn-toolbar {
|
|
min-width: 100%;
|
|
}
|
|
|
|
.bootstrap-datetimepicker-widget thead th {
|
|
background-color: $color-bg;
|
|
}
|