tags, this will allow them to display in one line @@ -145,7 +152,7 @@ $visMapLeafletSprite: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/s // Filter to desaturate mapquest tiles img.leaflet-tile { - @if (lightness($euiTextColor) < 50) { + @if lightness($euiTextColor) < 50 { filter: brightness(1.03) grayscale(0.73); } @else { filter: invert(1) brightness(1.75) grayscale(1); diff --git a/src/plugins/maps_legacy/public/map/_legend.scss b/src/plugins/maps_legacy/public/map/_legend.scss index 2c50e214c248..43ecb5ac8127 100644 --- a/src/plugins/maps_legacy/public/map/_legend.scss +++ b/src/plugins/maps_legacy/public/map/_legend.scss @@ -1,16 +1,18 @@ .visMapLegend { @include fontSize(11px); - @include euiBottomShadowMedium($color: $euiShadowColorLarge, $opacity: .1); + @include euiBottomShadowMedium($color: $euiShadowColorLarge, $opacity: 0.1); + font-family: $euiFontFamily; font-weight: $euiFontWeightMedium; line-height: $euiLineHeight; color: $euiColorDarkShade; padding: $euiSizeS; - background: transparentize($euiColorEmptyShade, .2); + background: transparentize($euiColorEmptyShade, 0.2); border-radius: $euiBorderRadius; i { @include size($euiSizeS + 2px); + display: inline-block; margin: 3px $euiSizeXS 0 0; border-radius: 50%; diff --git a/src/plugins/maps_legacy/public/map/index.scss b/src/plugins/maps_legacy/public/map/index.scss index f9fc841b9f86..f2a91bbac621 100644 --- a/src/plugins/maps_legacy/public/map/index.scss +++ b/src/plugins/maps_legacy/public/map/index.scss @@ -1,2 +1,2 @@ -@import './leaflet_overrides'; -@import './legend'; +@import "./leaflet_overrides"; +@import "./legend"; diff --git a/src/plugins/opensearch_dashboards_legacy/public/font_awesome/font_awesome.scss b/src/plugins/opensearch_dashboards_legacy/public/font_awesome/font_awesome.scss index 876a920269c4..9f6f813c3fad 100644 --- a/src/plugins/opensearch_dashboards_legacy/public/font_awesome/font_awesome.scss +++ b/src/plugins/opensearch_dashboards_legacy/public/font_awesome/font_awesome.scss @@ -1,23 +1,29 @@ +@import "font-awesome/scss/variables"; +@import "font-awesome/scss/core"; +@import "font-awesome/scss/icons"; + @font-face { - font-family: 'FontAwesome'; - src: url('~font-awesome/fonts/fontawesome-webfont.eot?v=4.7.0'); - src: url('~font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), - url('~font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), - url('~font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), - url('~font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), - url('~font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg'); + font-family: FontAwesome; + src: url("~font-awesome/fonts/fontawesome-webfont.eot?v=4.7.0"); + src: + url("~font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0") format("embedded-opentype"), + url("~font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"), + url("~font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"), + url("~font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype"), + url("~font-awesome/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular") format("svg"); font-weight: normal; font-style: normal; } -@import "font-awesome/scss/variables"; -@import "font-awesome/scss/core"; -@import "font-awesome/scss/icons"; - // new file icon .#{$fa-css-prefix}-file-new-o:before { content: $fa-var-file-o; } -.#{$fa-css-prefix}-file-new-o:after { content: $fa-var-plus; position: relative; margin-left: -1.0em; font-size: 0.5em; } +.#{$fa-css-prefix}-file-new-o:after { + content: $fa-var-plus; + position: relative; + margin-left: -1em; + font-size: 0.5em; +} // alias for alert types - allows class="fa fa-{{alertType}}" -.fa-success:before { content: $fa-var-check; } -.fa-danger:before { content: $fa-var-exclamation-circle; } +.fa-success::before { content: $fa-var-check; } +.fa-danger::before { content: $fa-var-exclamation-circle; } diff --git a/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss b/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss index e9c1acaf9ee0..ec346aa843c1 100644 --- a/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss +++ b/src/plugins/opensearch_dashboards_legacy/public/paginate/_paginate.scss @@ -1,6 +1,8 @@ +/* stylelint-disable-next-line selector-type-no-unknown */ paginate { display: block; + /* stylelint-disable-next-line selector-type-no-unknown */ paginate-controls { display: flex; align-items: center; @@ -48,10 +50,9 @@ paginate { .pagination-size { flex: 0 0 auto; - input[type=number] { + input[type="number"] { width: 3em; } } } } - diff --git a/src/plugins/opensearch_dashboards_overview/public/components/_index.scss b/src/plugins/opensearch_dashboards_overview/public/components/_index.scss index b8857d171728..47d0aee1b8d6 100644 --- a/src/plugins/opensearch_dashboards_overview/public/components/_index.scss +++ b/src/plugins/opensearch_dashboards_overview/public/components/_index.scss @@ -1 +1 @@ -@import 'overview'; +@import "overview"; diff --git a/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss b/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss index db27435346da..45d5575d33cd 100644 --- a/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss +++ b/src/plugins/opensearch_dashboards_overview/public/components/_overview.scss @@ -52,13 +52,13 @@ .osdOverviewApps__item { .osdOverviewApps__group--primary & { - @include euiBreakpoint('m', 'l', 'xl') { + @include euiBreakpoint("m", "l", "xl") { max-width: calc(50% - #{$euiSizeM * 2}); } } .osdOverviewApps__group--secondary & { - @include euiBreakpoint('m', 'l', 'xl') { + @include euiBreakpoint("m", "l", "xl") { max-width: calc(25% - #{$euiSizeM * 2}); } } @@ -82,8 +82,8 @@ } .osdOverviewMore__item { - @include euiBreakpoint('m', 'l', 'xl') { - max-width: calc(33.333333333333333% - #{$euiSizeM * 2}); + @include euiBreakpoint("m", "l", "xl") { + max-width: calc(33.3333% - #{$euiSizeM * 2}); } } @@ -97,13 +97,13 @@ .osdOverviewSupplements--noNews .osdOverviewMore { h2 { - @include euiBreakpoint('m', 'l', 'xl') { + @include euiBreakpoint("m", "l", "xl") { text-align: center; } } .osdOverviewMore__content { - @include euiBreakpoint('m', 'l', 'xl') { + @include euiBreakpoint("m", "l", "xl") { justify-content: center; } } @@ -125,7 +125,7 @@ } .osdOverviewDataManage__item:not(:only-child) { - @include euiBreakpoint('m', 'l', 'xl') { + @include euiBreakpoint("m", "l", "xl") { flex: 0 0 calc(50% - #{$euiSizeM * 2}); } } diff --git a/src/plugins/opensearch_dashboards_overview/public/index.scss b/src/plugins/opensearch_dashboards_overview/public/index.scss index 841415620d69..6cfd4ac975c3 100644 --- a/src/plugins/opensearch_dashboards_overview/public/index.scss +++ b/src/plugins/opensearch_dashboards_overview/public/index.scss @@ -1 +1 @@ -@import 'components/index'; +@import "components/index"; diff --git a/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/_exit_full_screen_button.scss b/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/_exit_full_screen_button.scss index dfb0a7a23909..ceafd4fe7656 100644 --- a/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/_exit_full_screen_button.scss +++ b/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/_exit_full_screen_button.scss @@ -12,7 +12,6 @@ display: block; padding: $euiSizeXS $euiSizeS; border: none; - background: none; z-index: 5; background: $euiColorFullShade; border-radius: $euiBorderRadius; diff --git a/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/index.scss b/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/index.scss index 82dd33baeb3e..1694024b6844 100644 --- a/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/index.scss +++ b/src/plugins/opensearch_dashboards_react/public/exit_full_screen_button/index.scss @@ -1 +1 @@ -@import './exit_full_screen_button'; +@import "./exit_full_screen_button"; diff --git a/src/plugins/opensearch_dashboards_react/public/field_button/field_button.scss b/src/plugins/opensearch_dashboards_react/public/field_button/field_button.scss index 1b9902f9d572..7ea3bc9ce1c6 100644 --- a/src/plugins/opensearch_dashboards_react/public/field_button/field_button.scss +++ b/src/plugins/opensearch_dashboards_react/public/field_button/field_button.scss @@ -1,11 +1,13 @@ .osdFieldButton { @include euiFontSizeS; + border-radius: $euiBorderRadius; margin-bottom: $euiSizeXS; display: flex; align-items: center; - transition: box-shadow $euiAnimSpeedFast $euiAnimSlightResistance, - background-color $euiAnimSpeedFast $euiAnimSlightResistance; // sass-lint:disable-line indentation + transition: + box-shadow $euiAnimSpeedFast $euiAnimSlightResistance, + background-color $euiAnimSpeedFast $euiAnimSlightResistance; &:focus-within, &-isActive { @@ -20,6 +22,7 @@ &:focus, &:focus-within { @include euiBottomShadowMedium; + border-radius: $euiBorderRadius; z-index: 2; } diff --git a/src/plugins/opensearch_dashboards_react/public/markdown/_markdown.scss b/src/plugins/opensearch_dashboards_react/public/markdown/_markdown.scss index 242e16ecd502..fceca669f2b2 100644 --- a/src/plugins/opensearch_dashboards_react/public/markdown/_markdown.scss +++ b/src/plugins/opensearch_dashboards_react/public/markdown/_markdown.scss @@ -1,5 +1,5 @@ // Default styles for Markdown element -// +// -------- // 1. Links // 2. Headings // 3. Images @@ -18,7 +18,6 @@ $osdDefaultFontSize: 14px; } .osdMarkdown__body { - // Font size variables $osdMarkdownFontSizeS: canvasToEm(12px); $osdMarkdownFontSize: canvasToEm(14px); @@ -34,14 +33,14 @@ $osdDefaultFontSize: 14px; $osdMarkdownSizeXXS: canvasToEm(4px); // Grayscale variables - $osdMarkdownAlphaLightestShade: rgba($euiColorFullShade,.05); - $osdMarkdownAlphaLightShade: rgba($euiColorFullShade,.15); - $osdMarkdownAlphaDarkShade: rgba($euiColorFullShade,.65); + $osdMarkdownAlphaLightestShade: rgba($euiColorFullShade, 0.05); + $osdMarkdownAlphaLightShade: rgba($euiColorFullShade, 0.15); + $osdMarkdownAlphaDarkShade: rgba($euiColorFullShade, 0.65); // Reverse grayscale for opposite of theme - $osdMarkdownAlphaLightestShadeReversed: rgba($euiColorEmptyShade,.05); - $osdMarkdownAlphaLightShadeReversed: rgba($euiColorEmptyShade,.15); - $osdMarkdownAlphaDarkShadeReversed: rgba($euiColorEmptyShade,.65); + $osdMarkdownAlphaLightestShadeReversed: rgba($euiColorEmptyShade, 0.05); + $osdMarkdownAlphaLightShadeReversed: rgba($euiColorEmptyShade, 0.15); + $osdMarkdownAlphaDarkShadeReversed: rgba($euiColorEmptyShade, 0.65); &--reversed { color: $euiColorLightestShade; @@ -104,12 +103,14 @@ $osdDefaultFontSize: 14px; h1 { font-size: $osdMarkdownFontSizeXXL; + /* stylelint-disable-next-line number-max-precision */ line-height: 1.333333em; font-weight: 300; } h2 { font-size: $osdMarkdownFontSizeXL; + /* stylelint-disable-next-line number-max-precision */ line-height: 1.428571em; font-weight: 300; } @@ -128,12 +129,14 @@ $osdDefaultFontSize: 14px; h5 { font-size: $osdMarkdownFontSize; + /* stylelint-disable-next-line number-max-precision */ line-height: 1.142857em; font-weight: 700; } h6 { font-size: $osdMarkdownFontSizeS; + /* stylelint-disable-next-line number-max-precision */ line-height: 1.333333em; font-weight: 700; text-transform: uppercase; @@ -151,6 +154,7 @@ $osdDefaultFontSize: 14px; padding: 0 1em; border-left: $osdMarkdownSizeXXS solid $osdMarkdownAlphaLightShade; } + &--reversed blockquote { border-left-color: $osdMarkdownAlphaLightShadeReversed; } @@ -165,6 +169,7 @@ $osdDefaultFontSize: 14px; background-color: $osdMarkdownAlphaLightShade; border: 0; } + &--reversed hr { background-color: $osdMarkdownAlphaLightShadeReversed; } @@ -191,6 +196,7 @@ $osdDefaultFontSize: 14px; ul { list-style-type: disc; } + ol { list-style-type: decimal; } @@ -215,6 +221,7 @@ $osdDefaultFontSize: 14px; margin-left: 0; } + /* stylelint-disable-next-line no-duplicate-selectors */ ul, ol { padding-left: $osdMarkdownSizeL; @@ -245,6 +252,7 @@ $osdDefaultFontSize: 14px; border-spacing: 0; border-collapse: collapse; } + &--reversed table { border-left-color: $osdMarkdownAlphaLightShadeReversed; } @@ -264,6 +272,7 @@ $osdDefaultFontSize: 14px; border-right: 1px solid $osdMarkdownAlphaLightShade; } } + &--reversed table th, &--reversed table td { border-color: $osdMarkdownAlphaLightShadeReversed; @@ -273,6 +282,7 @@ $osdDefaultFontSize: 14px; background-color: transparent; border-top: 1px solid $osdMarkdownAlphaLightShade; } + &--reversed table tr { border-top-color: $osdMarkdownAlphaLightShadeReversed; } @@ -281,7 +291,7 @@ $osdDefaultFontSize: 14px; code, pre { margin-bottom: $osdMarkdownSizeXS; - font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; + font-family: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace; font-size: $osdMarkdownFontSizeS; } @@ -291,6 +301,7 @@ $osdDefaultFontSize: 14px; background-color: $osdMarkdownAlphaLightestShade; border-radius: $osdMarkdownSizeXXS; } + &--reversed code { background-color: $osdMarkdownAlphaLightestShadeReversed; } @@ -305,11 +316,13 @@ $osdDefaultFontSize: 14px; padding: $osdMarkdownSize; overflow: auto; font-size: $osdMarkdownFontSizeS; + /* stylelint-disable-next-line number-max-precision */ line-height: 1.333333em; background-color: $osdMarkdownAlphaLightestShade; border-radius: $osdMarkdownSizeXXS; word-wrap: normal; } + &--reversed pre { background-color: $osdMarkdownAlphaLightestShadeReversed; } diff --git a/src/plugins/opensearch_dashboards_react/public/markdown/index.scss b/src/plugins/opensearch_dashboards_react/public/markdown/index.scss index f997ea5384ea..59deecb75929 100644 --- a/src/plugins/opensearch_dashboards_react/public/markdown/index.scss +++ b/src/plugins/opensearch_dashboards_react/public/markdown/index.scss @@ -1 +1 @@ -@import './markdown'; +@import "./markdown"; diff --git a/src/plugins/opensearch_dashboards_react/public/overview_page/overview_page_header/index.scss b/src/plugins/opensearch_dashboards_react/public/overview_page/overview_page_header/index.scss index 54e5f33edcc6..2e7f56fad0d2 100644 --- a/src/plugins/opensearch_dashboards_react/public/overview_page/overview_page_header/index.scss +++ b/src/plugins/opensearch_dashboards_react/public/overview_page/overview_page_header/index.scss @@ -28,4 +28,4 @@ * under the License. */ -@import './overview_page_header'; +@import "./overview_page_header"; diff --git a/src/plugins/saved_objects/public/index.scss b/src/plugins/saved_objects/public/index.scss index fc7bb35f38b1..ebeca6d1f4cb 100644 --- a/src/plugins/saved_objects/public/index.scss +++ b/src/plugins/saved_objects/public/index.scss @@ -1 +1 @@ -@import './save_modal/index'; +@import "./save_modal/index"; diff --git a/src/plugins/saved_objects/public/save_modal/_index.scss b/src/plugins/saved_objects/public/save_modal/_index.scss index 6c773c7f777b..07ff5d627e70 100644 --- a/src/plugins/saved_objects/public/save_modal/_index.scss +++ b/src/plugins/saved_objects/public/save_modal/_index.scss @@ -1 +1 @@ -@import './saved_object_save_modal'; +@import "./saved_object_save_modal"; diff --git a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss b/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss index f83dc6db1997..0310fc52d2fe 100644 --- a/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss +++ b/src/plugins/saved_objects/public/save_modal/saved_object_save_modal.scss @@ -1,3 +1,3 @@ .osdSavedObjectSaveModal { width: $euiSizeXXL * 10; -} \ No newline at end of file +} diff --git a/src/plugins/share/public/components/_index.scss b/src/plugins/share/public/components/_index.scss index 85168c9ea80f..9f648ce5e12c 100644 --- a/src/plugins/share/public/components/_index.scss +++ b/src/plugins/share/public/components/_index.scss @@ -1 +1 @@ -@import './share_context_menu'; +@import "./share_context_menu"; diff --git a/src/plugins/share/public/index.scss b/src/plugins/share/public/index.scss index 0271fbb8e902..64d4cfa78802 100644 --- a/src/plugins/share/public/index.scss +++ b/src/plugins/share/public/index.scss @@ -1 +1 @@ -@import './components/index' \ No newline at end of file +@import "./components/index" diff --git a/src/plugins/tile_map/public/index.scss b/src/plugins/tile_map/public/index.scss index f4b86b0c3119..aa2117cb0c01 100644 --- a/src/plugins/tile_map/public/index.scss +++ b/src/plugins/tile_map/public/index.scss @@ -5,4 +5,4 @@ // tlmChart__legend--small // tlmChart__legend-isLoading -@import 'tile_map'; +@import "tile_map"; diff --git a/src/plugins/timeline/public/_base.scss b/src/plugins/timeline/public/_base.scss index 616ac9b3486e..4e64d237271a 100644 --- a/src/plugins/timeline/public/_base.scss +++ b/src/plugins/timeline/public/_base.scss @@ -6,14 +6,13 @@ } } -input[type='radio'], -input[type='checkbox'], +input[type="radio"], +input[type="checkbox"], .radio, .checkbox { &[disabled], fieldset[disabled] & { cursor: default; - opacity: .8; + opacity: 0.8; } } - diff --git a/src/plugins/timeline/public/directives/_form.scss b/src/plugins/timeline/public/directives/_form.scss index 3fcf70700a86..2b946ec94791 100644 --- a/src/plugins/timeline/public/directives/_form.scss +++ b/src/plugins/timeline/public/directives/_form.scss @@ -1,5 +1,6 @@ .form-control { @include euiFontSizeS; + display: block; width: 100%; height: $euiFormControlCompressedHeight; @@ -10,7 +11,7 @@ border-radius: $euiBorderRadius; cursor: pointer; - &:not([type='range']) { + &:not([type="range"]) { appearance: none; } @@ -21,7 +22,6 @@ } } -// sass-lint:disable-block no-qualifying-elements select.form-control { // Makes the select arrow similar to EUI's arrowDown icon background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"%3E%3Cpath fill="#{hexToRGB($euiTextColor)}" d="M13.0688508,5.15725038 L8.38423975,9.76827428 C8.17054415,9.97861308 7.82999214,9.97914095 7.61576025,9.76827428 L2.93114915,5.15725038 C2.7181359,4.94758321 2.37277319,4.94758321 2.15975994,5.15725038 C1.94674669,5.36691756 1.94674669,5.70685522 2.15975994,5.9165224 L6.84437104,10.5275463 C7.48517424,11.1582836 8.51644979,11.1566851 9.15562896,10.5275463 L13.8402401,5.9165224 C14.0532533,5.70685522 14.0532533,5.36691756 13.8402401,5.15725038 C13.6272268,4.94758321 13.2818641,4.94758321 13.0688508,5.15725038 Z"/%3E%3C/svg%3E'); diff --git a/src/plugins/timeline/public/directives/_index.scss b/src/plugins/timeline/public/directives/_index.scss index d49b498910b8..94f0b2286101 100644 --- a/src/plugins/timeline/public/directives/_index.scss +++ b/src/plugins/timeline/public/directives/_index.scss @@ -1,8 +1,7 @@ -@import './timeline_expression_input'; -@import './cells/index'; -@import './timeline_expression_suggestions/index'; -@import './timeline_help/index'; -@import './timeline_interval/index'; -@import './saved_object_finder'; -@import './form'; - +@import "./timeline_expression_input"; +@import "./cells/index"; +@import "./timeline_expression_suggestions/index"; +@import "./timeline_help/index"; +@import "./timeline_interval/index"; +@import "./saved_object_finder"; +@import "./form"; diff --git a/src/plugins/timeline/public/directives/_saved_object_finder.scss b/src/plugins/timeline/public/directives/_saved_object_finder.scss index e1a055a5f49e..a225f357949e 100644 --- a/src/plugins/timeline/public/directives/_saved_object_finder.scss +++ b/src/plugins/timeline/public/directives/_saved_object_finder.scss @@ -24,9 +24,7 @@ } } - saved-object-finder { - .list-sort-button { border-top-left-radius: 0; border-top-right-radius: 0; @@ -88,6 +86,7 @@ saved-object-finder { } } + /* stylelint-disable-next-line selector-type-no-unknown */ paginate { paginate-controls { margin: $euiSize; diff --git a/src/plugins/timeline/public/directives/cells/_cells.scss b/src/plugins/timeline/public/directives/cells/_cells.scss index 899bf984e72c..61634a710260 100644 --- a/src/plugins/timeline/public/directives/cells/_cells.scss +++ b/src/plugins/timeline/public/directives/cells/_cells.scss @@ -4,7 +4,6 @@ position: relative; box-sizing: border-box; border: 2px dashed transparent; - // sass-lint:disable-block no-important padding-left: 0 !important; padding-right: 0 !important; margin-bottom: $euiSizeM; @@ -15,10 +14,9 @@ } .timCell.running { - opacity: .5; + opacity: 0.5; } - .timCell__actions { position: absolute; bottom: $euiSizeXS; @@ -27,6 +25,7 @@ > .timCell__action, > .timCell__id { @include euiFontSizeXS; + font-weight: $euiFontWeightBold; color: $euiColorMediumShade; display: inline-block; diff --git a/src/plugins/timeline/public/directives/cells/_index.scss b/src/plugins/timeline/public/directives/cells/_index.scss index 8611b4d8ba1d..c537dd49d304 100644 --- a/src/plugins/timeline/public/directives/cells/_index.scss +++ b/src/plugins/timeline/public/directives/cells/_index.scss @@ -1 +1 @@ -@import './cells'; +@import "./cells"; diff --git a/src/plugins/timeline/public/directives/timeline_expression_suggestions/_index.scss b/src/plugins/timeline/public/directives/timeline_expression_suggestions/_index.scss index 09948bc1c814..e49c9151ff73 100644 --- a/src/plugins/timeline/public/directives/timeline_expression_suggestions/_index.scss +++ b/src/plugins/timeline/public/directives/timeline_expression_suggestions/_index.scss @@ -1 +1 @@ -@import './timeline_expression_suggestions'; +@import "./timeline_expression_suggestions"; diff --git a/src/plugins/timeline/public/directives/timeline_expression_suggestions/_timeline_expression_suggestions.scss b/src/plugins/timeline/public/directives/timeline_expression_suggestions/_timeline_expression_suggestions.scss index 4bf6ba24108d..89b96d11c6fd 100644 --- a/src/plugins/timeline/public/directives/timeline_expression_suggestions/_timeline_expression_suggestions.scss +++ b/src/plugins/timeline/public/directives/timeline_expression_suggestions/_timeline_expression_suggestions.scss @@ -1,9 +1,9 @@ .timSuggestions { @include euiBottomShadowMedium; + background-color: $euiColorLightestShade; color: $euiTextColor; border: $euiBorderThin; - // sass-lint:disable-block no-important border-radius: 0 0 $euiBorderRadius $euiBorderRadius !important; z-index: $euiZLevel9; max-height: $euiSizeXL * 10; diff --git a/src/plugins/timeline/public/directives/timeline_help/_index.scss b/src/plugins/timeline/public/directives/timeline_help/_index.scss index 595b61988b2b..763746e95a10 100644 --- a/src/plugins/timeline/public/directives/timeline_help/_index.scss +++ b/src/plugins/timeline/public/directives/timeline_help/_index.scss @@ -1 +1 @@ -@import './timeline_help'; +@import "./timeline_help"; diff --git a/src/plugins/timeline/public/directives/timeline_help/_timeline_help.scss b/src/plugins/timeline/public/directives/timeline_help/_timeline_help.scss index 27d2311b62bd..c114f831adcb 100644 --- a/src/plugins/timeline/public/directives/timeline_help/_timeline_help.scss +++ b/src/plugins/timeline/public/directives/timeline_help/_timeline_help.scss @@ -1,7 +1,7 @@ .timHelp { // EUITODO: Make .euiText > code background transparent code { - background-color: transparentize($euiTextColor, .9); + background-color: transparentize($euiTextColor, 0.9); } } @@ -20,6 +20,5 @@ */ .timHelp__functionsTableRow:hover, .timHelp__functionDetailsTable { - // sass-lint:disable-block no-important background-color: $euiColorLightestShade !important; /* 1 */ } diff --git a/src/plugins/timeline/public/directives/timeline_interval/_index.scss b/src/plugins/timeline/public/directives/timeline_interval/_index.scss index a1e91ae98526..fb597657a0a7 100644 --- a/src/plugins/timeline/public/directives/timeline_interval/_index.scss +++ b/src/plugins/timeline/public/directives/timeline_interval/_index.scss @@ -1 +1 @@ -@import './timeline_interval'; +@import "./timeline_interval"; diff --git a/src/plugins/timeline/public/index.scss b/src/plugins/timeline/public/index.scss index 060c5e8044a0..8c2a25c383a6 100644 --- a/src/plugins/timeline/public/index.scss +++ b/src/plugins/timeline/public/index.scss @@ -7,12 +7,12 @@ // timChart__legend--small // timChart__legend-isLoading -@import './app'; -@import './base'; -@import './directives/index'; +@import "./app"; +@import "./base"; +@import "./directives/index"; // these styles is needed to be loaded here explicitly if the timeline visualization was not opened in browser // styles for timeline visualization are lazy loaded only while a vis is opened // this will duplicate styles only if both Timeline app and timeline visualization are loaded // could be left here as it is since the Timeline app is deprecated -@import '../../vis_type_timeline/public/components/timeline_vis.scss'; +@import "../../vis_type_timeline/public/components/timeline_vis"; diff --git a/src/plugins/vis_default_editor/public/_default.scss b/src/plugins/vis_default_editor/public/_default.scss index c34fb465d7b5..8a71ee4f04c9 100644 --- a/src/plugins/vis_default_editor/public/_default.scss +++ b/src/plugins/vis_default_editor/public/_default.scss @@ -2,7 +2,7 @@ flex: 1 1 auto; display: flex; - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { flex-direction: column; } } @@ -18,12 +18,12 @@ position: relative; flex-shrink: 0; - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { // If we are on a small screen we force the editor to take 100% width. width: 100% !important; } - @include euiBreakpoint('l', 'xl') { + @include euiBreakpoint("l", "xl") { max-width: 75%; } } @@ -37,7 +37,7 @@ display: none; } - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { height: $euiSizeXXL; // Just enough room for the collapse button width: 100% !important; } @@ -55,7 +55,8 @@ .visEditor__resizer { @include osdResizer($euiSizeM); - @include euiBreakpoint('xs', 's', 'm') { + + @include euiBreakpoint("xs", "s", "m") { display: none; } } @@ -73,7 +74,7 @@ flex: 1 1 auto; // Fixes IE bug: the editor overflows a visualization on small screens overflow: hidden; - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { // If we are on a small screen we force the visualization to take 100% width. width: 100% !important; } diff --git a/src/plugins/vis_default_editor/public/_sidebar.scss b/src/plugins/vis_default_editor/public/_sidebar.scss index 3d3db90f45a3..532a3ab2ffad 100644 --- a/src/plugins/vis_default_editor/public/_sidebar.scss +++ b/src/plugins/vis_default_editor/public/_sidebar.scss @@ -11,7 +11,6 @@ // // LAYOUT -// .visEditorSidebar { min-width: $vis-editor-sidebar-min-width; @@ -24,6 +23,7 @@ .visEditorSidebar__form { @include flex-parent(1, 1, auto); + max-width: 100%; } @@ -34,9 +34,10 @@ flex-grow: 0; } - @include euiBreakpoint('l', 'xl') { + @include euiBreakpoint("l", "xl") { @include flex-parent(1, 1, 1px); @include euiScrollBar; + overflow: auto; } } @@ -45,9 +46,7 @@ display: none; } -// // NAVIGATION -// .visEditorSidebar__titleContainer { padding: $euiSizeS $euiSizeXL $euiSizeS $euiSizeS; // Extra padding on the right for the collapse button @@ -63,9 +62,7 @@ flex-grow: 0; } -// // SECTIONS -// .visEditorSidebar__section { background-color: $euiColorEmptyShade; @@ -87,9 +84,7 @@ margin-bottom: $euiSizeM; } -// // FORMS -// .visEditorSidebar__formRow { display: flex; diff --git a/src/plugins/vis_default_editor/public/index.scss b/src/plugins/vis_default_editor/public/index.scss index 6abb45dc546a..1f6b50590530 100644 --- a/src/plugins/vis_default_editor/public/index.scss +++ b/src/plugins/vis_default_editor/public/index.scss @@ -1,9 +1,9 @@ $vis-editor-sidebar-min-width: 350px; // Main layout -@import './default'; -@import './sidebar'; +@import "./default"; +@import "./sidebar"; // Components -@import './agg'; -@import './agg_params'; +@import "./agg"; +@import "./agg_params"; diff --git a/src/plugins/vis_type_markdown/public/markdown_vis.scss b/src/plugins/vis_type_markdown/public/markdown_vis.scss index 2356562a86ed..97cfc4b151c7 100644 --- a/src/plugins/vis_type_markdown/public/markdown_vis.scss +++ b/src/plugins/vis_type_markdown/public/markdown_vis.scss @@ -12,7 +12,7 @@ .visEditor--markdown { .visEditorSidebar__config > *, - .visEditor--markdown__textarea { + .visEditor--markdown__textarea { flex-grow: 1; } diff --git a/src/plugins/vis_type_metric/public/components/metric_vis.scss b/src/plugins/vis_type_metric/public/components/metric_vis.scss index 5665ba8e8d09..b47b644f7a89 100644 --- a/src/plugins/vis_type_metric/public/components/metric_vis.scss +++ b/src/plugins/vis_type_metric/public/components/metric_vis.scss @@ -8,14 +8,14 @@ .mtrVis { width: 100%; display: flex; - flex-direction: row; + flex-flow: row wrap; justify-content: center; align-items: center; - flex-wrap: wrap; } .mtrVis__value { @include euiTextTruncate; + font-weight: $euiFontWeightBold; } @@ -33,7 +33,8 @@ transition: transform $euiAnimSpeedNormal $euiAnimSlightResistance; transform: translate(0, 0); - &:hover, &:focus { + &:hover, + &:focus { box-shadow: none; transform: translate(0, -2px); } diff --git a/src/plugins/vis_type_table/public/_table_vis.scss b/src/plugins/vis_type_table/public/_table_vis.scss index c235f67615e2..ea4b4d0d1c98 100644 --- a/src/plugins/vis_type_table/public/_table_vis.scss +++ b/src/plugins/vis_type_table/public/_table_vis.scss @@ -10,7 +10,7 @@ .table-vis-container { osd-agg-table-group > .table > tbody > tr > td { - border-top: 0px; + border-top: 0; } .pagination-other-pages { diff --git a/src/plugins/vis_type_table/public/agg_table/_index.scss b/src/plugins/vis_type_table/public/agg_table/_index.scss index 340e08a76f1b..ed94e8449120 100644 --- a/src/plugins/vis_type_table/public/agg_table/_index.scss +++ b/src/plugins/vis_type_table/public/agg_table/_index.scss @@ -1 +1 @@ -@import './agg_table'; +@import "./agg_table"; diff --git a/src/plugins/vis_type_table/public/index.scss b/src/plugins/vis_type_table/public/index.scss index 0972c85e0dbe..d21bf5262602 100644 --- a/src/plugins/vis_type_table/public/index.scss +++ b/src/plugins/vis_type_table/public/index.scss @@ -5,6 +5,6 @@ // tbvChart__legend--small // tbvChart__legend-isLoading -@import './agg_table/index'; -@import './paginated_table/index'; -@import './table_vis'; +@import "./agg_table/index"; +@import "./paginated_table/index"; +@import "./table_vis"; diff --git a/src/plugins/vis_type_table/public/paginated_table/_index.scss b/src/plugins/vis_type_table/public/paginated_table/_index.scss index 23d56c09b281..66275b5c7da8 100644 --- a/src/plugins/vis_type_table/public/paginated_table/_index.scss +++ b/src/plugins/vis_type_table/public/paginated_table/_index.scss @@ -1 +1 @@ -@import './_table_cell_filter'; +@import "./table_cell_filter"; diff --git a/src/plugins/vis_type_tagcloud/public/components/tag_cloud.scss b/src/plugins/vis_type_tagcloud/public/components/tag_cloud.scss index 37867f1ed1c1..18ca7720ce10 100644 --- a/src/plugins/vis_type_tagcloud/public/components/tag_cloud.scss +++ b/src/plugins/vis_type_tagcloud/public/components/tag_cloud.scss @@ -5,7 +5,8 @@ // tgcChart__legend--small // tgcChart__legend-isLoading -.tgcChart__container, .tgcChart__wrapper { +.tgcChart__container, +.tgcChart__wrapper { flex: 1 1 0; display: flex; } diff --git a/src/plugins/vis_type_timeline/public/components/timeline_vis.scss b/src/plugins/vis_type_timeline/public/components/timeline_vis.scss index c4d591bc82ca..cdcb4253eb13 100644 --- a/src/plugins/vis_type_timeline/public/components/timeline_vis.scss +++ b/src/plugins/vis_type_timeline/public/components/timeline_vis.scss @@ -9,6 +9,7 @@ .chart-top-title { @include euiFontSizeXS; + flex: 0; text-align: center; font-weight: $euiFontWeightBold; diff --git a/src/plugins/vis_type_timeline/public/timeline_options.scss b/src/plugins/vis_type_timeline/public/timeline_options.scss index 14014b008e2c..5a707a06ee12 100644 --- a/src/plugins/vis_type_timeline/public/timeline_options.scss +++ b/src/plugins/vis_type_timeline/public/timeline_options.scss @@ -19,7 +19,7 @@ left: 0; } -@include euiBreakpoint('xs', 's', 'm') { +@include euiBreakpoint("xs", "s", "m") { .timExpressionInput__editor { flex: auto; height: $euiSize * 15; diff --git a/src/plugins/vis_type_timeseries/public/application/_tvb_editor.scss b/src/plugins/vis_type_timeseries/public/application/_tvb_editor.scss index 9864c72b7662..73ef76931ff1 100644 --- a/src/plugins/vis_type_timeseries/public/application/_tvb_editor.scss +++ b/src/plugins/vis_type_timeseries/public/application/_tvb_editor.scss @@ -2,4 +2,3 @@ overflow-y: auto; overflow-x: hidden; } - diff --git a/src/plugins/vis_type_timeseries/public/application/_variables.scss b/src/plugins/vis_type_timeseries/public/application/_variables.scss index 0107c5569d73..df488f9788bd 100644 --- a/src/plugins/vis_type_timeseries/public/application/_variables.scss +++ b/src/plugins/vis_type_timeseries/public/application/_variables.scss @@ -1,13 +1,9 @@ -$tvbLineColor: transparentize($euiColorFullShade, .8); -$tvbLineColorReversed: transparentize($euiColorEmptyShade, .6); - -$tvbTextColor: transparentize($euiColorFullShade, .6); -$tvbTextColorReversed: transparentize($euiColorEmptyShade, .4); - -$tvbValueColor: transparentize($euiColorFullShade, .3); -$tvbValueColorReversed: transparentize($euiColorEmptyShade, .2); - -$tvbHoverBackgroundColor: transparentize($euiColorFullShade, .9); -$tvbHoverBackgroundColorReversed: transparentize($euiColorEmptyShade, .9); - +$tvbLineColor: transparentize($euiColorFullShade, 0.8); +$tvbLineColorReversed: transparentize($euiColorEmptyShade, 0.6); +$tvbTextColor: transparentize($euiColorFullShade, 0.6); +$tvbTextColorReversed: transparentize($euiColorEmptyShade, 0.4); +$tvbValueColor: transparentize($euiColorFullShade, 0.3); +$tvbValueColorReversed: transparentize($euiColorEmptyShade, 0.2); +$tvbHoverBackgroundColor: transparentize($euiColorFullShade, 0.9); +$tvbHoverBackgroundColorReversed: transparentize($euiColorEmptyShade, 0.9); $tvbSplitBlockVisMinSize: $euiSize * 12; diff --git a/src/plugins/vis_type_timeseries/public/application/components/_annotations_editor.scss b/src/plugins/vis_type_timeseries/public/application/components/_annotations_editor.scss index 99e024c9c519..72fac4d4ce3e 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_annotations_editor.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_annotations_editor.scss @@ -3,7 +3,7 @@ background-color: $euiColorLightestShade; } -@include euiPanel('.tvbAnnotationsEditor'); +@include euiPanel(".tvbAnnotationsEditor"); .tvbAnnotationsEditor { margin-bottom: $euiSize; diff --git a/src/plugins/vis_type_timeseries/public/application/components/_color_picker.scss b/src/plugins/vis_type_timeseries/public/application/components/_color_picker.scss index 9d50b0875dd0..e9b2aa2d4a1b 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_color_picker.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_color_picker.scss @@ -1,6 +1,6 @@ // EUITODO: Convert to EuiColorPicker -@import 'node_modules/@elastic/eui/src/components/color_picker/index'; +@import "node_modules/@elastic/eui/src/components/color_picker/index"; .tvbColorPicker { display: flex; diff --git a/src/plugins/vis_type_timeseries/public/application/components/_index.scss b/src/plugins/vis_type_timeseries/public/application/components/_index.scss index 4ee5c1863946..ca8e86626610 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_index.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_index.scss @@ -1,15 +1,14 @@ -@import './annotations_editor'; -@import './color_rules'; -@import './color_picker'; -@import './error'; -@import './no_data'; -@import './markdown_editor'; -@import './series_editor'; -@import './vis_editor'; -@import './vis_editor_visualization'; -@import './vis_picker'; -@import './vis_with_splits'; - -@import './aggs/index'; -@import './panel_config/index'; -@import './vis_types/index'; +@import "./annotations_editor"; +@import "./color_rules"; +@import "./color_picker"; +@import "./error"; +@import "./no_data"; +@import "./markdown_editor"; +@import "./series_editor"; +@import "./vis_editor"; +@import "./vis_editor_visualization"; +@import "./vis_picker"; +@import "./vis_with_splits"; +@import "./aggs/index"; +@import "./panel_config/index"; +@import "./vis_types/index"; diff --git a/src/plugins/vis_type_timeseries/public/application/components/_no_data.scss b/src/plugins/vis_type_timeseries/public/application/components/_no_data.scss index 63aaa61301a5..c06a0ea3fdee 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_no_data.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_no_data.scss @@ -8,10 +8,12 @@ // Calculate colors similar to EuiCallout $tempBackgroundColor: tintOrShade($euiColorPrimary, 90%, 70%); + background-color: $tempBackgroundColor; .tvbNoData__title { - @include euiTitle('xs'); + @include euiTitle("xs"); + color: makeHighContrastColor($euiColorPrimary, $tempBackgroundColor); } } diff --git a/src/plugins/vis_type_timeseries/public/application/components/_series_editor.scss b/src/plugins/vis_type_timeseries/public/application/components/_series_editor.scss index 82d1f4ea6267..19b493f1014a 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_series_editor.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_series_editor.scss @@ -2,7 +2,7 @@ padding: $euiSize; } -@include euiPanel('.tvbSeriesEditor'); +@include euiPanel(".tvbSeriesEditor"); .tvbSeriesEditor { margin-bottom: $euiSize; diff --git a/src/plugins/vis_type_timeseries/public/application/components/_vis_with_splits.scss b/src/plugins/vis_type_timeseries/public/application/components/_vis_with_splits.scss index 36ab49c0cc80..25f5ba575612 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/_vis_with_splits.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/_vis_with_splits.scss @@ -1,10 +1,13 @@ .tvbSplitVis { width: 100%; display: flex; + // Allow wrapping beyond 4 in a row flex-wrap: wrap; + // Space out each vis instead of clumping in the center to utilize more hoizontal space justify-content: space-around; + // Stretch the all the heights so that prior to wrapping the vis' take up the full panel height align-items: stretch; } @@ -13,6 +16,7 @@ // This maintains that each vis will be at least 1/4 of the panel's width // but it will also grow to fill the space if there are less than 4 in a row flex: 1 0 25%; + // Ensure a minimum width is acheived on smaller width panels min-width: $tvbSplitBlockVisMinSize; display: flex; diff --git a/src/plugins/vis_type_timeseries/public/application/components/aggs/_index.scss b/src/plugins/vis_type_timeseries/public/application/components/aggs/_index.scss index cf423d36ef48..c3fc18e284fa 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/aggs/_index.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/aggs/_index.scss @@ -1 +1 @@ -@import './agg_row'; +@import "./agg_row"; diff --git a/src/plugins/vis_type_timeseries/public/application/components/panel_config/_index.scss b/src/plugins/vis_type_timeseries/public/application/components/panel_config/_index.scss index b2c1b560dcdb..147447dcb161 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/panel_config/_index.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/panel_config/_index.scss @@ -1 +1 @@ -@import './panel_config'; +@import "./panel_config"; diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/_index.scss b/src/plugins/vis_type_timeseries/public/application/components/vis_types/_index.scss index a2918916c4c4..1e14764e209f 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/_index.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/_index.scss @@ -1,3 +1,2 @@ -@import './vis_types'; - -@import './markdown/markdown'; +@import "./vis_types"; +@import "./markdown/markdown"; diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/_vis_types.scss b/src/plugins/vis_type_timeseries/public/application/components/vis_types/_vis_types.scss index c445d456a170..f7cfa98d82cb 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/_vis_types.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/_vis_types.scss @@ -11,21 +11,24 @@ .tvbVisTimeSeries { overflow: hidden; } + .tvbVisTimeSeriesDark { .echReactiveChart_unavailable { - color: #DFE5EF; + color: #dfe5ef; } - .echLegendItem { - color: #DFE5EF; + + .echLegendItem { + color: #dfe5ef; } } + .tvbVisTimeSeriesLight { .echReactiveChart_unavailable { color: #343741; } - .echLegendItem { + + .echLegendItem { color: #343741; } } } - diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/markdown/_markdown.scss b/src/plugins/vis_type_timeseries/public/application/components/vis_types/markdown/_markdown.scss index 92037c80e717..8e79bcde79e7 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/markdown/_markdown.scss +++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/markdown/_markdown.scss @@ -7,6 +7,7 @@ .tvbMarkdown__content { @include euiScrollBar; + display: flex; flex-direction: column; flex: 1 0 auto; @@ -29,5 +30,3 @@ overflow: auto; } } - - diff --git a/src/plugins/vis_type_timeseries/public/application/index.scss b/src/plugins/vis_type_timeseries/public/application/index.scss index 0c7f7f5221ef..4452a4a08f85 100644 --- a/src/plugins/vis_type_timeseries/public/application/index.scss +++ b/src/plugins/vis_type_timeseries/public/application/index.scss @@ -5,14 +5,14 @@ // tvbChart__legend--small // tvbChart__legend-isLoading -@import './variables'; -@import './mixins'; +@import "./variables"; +@import "./mixins"; // Library overrides -@import './tvb_editor'; +@import "./tvb_editor"; // Components -@import './components/index'; +@import "./components/index"; // Visualizations -@import './visualizations/views/index'; +@import "./visualizations/views/index"; diff --git a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_annotation.scss b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_annotation.scss index 3f7e9d502500..57904da66723 100644 --- a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_annotation.scss +++ b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_annotation.scss @@ -19,6 +19,7 @@ .tvbVisAnnotation__tooltip { @include euiFontSizeXS; + padding: $euiSizeS; animation-duration: 0s; animation-delay: 0s; diff --git a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_gauge.scss b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_gauge.scss index 7f3c049a131d..a73ac1fec538 100644 --- a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_gauge.scss +++ b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_gauge.scss @@ -32,7 +32,7 @@ .tvbVisGauge__label { color: $tvbTextColor; - font-size: .5em; /* 1 */ + font-size: 0.5em; /* 1 */ line-height: 1em; /* 1 */ text-align: center; padding: 0 $euiSizeS $euiSizeXS; @@ -44,7 +44,7 @@ .tvbVisGauge__value { color: $tvbValueColor; - font-size: .9em; /* 1 */ + font-size: 0.9em; /* 1 */ line-height: 1em; /* 1 */ text-align: center; @@ -55,7 +55,8 @@ .tvbVisGauge__additionalLabel { @include euiTextTruncate; - font-size: .4em; /* 1 */ + + font-size: 0.4em; /* 1 */ line-height: 1.2em; /* 1 */ width: 100%; padding: 2px $euiSizeXS; diff --git a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_index.scss b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_index.scss index ddd560480180..dbde9427fa1a 100644 --- a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_index.scss +++ b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_index.scss @@ -1,5 +1,4 @@ -@import './annotation'; -@import './gauge'; -@import './metric'; - -@import './top_n'; +@import "./annotation"; +@import "./gauge"; +@import "./metric"; +@import "./top_n"; diff --git a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_metric.scss b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_metric.scss index ae065f66d85c..bc3a2f291711 100644 --- a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_metric.scss +++ b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_metric.scss @@ -34,11 +34,10 @@ .tvbVisMetric__label--primary { color: $tvbTextColor; text-align: center; - font-size: .5em; /* 1 */ - margin-bottom: .25em; /* 1 */ + font-size: 0.5em; /* 1 */ + margin-bottom: 0.25em; /* 1 */ line-height: 1em; /* 1 */ - // sass-lint:disable-block mixins-before-declarations // these need to come after the base/normal styles @include tvbVisMetricReversedColor { color: $tvbTextColorReversed; @@ -52,7 +51,6 @@ font-weight: $euiFontWeightBold; line-height: 1em; /* 1 */ - // sass-lint:disable-block mixins-before-declarations // these need to come after the base/normal styles @include tvbVisMetricReversedColor { color: $tvbValueColorReversed; @@ -63,16 +61,15 @@ display: flex; justify-content: center; align-items: center; - margin-top: .05em; /* 1 */ + margin-top: 0.05em; /* 1 */ } .tvbVisMetric__label--secondary { - font-size: .35em; /* 1 */ - margin-right: .3em; /* 1 */ + font-size: 0.35em; /* 1 */ + margin-right: 0.3em; /* 1 */ color: $tvbTextColor; line-height: 1em; /* 1 */ - // sass-lint:disable-block mixins-before-declarations // these need to come after the base/normal styles @include tvbVisMetricReversedColor { color: $tvbTextColorReversed; @@ -80,11 +77,10 @@ } .tvbVisMetric__value--secondary { - font-size: .35em; /* 1 */ + font-size: 0.35em; /* 1 */ color: $tvbValueColor; line-height: 1em; /* 1 */ - // sass-lint:disable-block mixins-before-declarations // these need to come after the base/normal styles @include tvbVisMetricReversedColor { color: $tvbValueColorReversed; @@ -98,13 +94,13 @@ .tvbVisMetric__label--additional { @include euiTextTruncate; - font-size: .25em; /* 1 */ + + font-size: 0.25em; /* 1 */ padding: ($euiSizeXS / 2) 0 0; text-align: center; color: $tvbValueColor; line-height: 1.2; // Ensure the descenders don't get cut off - // sass-lint:disable-block mixins-before-declarations // these need to come after the base/normal styles @include tvbVisMetricReversedColor { color: $tvbValueColorReversed; diff --git a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_top_n.scss b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_top_n.scss index fb6be95dba2a..07d656c0ca6e 100644 --- a/src/plugins/vis_type_timeseries/public/application/visualizations/views/_top_n.scss +++ b/src/plugins/vis_type_timeseries/public/application/visualizations/views/_top_n.scss @@ -1,5 +1,3 @@ - - .tvbVisTopN { position: relative; overflow: auto; diff --git a/src/plugins/vis_type_vega/public/_vega_editor.scss b/src/plugins/vis_type_vega/public/_vega_editor.scss index 709aaa2030f6..da5382745014 100644 --- a/src/plugins/vis_type_vega/public/_vega_editor.scss +++ b/src/plugins/vis_type_vega/public/_vega_editor.scss @@ -5,8 +5,9 @@ } .vgaEditor { - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { @include euiScrollBar; + max-height: $euiSize * 15; overflow-y: auto; } @@ -16,6 +17,7 @@ position: absolute; z-index: $euiZLevel1; top: $euiSizeS; + // Adjust for sidebar collapse button right: $euiSizeXXL; line-height: 1; diff --git a/src/plugins/vis_type_vega/public/_vega_vis.scss b/src/plugins/vis_type_vega/public/_vega_vis.scss index 12108c7ba3de..01f9c652eae2 100644 --- a/src/plugins/vis_type_vega/public/_vega_vis.scss +++ b/src/plugins/vis_type_vega/public/_vega_vis.scss @@ -2,13 +2,13 @@ display: flex; flex: 1 1 100%; position: relative; + // flex-direction determined by js } .vgaVis__view { z-index: 0; flex: 1 1 100%; - display: block; max-width: 100%; max-height: 100%; @@ -17,13 +17,13 @@ // BUG #23514: Make sure Vega doesn't display the controls in two places .vega-bindings { - // sass-lint:disable no-important display: none !important; } } .vgaVis__controls { @include euiFontSizeS; + display: flex; &:not(:empty) { @@ -48,7 +48,7 @@ width: $euiSizeM * 10 - $euiSize; } - input[type='range'] { + input[type="range"] { width: $euiSizeM * 10; display: inline-block; vertical-align: middle; @@ -75,7 +75,7 @@ top: 0; width: 100%; margin: auto; - opacity: .8; + opacity: 0.8; z-index: 1; list-style: none; } @@ -91,17 +91,18 @@ .vgaVis__message--warn .vgaVis__messageCode { $calculatedBackgroundColor: tintOrShade($euiColorWarning, 90%, 70%); + background-color: $calculatedBackgroundColor; color: makeHighContrastColor($euiColorWarning, $calculatedBackgroundColor); } .vgaVis__message--err .vgaVis__messageCode { $calculateBackgroundColor: tintOrShade($euiColorDanger, 90%, 70%); + background-color: $calculateBackgroundColor; color: makeHighContrastColor($euiColorDanger, $calculateBackgroundColor); } - // Style tooltip popup (gets created dynamically at the top level if dashboard has a Vega vis) // Adapted from https://github.com/vega/vega-tooltip @@ -115,6 +116,7 @@ td { @include euiTextTruncate; + padding-top: $euiSizeXS; padding-bottom: $euiSizeXS; @@ -131,8 +133,7 @@ } } - - @media only screen and (max-width: map-get($euiBreakpoints, 'm')) { + @media only screen and (max-width: map-get($euiBreakpoints, "m")) { td { &.key { max-width: $euiSize * 6; diff --git a/src/plugins/vis_type_vega/public/index.scss b/src/plugins/vis_type_vega/public/index.scss index 78d9eb61999f..3ca72e834eb7 100644 --- a/src/plugins/vis_type_vega/public/index.scss +++ b/src/plugins/vis_type_vega/public/index.scss @@ -5,5 +5,5 @@ // vgaChart__legend--small // vgaChart__legend-isLoading -@import './vega_vis'; -@import './vega_editor'; +@import "./vega_vis"; +@import "./vega_editor"; diff --git a/src/plugins/vis_type_vega/public/vega_inspector/vega_data_inspector.scss b/src/plugins/vis_type_vega/public/vega_inspector/vega_data_inspector.scss index 487f505657d3..6739cdbae4de 100644 --- a/src/plugins/vis_type_vega/public/vega_inspector/vega_data_inspector.scss +++ b/src/plugins/vis_type_vega/public/vega_inspector/vega_data_inspector.scss @@ -8,11 +8,11 @@ display: flex; flex-direction: column; - [role='tablist'] { + [role="tablist"] { flex-shrink: 0; } - [role='tabpanel'] { + [role="tabpanel"] { flex-grow: 1; } } diff --git a/src/plugins/vis_type_vislib/public/index.scss b/src/plugins/vis_type_vislib/public/index.scss index 64445648ba84..6438c114487b 100644 --- a/src/plugins/vis_type_vislib/public/index.scss +++ b/src/plugins/vis_type_vislib/public/index.scss @@ -1 +1 @@ -@import './vislib/index' +@import "./vislib/index" diff --git a/src/plugins/vis_type_vislib/public/vislib/_index.scss b/src/plugins/vis_type_vislib/public/vislib/_index.scss index 78e16224a67a..3e44e368ab0b 100644 --- a/src/plugins/vis_type_vislib/public/vislib/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/_index.scss @@ -1,9 +1,7 @@ -@import './variables'; -@import './vislib_vis_type'; - -@import './lib/index'; -@import './components/tooltip/index'; -@import './components/legend/index'; - -@import './visualizations/point_series/index'; -@import './visualizations/gauges/index'; +@import "./variables"; +@import "./vislib_vis_type"; +@import "./lib/index"; +@import "./components/tooltip/index"; +@import "./components/legend/index"; +@import "./visualizations/point_series/index"; +@import "./visualizations/gauges/index"; diff --git a/src/plugins/vis_type_vislib/public/vislib/_variables.scss b/src/plugins/vis_type_vislib/public/vislib/_variables.scss index 5b2fb93b0ca0..922dc248ca4e 100644 --- a/src/plugins/vis_type_vislib/public/vislib/_variables.scss +++ b/src/plugins/vis_type_vislib/public/vislib/_variables.scss @@ -1,4 +1,4 @@ // TODO: Use the same styles for TSVB and Vislib vis' -$visLineColor: transparentize($euiColorDarkShade, .8); +$visLineColor: transparentize($euiColorDarkShade, 0.8); $visTextColor: $euiColorDarkShade; -$visHoverBackgroundColor: transparentize($euiColorFullShade, .9); +$visHoverBackgroundColor: transparentize($euiColorFullShade, 0.9); diff --git a/src/plugins/vis_type_vislib/public/vislib/components/legend/_index.scss b/src/plugins/vis_type_vislib/public/vislib/components/legend/_index.scss index 53617a984dcf..f2d306c60100 100644 --- a/src/plugins/vis_type_vislib/public/vislib/components/legend/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/components/legend/_index.scss @@ -1 +1 @@ -@import './_legend'; +@import "./legend"; diff --git a/src/plugins/vis_type_vislib/public/vislib/components/legend/_legend.scss b/src/plugins/vis_type_vislib/public/vislib/components/legend/_legend.scss index b1a59f88a348..f5b93730fb75 100644 --- a/src/plugins/vis_type_vislib/public/vislib/components/legend/_legend.scss +++ b/src/plugins/vis_type_vislib/public/vislib/components/legend/_legend.scss @@ -1,4 +1,4 @@ -@import '../../variables'; +@import "../../variables"; // NOTE: Some of the styles attempt to align with the TSVB legend @@ -14,16 +14,18 @@ $visLegendLineHeight: $euiSize; display: flex; padding: $euiSizeXS; background-color: $euiColorEmptyShade; - transition: opacity $euiAnimSpeedFast $euiAnimSlightResistance, background-color $euiAnimSpeedFast $euiAnimSlightResistance $euiAnimSpeedExtraSlow; + transition: + opacity $euiAnimSpeedFast $euiAnimSlightResistance, + background-color $euiAnimSpeedFast $euiAnimSlightResistance $euiAnimSpeedExtraSlow; &:focus { box-shadow: none; - background-color: $euiFocusBackgroundColor !important; // sass-lint:disable-line no-important + background-color: $euiFocusBackgroundColor !important; } } .visLegend__toggle--isOpen { - background-color: transparentize($euiColorDarkestShade, .9); + background-color: transparentize($euiColorDarkestShade, 0.9); opacity: 1; } @@ -47,6 +49,7 @@ $visLegendLineHeight: $euiSize; .visLegend__list { @include euiScrollBar; + display: flex; width: $visLegendWidth; // Must be a hard-coded width for the chart to get its correct dimensions flex: 1 1 auto; @@ -67,8 +70,7 @@ $visLegendLineHeight: $euiSize; .visLib--legend-top &, .visLib--legend-bottom & { width: auto; - flex-direction: row; - flex-wrap: wrap; + flex-flow: row wrap; .visLegend__value { flex-grow: 0; diff --git a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_index.scss b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_index.scss index f4e7075ff7b4..f2168d02b6cd 100644 --- a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_index.scss @@ -1 +1 @@ -@import './tooltip'; +@import "./tooltip"; diff --git a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_tooltip.scss b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_tooltip.scss index bafec7edf3b9..2563d6dff7dc 100644 --- a/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_tooltip.scss +++ b/src/plugins/vis_type_vislib/public/vislib/components/tooltip/_tooltip.scss @@ -1,6 +1,7 @@ .visTooltip, .visTooltip__sizingClone { - @include euiToolTipStyle('s'); + @include euiToolTipStyle("s"); + visibility: hidden; pointer-events: none; position: fixed; diff --git a/src/plugins/vis_type_vislib/public/vislib/lib/_alerts.scss b/src/plugins/vis_type_vislib/public/vislib/lib/_alerts.scss index 596f4675b125..8c5eccc3be8a 100644 --- a/src/plugins/vis_type_vislib/public/vislib/lib/_alerts.scss +++ b/src/plugins/vis_type_vislib/public/vislib/lib/_alerts.scss @@ -1,4 +1,3 @@ - .visAlerts__tray { position: absolute; bottom: ($euiSizeXS + 1px); @@ -6,7 +5,6 @@ right: 0; list-style: none; padding: 0; - transition-property: opacity; transition-delay: $euiAnimSpeedExtraFast; transition-duration: $euiAnimSpeedExtraFast; diff --git a/src/plugins/vis_type_vislib/public/vislib/lib/_index.scss b/src/plugins/vis_type_vislib/public/vislib/lib/_index.scss index b19c2dfb153b..9183b62e74b9 100644 --- a/src/plugins/vis_type_vislib/public/vislib/lib/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/lib/_index.scss @@ -1,4 +1,3 @@ -@import './alerts'; -@import './handler'; -@import './layout/index'; - +@import "./alerts"; +@import "./handler"; +@import "./layout/index"; diff --git a/src/plugins/vis_type_vislib/public/vislib/lib/layout/_index.scss b/src/plugins/vis_type_vislib/public/vislib/lib/layout/_index.scss index 0820684ccbcf..a293b7a16766 100644 --- a/src/plugins/vis_type_vislib/public/vislib/lib/layout/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/lib/layout/_index.scss @@ -1 +1 @@ -@import './layout'; +@import "./layout"; diff --git a/src/plugins/vis_type_vislib/public/vislib/lib/layout/_layout.scss b/src/plugins/vis_type_vislib/public/vislib/lib/layout/_layout.scss index 96c72bd5956d..c327eb3f9978 100644 --- a/src/plugins/vis_type_vislib/public/vislib/lib/layout/_layout.scss +++ b/src/plugins/vis_type_vislib/public/vislib/lib/layout/_layout.scss @@ -20,10 +20,10 @@ // .visAxis__splitAxes--y // .visAxis__spacer--y.visAxis__spacer--y-[position] -// +// ----------- // LAYOUT ONLY // Numbers in here are brittle -// +// ----------- .visWrapper { display: flex; @@ -142,10 +142,9 @@ min-height: 0; } - -// +// ----- // STYLE -// +// ----- // BEM NOTE: These selectors could not be renamed. // Most come from an external libray, others are too general for @@ -153,9 +152,8 @@ // could it be easily found to apply to all chart types. // At least wrapping selectors inside .visWrapper will narrow scope. - -// sass-lint:disable-block no-mergeable-selectors // Keep SVG and non-renamable selectors separately +/* stylelint-disable-next-line no-duplicate-selectors */ .visWrapper { svg { overflow: visible; @@ -166,7 +164,7 @@ opacity: 1; &:hover { - opacity: .8; + opacity: 0.8; } } @@ -176,7 +174,7 @@ &:hover { opacity: 1; stroke-width: $euiSizeS; - stroke-opacity: .8; + stroke-opacity: 0.8; } } @@ -192,6 +190,7 @@ .label-text { @include fontSize($euiFontSizeXS); + font-weight: $euiFontWeightRegular; } @@ -215,11 +214,13 @@ .tick text { @include fontSize($euiFontSizeXS - 1px); + fill: $visTextColor; } .axis-title text { @include fontSize($euiFontSizeXS); + font-weight: $euiFontWeightBold; fill: $visTextColor; } @@ -240,12 +241,14 @@ text { @include fontSize($euiFontSizeXS - 1px); + fill: $visTextColor; } } .chart { @include euiScrollBar; + flex: 1 1 100%; min-height: 0; min-width: 0; @@ -299,7 +302,7 @@ } .visAreaChart__overlapArea { - opacity: .8; + opacity: 0.8; } .series > path, @@ -309,12 +312,11 @@ } .series > path { - fill-opacity: .8; + fill-opacity: 0.8; } .blur_shape { - // sass-lint:disable-block no-important - opacity: .3 !important; + opacity: 0.3 !important; } .slice { @@ -322,7 +324,7 @@ stroke: $euiColorEmptyShade; &:hover { - opacity: .8; + opacity: 0.8; } } @@ -332,7 +334,7 @@ &:hover { stroke-width: $euiSizeS; - stroke-opacity: .8; + stroke-opacity: 0.8; } } } diff --git a/src/plugins/vis_type_vislib/public/vislib/visualizations/gauges/_index.scss b/src/plugins/vis_type_vislib/public/vislib/visualizations/gauges/_index.scss index 1c6b5e669a94..3b16c2e74b9d 100644 --- a/src/plugins/vis_type_vislib/public/vislib/visualizations/gauges/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/visualizations/gauges/_index.scss @@ -1 +1 @@ -@import './meter'; +@import "./meter"; diff --git a/src/plugins/vis_type_vislib/public/vislib/visualizations/point_series/_index.scss b/src/plugins/vis_type_vislib/public/vislib/visualizations/point_series/_index.scss index 53fce786ecc1..8c8a2b426707 100644 --- a/src/plugins/vis_type_vislib/public/vislib/visualizations/point_series/_index.scss +++ b/src/plugins/vis_type_vislib/public/vislib/visualizations/point_series/_index.scss @@ -1 +1 @@ -@import './labels'; +@import "./labels"; diff --git a/src/plugins/visualizations/public/components/_index.scss b/src/plugins/visualizations/public/components/_index.scss index 532e8106b023..31f1f9a32497 100644 --- a/src/plugins/visualizations/public/components/_index.scss +++ b/src/plugins/visualizations/public/components/_index.scss @@ -1 +1 @@ -@import 'visualization'; +@import "visualization"; diff --git a/src/plugins/visualizations/public/components/_visualization.scss b/src/plugins/visualizations/public/components/_visualization.scss index f5e2d4fcf286..c09c45c9648f 100644 --- a/src/plugins/visualizations/public/components/_visualization.scss +++ b/src/plugins/visualizations/public/components/_visualization.scss @@ -22,6 +22,7 @@ */ .visChart__container { @include euiScrollBar; + min-height: 0; flex: 1 1 0; /* 1 */ display: flex; @@ -30,11 +31,11 @@ transition: opacity 0.01s; // IE11 Hack - // + // --------- // Normally we would just set flex: 1 1 0%, which works as expected in IE11. // Unfortunately, a recent bug in Firefox causes this rule to be ignored, so we // have to use an IE-specific hack instead. - @include internetExplorerOnly(){ + @include internetExplorerOnly { flex: 1 0; } @@ -76,4 +77,3 @@ justify-content: center; align-items: center; } - diff --git a/src/plugins/visualizations/public/embeddable/_embeddables.scss b/src/plugins/visualizations/public/embeddable/_embeddables.scss index 23d3e189767d..8499bbdce87d 100644 --- a/src/plugins/visualizations/public/embeddable/_embeddables.scss +++ b/src/plugins/visualizations/public/embeddable/_embeddables.scss @@ -27,12 +27,13 @@ */ .embPanel_optionsMenuPopover[class*="-isOpen"], -.embPanel:hover { +.embPanel:hover { .visLegend__toggle { opacity: 1; } } +/* stylelint-disable-next-line no-duplicate-selectors */ .embPanel .visLegend__toggle { opacity: 0; /* 1 */ @@ -45,4 +46,4 @@ .visLegend__toggle { opacity: 1; /* 3 */ } -} \ No newline at end of file +} diff --git a/src/plugins/visualizations/public/embeddable/_index.scss b/src/plugins/visualizations/public/embeddable/_index.scss index c1e3809657bf..9fd86735692a 100644 --- a/src/plugins/visualizations/public/embeddable/_index.scss +++ b/src/plugins/visualizations/public/embeddable/_index.scss @@ -1,2 +1,2 @@ -@import 'visualize_lab_disabled'; -@import 'embeddables'; +@import "visualize_lab_disabled"; +@import "embeddables"; diff --git a/src/plugins/visualizations/public/embeddable/_visualize_lab_disabled.scss b/src/plugins/visualizations/public/embeddable/_visualize_lab_disabled.scss index 914480ff8c77..4cebc56b0f22 100644 --- a/src/plugins/visualizations/public/embeddable/_visualize_lab_disabled.scss +++ b/src/plugins/visualizations/public/embeddable/_visualize_lab_disabled.scss @@ -10,4 +10,3 @@ .visDisabledLabVisualization__icon { font-size: $euiFontSizeXL; } - diff --git a/src/plugins/visualizations/public/index.scss b/src/plugins/visualizations/public/index.scss index 2b61535f3e7f..bc62faaf67e4 100644 --- a/src/plugins/visualizations/public/index.scss +++ b/src/plugins/visualizations/public/index.scss @@ -1,3 +1,3 @@ -@import 'wizard/index'; -@import 'embeddable/index'; -@import 'components/index'; +@import "wizard/index"; +@import "embeddable/index"; +@import "components/index"; diff --git a/src/plugins/visualizations/public/wizard/_dialog.scss b/src/plugins/visualizations/public/wizard/_dialog.scss index 793951f9dd1c..f8819e556dec 100644 --- a/src/plugins/visualizations/public/wizard/_dialog.scss +++ b/src/plugins/visualizations/public/wizard/_dialog.scss @@ -1,5 +1,6 @@ .visNewVisDialog { max-width: 100vw; + /* stylelint-disable-next-line function-url-quotes */ background-image: url(lightOrDarkTheme("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='313' height='461' viewBox='0 0 313 461'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23F5F7FA' d='M294.009,184.137 C456.386,184.137 588.018,315.77 588.018,478.146 C588.018,640.523 456.386,772.156 294.009,772.156 C131.632,772.156 0,640.523 0,478.146 C0,315.77 131.632,184.137 294.009,184.137 Z M294.009,384.552 C242.318,384.552 200.415,426.456 200.415,478.146 C200.415,529.837 242.318,571.741 294.009,571.741 C345.7,571.741 387.604,529.837 387.604,478.146 C387.604,426.456 345.7,384.552 294.009,384.552 Z'/%3E%3Cpath fill='%23E6EBF2' d='M202.958,365.731 L202.958,380.991 L187.698,380.991 L187.698,365.731 L202.958,365.731 Z M202.958,327.073 L202.958,342.333 L187.698,342.333 L187.698,327.073 L202.958,327.073 Z M243.651,325.038 L243.651,340.298 L228.391,340.298 L228.391,325.038 L243.651,325.038 Z M243.651,286.379 L243.651,301.639 L228.391,301.639 L228.391,286.379 L243.651,286.379 Z M202.958,285.362 L202.958,300.622 L187.698,300.622 L187.698,285.362 L202.958,285.362 Z M284.345,284.345 L284.345,299.605 L269.085,299.605 L269.085,284.345 L284.345,284.345 Z M284.345,245.686 L284.345,260.946 L269.085,260.946 L269.085,245.686 L284.345,245.686 Z M243.651,244.669 L243.651,259.929 L228.391,259.929 L228.391,244.669 L243.651,244.669 Z M202.958,243.651 L202.958,258.911 L187.698,258.911 L187.698,243.651 L202.958,243.651 Z M284.345,203.975 L284.345,219.235 L269.085,219.235 L269.085,203.975 L284.345,203.975 Z M202.958,203.975 L202.958,219.235 L187.698,219.235 L187.698,203.975 L202.958,203.975 Z M243.651,202.958 L243.651,218.218 L228.391,218.218 L228.391,202.958 L243.651,202.958 Z M243.651,163.282 L243.651,178.542 L228.391,178.542 L228.391,163.282 L243.651,163.282 Z M202.958,163.282 L202.958,178.542 L187.698,178.542 L187.698,163.282 L202.958,163.282 Z M284.345,162.265 L284.345,177.525 L269.085,177.525 L269.085,162.265 L284.345,162.265 Z M284.345,122.589 L284.345,137.849 L269.085,137.849 L269.085,122.589 L284.345,122.589 Z M243.651,122.589 L243.651,137.849 L228.391,137.849 L228.391,122.589 L243.651,122.589 Z M202.958,122.589 L202.958,137.849 L187.698,137.849 L187.698,122.589 L202.958,122.589 Z M284.345,81.8954 L284.345,97.1554 L269.085,97.1554 L269.085,81.8954 L284.345,81.8954 Z M243.651,81.8954 L243.651,97.1554 L228.391,97.1554 L228.391,81.8954 L243.651,81.8954 Z M202.958,81.8954 L202.958,97.1554 L187.698,97.1554 L187.698,81.8954 L202.958,81.8954 Z M284.345,41.202 L284.345,56.462 L269.085,56.462 L269.085,41.202 L284.345,41.202 Z M243.651,41.202 L243.651,56.462 L228.391,56.462 L228.391,41.202 L243.651,41.202 Z M284.345,0.508789 L284.345,15.7688 L269.085,15.7688 L269.085,0.508789 L284.345,0.508789 Z'/%3E%3C/g%3E%3C/svg%3E","data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='313' height='461' viewBox='0 0 313 461'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%2318191E' d='M294.009,184.137 C456.386,184.137 588.018,315.77 588.018,478.146 C588.018,640.523 456.386,772.156 294.009,772.156 C131.632,772.156 0,640.523 0,478.146 C0,315.77 131.632,184.137 294.009,184.137 Z M294.009,384.552 C242.318,384.552 200.415,426.456 200.415,478.146 C200.415,529.837 242.318,571.741 294.009,571.741 C345.7,571.741 387.604,529.837 387.604,478.146 C387.604,426.456 345.7,384.552 294.009,384.552 Z'/%3E%3Cpath fill='%2315161B' d='M202.958,365.731 L202.958,380.991 L187.698,380.991 L187.698,365.731 L202.958,365.731 Z M202.958,327.073 L202.958,342.333 L187.698,342.333 L187.698,327.073 L202.958,327.073 Z M243.651,325.038 L243.651,340.298 L228.391,340.298 L228.391,325.038 L243.651,325.038 Z M243.651,286.379 L243.651,301.639 L228.391,301.639 L228.391,286.379 L243.651,286.379 Z M202.958,285.362 L202.958,300.622 L187.698,300.622 L187.698,285.362 L202.958,285.362 Z M284.345,284.345 L284.345,299.605 L269.085,299.605 L269.085,284.345 L284.345,284.345 Z M284.345,245.686 L284.345,260.946 L269.085,260.946 L269.085,245.686 L284.345,245.686 Z M243.651,244.669 L243.651,259.929 L228.391,259.929 L228.391,244.669 L243.651,244.669 Z M202.958,243.651 L202.958,258.911 L187.698,258.911 L187.698,243.651 L202.958,243.651 Z M284.345,203.975 L284.345,219.235 L269.085,219.235 L269.085,203.975 L284.345,203.975 Z M202.958,203.975 L202.958,219.235 L187.698,219.235 L187.698,203.975 L202.958,203.975 Z M243.651,202.958 L243.651,218.218 L228.391,218.218 L228.391,202.958 L243.651,202.958 Z M243.651,163.282 L243.651,178.542 L228.391,178.542 L228.391,163.282 L243.651,163.282 Z M202.958,163.282 L202.958,178.542 L187.698,178.542 L187.698,163.282 L202.958,163.282 Z M284.345,162.265 L284.345,177.525 L269.085,177.525 L269.085,162.265 L284.345,162.265 Z M284.345,122.589 L284.345,137.849 L269.085,137.849 L269.085,122.589 L284.345,122.589 Z M243.651,122.589 L243.651,137.849 L228.391,137.849 L228.391,122.589 L243.651,122.589 Z M202.958,122.589 L202.958,137.849 L187.698,137.849 L187.698,122.589 L202.958,122.589 Z M284.345,81.8954 L284.345,97.1554 L269.085,97.1554 L269.085,81.8954 L284.345,81.8954 Z M243.651,81.8954 L243.651,97.1554 L228.391,97.1554 L228.391,81.8954 L243.651,81.8954 Z M202.958,81.8954 L202.958,97.1554 L187.698,97.1554 L187.698,81.8954 L202.958,81.8954 Z M284.345,41.202 L284.345,56.462 L269.085,56.462 L269.085,41.202 L284.345,41.202 Z M243.651,41.202 L243.651,56.462 L228.391,56.462 L228.391,41.202 L243.651,41.202 Z M284.345,0.508789 L284.345,15.7688 L269.085,15.7688 L269.085,0.508789 L284.345,0.508789 Z'/%3E%3C/g%3E%3C/svg%3E")); background-repeat: no-repeat; background-position: calc(100% + 1px) calc(100% + 1px); @@ -16,6 +17,7 @@ padding: $euiSizeM $euiSizeL 0; min-height: 0; } + .visNewVisDialog__list { min-height: 0; } @@ -26,6 +28,7 @@ .visNewVisDialog__typesWrapper { @include euiOverflowShadow; + max-width: $euiSizeXXL * 10; min-height: 0; margin-top: 2px; // Account for search field dropshadow @@ -34,6 +37,7 @@ .visNewVisDialog__types { @include euiScrollBar; + // EUITODO: allow for more (calculated) widths of `EuiKeyPadMenu` width: auto; overflow-y: auto; @@ -55,7 +59,7 @@ @include size($euiSizeL); } -@include euiBreakpoint('xs', 's') { +@include euiBreakpoint("xs", "s") { .visNewVisDialog { background-image: none; } diff --git a/src/plugins/visualizations/public/wizard/_index.scss b/src/plugins/visualizations/public/wizard/_index.scss index a10b4b1b347b..7ca63f56ca75 100644 --- a/src/plugins/visualizations/public/wizard/_index.scss +++ b/src/plugins/visualizations/public/wizard/_index.scss @@ -1 +1 @@ -@import 'dialog'; +@import "dialog"; diff --git a/src/plugins/visualize/public/application/components/visualize_editor.scss b/src/plugins/visualize/public/application/components/visualize_editor.scss index 3a542cacc44b..7fe201ee2907 100644 --- a/src/plugins/visualize/public/application/components/visualize_editor.scss +++ b/src/plugins/visualize/public/application/components/visualize_editor.scss @@ -1,9 +1,9 @@ .visEditor { - @include flex-parent(); + @include flex-parent; height: 100%; - @include euiBreakpoint('xs', 's', 'm') { + @include euiBreakpoint("xs", "s", "m") { .visualization { // While we are on a small screen the visualization is below the // editor. In this cases it needs a minimum height, since it would otherwise @@ -23,7 +23,8 @@ a tilemap in an iframe: https://github.com/elastic/kibana/issues/16457 */ } .visEditor__content { - @include flex-parent(); + @include flex-parent; + width: 100%; z-index: 0; } diff --git a/src/plugins/visualize/public/application/components/visualize_listing.scss b/src/plugins/visualize/public/application/components/visualize_listing.scss index a4b4c1b994ef..13c2be619247 100644 --- a/src/plugins/visualize/public/application/components/visualize_listing.scss +++ b/src/plugins/visualize/public/application/components/visualize_listing.scss @@ -12,6 +12,6 @@ .visListingTable__experimentalIcon { width: $euiSizeL; vertical-align: baseline; - padding: 0 $euiSizeS; + padding: 0 $euiSizeS; margin-left: $euiSizeS; -} \ No newline at end of file +} diff --git a/tasks/config/run.js b/tasks/config/run.js index e4455d4e0599..7e3afceef553 100644 --- a/tasks/config/run.js +++ b/tasks/config/run.js @@ -62,10 +62,10 @@ module.exports = function () { args: ['scripts/eslint', '--no-cache'], }), - sasslint: scriptWithGithubChecks({ - title: 'sasslint', + stylelint: scriptWithGithubChecks({ + title: 'stylelint', cmd: NODE, - args: ['scripts/sasslint'], + args: ['scripts/stylelint'], }), // used by the test tasks diff --git a/tasks/jenkins.js b/tasks/jenkins.js index 88f7c2f51029..d3924bd379ed 100644 --- a/tasks/jenkins.js +++ b/tasks/jenkins.js @@ -33,7 +33,7 @@ module.exports = function (grunt) { grunt.registerTask('jenkins:unit', [ 'run:eslint', - 'run:sasslint', + 'run:stylelint', 'run:checkTsProjects', 'run:checkDocApiChanges', 'run:typeCheck', diff --git a/tasks/test.js b/tasks/test.js index 83a6e59dc168..8c26f63a4f8b 100644 --- a/tasks/test.js +++ b/tasks/test.js @@ -58,7 +58,7 @@ module.exports = function (grunt) { grunt.task.run( [ !grunt.option('quick') && 'run:eslint', - !grunt.option('quick') && 'run:sasslint', + !grunt.option('quick') && 'run:stylelint', !grunt.option('quick') && 'run:checkTsProjects', !grunt.option('quick') && 'run:checkDocApiChanges', !grunt.option('quick') && 'run:typeCheck', diff --git a/test/scripts/lint/sasslint.sh b/test/scripts/lint/stylelint.sh similarity index 67% rename from test/scripts/lint/sasslint.sh rename to test/scripts/lint/stylelint.sh index b9c683bcb049..24919c5627c2 100755 --- a/test/scripts/lint/sasslint.sh +++ b/test/scripts/lint/stylelint.sh @@ -2,4 +2,4 @@ source src/dev/ci_setup/setup_env.sh -yarn run grunt run:sasslint +yarn run grunt run:stylelint diff --git a/yarn.lock b/yarn.lock index c52c9476bc55..3766bcc0d928 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20713,4 +20713,4 @@ zlib@^1.0.5: zwitch@^1.0.0: version "1.0.5" resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-1.0.5.tgz#d11d7381ffed16b742f6af7b3f223d5cd9fe9920" - integrity sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw== + integrity sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw== \ No newline at end of file