Skip to content

Commit

Permalink
css cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Yasonik committed Sep 10, 2020
1 parent e367824 commit 71a78f8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
3 changes: 3 additions & 0 deletions src/core/public/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import '@elastic/eui/src/global_styling/variables/header';

$headerOffset: $euiHeaderHeightCompensation * 2;
2 changes: 1 addition & 1 deletion src/core/public/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import './variables';
@import './core';
@import './chrome/index';
@import './overlays/index';
@import './rendering/index';
@import './styles/index';

12 changes: 1 addition & 11 deletions src/core/public/rendering/_base.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
@import '@elastic/eui/src/global_styling/variables/header';
@import '@elastic/eui/src/components/nav_drawer/variables';
@include euiHeaderAffordForFixed($euiHeaderHeightCompensation * 2);

$headerOffset: $euiHeaderHeightCompensation * 2;
@include euiHeaderAffordForFixed($headerOffset);

/**
* stretch the root element of the Kibana application to set the base-size that
Expand All @@ -21,12 +17,6 @@ $headerOffset: $euiHeaderHeightCompensation * 2;
margin: 0 auto;
min-height: calc(100vh - #{$headerOffset});

@include internetExplorerOnly {
// IE specific bug with min-height in flex container, described in the next link
// https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
height: calc(100vh - #{$headerOffset});
}

&.hidden-chrome {
min-height: 100vh;
}
Expand Down
5 changes: 0 additions & 5 deletions src/plugins/timelion/public/_app.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
@import '@elastic/eui/src/global_styling/variables/header';

$headerOffset: $euiHeaderHeightCompensation * 2;

.timApp {
position: relative;
min-height: calc(100vh - #{$headerOffset});
background: $euiColorEmptyShade;

[ng-click] {
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/maps/public/_main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import '@elastic/eui/src/global_styling/variables/header';
$headerOffset: $euiHeaderHeightCompensation * 2;
@import '../../../../src/core/public/variables';

// sass-lint:disable no-ids
#maps-plugin {
Expand Down

0 comments on commit 71a78f8

Please sign in to comment.