Jeremy Thomas 8 years ago
parent
commit
44ec4dcc73

+ 1 - 0
docs/_config.yml

@@ -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
 

+ 2 - 0
docs/_includes/bsa.html

@@ -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 %}

+ 2 - 0
docs/_includes/carbon.html

@@ -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>

+ 4 - 0
docs/_includes/footer.html

@@ -47,9 +47,11 @@
       <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">

+ 0 - 7
docs/css/bulma-docs.css

@@ -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;
 }

+ 0 - 7
sass/elements/button.sass

@@ -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