]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Fix global variable name clash, Fix hamburger menu, Fix grid
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 30 Jan 2016 21:40:28 +0000 (21:40 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 30 Jan 2016 21:40:28 +0000 (21:40 +0000)
bulma/components/grid.sass
bulma/config/variables.sass
bulma/elements/elements.sass
bulma/layout/hero.sass
bulma/utilities/functions.sass

index 72a2d1ff0cd17b33f5c7e02a085be5fb48da2fc7..f8878ae5831d3a1c4630e8e802780efd6cc929e6 100644 (file)
@@ -33,7 +33,7 @@
     display: flex
   &.is-gapless
     & > .column + .column
-      margin-left: 0
+      margin: 0
   &.is-vcentered
     align-items: center
   &.is-grid
index 1c06bdff00e1e67e90ffd1c7a81dae6ba591e93b..7445cafa712c892711b1bd849c69a5188d82c87f 100644 (file)
@@ -20,6 +20,7 @@ $primary: $turquoise
 // Typography
 
 $family-sans-serif: "Helvetica Neue", "Helvetica", "Arial", sans-serif
+$family-monospace: "Source Code Pro", "Monaco", "Inconsolata", monospace
 
 $size-1: 48px
 $size-2: 40px
index 4011195ce313d8e1670cca844d402ea9abf26500..4ee965221878dc4c1043e6efadffe3a36e6b1f69 100644 (file)
@@ -6,18 +6,6 @@
 @import messages
 @import notifications
 
-.highlight
-  font-size: 12px
-  font-weight: normal
-  max-width: 100%
-  overflow: hidden
-  padding: 0
-  &:not(:last-child)
-    margin-bottom: 20px
-  pre
-    overflow: auto
-    max-width: 100%
-
 .delete
   background: rgba(black, 0.2)
   border-radius: 290486px
   cursor: pointer
   display: block
   height: $header-height
-  padding: 19px 17px
   position: relative
   width: $header-height
   span
     background: $text
     display: block
     height: 1px
-    left: 17px
+    left: 50%
+    margin-left: -7px
     position: absolute
+    top: 50%
     transition: none $speed $easing
     transition-property: background, left, opacity, transform
     width: 15px
     &:nth-child(1)
-      top: 19px
+      margin-top: -6px
     &:nth-child(2)
-      top: 24px
+      margin-top: -1px
     &:nth-child(3)
-      bottom: 20px
+      margin-top: 4px
   &:hover
     background: $background
   &.is-active
     span
       background: $link
       &:nth-child(1)
-        left: 20px
+        margin-left: -5px
         transform: rotate(45deg)
         transform-origin: left top
       &:nth-child(2)
         opacity: 0
       &:nth-child(3)
-        left: 20px
+        margin-left: -5px
         transform: rotate(-45deg)
         transform-origin: left bottom
 
   margin-bottom: 5px
   text-transform: uppercase
 
+.highlight
+  font-size: 12px
+  font-weight: normal
+  max-width: 100%
+  overflow: hidden
+  padding: 0
+  &:not(:last-child)
+    margin-bottom: 20px
+  pre
+    overflow: auto
+    max-width: 100%
+
+.image
+  display: block
+  position: relative
+  vertical-align: top
+  img
+    +overlay
+    display: block
+    width: 100%
+  &.is-3x2
+    padding-top: 66.6666%
+
 .loader
   animation: spin-around 500ms infinite linear
   border: 2px solid $border
index f197515719871f54125ffb50b19fcaf15a3b6e1b..6ccaae05ded20076204e397eb61fce192fe7f6bb 100644 (file)
     align-items: stretch
     display: flex
     flex-direction: column
-    height: 100vh
     justify-content: space-between
+    min-height: 100vh
     .tabs
       a
         padding: 15px 20px
index 8acbb7d54c21006fd3c188160ccabb9967d93cb6..ca7f72beed203cec5f057a0bc0f14fc522299152 100644 (file)
@@ -9,8 +9,8 @@
   @return $value
 
 @function colorLuminance($color)
-  $colors: ('red': red($color),'green': green($color),'blue': blue($color))
-  @each $name, $value in $colors
+  $color-rgb: ('red': red($color),'green': green($color),'blue': blue($color))
+  @each $name, $value in $color-rgb
     $adjusted: 0
     $value: $value / 255
     @if $value < 0.03928
@@ -18,8 +18,8 @@
     @else
       $value: ($value + .055) / 1.055
       $value: powerNumber($value, 2)
-    $colors: map-merge($colors, ($name: $value))
-  @return (map-get($colors, 'red') * .2126) + (map-get($colors, 'green') * .7152) + (map-get($colors, 'blue') * .0722)
+    $color-rgb: map-merge($color-rgb, ($name: $value))
+  @return (map-get($color-rgb, 'red') * .2126) + (map-get($color-rgb, 'green') * .7152) + (map-get($color-rgb, 'blue') * .0722)
 
 @function closestEvenNumber($number)
   @if ($number % 2 == 0px)