]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add title weight variables, Add breakpoint variables, Remove card-image
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 27 Feb 2016 15:46:05 +0000 (15:46 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 27 Feb 2016 15:46:05 +0000 (15:46 +0000)
bulma/components/card.sass
bulma/config/variables.sass
bulma/elements/elements.sass
bulma/elements/titles.sass
bulma/utilities/mixins.sass

index 478af581c2fd3586765f0d1ca88eae0d9ca59d04..c7595a0379c2ae25d3d8b9bb92cfe48f949b3973 100644 (file)
@@ -1,21 +1,6 @@
 .card-image
   display: block
   position: relative
-  img
-    display: block
-  &.is-square,
-  &.is-4x3,
-  &.is-3x2
-    img
-      +overlay
-      height: 100%
-      width: 100%
-  &.is-square
-    padding-top: 100%
-  &.is-4x3
-    padding-top: 75%
-  &.is-3x2
-    padding-top: 66.6666%
 
 .card-content
   padding: 20px
index e118e8c86f36d8841da0ea3b3bbc759271c54f50..649db1b4f35e6dd145f02ffca7e7b8f1a5a79061 100644 (file)
@@ -30,6 +30,15 @@ $size-6: 14px
 
 $size-7: 11px
 
+$weight-title-normal: 300
+$weight-title-bold: 500
+
+// Breakpoints
+
+$tablet: 769px
+$desktop: 980px
+$widescreen: 1180px
+
 // Dimensions
 
 $column-gap: 20px
index 078d674a92b433bf99285ebdd85eec4e32dcaf49..1cb1380a2a48530a0ef7f2597527b19af79b89d1 100644 (file)
@@ -8,6 +8,7 @@
 @import "notifications"
 
 .box
+  @extend .block
   background: white
   border-radius: 5px
   box-shadow: 0 2px 3px rgba(black, 0.1), 0 0 0 1px rgba(black, 0.1)
index 6d6c9d13edea199f525eea15411716c2bc05e71c..a0eb9bbd15793f5565add31f52673b996dbd802f 100644 (file)
@@ -1,9 +1,12 @@
 .title,
 .subtitle
   @extend .block
-  font-weight: 300
-  em
-    font-weight: 300
+  font-weight: $weight-title-normal
+  em,
+  span
+    font-weight: $weight-title-normal
+  strong
+    font-weight: $weight-title-bold
   a
     &:hover
       border-bottom: 1px solid
@@ -44,7 +47,6 @@
     margin-top: -20px
   strong
     color: $text-strong
-    font-weight: 400
   code
     border-radius: $radius
     display: inline-block
index 0afe955ff78e105ba0e570d4749bb15e76e8758a..29c763c66a922afb35793f0c20fedec748706ee8 100644 (file)
   -ms-user-select: none
   user-select: none
 
-$tablet: 769px
-$desktop: 980px
-$widescreen: 1180px
-
 =from($device)
   @media screen and (min-width: $device)
     @content