Files
librenms-librenms/html/css/app.css
Tony Murray 699aa8a042 Consolidate configuration settings and implement dynamic webui settings (#9809)
* initial db/defaults dump

* numeric values

* Remove $config['time']

* Use config_definitions.json

* try setting definition as a complete array

* a little more

* fix format

* WIP converting dynamic setting pages

* rewriting the webui

* remove legacy and add translations

* finish email section

* improve navigation
update js a bit

* Import the remaining existing settings

* Update backend still some wip
migration

* fix config loading (db not overriding defaults)

* some cleanup

* more array collapsing

* update settings

* Settings search

* add purge settings to ui, order groups and sections

* collapse more arrays

* Auth definitions WIP

* remove needless slash escapes

* add warning to json

* moving settings from defaults.inc

* remove slow_statistics

* Move rrdtool settings to the poller section

* Use translations more consistently

* removing more settings from defaults.inc.php

* show setting name in tooltip

* allow help text to be shown on mobile

* disable settings that are set in config.php

* Implement undo and reset to default.

* Vue.js functional

* Vue.js WIP

* Implement tabs component

* accordion WIP

* lodash ver update

* two items

* Accordion somewhat working

* hash navigation

* Refine Accordion

* Fix up tab styling a bit

* Cleaner tab selected property
Hide html while loading

* spinner?

* Icon support
property for accordion to active

* WIP

* Tabs/Sections from ajax

* Setting Component skeletons

* Dynamic Component resolution

* Basic functionality

* toggle class

* Refactor components

* translate tabs and accordions

* simple array attempt

* improve readonly tooltip

* array styling

* array value editing

* organize snmp info

* Handle initial tab/section in url

* Use Laravel to parse tab/section, dump old

* Draggable array entries

* v-tooltip, for clickable (and touch) help tooltips
disable draggable

* Navigation WIP

* Navigation WIP

* groups computed

* filter settings

* fix event reference

* vue.js i18n initial

* missing description = just setting name

* en fallback

* tidy up the language support and js generation

* persist value to db

* fix issue with 0

* Delete settings from DB instead of setting them to default

* ldap-groups
fixup style

* Default dashboard selection

* fix array of options instead of object

* allow custom validation for settings

* translate options in SettingSelect

* SNMP v3 WIP

* fix setting arrays

* Split persist out of set

* Hook up events for SNMP v3 Auth
correct Config::persist behaviour with arrays

* dependent settings (primitive for now)
actually update the settings values in the LibrenmsSettings component

* more complex "when" behaviour

* remove un-needed seeder

* add poller_modules.cisco-qfp

* remove en.json (disable warning)

* don't set default for log_dir or log_file, otherwise it won't be processed correctly

* Fix module order
add some missing settings

* more config corrections

* correct graphs
correct loading values set to null (although it should have no difference)
remove project_name_version

* Add nfsen settings.  Docs are very confusing, so might have flubbed something
remove option for array definition of select option as numeric indexes messes it up

* Correct more upstream config differences

* Config cleanup after a bunch of merges.

* Fixes

* add version tags to js/css files
remove old js

* Print out full settings list read-only

* Add http_proxy setting
fix indents in config_definitions.json

* repeaters default is 0 (aka 20)

* cleanups

* rewrite the dynamic config docs

* add language docs

* Don't show snmp v3 auth add/remove if disabled by config.php
2019-10-16 21:22:05 +00:00

361 lines
6.3 KiB
CSS

.v-select {
position: relative;
font-family: inherit;
}
.v-select,
.v-select * {
box-sizing: border-box;
}
/* KeyFrames */
@-webkit-keyframes vSelectSpinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes vSelectSpinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Dropdown Default Transition */
.vs__fade-enter-active,
.vs__fade-leave-active {
transition: opacity 0.15s cubic-bezier(1, 0.5, 0.8, 1);
}
.vs__fade-enter,
.vs__fade-leave-to {
opacity: 0;
}
/** Component States */
/*
* Disabled
*
* When the component is disabled, all interaction
* should be prevented. Here we modify the bg color,
* and change the cursor displayed on the interactive
* components.
*/
.vs--disabled .vs__dropdown-toggle,
.vs--disabled .vs__clear,
.vs--disabled .vs__search,
.vs--disabled .vs__selected,
.vs--disabled .vs__open-indicator {
cursor: not-allowed;
background-color: #f8f8f8;
}
/*
* RTL - Right to Left Support
*
* Because we're using a flexbox layout, the `dir="rtl"`
* HTML attribute does most of the work for us by
* rearranging the child elements visually.
*/
.v-select[dir=rtl] .vs__actions {
padding: 0 3px 0 6px;
}
.v-select[dir=rtl] .vs__clear {
margin-left: 6px;
margin-right: 0;
}
.v-select[dir=rtl] .vs__deselect {
margin-left: 0;
margin-right: 2px;
}
.v-select[dir=rtl] .vs__dropdown-menu {
text-align: right;
}
/**
Dropdown Toggle
The dropdown toggle is the primary wrapper of the component. It
has two direct descendants: .vs__selected-options, and .vs__actions.
.vs__selected-options holds the .vs__selected's as well as the
main search input.
.vs__actions holds the clear button and dropdown toggle.
*/
.vs__dropdown-toggle {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
display: flex;
padding: 0 0 4px 0;
background: none;
border: 1px solid rgba(60, 60, 60, 0.26);
border-radius: 4px;
white-space: normal;
}
.vs__selected-options {
display: flex;
flex-basis: 100%;
flex-grow: 1;
flex-wrap: wrap;
padding: 0 2px;
position: relative;
}
.vs__actions {
display: flex;
align-items: center;
padding: 4px 6px 0 3px;
}
/* Dropdown Toggle States */
.vs--searchable .vs__dropdown-toggle {
cursor: text;
}
.vs--unsearchable .vs__dropdown-toggle {
cursor: pointer;
}
.vs--open .vs__dropdown-toggle {
border-bottom-color: transparent;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.vs__open-indicator {
fill: rgba(60, 60, 60, 0.5);
transform: scale(1);
transition: transform 150ms cubic-bezier(1, -0.115, 0.975, 0.855);
transition-timing-function: cubic-bezier(1, -0.115, 0.975, 0.855);
}
.vs--open .vs__open-indicator {
transform: rotate(180deg) scale(1);
}
.vs--loading .vs__open-indicator {
opacity: 0;
}
/* Clear Button */
.vs__clear {
fill: rgba(60, 60, 60, 0.5);
padding: 0;
border: 0;
background-color: transparent;
cursor: pointer;
margin-right: 8px;
}
/* Dropdown Menu */
.vs__dropdown-menu {
display: block;
position: absolute;
top: calc(100% - 1px);
left: 0;
z-index: 1000;
padding: 5px 0;
margin: 0;
width: 100%;
max-height: 350px;
min-width: 160px;
overflow-y: auto;
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
border: 1px solid rgba(60, 60, 60, 0.26);
border-top-style: none;
border-radius: 0 0 4px 4px;
text-align: left;
list-style: none;
background: #fff;
}
.vs__no-options {
text-align: center;
}
/* List Items */
.vs__dropdown-option {
line-height: 1.42857143;
/* Normalize line height */
display: block;
padding: 3px 20px;
clear: both;
color: #333;
/* Overrides most CSS frameworks */
white-space: nowrap;
}
.vs__dropdown-option:hover {
cursor: pointer;
}
.vs__dropdown-option--highlight {
background: #5897fb;
color: #fff;
}
/* Selected Tags */
.vs__selected {
display: flex;
align-items: center;
background-color: #f0f0f0;
border: 1px solid rgba(60, 60, 60, 0.26);
border-radius: 4px;
color: #333;
line-height: 1.4;
margin: 4px 2px 0px 2px;
padding: 0 0.25em;
}
.vs__deselect {
display: inline-flex;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin-left: 4px;
padding: 0;
border: 0;
cursor: pointer;
background: none;
fill: rgba(60, 60, 60, 0.5);
text-shadow: 0 1px 0 #fff;
}
/* States */
.vs--single .vs__selected {
background-color: transparent;
border-color: transparent;
}
.vs--single.vs--open .vs__selected {
position: absolute;
opacity: 0.4;
}
.vs--single.vs--searching .vs__selected {
display: none;
}
/* Search Input */
.vs__search::-webkit-search-decoration,
.vs__search::-webkit-search-cancel-button,
.vs__search::-webkit-search-results-button,
.vs__search::-webkit-search-results-decoration,
.vs__search::-ms-clear {
display: none;
}
.vs__search,
.vs__search:focus {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
line-height: 1.4;
font-size: 1em;
border: 1px solid transparent;
border-left: none;
outline: none;
margin: 4px 0 0 0;
padding: 0 7px;
background: none;
box-shadow: none;
width: 0;
max-width: 100%;
flex-grow: 1;
}
.vs__search::-webkit-input-placeholder {
color: inherit;
}
.vs__search::-moz-placeholder {
color: inherit;
}
.vs__search:-ms-input-placeholder {
color: inherit;
}
.vs__search::-ms-input-placeholder {
color: inherit;
}
.vs__search::placeholder {
color: inherit;
}
/**
States
*/
.vs--unsearchable .vs__search {
opacity: 1;
}
.vs--unsearchable .vs__search:hover {
cursor: pointer;
}
.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search {
opacity: 0.2;
}
/* Loading Spinner */
.vs__spinner {
align-self: center;
opacity: 0;
font-size: 5px;
text-indent: -9999em;
overflow: hidden;
border-top: 0.9em solid rgba(100, 100, 100, 0.1);
border-right: 0.9em solid rgba(100, 100, 100, 0.1);
border-bottom: 0.9em solid rgba(100, 100, 100, 0.1);
border-left: 0.9em solid rgba(60, 60, 60, 0.45);
transform: translateZ(0);
-webkit-animation: vSelectSpinner 1.1s infinite linear;
animation: vSelectSpinner 1.1s infinite linear;
transition: opacity 0.1s;
}
.vs__spinner,
.vs__spinner:after {
border-radius: 50%;
width: 5em;
height: 5em;
}
/* Loading Spinner States */
.vs--loading .vs__spinner {
opacity: 1;
}