Skip to content

Commit

Permalink
stylelint fix src-docs (opensearch-project#119)
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Gulderov <[email protected]>
  • Loading branch information
gulderov committed Aug 3, 2023
1 parent b226e9c commit 4bb9391
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
10 changes: 7 additions & 3 deletions src-docs/src/components/guide_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ $elasticLogoTextDark: #1C1E23;

.guideSideNav {
@include ouiSideNavEmbellish;

min-width: $guideSideNavWidth;
}

.guideSideNav__content {
@include ouiYScroll;

padding: 0 $ouiSizeL $ouiSizeL;
}

Expand Down Expand Up @@ -177,7 +179,7 @@ $elasticLogoTextDark: #1C1E23;
}

.guideDemo__ghostBackground {
@if (lightness($ouiTextColor) < 50) {
@if lightness($ouiTextColor) < 50 {
color: $ouiColorGhost;
background: $ouiColorDarkestShade !important; // Override OuiPanel specificity
}
Expand Down Expand Up @@ -245,6 +247,7 @@ $elasticLogoTextDark: #1C1E23;

.guideDemo__notificationEvent {
@include ouiFontSizeS;

display: flex;
flex-direction: column;

Expand Down Expand Up @@ -322,10 +325,11 @@ $elasticLogoTextDark: #1C1E23;
color: $ouiColorAccentText;
}


/* stylelint-disable no-invalid-position-at-import-rule */
@import '../views/guidelines/index';
@import 'guide_section/index';
@import 'guide_rule/index';
/* stylelint-enable no-invalid-position-at-import-rule */

@include ouiBreakpoint('xs', 's') {
.guideSideNav {
Expand Down Expand Up @@ -381,7 +385,7 @@ $elasticLogoTextDark: #1C1E23;
width: 100%;
height: auto;

&:before {
&::before {
content: '';
display: block;
position: absolute;
Expand Down
5 changes: 2 additions & 3 deletions src-docs/src/theme_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
*/

// sass-lint:disable no-url-domains, no-url-protocols
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i');
@import url('https://rsms.me/inter/inter-ui.css');

@import 'https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i';
@import 'https://rsms.me/inter/inter-ui.css';
@import '../../src/theme_dark';
@import './components/guide_components';
@import './services/playground/index';
Expand Down
5 changes: 2 additions & 3 deletions src-docs/src/theme_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
*/

// sass-lint:disable no-url-domains, no-url-protocols
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i');
@import url('https://rsms.me/inter/inter-ui.css');

@import 'https://fonts.googleapis.com/css?family=Roboto+Mono:400,400i,700,700i';
@import 'https://rsms.me/inter/inter-ui.css';
@import '../../src/theme_light';
@import './components/guide_components';
@import './services/playground/index';
Expand Down
3 changes: 1 addition & 2 deletions src-docs/src/theme_next_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*/

// sass-lint:disable no-url-domains, no-url-protocols
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

@import 'https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap';
@import '../../src/theme_next_dark';
@import './components/guide_components';
@import './services/playground/index';
Expand Down
3 changes: 1 addition & 2 deletions src-docs/src/theme_next_light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
*/

// sass-lint:disable no-url-domains, no-url-protocols
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

@import 'https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap';
@import '../../src/theme_next_light';
@import './components/guide_components';
@import './services/playground/index';
Expand Down
14 changes: 9 additions & 5 deletions src-docs/src/views/guidelines/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,14 @@

.guideSass__overflowShadowText {
@include ouiYScrollWithShadows;

padding: $ouiSizeS;
}
}

.guideSass__overflowShadowsX {
@include ouiXScrollWithShadows;

padding: $ouiSizeS $ouiSizeS 0;

.guideSass__overflowShadowTextX {
Expand Down Expand Up @@ -338,13 +340,15 @@
background-color: $ouiColorEmptyShade;
}

/* stylelint-disable no-invalid-position-at-import-rule */
@import 'colors/color_section';
/* stylelint-enable no-invalid-position-at-import-rule */

@include ouiBreakpoint('xl') {
.guideSass__breakpointExample {
background: $ouiColorPrimary;

&:before {
&::before {
content: 'You are currently in the xl breakpoint';
}
}
Expand All @@ -354,7 +358,7 @@
.guideSass__breakpointExample {
background: $ouiColorSecondary;

&:before {
&::before {
content: 'You are currently in the l breakpoint';
}
}
Expand All @@ -364,7 +368,7 @@
.guideSass__breakpointExample {
background: $ouiColorAccent;

&:before {
&::before {
content: 'You are currently in the m breakpoint';
}
}
Expand All @@ -374,7 +378,7 @@
.guideSass__breakpointExample {
background: $ouiColorWarning;

&:before {
&::before {
content: 'You are currently in the s breakpoint';
}
}
Expand All @@ -384,7 +388,7 @@
.guideSass__breakpointExample {
background: $ouiColorDanger;

&:before {
&::before {
content: 'You are currently in the xs breakpoint';
}
}
Expand Down
1 change: 1 addition & 0 deletions src-docs/src/views/suggest/_saved_queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

.savedQueryManagement__list {
@include ouiYScrollWithShadows;

max-height: inherit; // Fixes overflow for applied max-height
// Left/Right padding is calculated to match the left alignment of the
// popover text and buttons
Expand Down

0 comments on commit 4bb9391

Please sign in to comment.