]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fix copy and expand
authorJeremy Thomas <bbxdesign@gmail.com>
Mon, 14 Aug 2017 11:58:21 +0000 (12:58 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Mon, 14 Aug 2017 12:01:07 +0000 (13:01 +0100)
docs/_includes/comparison.html
docs/_includes/pro.html
docs/_javascript/bulma.js
docs/_javascript/main.js
docs/_sass/bootstrap.sass
docs/_sass/example.sass
docs/css/bulma-docs.css
docs/lib/bulma.js
docs/lib/main.js

index ebcd807765ac3fee521f1f12c2384ac6e613cff9..6a9d6ff56a481141a3840333ac4d3d23cb3f7d18 100644 (file)
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/grid/tiles/">
       tile
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </th>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/form/general/">
       field
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/form/select/">
       select
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/form/file/">
       file
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </th>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/elements/box/">
       box
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/elements/content/">
       content
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     –
   </td>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="http://getbootstrap.com/css/#type-lists" target="_blank">
       lists
     </a>
   </td>
 </tr>
 <tr>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     –
   </td>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="http://getbootstrap.com/css/#caret" target="_blank">
       caret
     </a>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/components/card/">
       card
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/components/level/">
       level
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
 <tr>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     –
   </td>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="http://getbootstrap.com/components/#list-group" target="_blank">
       list group
     </a>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/components/menu/">
       menu
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     –
   </td>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="http://getbootstrap.com/components/#page-header" target="_blank">
       page header
     </a>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/components/panel/">
       panel
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
   </td>
 </tr>
 <tr>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     –
   </td>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="http://getbootstrap.com/components/#wells" target="_blank">
       wells
     </a>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/layout/section/">
       section
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
 </tr>
 <tr>
-  <td class="is-unique">
+  <td class="bd-is-unique">
     <a href="{{ site.url }}/documentation/layout/footer/">
       footer
     </a>
   </td>
-  <td class="is-empty">
+  <td class="bd-is-empty">
     <span>–</span>
   </td>
-</tr>
\ No newline at end of file
+</tr>
index d1c7faa212c30cd7919fff05c3a07f8834156c1e..b7bf2b03b07a9333d130b9a4261214bd1325f6e3 100644 (file)
@@ -1,4 +1,4 @@
-<article class="media bd-pro is-{{ include.type }}">
+<article class="media bd-pro bd-is-{{ include.type }}">
   <aside class="media-left">
     <span class="icon">
       <i class="fa fa-{{ include.icon }}"></i>
index b09722d48d68ffd0ebae2269a0595c3f257dd495..a5e956d0fa8fa3c0471f3ea1dee9c9795d78f85b 100644 (file)
@@ -35,8 +35,8 @@ jQuery(document).ready(function ($) {
 
   $highlights.each(function() {
     var $el = $(this);
-    var copy = '<button class="copy">Copy</button>';
-    var expand = '<button class="expand">Expand</button>';
+    var copy = '<button class="bd-copy">Copy</button>';
+    var expand = '<button class="bd-expand">Expand</button>';
     $el.append(copy);
 
     if ($el.find('pre code').innerHeight() > 600) {
@@ -44,7 +44,7 @@ jQuery(document).ready(function ($) {
     }
   });
 
-  var $highlightButtons = $('.highlight .copy, .highlight .expand');
+  var $highlightButtons = $('.highlight .bd-copy, .highlight .bd-expand');
 
   $highlightButtons.hover(function() {
     $(this).parent().css('box-shadow', '0 0 0 1px #ed6c63');
@@ -52,11 +52,11 @@ jQuery(document).ready(function ($) {
     $(this).parent().css('box-shadow', 'none');
   });
 
-  $('.highlight .expand').click(function() {
+  $('.highlight .bd-expand').click(function() {
     $(this).parent().children('pre').css('max-height', 'none');
   });
 
-  new Clipboard('.copy', {
+  new Clipboard('.bd-copy', {
     target: function(trigger) {
       return trigger.previousSibling;
     }
index c9fe455af0151af0ac0e5c7cc31aa4a34c784a6b..7f612beaf80f03aeb04081e12340fb69804d7a34 100644 (file)
@@ -103,8 +103,8 @@ document.addEventListener('DOMContentLoaded', () => {
 
   if ($highlights.length > 0) {
     $highlights.forEach($el => {
-      const copy = '<button class="copy">Copy</button>';
-      const expand = '<button class="expand">Expand</button>';
+      const copy = '<button class="bd-copy">Copy</button>';
+      const expand = '<button class="bd-expand">Expand</button>';
       $el.insertAdjacentHTML('beforeend', copy);
 
       if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
@@ -119,7 +119,7 @@ document.addEventListener('DOMContentLoaded', () => {
   }
 
   function addHighlightControls() {
-    const $highlightButtons = getAll('.highlight .copy, .highlight .expand');
+    const $highlightButtons = getAll('.highlight .bd-copy, .highlight .bd-expand');
 
     $highlightButtons.forEach($el => {
       $el.addEventListener('mouseenter', () => {
@@ -131,7 +131,7 @@ document.addEventListener('DOMContentLoaded', () => {
       });
     });
 
-    const $highlightExpands = getAll('.highlight .expand');
+    const $highlightExpands = getAll('.highlight .bd-expand');
 
     $highlightExpands.forEach($el => {
       $el.addEventListener('click', () => {
@@ -140,7 +140,7 @@ document.addEventListener('DOMContentLoaded', () => {
     });
   }
 
-  new Clipboard('.copy', {
+  new Clipboard('.bd-copy', {
     target: function(trigger) {
       return trigger.previousSibling;
     }
index 603a4bcf0b96bfaad6a4daa20831da883eab6299..5c7335d8b546b5787e84b2e95b2308fbf9120119 100644 (file)
@@ -46,11 +46,11 @@ $bootstrap-invert: #fff
   p:not(:last-child)
     margin-bottom: 0.5rem
 
-.bd-pro.is-bulma
+.bd-pro.bd-is-bulma
   .icon
     color: $primary
 
-.bd-pro.is-bootstrap
+.bd-pro.bd-is-bootstrap
   .icon
     color: $bootstrap
 
@@ -85,10 +85,10 @@ $bootstrap-invert: #fff
         color: currentColor
         &:hover
           text-decoration: underline
-    .is-empty
+    .bd-is-empty
       background-color: $background
       color: $text-light
-    .is-unique
+    .bd-is-unique
       background-color: rgba($green, 0.25)
       color: $text-strong
       font-weight: $weight-bold
index d208c44ab7f0a671a4891163721ed2a3ec8e2ba4..9893aa6aaccce121e103c5984606e8793753c59c 100644 (file)
@@ -91,8 +91,8 @@ $structure-invert: $danger-invert
 
 .highlight
   position: relative
-  .copy,
-  .expand
+  .bd-copy,
+  .bd-expand
     +unselectable
     background: $white
     border: solid $border
@@ -106,7 +106,7 @@ $structure-invert: $danger-invert
     &:hover
       border-color: $code
       color: $code
-  .expand
+  .bd-expand
     border-right-width: 1px
     right: 50px
   +tablet
index 42687ecf9cccf7959ff29edbe35cc707a413c6f5..6a65b576f2b8dfcb14d43147e39ff3a5c54ae92d 100644 (file)
@@ -9514,8 +9514,8 @@ html.route-index #carbon {
   position: relative;
 }
 
-.highlight .copy,
-.highlight .expand {
+.highlight .bd-copy,
+.highlight .bd-expand {
   -webkit-touch-callout: none;
   -webkit-user-select: none;
   -moz-user-select: none;
@@ -9532,13 +9532,13 @@ html.route-index #carbon {
   top: 0;
 }
 
-.highlight .copy:hover,
-.highlight .expand:hover {
+.highlight .bd-copy:hover,
+.highlight .bd-expand:hover {
   border-color: #ff3860;
   color: #ff3860;
 }
 
-.highlight .expand {
+.highlight .bd-expand {
   border-right-width: 1px;
   right: 50px;
 }
@@ -10299,11 +10299,11 @@ html.route-index .hero.is-primary a.column:hover .title strong {
   margin-bottom: 0.5rem;
 }
 
-.bd-pro.is-bulma .icon {
+.bd-pro.bd-is-bulma .icon {
   color: #00d1b2;
 }
 
-.bd-pro.is-bootstrap .icon {
+.bd-pro.bd-is-bootstrap .icon {
   color: #6f5499;
 }
 
@@ -10354,12 +10354,12 @@ html.route-index .hero.is-primary a.column:hover .title strong {
   text-decoration: underline;
 }
 
-.bd-comparison .table .is-empty {
+.bd-comparison .table .bd-is-empty {
   background-color: whitesmoke;
   color: #7a7a7a;
 }
 
-.bd-comparison .table .is-unique {
+.bd-comparison .table .bd-is-unique {
   background-color: rgba(35, 209, 96, 0.25);
   color: #363636;
   font-weight: 700;
index 62e5bc97aba06cfaf36c25cda08ceb328f246f84..69f262a830b31c37d6ebb7646a1d5e9658c8322f 100644 (file)
@@ -37,8 +37,8 @@ jQuery(document).ready(function ($) {
 
   $highlights.each(function () {
     var $el = $(this);
-    var copy = '<button class="copy">Copy</button>';
-    var expand = '<button class="expand">Expand</button>';
+    var copy = '<button class="bd-copy">Copy</button>';
+    var expand = '<button class="bd-expand">Expand</button>';
     $el.append(copy);
 
     if ($el.find('pre code').innerHeight() > 600) {
@@ -46,7 +46,7 @@ jQuery(document).ready(function ($) {
     }
   });
 
-  var $highlightButtons = $('.highlight .copy, .highlight .expand');
+  var $highlightButtons = $('.highlight .bd-copy, .highlight .bd-expand');
 
   $highlightButtons.hover(function () {
     $(this).parent().css('box-shadow', '0 0 0 1px #ed6c63');
@@ -54,11 +54,11 @@ jQuery(document).ready(function ($) {
     $(this).parent().css('box-shadow', 'none');
   });
 
-  $('.highlight .expand').click(function () {
+  $('.highlight .bd-expand').click(function () {
     $(this).parent().children('pre').css('max-height', 'none');
   });
 
-  new Clipboard('.copy', {
+  new Clipboard('.bd-copy', {
     target: function target(trigger) {
       return trigger.previousSibling;
     }
index 99a897370fc1ce0fc44cc1ecd98a214bee5bf44e..b0b45c1d261f3b456ed68a538da1fa9c1e41f770 100644 (file)
@@ -105,8 +105,8 @@ document.addEventListener('DOMContentLoaded', function () {
 
   if ($highlights.length > 0) {
     $highlights.forEach(function ($el) {
-      var copy = '<button class="copy">Copy</button>';
-      var expand = '<button class="expand">Expand</button>';
+      var copy = '<button class="bd-copy">Copy</button>';
+      var expand = '<button class="bd-expand">Expand</button>';
       $el.insertAdjacentHTML('beforeend', copy);
 
       if ($el.firstElementChild.scrollHeight > 480 && $el.firstElementChild.clientHeight <= 480) {
@@ -121,7 +121,7 @@ document.addEventListener('DOMContentLoaded', function () {
   }
 
   function addHighlightControls() {
-    var $highlightButtons = getAll('.highlight .copy, .highlight .expand');
+    var $highlightButtons = getAll('.highlight .bd-copy, .highlight .bd-expand');
 
     $highlightButtons.forEach(function ($el) {
       $el.addEventListener('mouseenter', function () {
@@ -133,7 +133,7 @@ document.addEventListener('DOMContentLoaded', function () {
       });
     });
 
-    var $highlightExpands = getAll('.highlight .expand');
+    var $highlightExpands = getAll('.highlight .bd-expand');
 
     $highlightExpands.forEach(function ($el) {
       $el.addEventListener('click', function () {
@@ -142,7 +142,7 @@ document.addEventListener('DOMContentLoaded', function () {
     });
   }
 
-  new Clipboard('.copy', {
+  new Clipboard('.bd-copy', {
     target: function target(trigger) {
       return trigger.previousSibling;
     }