{
| External sync |
User synced via LDAP. Some changes must be done in LDAP or mappings. |
- LDAP
+
|
diff --git a/public/app/features/variables/pickers/shared/VariableLink.tsx b/public/app/features/variables/pickers/shared/VariableLink.tsx
index 25e6c0694e6..f481fa68454 100644
--- a/public/app/features/variables/pickers/shared/VariableLink.tsx
+++ b/public/app/features/variables/pickers/shared/VariableLink.tsx
@@ -7,6 +7,7 @@ import { Icon, useStyles2 } from '@grafana/ui';
import { LoadingIndicator } from '@grafana/ui/src/components/PanelChrome/LoadingIndicator';
import { t } from 'app/core/internationalization';
+import { getStyles as getTagBadgeStyles } from '../../../../core/components/TagFilter/TagBadge';
import { ALL_VARIABLE_TEXT } from '../../constants';
interface Props {
@@ -76,34 +77,38 @@ const VariableLinkText = ({ text }: VariableLinkTextProps) => {
);
};
-const getStyles = (theme: GrafanaTheme2) => ({
- container: css`
- max-width: 500px;
- padding-right: 10px;
- padding: 0 ${theme.spacing(1)};
- background-color: ${theme.components.input.background};
- border: 1px solid ${theme.components.input.borderColor};
- border-radius: ${theme.shape.radius.default};
- display: flex;
- align-items: center;
- color: ${theme.colors.text};
- height: ${theme.spacing(theme.components.height.md)};
+const getStyles = (theme: GrafanaTheme2) => {
+ const tagBadgeStyles = getTagBadgeStyles(theme);
- .label-tag {
- margin: 0 5px;
- }
+ return {
+ container: css({
+ maxWidth: '500px',
+ paddingRight: '10px',
+ padding: theme.spacing(0, 1),
+ backgroundColor: theme.components.input.background,
+ border: `1px solid ${theme.components.input.borderColor}`,
+ borderRadius: theme.shape.radius.default,
+ display: 'flex',
+ alignItems: 'center',
+ color: theme.colors.text.primary,
+ height: theme.spacing(theme.components.height.md),
- &:disabled {
- background-color: ${theme.colors.action.disabledBackground};
- color: ${theme.colors.action.disabledText};
- border: 1px solid ${theme.colors.action.disabledBackground};
- }
- `,
- textAndTags: css`
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin-right: ${theme.spacing(0.25)};
- user-select: none;
- `,
-});
+ [`.${tagBadgeStyles.badge}`]: {
+ margin: '0 5px',
+ },
+
+ '&:disabled': {
+ backgroundColor: theme.colors.action.disabledBackground,
+ color: theme.colors.action.disabledText,
+ border: `1px solid ${theme.colors.action.disabledBackground}`,
+ },
+ }),
+ textAndTags: css({
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ whiteSpace: 'nowrap',
+ marginRight: theme.spacing(0.25),
+ userSelect: 'none',
+ }),
+ };
+};
diff --git a/public/sass/_angular.scss b/public/sass/_angular.scss
index 7e409b8a435..a068641e58d 100644
--- a/public/sass/_angular.scss
+++ b/public/sass/_angular.scss
@@ -2,6 +2,7 @@
// once angular is disabled, this file can be deleted
@use 'sass:map';
+@use 'sass:color';
.edit-tab-content {
flex-grow: 1;
@@ -1935,3 +1936,48 @@ $easing: cubic-bezier(0, 0, 0.265, 1);
width: 100%;
}
}
+
+// Base classes
+.label,
+.badge {
+ display: inline-block;
+ padding: 2px 4px;
+ font-size: $font-size-base * 0.846;
+ font-weight: $font-weight-semi-bold;
+ line-height: 14px; // ensure proper line-height if floated
+ color: $white;
+ vertical-align: baseline;
+ white-space: nowrap;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+ background-color: $gray-1;
+}
+
+// Labels & Badges
+.label-tag {
+ background-color: $purple;
+ color: color.adjust($white, $lightness: -5%);
+ white-space: nowrap;
+ border-radius: 3px;
+ text-shadow: none;
+ font-size: 12px;
+ padding: 0px 6px;
+ line-height: 20px;
+ height: 20px;
+
+ svg {
+ margin-bottom: 0;
+ }
+
+ &:hover {
+ opacity: 0.85;
+ background-color: color.adjust($purple, $lightness: -10%);
+ }
+}
+
+.query-part__link {
+ cursor: pointer;
+
+ &--no-value {
+ color: $text-muted;
+ }
+}
diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss
index e4108aa327f..c2e237719dc 100644
--- a/public/sass/_grafana.scss
+++ b/public/sass/_grafana.scss
@@ -16,14 +16,11 @@
// COMPONENTS
@import 'components/buttons';
@import 'components/alerts';
-@import 'components/tags';
@import 'components/gf-form';
-@import 'components/filter-table';
@import 'components/modals';
@import 'components/dropdown';
@import 'components/infobox';
@import 'components/query_editor';
-@import 'components/query_part';
@import 'components/dashboard_grid';
// PAGES
diff --git a/public/sass/components/_filter-table.scss b/public/sass/components/_filter-table.scss
deleted file mode 100644
index 8800835b994..00000000000
--- a/public/sass/components/_filter-table.scss
+++ /dev/null
@@ -1,92 +0,0 @@
-// ==========================================================================
-// FILTER TABLE
-// ==========================================================================
-
-// Table
-// --------------------------------------------------------------------------
-
-.filter-table * {
- box-sizing: border-box;
-}
-
-.filter-table {
- width: 100%;
- border-collapse: separate;
-
- tbody {
- tr:nth-child(odd) {
- background: $table-bg-odd;
- }
- }
-
- th {
- width: auto;
- padding: $space-inset-squish-md;
- text-align: left;
- line-height: 30px;
- height: 30px;
- white-space: nowrap;
- }
-
- td {
- padding: $space-inset-squish-md;
- line-height: 30px;
- height: 30px;
- white-space: nowrap;
-
- &.filter-table__switch-cell {
- padding: 0;
- border-right: 3px solid $page-bg;
- }
- }
-
- .link-td {
- padding: 0;
- line-height: 30px;
- height: 30px;
- white-space: nowrap;
-
- &.filter-table__switch-cell {
- padding: 0;
- border-right: 3px solid $page-bg;
- }
-
- a {
- display: block;
- padding: 0px $space-sm;
- height: 30px;
- }
- }
-
- .ellipsis {
- display: block;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .expanded {
- border-color: $panel-bg;
- }
-
- .expanded > td {
- padding-bottom: 0;
- }
-
- .filter-table__avatar {
- width: 25px;
- height: 25px;
- border-radius: 50%;
- }
-
- &--hover {
- tbody tr:hover {
- background: $table-bg-hover;
- }
- }
-}
-.filter-table__weak-italic {
- font-style: italic;
- color: $text-color-weak;
-}
diff --git a/public/sass/components/_query_editor.scss b/public/sass/components/_query_editor.scss
index 99d1229bfe0..56f678e5dbe 100644
--- a/public/sass/components/_query_editor.scss
+++ b/public/sass/components/_query_editor.scss
@@ -13,12 +13,6 @@
.tight-form-func {
background: $tight-form-func-bg;
-
- &.show-function-controls {
- padding-top: 5px;
- min-width: 100px;
- text-align: center;
- }
}
input[type='text'].tight-form-func-param {
@@ -53,12 +47,6 @@ input[type='text'].tight-form-func-param {
.tight-form-func {
background: $tight-form-func-bg;
-
- &.show-function-controls {
- padding-top: 5px;
- min-width: 100px;
- text-align: center;
- }
}
.rst-text::before {
diff --git a/public/sass/components/_query_part.scss b/public/sass/components/_query_part.scss
deleted file mode 100644
index 6ec484e841a..00000000000
--- a/public/sass/components/_query_part.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-.query-part {
- background-color: $tight-form-func-bg;
-
- &.show-function-controls {
- padding-top: 5px;
- min-width: 100px;
- text-align: center;
- }
-
- .query-part__last {
- display: none;
- }
-
- &:hover .query-part__last {
- display: inline;
- }
-
- &:hover {
- background: $tight-form-func-highlight-bg;
- }
-}
-
-.query-part__link {
- cursor: pointer;
-
- &--no-value {
- color: $text-muted;
- }
-}
diff --git a/public/sass/components/_tags.scss b/public/sass/components/_tags.scss
deleted file mode 100644
index 0848dca0dfd..00000000000
--- a/public/sass/components/_tags.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-@use 'sass:color';
-// Base classes
-.label,
-.badge {
- display: inline-block;
- padding: 2px 4px;
- font-size: $font-size-base * 0.846;
- font-weight: $font-weight-semi-bold;
- line-height: 14px; // ensure proper line-height if floated
- color: $white;
- vertical-align: baseline;
- white-space: nowrap;
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
- background-color: $gray-1;
-}
-
-// Labels & Badges
-.label-tag {
- background-color: $purple;
- color: color.adjust($white, $lightness: -5%);
- white-space: nowrap;
- border-radius: 3px;
- text-shadow: none;
- font-size: 12px;
- padding: 0px 6px;
- line-height: 20px;
- height: 20px;
-
- svg {
- margin-bottom: 0;
- }
-
- .icon-tag {
- position: relative;
- top: 1px;
- padding-right: 4px;
- }
-
- &.muted {
- opacity: 0.85;
- background-color: color.adjust($purple, $lightness: -10%);
- color: $text-muted;
- }
-
- &:hover {
- opacity: 0.85;
- background-color: color.adjust($purple, $lightness: -10%);
- }
-
- &--gray {
- opacity: 0.85;
- background-color: $gray-1;
- border-color: $gray-2;
-
- &:hover {
- background-color: $gray-1;
- }
- }
-}