Skip to content

Commit

Permalink
Sandbox plugin styles
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Sep 19, 2018
1 parent fe46a90 commit 01fc786
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 73 deletions.
2 changes: 1 addition & 1 deletion src/core_plugins/status_page/public/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import 'ui/public/styles/styling_constants';

// SASSTODO: Remove when K7 applies background color to body
.stsPage {
#status_page-app .stsPage {
min-height: 100vh;
}
2 changes: 2 additions & 0 deletions src/ui/public/chrome/directives/kbn_chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export function kbnChromeProvider(chrome, internals) {
const $content = $(require('./kbn_chrome.html'));
const $app = $content.find('.application');

$app.attr('id', `${internals.app.id}-app`);

if (internals.rootController) {
$app.attr('ng-controller', internals.rootController);
}
Expand Down
96 changes: 49 additions & 47 deletions x-pack/plugins/canvas/public/style/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,54 @@
@import '@elastic/eui/src/global_styling/variables/index';
@import '@elastic/eui/src/global_styling/mixins/index';

// Canvas core
@import 'hackery';
@import 'main';
#canvas-app {
// Canvas core
@import 'hackery';
@import 'main';

// Canvas apps
@import '../apps/home/home_app';
@import '../apps/workpad/workpad_app/workpad_app';
@import '../apps/export/export/export_app';
// Canvas apps
@import '../apps/home/home_app';
@import '../apps/workpad/workpad_app/workpad_app';
@import '../apps/export/export/export_app';

// Canvas components
@import '../components/alignment_guide/alignment_guide';
@import '../components/arg_add/arg_add';
@import '../components/arg_add_popover/arg_add_popover';
@import '../components/arg_form/arg_form';
@import '../components/asset_manager/asset_manager';
@import '../components/border_connection/border_connection';
@import '../components/border_resize_handle/border_resize_handle';
@import '../components/color_dot/color_dot';
@import '../components/color_palette/color_palette';
@import '../components/color_picker_mini/color_picker_mini';
@import '../components/context_menu/context_menu';
@import '../components/datasource/datasource';
@import '../components/datasource/datasource_preview/datasource_preview';
@import '../components/datatable/datatable';
@import '../components/debug/debug';
@import '../components/dom_preview/dom_preview';
@import '../components/element_content/element_content';
@import '../components/expression_input/suggestion';
@import '../components/font_picker/font_picker';
@import '../components/fullscreen/fullscreen';
@import '../components/function_form/function_form';
@import '../components/hover_annotation/hover_annotation';
@import '../components/loading/loading';
@import '../components/navbar/navbar';
@import '../components/page_manager/page_manager';
@import '../components/palette_picker/palette_picker';
@import '../components/palette_swatch/palette_swatch';
@import '../components/positionable/positionable';
@import '../components/refresh_control/refresh_control';
@import '../components/remove_icon/remove_icon';
@import '../components/rotation_handle/rotation_handle';
@import '../components/shape_preview/shape_preview';
@import '../components/shape_picker_mini/shape_picker_mini';
@import '../components/sidebar/sidebar';
@import '../components/toolbar/toolbar';
@import '../components/toolbar/tray/tray';
@import '../components/workpad/workpad';
@import '../components/workpad_loader/workpad_dropzone/workpad_dropzone';
@import '../components/workpad_page/workpad_page';
// Canvas components
@import '../components/alignment_guide/alignment_guide';
@import '../components/arg_add/arg_add';
@import '../components/arg_add_popover/arg_add_popover';
@import '../components/arg_form/arg_form';
@import '../components/asset_manager/asset_manager';
@import '../components/border_connection/border_connection';
@import '../components/border_resize_handle/border_resize_handle';
@import '../components/color_dot/color_dot';
@import '../components/color_palette/color_palette';
@import '../components/color_picker_mini/color_picker_mini';
@import '../components/context_menu/context_menu';
@import '../components/datasource/datasource';
@import '../components/datasource/datasource_preview/datasource_preview';
@import '../components/datatable/datatable';
@import '../components/debug/debug';
@import '../components/dom_preview/dom_preview';
@import '../components/element_content/element_content';
@import '../components/expression_input/suggestion';
@import '../components/font_picker/font_picker';
@import '../components/fullscreen/fullscreen';
@import '../components/function_form/function_form';
@import '../components/hover_annotation/hover_annotation';
@import '../components/loading/loading';
@import '../components/navbar/navbar';
@import '../components/page_manager/page_manager';
@import '../components/palette_picker/palette_picker';
@import '../components/palette_swatch/palette_swatch';
@import '../components/positionable/positionable';
@import '../components/refresh_control/refresh_control';
@import '../components/remove_icon/remove_icon';
@import '../components/rotation_handle/rotation_handle';
@import '../components/shape_preview/shape_preview';
@import '../components/shape_picker_mini/shape_picker_mini';
@import '../components/sidebar/sidebar';
@import '../components/toolbar/toolbar';
@import '../components/toolbar/tray/tray';
@import '../components/workpad/workpad';
@import '../components/workpad_loader/workpad_dropzone/workpad_dropzone';
@import '../components/workpad_page/workpad_page';
}
1 change: 0 additions & 1 deletion x-pack/plugins/dashboard_mode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function dashboardMode(kibana) {
}
],
},
styleSheetPaths: `${__dirname}/public/index.scss`,
},

config(Joi) {
Expand Down
3 changes: 0 additions & 3 deletions x-pack/plugins/dashboard_mode/public/index.scss

This file was deleted.

1 change: 0 additions & 1 deletion x-pack/plugins/ml/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const ml = (kibana) => {
icon: 'plugins/ml/ml.svg',
main: 'plugins/ml/app',
},
styleSheetPaths: `${__dirname}/public/index.scss`,
hacks: ['plugins/ml/hacks/toggle_app_link_in_nav'],
home: ['plugins/ml/register_feature']
},
Expand Down
3 changes: 0 additions & 3 deletions x-pack/plugins/ml/public/index.scss

This file was deleted.

36 changes: 19 additions & 17 deletions x-pack/plugins/monitoring/public/index.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
// Import the EUI global scope so we can use EUI constants
@import 'ui/public/styles/_styling_constants';

// Temporary hacks
@import 'hacks';
#monitoring-app {
// Temporary hacks
@import 'hacks';

// Monitoring plugin styles
// Monitoring plugin styles

// Prefix all styles with "mon" to avoid conflicts.
// Examples
// monChart
// monChart__legend
// monChart__legend--small
// monChart__legend-isLoading
// Prefix all styles with "mon" to avoid conflicts.
// Examples
// monChart
// monChart__legend
// monChart__legend--small
// monChart__legend-isLoading

@import 'components/chart/index';
@import 'components/no_data/index';
@import 'components/sparkline/index';
@import 'components/summary_status/index';
@import 'components/table/index';
@import 'components/logstash/pipeline_viewer/views/index';
@import 'directives/chart/index';
@import 'directives/elasticsearch/shard_allocation/index';
@import 'components/chart/index';
@import 'components/no_data/index';
@import 'components/sparkline/index';
@import 'components/summary_status/index';
@import 'components/table/index';
@import 'components/logstash/pipeline_viewer/views/index';
@import 'directives/chart/index';
@import 'directives/elasticsearch/shard_allocation/index';
}

0 comments on commit 01fc786

Please sign in to comment.