-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added sass lint to Canvas #43410
added sass lint to Canvas #43410
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,11 @@ | |
border-right: $euiBorderThin; | ||
} | ||
|
||
.autocompleteItems, .autocompleteReference { | ||
.autocompleteItems, | ||
.autocompleteReference { | ||
@include euiScrollBar; | ||
height: 258px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did it not yell about the pixel value here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nope, it's not giving any errors for px values. Maybe it needs to be configured or something? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought for sure I set this up. I guess not. We don't have it on in EUI either. Something we can look into in a later PR. https://github.com/sasstools/sass-lint/blob/master/docs/rules/variable-for-property.md |
||
overflow: auto; | ||
@include euiScrollBar; | ||
} | ||
|
||
.autocompleteReference { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
width: 8px; | ||
margin-left: -4px; | ||
margin-top: -4px; | ||
background-color: #fff; | ||
border: 1px solid #666; | ||
box-shadow: 0 2px 2px -1px rgba(153, 153, 153, 0.3), 0 1px 5px -2px rgba(153, 153, 153, 0.3); | ||
background-color: $euiColorEmptyShade; | ||
border: 1px solid $euiColorDarkShade; | ||
box-shadow: 0 2px 2px -1px transparentize($euiColorMediumShade, .7), 0 1px 5px -2px transparentize($euiColorMediumShade, .7); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not 100% sure what this is used for, but a reminder we have a bunch of shadow mixins. They may or may not be a good sub. https://github.com/elastic/eui/blob/master/src/global_styling/mixins/_shadow.scss |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.canvasColorPalette { | ||
.canvasColorPalette__dot { | ||
display: inline-block; | ||
margin: 0px $euiSizeXS $euiSizeXS 0px; | ||
margin: 0 $euiSizeXS $euiSizeXS 0; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
body.canvas-isFullscreen { | ||
.canvas-isFullscreen { | ||
ryankeairns marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// hide global loading indicator | ||
.kbnLoadingIndicator { | ||
display: none; | ||
} | ||
|
||
// remove space for global nav elements | ||
.header-global-wrapper + .app-wrapper { | ||
left: 0; | ||
top: 0; | ||
} | ||
|
||
// set the background color | ||
// This hex is OK, we always want it black | ||
.canvasLayout { | ||
background: #000; // This hex is OK, we always want it black | ||
background: #000; // sass-lint:disable-line no-color-literals | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
// hide all the interface parts | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,11 @@ | |
0% { | ||
opacity: 0; | ||
} | ||
|
||
1% { | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.canvasLayout__sidebarHeader { | ||
padding: ($euiSizeXS * 0.5) 0; | ||
padding: ($euiSizeXS * .5) 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.canvasPage { | ||
@include euiBottomShadowFlat($opacity: .4); | ||
z-index: initial; | ||
@include euiBottomShadowFlat($opacity: 0.4); | ||
position: absolute; | ||
top: 0; | ||
transform-style: preserve-3d !important; | ||
transform-style: preserve-3d !important; // sass-lint:disable-line no-important | ||
background-color: $euiColorEmptyShade; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉