This is an automated email from the ASF dual-hosted git repository.

geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 6126e7c  fix FOUC (#323)
6126e7c is described below

commit 6126e7c0ddac71ec54987f7fd9e980ca0c77cdae
Author: zimmi <[email protected]>
AuthorDate: Sun Feb 24 20:34:57 2019 +0100

    fix FOUC (#323)
---
 .../src/content/scss/common/_netbeans.scss               | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/netbeans.apache.org/src/content/scss/common/_netbeans.scss 
b/netbeans.apache.org/src/content/scss/common/_netbeans.scss
index 2aa51d8..2f8a066 100644
--- a/netbeans.apache.org/src/content/scss/common/_netbeans.scss
+++ b/netbeans.apache.org/src/content/scss/common/_netbeans.scss
@@ -35,6 +35,21 @@ body {
   background-color: $nb-topbar-background;
 }
 
+/* 
https://foundation.zurb.com/sites/docs/responsive-navigation.html#preventing-fouc
 */
+.no-js {
+  @include breakpoint(small only) {
+    .top-bar {
+      display: none;
+    }
+  }
+
+  @include breakpoint(medium) {
+    .title-bar {
+      display: none;
+    }
+  }
+}
+
 .top-bar {
   background-color: $nb-topbar-background;
   box-shadow: 0 1px 0 rgba(12,13,14,0.1),0 1px 3px rgba(12,13,14,0.1),0 4px 
20px rgba(12,13,14,0.035),0 1px 1px rgba(12,13,14,0.025);
@@ -58,7 +73,6 @@ body {
   }
 }
 
-
 a, a:hover {
   color: $nb-link-color;
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to