]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Feature/bsa (#539)
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 4 Mar 2017 18:49:32 +0000 (18:49 +0000)
committerGitHub <noreply@github.com>
Sat, 4 Mar 2017 18:49:32 +0000 (18:49 +0000)
* Build bsa

* Fix placement

docs/_includes/bsa.html [new file with mode: 0644]
docs/_includes/footer.html
docs/bulma-docs.sass
docs/css/bulma-docs.css
docs/sass/bsa.sass [new file with mode: 0644]

diff --git a/docs/_includes/bsa.html b/docs/_includes/bsa.html
new file mode 100644 (file)
index 0000000..9130cab
--- /dev/null
@@ -0,0 +1,19 @@
+<section class="hero is-light bsa">
+  <script src="//m.servedby-buysellads.com/monetization.js" type="text/javascript"></script>
+  <div class="container">
+    <div class="bsa-container">
+      <div class="bsa-cpc"></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>
index 52ec733465c2c83379463df7271e1b8c9717547a..8a72d60df38c33d9ef8cbb8a04561d8ffbda03c9 100644 (file)
@@ -1,3 +1,5 @@
+{% include bsa.html %}
+
 <section id="newsletter" class="hero is-primary">
   <div class="hero-body">
     <div class="container">
index 8b381316c3909213e5073bdd7e4eb8ce530be148..39906d79bcb47bd255f3f8b2dc274f49402dbafb 100644 (file)
@@ -9,6 +9,7 @@
 @import "./sass/footer"
 @import "./sass/specific"
 @import "./sass/example"
+@import "./sass/bsa"
 
 html
   \::-moz-selection
index a8636c554800f7154a351356c2526d4ac6eee470..b42d0a84bf2dbf18211034ae4f57bbade6f4698f 100644 (file)
@@ -7686,6 +7686,86 @@ html.route-index #carbon {
   border-right: none;
 }
 
+.bsa {
+  padding: 2rem;
+}
+
+#_default_ .default-ad {
+  background-color: #00d1b2;
+  border-radius: 2px;
+  color: #fff;
+  display: inline-block;
+  font-size: 12px;
+  padding: 0 4px;
+  text-transform: uppercase;
+  vertical-align: top;
+}
+
+#_default_ > a {
+  background-color: white;
+  border-radius: 5px;
+  box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
+  display: block;
+  margin-top: 15px;
+  max-width: 400px;
+  padding: 15px;
+  padding-left: 70px;
+  position: relative;
+}
+
+#_default_ > a:hover, #_default_ > a:focus {
+  box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px #00d1b2;
+}
+
+#_default_ > a:active {
+  box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.2), 0 0 0 1px #00d1b2;
+}
+
+#_default_ > a span {
+  display: block;
+}
+
+#_default_ > a .default-image {
+  display: block;
+  left: 15px;
+  height: 40px;
+  position: absolute;
+  top: 15px;
+  width: 40px;
+}
+
+#_default_ > a .default-image img {
+  display: block;
+  height: 40px;
+  width: 40px;
+}
+
+#_default_ > a .default-title {
+  color: #363636;
+  font-weight: 700;
+}
+
+@media screen and (min-width: 769px) {
+  #_default_ {
+    display: -webkit-box;
+    display: -ms-flexbox;
+    display: flex;
+    -webkit-box-pack: center;
+        -ms-flex-pack: center;
+            justify-content: center;
+    padding: 0 60px;
+    position: relative;
+  }
+  #_default_ .default-ad {
+    position: absolute;
+    right: 0;
+    top: 0;
+  }
+  #_default_ > a {
+    margin: 0 20px;
+  }
+}
+
 html ::-moz-selection {
   background: #00d1b2;
   color: #fff;
diff --git a/docs/sass/bsa.sass b/docs/sass/bsa.sass
new file mode 100644 (file)
index 0000000..d996e30
--- /dev/null
@@ -0,0 +1,57 @@
+.bsa
+  padding: 2rem
+
+#_default_
+  .default-ad
+    background-color: $primary
+    border-radius: 2px
+    color: $primary-invert
+    display: inline-block
+    font-size: 12px
+    padding: 0 4px
+    text-transform: uppercase
+    vertical-align: top
+  & > a
+    background-color: $white
+    border-radius: $radius-large
+    box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
+    display: block
+    margin-top: 15px
+    max-width: 400px
+    padding: 15px
+    padding-left: 70px
+    position: relative
+    &:hover,
+    &:focus
+      box-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link
+    &:active
+      box-shadow: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link
+    span
+      display: block
+    .default-image
+      display: block
+      left: 15px
+      height: 40px
+      position: absolute
+      top: 15px
+      width: 40px
+      img
+        display: block
+        height: 40px
+        width: 40px
+    .default-title
+      color: $text-strong
+      font-weight: $weight-bold
+
++tablet
+  #_default_
+    display: flex
+    justify-content: center
+    padding: 0 60px
+    position: relative
+    .default-ad
+      position: absolute
+      right: 0
+      top: 0
+    & > a
+      margin: 0 20px