mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into query_troubleshooting
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled],
|
||||
&:disabled {
|
||||
cursor: $cursor-disabled;
|
||||
opacity: .65;
|
||||
@@ -118,5 +119,16 @@
|
||||
.btn-outline-danger {
|
||||
@include button-outline-variant($btn-danger-bg);
|
||||
}
|
||||
.btn-outline-disabled {
|
||||
@include button-outline-variant($gray-1);
|
||||
@include box-shadow(none);
|
||||
cursor: default;
|
||||
|
||||
&:hover, &:active, &:active:hover, &:focus {
|
||||
color: $gray-1;
|
||||
background-color: transparent;
|
||||
border-color: $gray-1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -56,3 +56,9 @@ $easing: cubic-bezier(0, 0, 0.265, 1.00);
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
.drop-element.drop-popover--annotation {
|
||||
.drop-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
}
|
||||
|
||||
.dropdown-desc {
|
||||
position: relative;
|
||||
top: -3px;
|
||||
width: 250px;
|
||||
font-size: 80%;
|
||||
margin-left: 22px;
|
||||
color: $gray-2;
|
||||
white-space: normal;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
width: 250px;
|
||||
font-size: 80%;
|
||||
margin-left: 22px;
|
||||
color: $gray-2;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
// Dropdown arrow/caret
|
||||
@@ -75,7 +75,7 @@
|
||||
|
||||
// Links within the dropdown menu
|
||||
> li {
|
||||
> a {
|
||||
> a {
|
||||
display: block;
|
||||
padding: 3px 20px 3px 15px;
|
||||
clear: both;
|
||||
|
||||
@@ -19,24 +19,21 @@
|
||||
|
||||
.filter-table tr {
|
||||
background: $grafanaListBackground;
|
||||
border-bottom: 2px solid $page-bg;
|
||||
border-bottom: 3px solid $page-bg;
|
||||
}
|
||||
|
||||
.filter-table th {
|
||||
width: auto;
|
||||
padding: 10px 15px 10px 0;
|
||||
padding: $table-cell-padding;
|
||||
text-align: left;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-table td {
|
||||
padding: 15px 15px 15px 0;
|
||||
padding: $table-cell-padding;
|
||||
|
||||
&:first-child {
|
||||
padding-left: 15px;
|
||||
&.filter-table__switch-cell {
|
||||
padding: 0;
|
||||
border-right: 3px solid $page-bg;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,3 +52,5 @@
|
||||
.filter-table .expanded > td {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -64,6 +64,10 @@ $gf-form-margin: 0.25rem;
|
||||
flex-grow: 1;
|
||||
min-height: 2.60rem;
|
||||
}
|
||||
|
||||
&--error {
|
||||
color: $critical;
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-pre {
|
||||
@@ -76,25 +80,6 @@ $gf-form-margin: 0.25rem;
|
||||
@include border-radius($label-border-radius-sm);
|
||||
}
|
||||
|
||||
.gf-form-error {
|
||||
padding: $input-padding-y $input-padding-x;
|
||||
margin-right: $gf-form-margin;
|
||||
flex-shrink: 0;
|
||||
|
||||
background-color: $input-label-bg;
|
||||
display: block;
|
||||
font-size: $font-size-sm;
|
||||
margin-right: $gf-form-margin;
|
||||
|
||||
border: $input-btn-border-width solid $red;
|
||||
@include border-radius($label-border-radius-sm);
|
||||
|
||||
&--grow {
|
||||
flex-grow: 1;
|
||||
min-height: 2.60rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-checkbox {
|
||||
flex-shrink: 0;
|
||||
padding: $input-padding-y $input-padding-x;
|
||||
@@ -179,6 +164,16 @@ $gf-form-margin: 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-hint {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.gf-form-hint-text {
|
||||
display: block;
|
||||
text-align: right;
|
||||
padding-top: 0.5em;
|
||||
}
|
||||
|
||||
.gf-form-select-wrapper {
|
||||
margin-right: $gf-form-margin;
|
||||
position: relative;
|
||||
@@ -238,10 +233,6 @@ $gf-form-margin: 0.25rem;
|
||||
flex-grow: 0;
|
||||
}
|
||||
|
||||
.gf-form-switch {
|
||||
margin-right: $gf-form-margin;
|
||||
}
|
||||
|
||||
.natural-language-input {
|
||||
&input[type="number"] {
|
||||
font-size: $font-size-base;
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
// Hover/focus
|
||||
.navbar .nav > li > a:focus,
|
||||
.navbar .nav > li > a:hover {
|
||||
background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
||||
color: $navbarLinkColorHover;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -64,10 +63,12 @@
|
||||
border-right: 1px solid $tight-form-border;
|
||||
background-color: $navbarButtonBackground;
|
||||
padding: 0.4rem 1.0rem 0.4rem 1rem;
|
||||
min-height:: $navbarHeight;
|
||||
|
||||
.fa-caret-down {
|
||||
font-size: 70%;
|
||||
}
|
||||
|
||||
.fa-chevron-left{
|
||||
display: none;
|
||||
}
|
||||
@@ -95,7 +96,7 @@
|
||||
.icon-gf-grafana_wordmark {
|
||||
font-size: 21px;
|
||||
position: relative;
|
||||
top: 4px;
|
||||
top: 6px;
|
||||
padding-left: 5px;
|
||||
display: none;
|
||||
}
|
||||
@@ -108,16 +109,16 @@
|
||||
float: left;
|
||||
display: block;
|
||||
margin: 0;
|
||||
font-size: 1.4em;
|
||||
font-size: 1.4rem;
|
||||
border-right: 1px solid $tight-form-border;
|
||||
color: darken($link-color, 5%);
|
||||
background-color: $navbarButtonBackground;
|
||||
font-size: $font-size-lg;
|
||||
padding: 1rem 1rem 0.7rem 1rem;
|
||||
padding: 1rem 1rem 0.75rem 1rem;
|
||||
min-height:: $navbarHeight;
|
||||
|
||||
&:hover {
|
||||
&:hover, &.active {
|
||||
background: $navbarButtonBackgroundHighlight;
|
||||
color: $link-color;
|
||||
}
|
||||
|
||||
.fa-caret-down {
|
||||
@@ -136,11 +137,42 @@
|
||||
max-width: 27px;
|
||||
max-height: 27px;
|
||||
}
|
||||
|
||||
&--search {
|
||||
padding: 1rem 1.5rem 0.75rem 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-page-btn-wrapper {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.dropdown-menu.dropdown-menu--navbar {
|
||||
top: 100%;
|
||||
min-width: 100%;
|
||||
margin-top: 0px;
|
||||
|
||||
li a {
|
||||
padding: $spacer/2 $spacer;
|
||||
border-left: 2px solid $side-menu-bg;
|
||||
background: $side-menu-bg;
|
||||
|
||||
i {
|
||||
display: inline-block;
|
||||
padding-right: 21px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@include left-brand-border-gradient();
|
||||
color: $link-hover-color;
|
||||
background: $input-label-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidemenu-pinned {
|
||||
.navbar-brand-btn {
|
||||
background-color: $page-bg;
|
||||
width: $side-menu-width;
|
||||
|
||||
.icon-gf-grafana_wordmark {
|
||||
@@ -160,3 +192,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-section-wrapper {
|
||||
position: relative;
|
||||
float: left;
|
||||
}
|
||||
|
||||
@@ -287,10 +287,29 @@
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.graph-annotation-header {
|
||||
background-color: $input-label-bg;
|
||||
padding: 0.40rem 0.65rem;
|
||||
}
|
||||
|
||||
.graph-annotation-title {
|
||||
font-weight: $font-weight-semi-bold;
|
||||
padding-right: $spacer;
|
||||
position: relative;
|
||||
top: -0.4rem;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
.graph-annotation-time {
|
||||
color: $text-muted;
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
}
|
||||
|
||||
.graph-annotation-body {
|
||||
padding: 0.65rem;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -298,11 +317,6 @@
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.graph-annotation-time {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
top: 0.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.left-yaxis-label {
|
||||
|
||||
@@ -1,14 +1,21 @@
|
||||
.search-backdrop {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
top: $navbarHeight;
|
||||
z-index: $zindex-modal-backdrop;
|
||||
background-color: $black;
|
||||
@include opacity(70);
|
||||
}
|
||||
|
||||
.search-container {
|
||||
left: 72px;
|
||||
top: 39px;
|
||||
margin: 16px 0 0 2px;
|
||||
z-index: 1000;
|
||||
position: absolute;
|
||||
width: 700px;
|
||||
box-shadow: $search-shadow;
|
||||
padding: 10px;
|
||||
background-color: $panel-bg;
|
||||
border: $panel-border;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: ($zindex-modal-backdrop + 10);
|
||||
position: fixed;
|
||||
|
||||
.label-tag {
|
||||
margin-left: 6px;
|
||||
@@ -19,31 +26,62 @@
|
||||
|
||||
// Search
|
||||
.search-field-wrapper {
|
||||
padding-bottom: 10px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
background-color: $navbarButtonBackground;
|
||||
|
||||
input {
|
||||
width: 100%;
|
||||
padding: 8px 8px;
|
||||
height: 100%;
|
||||
max-width: 653px;
|
||||
//padding: 0.5rem 1.5rem 0.5rem 0;
|
||||
padding: 1rem 1rem 0.75rem 1rem;
|
||||
height: 51px;
|
||||
line-height: 51px;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
background: $side-menu-bg;
|
||||
background-color: $navbarButtonBackground;
|
||||
flex-grow: 10;
|
||||
}
|
||||
button {
|
||||
margin: 0 4px 0 0;
|
||||
}
|
||||
> span {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.search-field-spacer {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.search-switches {
|
||||
flex-grow: 1;
|
||||
padding: 1rem 1rem 0.75rem 1rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.search-field-icon {
|
||||
font-size: $font-size-lg;
|
||||
padding: 1rem 1rem 0.75rem 1.5rem;
|
||||
}
|
||||
|
||||
.search-dropdown {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 1100px;
|
||||
visibility: none;
|
||||
opacity: 0;
|
||||
height: 100%;
|
||||
|
||||
&--fade-in {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
}
|
||||
|
||||
.search-results-container {
|
||||
height: 450px;
|
||||
height: 90%;
|
||||
overflow: auto;
|
||||
display: block;
|
||||
line-height: 28px;
|
||||
|
||||
.search-item:hover, .search-item.selected {
|
||||
background-color: $grafanaListHighlight;
|
||||
}
|
||||
padding: $spacer;
|
||||
background: $panel-bg;
|
||||
flex-grow: 10;
|
||||
|
||||
.selected {
|
||||
.search-result-tag {
|
||||
@@ -71,8 +109,10 @@
|
||||
word-wrap: break-word;
|
||||
display: block;
|
||||
padding: 3px 10px;
|
||||
background-color: $grafanaListBackground;
|
||||
white-space: nowrap;
|
||||
background-color: $tight-form-bg;
|
||||
margin-bottom: 4px;
|
||||
@include left-brand-border();
|
||||
|
||||
.search-result-icon::before {
|
||||
content: "\f009";
|
||||
@@ -81,6 +121,15 @@
|
||||
&.search-item-dash-home .search-result-icon::before {
|
||||
content: "\f015";
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: $tight-form-func-bg;
|
||||
@include left-brand-border-gradient();
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background-color: $grafanaListBackground;
|
||||
}
|
||||
}
|
||||
|
||||
.search-result-tags {
|
||||
@@ -93,17 +142,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
.search-switches {
|
||||
position: absolute;
|
||||
top: 19px;
|
||||
right: 21px;
|
||||
}
|
||||
|
||||
.search-button-row {
|
||||
padding-top: 20px;
|
||||
padding: $spacer*2;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: space-around;
|
||||
height: 30%;
|
||||
|
||||
button, a {
|
||||
margin-right: 10px;
|
||||
margin-bottom: $spacer;
|
||||
}
|
||||
|
||||
.search-button-row-explore-link {
|
||||
@@ -120,3 +169,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(lg) {
|
||||
.search-dropdown {
|
||||
flex-direction: row;
|
||||
}
|
||||
.search-button-row {
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.search-container {
|
||||
left: 78px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
left: 0;
|
||||
width: $side-menu-width;
|
||||
background-color: rgba($side-menu-bg,$side-menu-opacity);
|
||||
z-index: 101;
|
||||
transform: translate3d(0, -100%, 0);
|
||||
z-index: 1000;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
a:focus {
|
||||
@@ -20,8 +20,9 @@
|
||||
.sidemenu-open {
|
||||
.sidemenu-wrapper {
|
||||
visibility: visible;
|
||||
transform: translate3d(0, 0, 0);
|
||||
transition: all 0.2s;
|
||||
//transform: translate3d(0, 0, 0);
|
||||
opacity: 1;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +37,7 @@
|
||||
margin-left: $side-menu-width;
|
||||
}
|
||||
.search-container {
|
||||
left: auto;
|
||||
left: $side-menu-width;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ $switch-height: 1.5rem;
|
||||
max-width: 4.5rem;
|
||||
flex-grow: 1;
|
||||
min-width: 4.0rem;
|
||||
margin-right: $gf-form-margin;
|
||||
|
||||
input {
|
||||
position: absolute;
|
||||
@@ -42,8 +43,10 @@ $switch-height: 1.5rem;
|
||||
color: #fff;
|
||||
font-size: $font-size-sm;
|
||||
text-align: center;
|
||||
line-height: 2.8rem;
|
||||
font-size: 150%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -89,6 +92,14 @@ $switch-height: 1.5rem;
|
||||
transform: rotateY(0);
|
||||
}
|
||||
|
||||
&--table-cell {
|
||||
margin-bottom: 0;
|
||||
margin-right: 0;
|
||||
|
||||
input + label {
|
||||
height: 3.6rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gf-form-switch[disabled] {
|
||||
@@ -96,5 +107,9 @@ gf-form-switch[disabled] {
|
||||
.gf-form-switch input + label {
|
||||
cursor: default;
|
||||
pointer-events: none !important;
|
||||
&::before {
|
||||
color: $text-color-faint;
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
.navbar-page-btn {
|
||||
border-color: transparent;
|
||||
background: transparent;
|
||||
transform: translate3d(-50px, 0, 0);
|
||||
transform: translate3d(-95px, 0, 0);
|
||||
transition: all 1.5s ease-in-out 1s;
|
||||
.icon-gf {
|
||||
opacity: 0;
|
||||
|
||||
Reference in New Issue
Block a user