فهرست منبع

Fix container

Jeremy Thomas 8 سال پیش
والد
کامیت
c98dbb77f2

+ 24 - 15
docs/_includes/bsa.html

@@ -1,19 +1,28 @@
-<section class="hero is-light bsa">
-  <script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
+<script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
+
+<section class="hero is-info bsa">
   <div class="container">
   <div class="container">
-    <div class="bsa-container">
-      <div class="bsa-cpc"></div>
+    <div class="columns is-vcentered">
+      <div class="column is-4">
+        <p class="title">Bulma <strong>Partners</strong></p>
+        <p class="subtitle">Keeping the project alive!</p>
+      </div>
+
+      <div class="column is-8">
+        <div class="bsa-cpc"></div>
+      </div>
     </div>
     </div>
   </div>
   </div>
-  <script>
-    (function(){
-      if(typeof _bsa !== 'undefined' && _bsa) {
-      _bsa.init('default', 'CVAIKK3E', 'placement:bulmaio', {
-        target: '.bsa-cpc',
-        align: 'horizontal',
-        disable_css: 'true'
-      });
-        }
-    })();
-  </script>
 </section>
 </section>
+
+<script>
+  (function(){
+    if(typeof _bsa !== 'undefined' && _bsa) {
+    _bsa.init('default', 'CVAIKK3E', 'placement:bulmaio', {
+      target: '.bsa-cpc',
+      align: 'horizontal',
+      disable_css: 'true'
+    });
+      }
+  })();
+</script>

+ 1 - 52
docs/_includes/footer.html

@@ -65,7 +65,7 @@
             <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
             <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
               <input type="hidden" name="cmd" value="_s-xclick">
               <input type="hidden" name="cmd" value="_s-xclick">
               <input type="hidden" name="hosted_button_id" value="8WMKYSRFN6A78">
               <input type="hidden" name="hosted_button_id" value="8WMKYSRFN6A78">
-              <input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/gold-rect-paypaldonate-60px.png" border="0" name="submit" alt="PayPal – The safer, easier way to pay online." height="30">
+              <input type="image" src="{{site.url}}/images/paypal-donate.png" border="0" name="submit" alt="PayPal – The safer, easier way to pay online." height="30">
               <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
               <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
             </form>
             </form>
           </div>
           </div>
@@ -102,57 +102,6 @@
   </div>
   </div>
 </footer>
 </footer>
 
 
-{% if page.route == 'index' %}
-  <style type="text/css">
-    .title.is-2 {
-      position: relative;
-    }
-
-    .title.is-2 a {
-      color: #242424;
-      padding-left: 48px;
-      position: relative;
-    }
-
-    .title.is-2 a:hover {
-      color: #00d1b2;
-    }
-
-    .title.is-2 .icon.is-medium {
-      left: 8px;
-      position: absolute;
-      top: 10px;
-    }
-
-    .hero .title.is-2 a {
-      color: white;
-    }
-
-    .hero .title.is-2 a:hover {
-      color: white;
-    }
-
-    .hero.is-primary a.column,
-    .hero.is-primary a.column:hover {
-      color: white;
-    }
-
-    .hero.is-primary a.column:hover .title strong {
-      border-bottom: 1px solid;
-    }
-
-    @media screen and (max-width: 979px) {
-      .title.is-2 a {
-        padding-left: 0;
-      }
-
-      .title.is-2 .icon.is-medium {
-        display: none;
-      }
-    }
-  </style>
-{% endif %}
-
 <script async defer id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script>
 <script async defer id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script>
 <script async defer type="text/javascript" src="https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>
 <script async defer type="text/javascript" src="https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>
 
 

+ 1 - 0
docs/bulma-docs.sass

@@ -10,6 +10,7 @@
 @import "./sass/specific"
 @import "./sass/specific"
 @import "./sass/example"
 @import "./sass/example"
 @import "./sass/bsa"
 @import "./sass/bsa"
+@import "./sass/route"
 
 
 html
 html
   \::-moz-selection
   \::-moz-selection

+ 69 - 8
docs/css/bulma-docs.css

@@ -2618,23 +2618,24 @@ input[type="submit"].button {
 @media screen and (min-width: 1000px) {
 @media screen and (min-width: 1000px) {
   .container {
   .container {
     margin: 0 auto;
     margin: 0 auto;
-    max-width: 960px;
+    width: 960px;
   }
   }
   .container.is-fluid {
   .container.is-fluid {
     margin: 0 20px;
     margin: 0 20px;
     max-width: none;
     max-width: none;
+    width: auto;
   }
   }
 }
 }
 
 
 @media screen and (min-width: 1192px) {
 @media screen and (min-width: 1192px) {
   .container {
   .container {
-    max-width: 1152px;
+    width: 1152px;
   }
   }
 }
 }
 
 
 @media screen and (min-width: 1384px) {
 @media screen and (min-width: 1384px) {
   .container {
   .container {
-    max-width: 1344px;
+    width: 1344px;
   }
   }
 }
 }
 
 
@@ -3628,13 +3629,18 @@ a.nav-item.is-tab.is-active {
   align-items: stretch;
   align-items: stretch;
   display: flex;
   display: flex;
   min-height: 3.25rem;
   min-height: 3.25rem;
-  width: 100%;
 }
 }
 
 
 .nav.has-shadow {
 .nav.has-shadow {
   box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
   box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
 }
 }
 
 
+@media screen and (max-width: 768px) {
+  .nav > .container {
+    width: 100%;
+  }
+}
+
 .pagination {
 .pagination {
   font-size: 1rem;
   font-size: 1rem;
 }
 }
@@ -6709,12 +6715,17 @@ html.route-index #carbon {
   padding: 2rem;
   padding: 2rem;
 }
 }
 
 
+.bsa-cpc {
+  min-height: 1px;
+}
+
 #_default_ .default-ad {
 #_default_ .default-ad {
-  background-color: #00d1b2;
+  background-color: rgba(0, 0, 0, 0.3);
   border-radius: 2px;
   border-radius: 2px;
-  color: #fff;
+  color: white;
   display: inline-block;
   display: inline-block;
-  font-size: 12px;
+  font-size: 10px;
+  font-weight: bold;
   padding: 0 4px;
   padding: 0 4px;
   text-transform: uppercase;
   text-transform: uppercase;
   vertical-align: top;
   vertical-align: top;
@@ -6724,8 +6735,9 @@ html.route-index #carbon {
   background-color: white;
   background-color: white;
   border-radius: 5px;
   border-radius: 5px;
   box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
   box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
+  color: #4a4a4a;
   display: block;
   display: block;
-  line-height: 1.25;
+  line-height: 1.375;
   margin-top: 15px;
   margin-top: 15px;
   padding: 15px;
   padding: 15px;
   padding-left: 70px;
   padding-left: 70px;
@@ -6765,6 +6777,9 @@ html.route-index #carbon {
 }
 }
 
 
 @media screen and (min-width: 769px) {
 @media screen and (min-width: 769px) {
+  .bsa .columns {
+    min-height: 120px;
+  }
   #_default_ {
   #_default_ {
     display: flex;
     display: flex;
     justify-content: center;
     justify-content: center;
@@ -6784,6 +6799,52 @@ html.route-index #carbon {
   }
   }
 }
 }
 
 
+html.route-index .title.is-2 {
+  position: relative;
+}
+
+html.route-index .title.is-2 a {
+  color: #242424;
+  padding-left: 48px;
+  position: relative;
+}
+
+html.route-index .title.is-2 a:hover {
+  color: #00d1b2;
+}
+
+html.route-index .title.is-2 .icon.is-medium {
+  left: 8px;
+  position: absolute;
+  top: 10px;
+}
+
+html.route-index .hero .title.is-2 a {
+  color: white;
+}
+
+html.route-index .hero .title.is-2 a:hover {
+  color: white;
+}
+
+html.route-index .hero.is-primary a.column,
+html.route-index .hero.is-primary a.column:hover {
+  color: white;
+}
+
+html.route-index .hero.is-primary a.column:hover .title strong {
+  border-bottom: 1px solid;
+}
+
+@media screen and (max-width: 979px) {
+  html.route-index .title.is-2 a {
+    padding-left: 0;
+  }
+  html.route-index .title.is-2 .icon.is-medium {
+    display: none;
+  }
+}
+
 html ::-moz-selection {
 html ::-moz-selection {
   background: #00d1b2;
   background: #00d1b2;
   color: #fff;
   color: #fff;

+ 10 - 3
docs/documentation/components/card.html

@@ -138,15 +138,22 @@ doc-subtab: card
 <div class="card">
 <div class="card">
   <div class="card-content">
   <div class="card-content">
     <p class="title">
     <p class="title">
-      If Tetris has taught me anything it's that errors pile up and accomplishments disappear.
+      “There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors.”
     </p>
     </p>
     <p class="subtitle">
     <p class="subtitle">
-      Mark Twain
+      Jeff Atwood
     </p>
     </p>
   </div>
   </div>
   <footer class="card-footer">
   <footer class="card-footer">
     <p class="card-footer-item">
     <p class="card-footer-item">
-      <span>More quotes by <a href="#">Mark Twain</a></span>
+      <span>
+        View on <a href="https://twitter.com/codinghorror/status/506010907021828096">Twitter</a>
+      </span>
+    </p>
+    <p class="card-footer-item">
+      <span>
+        Share on <a href="#">Facebook</a>
+      </span>
     </p>
     </p>
   </footer>
   </footer>
 </div>
 </div>

BIN
docs/images/paypal-donate.png


+ 12 - 4
docs/sass/bsa.sass

@@ -1,13 +1,17 @@
 .bsa
 .bsa
   padding: 2rem
   padding: 2rem
 
 
+.bsa-cpc
+  min-height: 1px
+
 #_default_
 #_default_
   .default-ad
   .default-ad
-    background-color: $primary
+    background-color: rgba(black, 0.3)
     border-radius: 2px
     border-radius: 2px
-    color: $primary-invert
+    color: $white
     display: inline-block
     display: inline-block
-    font-size: 12px
+    font-size: 10px
+    font-weight: bold
     padding: 0 4px
     padding: 0 4px
     text-transform: uppercase
     text-transform: uppercase
     vertical-align: top
     vertical-align: top
@@ -15,8 +19,9 @@
     background-color: $white
     background-color: $white
     border-radius: $radius-large
     border-radius: $radius-large
     box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
     box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
+    color: $text
     display: block
     display: block
-    line-height: 1.25
+    line-height: 1.375
     margin-top: 15px
     margin-top: 15px
     padding: 15px
     padding: 15px
     padding-left: 70px
     padding-left: 70px
@@ -44,6 +49,9 @@
       font-weight: $weight-bold
       font-weight: $weight-bold
 
 
 +tablet
 +tablet
+  .bsa
+    .columns
+      min-height: 120px
   #_default_
   #_default_
     display: flex
     display: flex
     justify-content: center
     justify-content: center

+ 36 - 0
docs/sass/route.sass

@@ -0,0 +1,36 @@
+html.route-index
+  .title.is-2
+    position: relative
+
+  .title.is-2 a
+    color: #242424
+    padding-left: 48px
+    position: relative
+
+  .title.is-2 a:hover
+    color: #00d1b2
+
+  .title.is-2 .icon.is-medium
+    left: 8px
+    position: absolute
+    top: 10px
+
+  .hero .title.is-2 a
+    color: white
+
+  .hero .title.is-2 a:hover
+    color: white
+
+  .hero.is-primary a.column,
+  .hero.is-primary a.column:hover
+    color: white
+
+  .hero.is-primary a.column:hover .title strong
+    border-bottom: 1px solid
+
+  @media screen and (max-width: 979px)
+    .title.is-2 a
+      padding-left: 0
+
+    .title.is-2 .icon.is-medium
+      display: none

+ 4 - 1
sass/components/nav.sass

@@ -124,7 +124,10 @@ a.nav-item
     align-items: stretch
     align-items: stretch
     display: flex
     display: flex
     min-height: $nav-height
     min-height: $nav-height
-    width: 100%
   // Modifiers
   // Modifiers
   &.has-shadow
   &.has-shadow
     box-shadow: 0 2px 3px rgba($black, 0.1)
     box-shadow: 0 2px 3px rgba($black, 0.1)
+  // Responsiveness
+  +mobile
+    & > .container
+      width: 100%

+ 4 - 3
sass/elements/other.sass

@@ -5,15 +5,16 @@
   position: relative
   position: relative
   +desktop
   +desktop
     margin: 0 auto
     margin: 0 auto
-    max-width: $desktop - 40px
+    width: $desktop - 40px
     // Modifiers
     // Modifiers
     &.is-fluid
     &.is-fluid
       margin: 0 20px
       margin: 0 20px
       max-width: none
       max-width: none
+      width: auto
   +widescreen
   +widescreen
-    max-width: $widescreen - 40px
+    width: $widescreen - 40px
   +fullhd
   +fullhd
-    max-width: $fullhd - 40px
+    width: $fullhd - 40px
 
 
 .delete
 .delete
   +delete
   +delete