Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/component_preview.html.haml')
-rw-r--r--app/views/layouts/component_preview.html.haml17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/views/layouts/component_preview.html.haml b/app/views/layouts/component_preview.html.haml
index ec12395a5d4..a1b1304f994 100644
--- a/app/views/layouts/component_preview.html.haml
+++ b/app/views/layouts/component_preview.html.haml
@@ -1,5 +1,14 @@
%head
- = stylesheet_link_tag "application"
- = stylesheet_link_tag "application_utilities"
-%body{ style: "background-color: #{params.dig(:lookbook, :display, :bg_color) || 'white'}" }
- .container.gl-mt-6= yield
+ - if params[:lookbook][:display][:theme] == 'light'
+ = stylesheet_link_tag "application"
+ = stylesheet_link_tag "application_utilities"
+ - else
+ = stylesheet_link_tag "application_dark"
+ = stylesheet_link_tag "application_utilities_dark"
+%body
+ .container.gl-mt-6
+ - if params[:lookbook][:display][:bg_dark]
+ .bg-dark.rounded.shadow.p-4
+ = yield
+ - else
+ = yield