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/assets/stylesheets/startup/_cloaking.scss')
-rw-r--r--app/assets/stylesheets/startup/_cloaking.scss13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/stylesheets/startup/_cloaking.scss b/app/assets/stylesheets/startup/_cloaking.scss
new file mode 100644
index 00000000000..3c25feb0c5c
--- /dev/null
+++ b/app/assets/stylesheets/startup/_cloaking.scss
@@ -0,0 +1,13 @@
+/**
+ Prevent flashing of content when using startup.css
+ */
+@mixin cloak-startup-scss($display) {
+ // Breadcrumbs and alerts on the top of the page
+ .content-wrapper > .alert-wrapper,
+ // Content on pages
+ #content-body,
+ // Prevent flashing of haml generated modal contents
+ .modal-dialog {
+ display: $display;
+ }
+}