mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 15:43:23 -06:00
406ef962fc
* Added RefreshButton * Added RefreshSelect * Added RefreshSelectButton * Added RefreshPicker * Removed the magic string Paused * Minor style changes and using Off instead of Pause * Added HeadlessSelect * Added HeadlessSelect story * Added SelectButton * Removed RefreshSelectButton * Added TimePicker and moved ClickOutsideWrapper to ui/components * Added TimePickerPopOver * Added react-calendar * Missed yarn lock file * Added inputs to popover * Added TimePicker and RefreshPicker to DashNav * Moved TimePicker and RefreshPicker to app/core * Added react-calendar to app and removed from ui/components * Fixed PopOver onClick * Moved everything back to ui components because of typings problems * Exporing RefreshPicker and TimePicker * Added Apply and inputs * Added typings * Added TimePickerInput and logic * Fixed parsing of string to Moments * Fixed range string * Styling and connecting the calendars and inputs * Changed Calendar styling * Added backward forward and zoom * Fixed responsive styles * Moved TimePicker and RefreshPicker into app core * Renamed menuIsOpen to isOpen * Changed from className={} to className="" * Moved Popover to TimePickerOptionGroup * Renamed all PopOver to Popover * Renamed popOver to popover and some minor refactorings * Renamed files with git mv * Added ButtonSelect and refactored RefreshPicker * Refactored TimePicker to use new ButtonSelect * Removed HeadlessSelect as suggested * fix: Fix typings and misc errors after rebase * wip: Enable time picker on dashboard and add tooltip * Merge branch 'master' into hugoh/new-timepicker-and-unified-component # Conflicts: # packages/grafana-ui/package.json # packages/grafana-ui/src/components/Input/Input.test.tsx # packages/grafana-ui/src/components/Input/Input.tsx # packages/grafana-ui/src/utils/validate.ts # public/app/features/dashboard/panel_editor/QueryOptions.tsx # yarn.lock * fix: Snapshot update * Move TimePicker default options into the TimePicker as statics, pass the tooltipContent down the line when wanted and wrap the button in a tooltip element * fix: Override internal state prop if we provide one in a prop * Updated snapshots * Let dashnav control refreshPicker state * feat: Add a stringToMs function * wip: RefreshPicker * wip: Move RefreshPicker to @grafana/ui * wip: Move TimePicker to @grafana/ui * wip: Remove comments * wip: Add refreshPicker to explore * wip: Use default intervals if the prop is missing * wip: Nicer way of setting defaults * fix: Control the select component * wip: Add onMoveForward/onMoveBack * Remove code related to the new time picker and refresh picker from dashnav * Fix: Typings after merge * chore: Minor fix after merge * chore: Remove _.map usage * chore: Moved refresh-picker logic out of the refresh picker since it will work a little differently in explore and dashboards until we have replaced the TimeSrv * feat: Add an Interval component to @grafana/ui * chore: Remove intervalId from redux state and move setInterval logic from ExploreToolbar to its own Interval component * feat: Add refreshInterval to Explore's URL state * feat: Pick up refreshInterval from url on page load * fix: Set default refreshInterval when no value can be retained from URL * fix: Update test initial state with refreshInterval * fix: Handle URLs before RefreshPicker * fix: Move RefreshInterval to url position 3 since the segments can take multiple positions * fix: A better way of detecting urls without RefreshInterval in Explore * chore: Some Explore typings * fix: Attach refresh picker to interval picker * chore: Sass fix for refresh button border radius * fix: Remove refreshInterval from URL * fix: Intervals now start when previous interval is finished * fix: Use clearTimeout instead of clearInterval * fix: Make sure there's a delay set before adding a timeout when we have slow explore queries * wip: Add refresh picker to dashboard * feat: Add util for removing keys with empty values * feat: RefreshPicker in dashboards and tmp rem out old RefreshPicker * fix: Remove the jumpy:ness in the refreshpicker * Changed placement and made it hide when your in dashboard settings * chore: Move logic related to refresh picker out of DashNav to its own component * feat: Add tooltip to refreshpicker * fix: Fix bug with refreshpicker not updating when setting to 'off' * fix: Make it possible to override refresh intervals using the dashboard intervals * chore: Change name of Interval to SetInterval to align with ecmascripts naming since its basically the same but declarative and async * fix: Use default intervals when auto refresh is empty in dashboard settings * fix: Hide time/interval picker when hidden is true on the model, such as on the home dashboard * fix: Interval picker will have to handle location changes since timeSrv wont * RefreshPicker: Refactoring refresh picker * RefreshPicker: minor refactoring
235 lines
5.5 KiB
SCSS
235 lines
5.5 KiB
SCSS
/***
|
|
* !!! THIS FILE WAS GENERATED AUTOMATICALLY !!!
|
|
*
|
|
* Do not modify this file!
|
|
* - Edit grafana-ui/src/themes/default.ts to regenerate
|
|
* - Edit grafana-ui/src/themes/_variables.scss.tmpl.ts to update template
|
|
*
|
|
* !!! THIS FILE WAS GENERATED AUTOMATICALLY !!!
|
|
*/
|
|
|
|
// Options
|
|
//
|
|
// Quickly modify global styling by enabling or disabling optional features.
|
|
|
|
$enable-flex: true !default;
|
|
$enable-hover-media-query: false !default;
|
|
|
|
// Spacing
|
|
//
|
|
// Control the default styling of most Bootstrap elements by modifying these
|
|
// variables. Mostly focused on spacing.
|
|
|
|
$space-inset-squish-md: 4px 8px !default;
|
|
|
|
$space-xxs: 2px !default;
|
|
$space-xs: 4px !default;
|
|
$space-sm: 8px !default;
|
|
$space-md: 16px !default;
|
|
$space-lg: 24px !default;
|
|
$space-xl: 32px !default;
|
|
|
|
$spacer: 14px !default;
|
|
$spacer-x: $spacer !default;
|
|
$spacer-y: $spacer !default;
|
|
$spacers: (
|
|
0: (
|
|
x: 0,
|
|
y: 0,
|
|
),
|
|
1: (
|
|
x: $spacer-x,
|
|
y: $spacer-y,
|
|
),
|
|
2: (
|
|
x: (
|
|
$spacer-x * 1.5,
|
|
),
|
|
y: (
|
|
$spacer-y * 1.5,
|
|
),
|
|
),
|
|
3: (
|
|
x: (
|
|
$spacer-x * 3,
|
|
),
|
|
y: (
|
|
$spacer-y * 3,
|
|
),
|
|
),
|
|
) !default;
|
|
|
|
// Grid breakpoints
|
|
//
|
|
// Define the minimum and maximum dimensions at which your layout will change,
|
|
// adapting to different screen sizes, for use in media queries.
|
|
|
|
$grid-breakpoints: (
|
|
xs: 0,
|
|
sm: 544px,
|
|
md: 768px,
|
|
lg: 992px,
|
|
xl: 1200px,
|
|
) !default;
|
|
|
|
// Grid containers
|
|
//
|
|
// Define the maximum width of `.container` for different screen sizes.
|
|
|
|
$container-max-widths: (
|
|
sm: 576px,
|
|
md: 720px,
|
|
lg: 940px,
|
|
xl: 1080px,
|
|
) !default;
|
|
|
|
// Grid columns
|
|
//
|
|
// Set the number of columns and specify the width of the gutters.
|
|
|
|
$grid-columns: 12 !default;
|
|
$grid-gutter-width: 30px !default;
|
|
|
|
// Component heights
|
|
// -------------------------
|
|
$height-sm: 24px;
|
|
$height-md: 32px;
|
|
$height-lg: 48px;
|
|
|
|
// Typography
|
|
// -------------------------
|
|
|
|
$font-family-sans-serif: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
|
|
$font-family-monospace: Menlo, Monaco, Consolas, 'Courier New', monospace;
|
|
|
|
$font-size-root: 14px !default;
|
|
$font-size-base: 13px !default;
|
|
|
|
$font-size-lg: 18px !default;
|
|
$font-size-md: 14px !default;
|
|
$font-size-sm: 12px !default;
|
|
$font-size-xs: 10px !default;
|
|
|
|
$line-height-base: 1.5 !default;
|
|
|
|
$font-weight-regular: 400 !default;
|
|
$font-weight-semi-bold: 500 !default;
|
|
|
|
$font-size-h1: 28px !default;
|
|
$font-size-h2: 24px !default;
|
|
$font-size-h3: 21px !default;
|
|
$font-size-h4: 18px !default;
|
|
$font-size-h5: 16px !default;
|
|
$font-size-h6: 14px !default;
|
|
|
|
$headings-line-height: 1.1 !default;
|
|
|
|
// Components
|
|
//
|
|
// Define common padding and border radius sizes and more.
|
|
|
|
$border-width: 1px !default;
|
|
|
|
$border-radius: 3px !default;
|
|
$border-radius-lg: 5px !default;
|
|
$border-radius-sm: 2px !default;
|
|
|
|
// Page
|
|
|
|
$page-sidebar-width: 154px;
|
|
$page-sidebar-margin: 56px;
|
|
|
|
// Links
|
|
// -------------------------
|
|
$link-decoration: none !default;
|
|
$link-hover-decoration: none !default;
|
|
|
|
// Forms
|
|
$input-line-height: 18px !default;
|
|
|
|
$input-border-radius: 0 $border-radius $border-radius 0 !default;
|
|
$input-border-radius-sm: 0 $border-radius-sm $border-radius-sm 0 !default;
|
|
|
|
$label-border-radius: $border-radius 0 0 $border-radius !default;
|
|
$label-border-radius-sm: $border-radius-sm 0 0 $border-radius-sm !default;
|
|
|
|
$input-padding: 8px;
|
|
$input-height: 35px !default;
|
|
|
|
$cursor-disabled: not-allowed !default;
|
|
|
|
// Form validation icons
|
|
$form-icon-success: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%235cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") !default;
|
|
$form-icon-warning: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E") !default;
|
|
$form-icon-danger: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E") !default;
|
|
|
|
// Z-index master list
|
|
// -------------------------
|
|
// Used for a bird's eye view of components dependent on the z-axis
|
|
// Try to avoid customizing these :)
|
|
$zindex-dropdown: 1000;
|
|
$zindex-navbar-fixed: 1020;
|
|
$zindex-sidemenu: 1025;
|
|
$zindex-tooltip: 1030;
|
|
$zindex-modal-backdrop: 1040;
|
|
$zindex-modal: 1050;
|
|
$zindex-typeahead: 1060;
|
|
$zindex-timepicker-popover: 1070;
|
|
|
|
// Buttons
|
|
//
|
|
|
|
$btn-padding-x: 14px !default;
|
|
$btn-padding-y: 10px !default;
|
|
$btn-line-height: 1 !default;
|
|
$btn-font-weight: 500 !default;
|
|
|
|
$btn-padding-x-sm: 7px !default;
|
|
$btn-padding-y-sm: 4px !default;
|
|
|
|
$btn-padding-x-lg: 21px !default;
|
|
$btn-padding-y-lg: 11px !default;
|
|
|
|
$btn-padding-x-xl: 21px !default;
|
|
$btn-padding-y-xl: 11px !default;
|
|
|
|
$btn-semi-transparent: rgba(0, 0, 0, 0.2) !default;
|
|
|
|
// sidemenu
|
|
$side-menu-width: 60px;
|
|
|
|
// dashboard
|
|
$dashboard-padding: $space-md;
|
|
$panel-padding: 0 16px 8px 16px;
|
|
|
|
// tabs
|
|
$tabs-padding: 10px 15px 9px;
|
|
|
|
$external-services: (
|
|
github: (
|
|
bgColor: #464646,
|
|
borderColor: #393939,
|
|
icon: '',
|
|
),
|
|
gitlab: (
|
|
bgColor: #fc6d26,
|
|
borderColor: #e24329,
|
|
icon: '',
|
|
),
|
|
google: (
|
|
bgColor: #e84d3c,
|
|
borderColor: #b83e31,
|
|
icon: '',
|
|
),
|
|
grafanacom: (
|
|
bgColor: #262628,
|
|
borderColor: #393939,
|
|
icon: '',
|
|
),
|
|
oauth: (
|
|
bgColor: #262628,
|
|
borderColor: #393939,
|
|
icon: '',
|
|
),
|
|
) !default;
|