]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add env
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 29 Jul 2017 17:15:16 +0000 (18:15 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 29 Jul 2017 17:24:07 +0000 (18:24 +0100)
docs/_config.yml
docs/_includes/bsa.html
docs/_includes/carbon.html
docs/_includes/footer.html
docs/css/bulma-docs.css
sass/elements/button.sass

index e3bf7fec3190523804b1c6f9c246fe0d75f9be3c..47a7e359e80ef65ae5118b51b9fcbf0c2016102b 100644 (file)
@@ -2,6 +2,7 @@
 
 title:         "Bulma: a modern CSS framework based on Flexbox"
 description:   "Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free."
+env:           "production"
 
 # Build
 
index 313eecf47dee2e662b1de62ff7e2279bb0a25b4f..8ba3c1cd884447b6b5c79a8f7ed0c49861828780 100644 (file)
@@ -1,3 +1,4 @@
+{% unless site.env == "development" %}
 <script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
 
 <section class="hero is-info bsa">
@@ -26,3 +27,4 @@
       }
   })();
 </script>
+{% endunless %}
\ No newline at end of file
index 7f3e3e04d42e8f1d5a10044f250c7da0bd3af2af..8b7efe2438a824841be975c3c3172308fa4c4f77 100644 (file)
@@ -47,5 +47,7 @@
       }
     }
   </script>
+  {% unless site.env == "development" %}
   <script async src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=bulmaio" id="_carbonads_js" onerror="__fb(this)"></script>
+  {% endunless %}
 </div>
index 48cbf84c91695b7aa7ea55b559366afa701f5ea8..34c2d11197c9e8bc0774d9d8ce29ed98e986c09f 100644 (file)
       <div class="column is-3">
         <div id="about" class="content">
           <strong xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">Bulma</strong> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://jgthms.com" property="cc:attributionName" rel="cc:attributionURL">Jeremy Thomas</a>.
+          {% unless site.env == "development" %}
           <div class="twitter-container">
             <a href="{{ site.twitter }}" class="twitter-follow-button" data-show-count="true" data-lang="en" data-size="large">@jgthms</a>
           </div>
+          {% endunless %}
         </div>
       </div>
       <div class="column is-5">
@@ -57,6 +59,7 @@
           <div>
             <strong>Support</strong> and share the love!
           </div>
+          {% unless site.env == "development" %}
           <div id="social">
             <iframe class="github-btn" src="https://ghbtns.com/github-btn.html?user=jgthms&repo=bulma&type=star&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
 
@@ -71,6 +74,7 @@
 
             <div class="fb-like" data-href="https://www.facebook.com/bulmaio" data-layout="button" data-action="like" data-size="large" data-show-faces="false" data-share="true"></div>
           </div>
+          {% endunless %}
         </div>
       </div>
       <div class="column is-4">
index 9e5d70a9fba902cd0addc0e43daa98e8380f6cf5..100f064f8046079b323efbfa6f189ea5923124ae 100644 (file)
@@ -1973,13 +1973,6 @@ a.box:active {
   pointer-events: none;
 }
 
-button.button,
-input[type="submit"].button {
-  line-height: 1;
-  padding-bottom: 0.4em;
-  padding-top: 0.35em;
-}
-
 .content:not(:last-child) {
   margin-bottom: 1.5rem;
 }
index 705e0917f1b85fed87dcac9e540dc3e01c2759bf..36585aa49780af34193c2da43b2ac53728faee41 100755 (executable)
@@ -197,10 +197,3 @@ $button-shadow-inset: inset 0 1px 2px rgba($black, 0.2) !default
     color: $button-static-color
     box-shadow: none
     pointer-events: none
-
-// Adjustment for vertical spacing
-button.button,
-input[type="submit"].button
-  line-height: 1
-  padding-bottom: 0.4em
-  padding-top: 0.35em