123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- @import 'common.less';
- @undo-btn-margin: 10px;
- @combo-widget-width: 100px;
- @green: #6ebd45;
- @slider-light-grey: #e6e6e6;
- @slider-dark-grey: #aaaaaa;
- @slider-widget-border-color: #999;
- @slider-widget-width: 220px;
- @slider-widget-tooltip-background-color: @green;
- @slider-widget-selection-background-color: @slider-dark-grey;
- @slider-widget-body-height: 10px;
- @slider-widget-body-background-color: @slider-light-grey;
- @slider-widget-tick-height: 6px;
- @slider-widget-tick-width: 1px;
- @slider-widget-tick-background-color: @slider-dark-grey;
- @slider-widget-tick-label-color: @slider-dark-grey;
- @slider-widget-tooltip-background: @slider-widget-tooltip-background-color;
- @slider-widget-disabled-selection-background-color: lighten(@slider-widget-selection-background-color, 20%);
- @widget-config-override-action-color: #cbcbcb;
- @widget-config-override-action-active-color: #acacac;
- @toggle-widget-handle-background-color: #f3f3f3;
- @toggle-widget-text-color: #fff;
- @toggle-widget-text-size: 12px;
- @toggle-widget-on-background-color: #aaa;
- @toggle-widget-off-background-color: @green;
- .widget-config {
- margin-bottom: 11px;
- .widget-config-label {
- font-size: 90%;
- width: 100%;
- &.text-success {
- color: @green;
- }
- .icon-warning-sign {
- &.warning {
- color: @health-status-yellow
- }
- }
- }
- .action-button {
- margin-right: @undo-btn-margin;
- }
- .widget-config-controls {
- float: right;
- display: inline-block;
- margin-left: 10px;
- min-height: 65px;
- min-width: 39px;
- &.version-labels {
- min-width: 52px;
- .label-current {
- padding: 2px 3px 3px 5px;
- }
- }
- .widget-col {
- width: 18px;
- &.left {
- float: left;
- }
- &.right {
- float: right;
- }
- }
- .widget-action {
- text-decoration: none;
- //display: block;
- }
- .widget-action-set-recommended,
- .widget-action-final,
- .widget-action-switch-view {
- padding-left: 1px;
- color: @widget-config-override-action-color;
- &.active {
- color: @widget-config-override-action-active-color;
- }
- &.text-error {
- color: #b94a48;
- }
- }
- }
- }
- .directory-textarea-wrapper {
- float: left;
- width: 80%;
- }
- .list-widget {
- li, li:active {
- a, a:hover, a:focus, a:active, a:visited {
- background-color: #fff !important;
- background-image: none !important;
- color: #333 !important;
- }
- }
- }
- .slider-widget {
- .widget-config-label {
- display: inline-block;
- padding-bottom: 13px;
- margin-bottom: 15px;
- }
- .slider-track {
- height: @slider-widget-body-height !important;
- border-radius: 0;
- .slider-track-high {
- background-color: @slider-widget-body-background-color;
- border-radius: 0;
- }
- }
- .slider.slider-horizontal {
- width: @slider-widget-width;
- .tooltip {
- margin-top: -24px;
- opacity: 1;
- font-size: 10px;
- line-height: 14px;
- min-width: 30px;
- z-index: 1;
- visibility: inherit;
- &.tooltip-min,
- &.tooltip-max {
- display: none;
- }
- .tooltip-inner {
- padding: 0px 2px;
- background-color: @slider-widget-tooltip-background-color;
- text-align: center;
- }
- .tooltip-arrow {
- bottom: 2px;
- margin-left: -4px;
- border-top-color: @slider-widget-tooltip-background-color;
- border-width: 4px 4px 0;
- }
- }
- .slider-tick {
- width: 0px;
- margin-top: 10px;
- margin-left: 0px;
- font-size: 8px;
- &:before,
- &.in-selection:before {
- content: '';
- display: block;
- width: 1px;
- height: 8px;
- background-color: @slider-widget-tick-background-color;
- }
- &.last {
- margin-left: -1px;
- }
- &.slider-tick-default {
- width: 0;
- height: 0;
- border-left: 5px solid transparent;
- border-right: 5px solid transparent;
- border-bottom: 5px solid @slider-dark-grey;
- margin-left: -5px;
- > span {
- color: @slider-widget-tick-label-color;
- font-size: 10px;
- }
- &::before {
- display: none;
- }
- }
- }
- &.slider-disabled {
- .tooltip-arrow {
- border-top-color: lighten(@green, 20%);;
- }
- .tooltip-inner {
- background-color: lighten(@green, 20%);;
- }
- }
- }
- .slider-handle {
- margin-top: -4px !important;
- height: 14px;
- width: 3px;
- margin-left: -1px !important;
- background-color: @slider-widget-selection-background-color;
- background-image: none;
- border-radius: 0;
- }
- .slider-tick-label-container {
- margin-top: 0;
- }
- .slider-tick-label {
- color: @slider-widget-tick-label-color;
- font-size: 10px;
- .slider-tick-reset-label {
- color: @slider-widget-tick-label-color;
- margin-left: 6px;
- }
- }
- .slider-selection {
- background-image: none;
- background-color: @slider-widget-selection-background-color;
- border-radius: 0;
- box-shadow: none;
- }
- .ui-slider-wrapper {
- .ui-slider-wrapper-inner {
- width: 68%;
- padding-left: 10px;
- .slider.slider-horizontal {
- width: 100%;
- }
- }
- .ui-slider-label {
- color: #aaa;
- line-height: 35px;
- }
- }
- .overrideField {
- margin-top: 30px;
- }
- }
- .slider-disabled {
- .slider-track-high {
- background-color: @slider-widget-disabled-selection-background-color;
- border-bottom-right-radius: 12px;
- border-top-right-radius: 12px;
- }
- .slider-selection {
- background-color: @slider-widget-disabled-selection-background-color;
- }
- .slider-track {
- div.slider-handle {
- background-image: none;
- background-color: @slider-widget-disabled-selection-background-color;
- }
- }
- }
- .spinner-input-widget {
- .spinner-input {
- display: inline-block;
- padding: 0 5px;
- line-height: normal;
- float: left;
- .input-append.input-prepend {
- margin: 0;
- }
- input {
- width: 20px;
- font-size: 12px;
- text-align: center;
- }
- .btn {
- &:first-child {
- padding-left: 4px;
- padding-right: 2px;
- }
- &:last-child {
- padding-left: 2px;
- padding-right: 4px;
- }
- }
- .spinner-input-label {
- font-size: 11px;
- }
- }
- .undo-button {
- padding: 2px 10px;
- float: left;
- }
- }
- .toggle-widget {
- .undo-button {
- margin-left: @undo-btn-margin;
- }
- .bootstrap-switch {
- &,
- &.bootstrap-switch-focused {
- border-color: transparent;
- box-shadow: none;
- }
- .bootstrap-switch-label {
- background-color: @toggle-widget-handle-background-color;
- background-image: none;
- text-shadow: none;
- border-width: 0;
- padding: 2px 8px;
- border-left: 1px solid transparent;
- border-right: 1px solid transparent;
- border-bottom: 1px solid @toggle-widget-handle-background-color;
- }
- .bootstrap-switch-handle-on,
- .bootstrap-switch-handle-off {
- color: @toggle-widget-text-color;
- font-size: @toggle-widget-text-size;
- background-image: none;
- text-shadow: none;
- border: none;
- padding: 2px 0;
- &:hover {
- text-shadow: none;
- color: @toggle-widget-text-color;
- }
- &.bootstrap-switch-default {
- background-color: @toggle-widget-on-background-color;
- }
- &.bootstrap-switch-success {
- background-color: @toggle-widget-off-background-color;
- }
- }
- }
- }
- .combo-widget {
- .input-append {
- .btn-group {
- display: inline-block;
- margin-left: -1px;
- > input {
- border-radius: 3px 0 0 3px;
- width: @combo-widget-width;
- &[disabled] {
- background: #fff;
- cursor: default;
- }
- }
- .btn {
- border-radius: 0 3px 3px 0;
- }
- }
- ul.dropdown-menu {
- z-index: 1100; // menu-items shouldn't be under popover
- }
- }
- .disabled {
- .dropdown {
- input[type="text"] {
- background-color: #eee;
- }
- }
- }
- .action-button {
- margin-left: @undo-btn-margin;
- }
- }
- .checkbox-widget {
- .widget-config-label {
- margin-left: 10px;
- width: auto;
- }
- .bootstrap-checkbox {
- &>button.btn {
- padding: 0;
- margin-top: -7px;
- color: @green;
- &:focus {
- border-color: none;
- box-shadow: 0;
- outline: 0 none;
- }
- }
- .icon-check-empty {
- margin-left: -3px;
- }
- }
- }
- .text-field-widget {
- .text-field-wrapper {
- width: 70%;
- float: left;
- }
- }
- .label-current.icon-ok {
- color: white;
- }
- .compare-mode {
- background-color: rgba(211, 237, 247, 0.39);
- padding: 10px 5px 0px 10px;
- }
|