diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-07-26 08:15:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-07-26 08:15:13 +0000 |
commit | 4d3c6f46035a25e3ff9f6ff5f72773e3301b3960 (patch) | |
tree | c9ea4201a116d0c08b6ab8f171daecf82b9b1a8f | |
parent | 117567fabdabd433421aefdd81297f0e23ad8a26 (diff) | |
download | gitlab-ce-4d3c6f46035a25e3ff9f6ff5f72773e3301b3960.tar.gz |
Moved repo.css to its own CSS bundle to reduce the size of the main bundle
-rw-r--r-- | app/assets/stylesheets/page_bundles/ide.scss (renamed from app/assets/stylesheets/pages/repo.scss) | 3 | ||||
-rw-r--r-- | app/views/ide/index.html.haml | 3 | ||||
-rw-r--r-- | config/application.rb | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/page_bundles/ide.scss index 2d76f0ce004..442a5e07a86 100644 --- a/app/assets/stylesheets/pages/repo.scss +++ b/app/assets/stylesheets/page_bundles/ide.scss @@ -1,3 +1,6 @@ +@import 'framework/variables'; +@import 'framework/mixins'; + .project-refs-form, .project-refs-target-form { display: inline-block; diff --git a/app/views/ide/index.html.haml b/app/views/ide/index.html.haml index 9f8b0acd763..d29dda43c89 100644 --- a/app/views/ide/index.html.haml +++ b/app/views/ide/index.html.haml @@ -1,6 +1,9 @@ - @body_class = 'ide' - page_title 'IDE' +- content_for :page_specific_javascripts do + = stylesheet_link_tag 'page_bundles/ide' + #ide.ide-loading{ data: {"empty-state-svg-path" => image_path('illustrations/multi_file_editor_empty.svg'), "no-changes-state-svg-path" => image_path('illustrations/multi-editor_no_changes_empty.svg'), "committed-state-svg-path" => image_path('illustrations/multi-editor_all_changes_committed_empty.svg'), diff --git a/config/application.rb b/config/application.rb index f743df7ca11..b4b9deee8fd 100644 --- a/config/application.rb +++ b/config/application.rb @@ -133,6 +133,7 @@ module Gitlab config.assets.precompile << "notify.css" config.assets.precompile << "mailers/*.css" config.assets.precompile << "xterm/xterm.css" + config.assets.precompile << "page_bundles/ide.css" config.assets.precompile << "performance_bar.css" config.assets.precompile << "lib/ace.js" config.assets.precompile << "test.css" |