1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-09 04:32:36 +01:00
theme.park/css/base/portainer/portainer-base.css
2022-06-28 21:01:23 +02:00

840 lines
21 KiB
CSS

/* dP dP dP */
/* 88 88 88 */
/* d8888P 88d888b. .d8888b. 88d8b.d8b. .d8888b. 88d888b. .d8888b. 88d888b. 88 .dP */
/* 88 88' `88 88ooood8 88'`88'`88 88ooood8 88' `88 88' `88 88' `88 88888" */
/* 88 88 88 88. ... 88 88 88 88. ... 88. .88 88. .88 88 88 `8b. */
/* dP dP dP `88888P' dP dP dP `88888P' 88 88Y888P' `88888P8 dP dP `YP */
/* 88 */
/* dP */
/* Made by @gilbN */
/* https://github.com/gilbN/theme.park */
@import url("/css/defaults/placeholders.css");
@import url("/css/defaults/transparent.css");
:root {
--text-json-tree-branch-preview-color: var(--text);
--text-json-tree-leaf-color: var(--text);
}
/* Scrollbar */
@media only screen and (min-width: 768px) {
html {
height: 100%;
width: 100%;
overflow: hidden;
}
body {
overflow-y: auto;
height: 100%;
background: var(--main-bg-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
}
}
::-webkit-scrollbar {
width: 14px;
}
::-webkit-scrollbar-thumb {
min-height: 50px;
border: 3px solid transparent;
border-radius: 8px;
background: var(--transparency-dark-20);
background-clip: padding-box;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb:hover {
min-height: 50px;
border: 3px solid transparent;
border-radius: 8px;
background: var(--transparency-light-50);
background-clip: padding-box;
}
body {
background: var(--main-bg-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
color: var(--text) !important;
}
* {
outline: none !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
label,
legend,
ul.sidebar .sidebar-title.endpoint-name {
color: var(--text-hover);
}
ul.sidebar .sidebar-list .sidebar-sublist a {
color: var(--text);
}
a {
color: var(--link-color);
}
a:focus,
a:hover {
color: var(--link-color-hover);
text-decoration: none;
}
.text-danger {
color: #f44336;
}
.fa.red-icon {
color: #f44336;
}
.text-muted {
color: var(--text-muted);
}
.form-section-title {
color: var(--text);
}
ul.sidebar .sidebar-list a {
color: var(--text);
}
/* NEWS */
.motd-body {
background: var(--transparency-light-15) !important;
}
/* LOGIN */
.panel-default {
border-color: transparent;
}
.panel {
background-color: transparent;
border: 1px solid transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel-body {
background-color: transparent !important;
}
/* SIDEBAR */
#sidebar-wrapper {
background: var(--transparency-dark-25)
}
.sidebar-header {
background: var(--transparency-dark-25)
}
ul.sidebar .sidebar-list a.active {
color: rgb(var(--accent-color));
background: var(--transparency-light-10);
border-left: 3px solid rgb(var(--accent-color));
}
#page-wrapper:not(.open) ul.sidebar .sidebar-title.separator,
.sidebar-footer,
ul.sidebar .sidebar-list a:hover:not(ul.sidebar .sidebar-list a.active),
ul.sidebar .sidebar-main a {
background: var(--transparency-light-15);
color: var(--text-hover);
}
ul.sidebar .sidebar-list a:hover,
#page-wrapper:not(.open) ul.sidebar .sidebar-list a:hover span {
border-left: 3px solid rgb(var(--accent-color));
}
ul.sidebar .sidebar-title {
color: rgb(var(--accent-color));
}
ul.sidebar .sidebar-list .sidebar-sublist a.active {
border-left: 3px solid rgb(var(--accent-color));
background: var(--transparency-light-10)
}
ul.sidebar .sidebar-title {
color: var(--text-hover);
}
/* Header */
.row.header {
background: var(--main-bg-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
}
/* WIDGETS */
.widget {
background: var(--transparency-dark-25);
border-color: transparent;
}
.widget .widget-body table thead {
background: var(--transparency-dark-25);
}
.widget .widget-header {
color: var(--text-hover);
background: var(--transparency-dark-25);
border-bottom: 1px solid transparent;
}
/* DATATABLES */
.datatable .toolBar {
background: var(--transparency-dark-25);
}
.datatable .footer {
background: var(--transparency-dark-25);
color: var(--text);
}
.blocklist-item--selected,
.blocklist-item:hover {
background: var(--transparency-light-15);
color: var(--text);
}
.datatable .actionBar,
.datatable .toolBar {
color: var(--text);
}
.datatable .searchIcon {
color: var(--text);
}
.datatable .searchBar {
border-top: 1px solid rgba(255, 255, 255, .1);
border-bottom: 1px solid rgba(255, 255, 255, .1);
padding: 8px;
background: var(--transparency-light-15)
}
.datatable .searchBar:focus-within {
background: var(--transparency-light-25);
color: var(--text-hover);
}
/* TABLE */
.table-hover>tbody>tr:hover,
.table>tbody>tr.active>td,
.table>tbody>tr.active>th,
.table>tbody>tr>td.active,
.table>tbody>tr>th.active,
.table>tfoot>tr.active>td,
.table>tfoot>tr.active>th,
.table>tfoot>tr>td.active,
.table>tfoot>tr>th.active,
.table>thead>tr.active>td,
.table>thead>tr.active>th,
.table>thead>tr>td.active,
.table>thead>tr>th.active {
background: var(--transparency-light-10);
}
.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
border-top: 1px solid var(--transparency-light-10);
}
.table>thead>tr>th {
border-bottom: 2px solid var(--transparency-light-10);
}
.table-hover>tbody>tr.active:hover>td,
.table-hover>tbody>tr.active:hover>th,
.table-hover>tbody>tr:hover>.active,
.table-hover>tbody>tr>td.active:hover,
.table-hover>tbody>tr>th.active:hover {
background: var(--transparency-light-10);
}
.table .table {
background: var(--transparency-light-10);
}
.label-default {
color: var(--label-text-color);
background-color: rgb(var(--accent-color));
}
/* BUTTONS */
.btn-danger:hover {
color: #fff !important;
background-color: #c9302c !important;
border-color: #ac2925 !important;
}
.btn-primary,
.btn-default,
button,
button h3,
button h5 {
color: var(--button-text);
background-color: var(--button-color);
border-color: var(--button-color);
}
.app-react-portainer-environments-wizard-components-Option-Option-module__feature {
--selected-item-color: var(--button-color);
border: 1px solid var(--button-color);
color: var(--button-text) !important;
}
.app-react-portainer-environments-wizard-components-Option-Option-module__feature:hover {
border: 1px var(--button-color);
-webkit-box-shadow: 0 3px 10px -2px rgba(var(--accent-color), 0.8);
box-shadow: 0 3px 10px -2px rgba(var(--accent-color), 0.8);
color: var(--button-text-hover);
}
.btn-default.active,
.btn-default:active,
.open>.dropdown-toggle.btn-default,
.btn-default.active.focus,
.btn-default.active:focus,
.btn-default.active:hover,
.btn-default:active.focus,
.btn-default:active:focus,
.btn-default:active:hover,
.open>.dropdown-toggle.btn-default.focus,
.open>.dropdown-toggle.btn-default:focus,
.open>.dropdown-toggle.btn-default:hover {
color: var(--button-text-hover);
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
.btn-link {
font-weight: 400;
color: var(--button-color);
border-radius: 0;
}
.btn-primary:hover,
.btn-default:hover {
color: var(--button-text-hover);
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
outline: none;
}
.btn-primary.disabled.focus,
.btn-primary.disabled:focus,
.btn-primary.disabled:hover,
.btn-primary[disabled].focus,
.btn-primary[disabled]:focus,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary.focus,
fieldset[disabled] .btn-primary:focus,
fieldset[disabled] .btn-primary:hover {
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
.bootbox-form .checkbox i,
.switch i {
background: var(--transparency-light-15);
}
.btn.focus,
.btn:focus,
.btn:hover {
color: var(--button-text-hover);
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
.btn-link:focus,
.btn-link:hover {
background: transparent;
color: var(--button-color-hover);
border-color: transparent;
}
.btn-primary.active.focus,
.btn-primary.active:focus,
.btn-primary.active:hover,
.btn-primary:active.focus,
.btn-primary:active:focus,
.btn-primary:active:hover,
.open>.dropdown-toggle.btn-primary.focus,
.open>.dropdown-toggle.btn-primary:focus,
.open>.dropdown-toggle.btn-primary:hover {
color: var(--button-text-hover);
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
.ui-select-bootstrap>.ui-select-match>.btn:hover,
.ui-select-bootstrap>.ui-select-match>.btn:focus {
text-align: left !important;
color: var(--button-text-hover);
background: var(--transparency-light-25);
border-color: #00000000;
}
/* PAGINATION */
.pagination>.disabled>span,
.pagination>.disabled>span:hover,
.pagination>.disabled>span:focus,
.pagination>.disabled>button,
.pagination>.disabled>button:hover,
.pagination>.disabled>button:focus,
.pagination>.disabled>a,
.pagination>.disabled>a:hover,
.pagination>.disabled>a:focus {
color: var(--text-muted);
background-color: var(--button-color);
border-color: var(--button-color);
}
.pagination>li>button {
position: relative;
float: left;
padding: 6px 12px;
margin-left: -1px !important;
line-height: 1.42857143;
text-decoration: none;
border: 1px solid #ddd;
}
.pagination>li>a,
.pagination>li>button,
.pagination>li>span {
background-color: var(--button-color);
border-color: var(--button-color);
color: var(--button-text);
}
.pagination>li>a:hover,
.pagination>li>button:hover,
.pagination>li>span:hover,
.pagination>li>a:focus,
.pagination>li>button:focus,
.pagination>li>span:focus {
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
color: var(--button-text-hover);
}
.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>button,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>button:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus,
.pagination>.active>button:focus {
z-index: 3;
color: #fff;
cursor: default;
background-color: var(--button-color-hover);
border-color: var(--button-color-hover);
}
/* FORM CONTROL */
select:focus,
select.form-control:focus {
background: var(--drop-down-menu-bg) !important;
}
.form-control {
background: var(--transparency-light-15) !important;
border: 1px solid transparent;
color: var(--text);
}
.form-control:not([disabled]):not(select),
output {
color: var(--text-hover);
}
.form-control:focus {
border-color: rgb(var(--accent-color));
outline: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.input-group-addon {
color: var(--button-text);
background-color: var(--button-color);
border: 1px solid transparent;
}
/* DROPDOWN MENU */
.dropdown-menu,
.tableMenu {
background: var(--drop-down-menu-bg);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
color: var(--text);
}
.tableMenu {
background-color: var(--drop-down-menu-bg) !important;
}
.tableMenu .menuContent {
border-bottom: 1px solid var(--transparency-light-15);
}
.widget .widget-body table thead th .table-filter {
color: var(--text-muted);
}
.widget .widget-body table thead th .filter-active {
color: #f0ad4e;
font-size: 12px!important;
}
.table th button.sortable {
color: var(--link-color);
}
.small-select {
background-color: var(--drop-down-menu-bg);
color: var(--text);
}
.dropdown-menu>li>a,
.ui-select-bootstrap .ui-select-choices-row>span {
color: var(--text);
}
.dropdown-menu>.active>a,
.dropdown-menu>.active>a:focus,
.dropdown-menu>.active>a:hover,
.ui-select-bootstrap .ui-select-choices-row.active>span {
background: var(--transparency-dark-25);
}
.ui-select-bootstrap .ui-select-choices-row>span:focus,
.ui-select-bootstrap .ui-select-choices-row>span:hover,
.ui-select-choices-row:hover {
color: var(--text-hover);
background: var(--transparency-light-15);
}
/* APP TEMPLATES */
.blocklist-item {
border: 1px solid transparent;
-webkit-box-shadow: 0 3px 10px -2px hsla(0, 0%, 0%, 0.5);
box-shadow: 0 3px 10px -2px hsla(0, 0%, 0%, 0.5);
}
/* ADD NETWORK */
.boxselector_wrapper input[type=radio]:checked+label {
background: var(--transparency-light-15);
color: var(--text-hover);
border-color: transparent;
}
.boxselector_wrapper label {
-webkit-box-shadow: none;
box-shadow: none;
background: var(--transparency-dark-15);
border: 1px solid transparent;
}
.boxselector_wrapper input[type=radio]:checked+label:after {
color: rgb(var(--accent-color));
border: 2px solid rgb(var(--accent-color));
background: var(--label-text-color);
}
.bootbox-form .checkbox :checked~i,
.switch :checked+i {
-webkit-box-shadow: inset 0 0 1px rgb(0 0 0 / 50%), inset 0 0 40px rgb(var(--accent-color));
box-shadow: inset 0 0 1px rgb(0 0 0 / 50%), inset 0 0 40px rgb(var(--accent-color));
}
.md-checkbox input[type=checkbox]:checked+label:before {
background: rgb(var(--accent-color));
border: none;
}
.md-checkbox input[type=checkbox]:checked+label:after {
border-color: var(--label-text-color);
}
.fa.blue-icon,
.fab.blue-icon {
color: rgb(var(--accent-color));
}
/* STACKS */
.CodeMirror {
background: var(--transparency-light-10);
color: var(--text-hover);
}
.CodeMirror-gutters {
border-right: 1px solid rgba(255, 255, 255, 0.25);
background: var(--transparency-dark-25);
caret-color: var(--text-hover);
}
.CodeMirror-linenumber {
color: rgb(var(--accent-color));
}
.CodeMirror-line::selection,
.CodeMirror-line>span::selection,
.CodeMirror-line>span>span::selection {
background: #d7d4f0;
}
.cm-s-default .cm-atom {
color: rgb(var(--accent-color));
}
/* NAVIGATION */
.nav-tabs>li.active>a,
.nav-tabs>li.active>a:focus,
.nav-tabs>li.active>a:hover {
color: var(--text-hover);
cursor: default;
background: var(--transparency-light-15);
border: 1px solid #ddd0;
border-bottom-color: transparent;
}
.nav-tabs>li>a:hover {
border-color: transparent;
}
.nav>li>a:focus,
.nav>li>a:hover {
text-decoration: none;
background: var(--transparency-dark-25);
}
.nav-tabs>li>a {
border: 1px solid rgba(0, 0, 0, 0);
background: var(--transparency-dark-15)
}
/* LOGS */
.log_viewer {
color: var(--text-hover);
background: var(--transparency-light-10);
border: 1px solid transparent;
}
/* JSON TREE */
json-tree {
color: var(--text);
}
json-tree .key {
color: rgb(var(--accent-color));
padding-right: 5px;
}
pre {
color: var(--text-hover);
background: var(--transparency-light-10);
border: 1px solid transparent;
}
/* MODAL */
.close {
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: var(--text);
text-shadow: 0 1px 0 var(--text);
filter: alpha(opacity=100);
opacity: 1;
}
.close:focus,
.close:hover {
color: var(--text-hover);
text-decoration: none;
cursor: pointer;
filter: alpha(opacity=100);
opacity: 1;
}
.modal-content {
background: var(--modal-bg-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
}
.modal-header {
background: var(--modal-header-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
border-bottom: 1px solid rgb(var(--accent-color));
}
.modal-footer {
background: var(--modal-footer-color);
background-repeat: repeat, no-repeat;
background-attachment: fixed, fixed;
background-position: center center, center center;
background-size: auto, cover;
-webkit-background-size: auto, cover;
-moz-background-size: auto, cover;
-o-background-size: auto, cover;
border-top: 1px solid rgb(var(--accent-color));
}
/* STACKS / SERVICES TABLES */
.widget .widget-body table tbody {
background-color: transparent !important;
background: transparent !important;
}
.widget .widget-body table .ng-scope tr {
background: var(--transparency-dark-25) !important;
background: var(--transparency-dark-25) !important;
}
.widget .widget-body table thead {
background: var(--transparency-dark-25) !important;
background: var(--transparency-dark-25) !important;
}
.widget .widget-body table tbody .ng-isolate-scope div {
background: var(--transparency-dark-25) !important;
background: rgba(0, 0, 0, 0) !important;
}
.widget .widget-body table tbody tr:hover {
background-color: #0000 !important;
background: rgba(0, 0, 0, 0) !important;
}
.widget .widget-body table thead tr:hover {
background: var(--transparency-dark-35) !important;
background: var(--transparency-dark-35) !important;
}
/* HOME PAGE */
.app-portainer-home-EnvironmentList-EnvironmentItem-EnvironmentItem-module__wrapperButton {
background: rgba(0, 0, 0, 0.2);
color: var(--text);
}
.app-portainer-components-datatables-components-FilterSearchBar-module__searchBar {
border: 1px solid var(--transparency-light-15);
}
.app-portainer-components-form-components-ReactSelect-module__root .selector__control {
border: 1px solid var(--transparency-light-25);
background-color: var(--transparency-dark-25);
}
input,
select,
textarea {
background: var(--transparency-dark-25);
}
.selector__menu {
background-color: var(--drop-down-menu-bg) !important;
border: 1px solid var(--drop-down-menu-bg) !important;
}
.selector__option {
background-color: var(--transparency-light-05) !important;
border: 1px solid var(--transparency-light-05) !important;
}
:root[theme=dark] .app-portainer-components-form-components-ReactSelect-module__root .selector__multi-value,
:root[theme=highcontrast] .app-portainer-components-form-components-ReactSelect-module__root .selector__multi-value {
background-color: rgb(var(--accent-color));
color: var(--label-text-color);
}
:root[theme=dark] .app-portainer-components-form-components-ReactSelect-module__root .selector__multi-value__label,
:root[theme=highcontrast] .app-portainer-components-form-components-ReactSelect-module__root .selector__multi-value__label {
color: var(--label-text-color);
}
/* ACCENTS */
.label-info,
.label-primary {
background-color: rgb(var(--accent-color));
color: var(--label-text-color);
}