From: Jeremy Thomas Date: Sat, 27 Feb 2016 15:46:05 +0000 (+0000) Subject: Add title weight variables, Add breakpoint variables, Remove card-image X-Git-Tag: 0.0.16~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f5703631a4ce58156cf66d4674dd2ca3d6e54eb;p=thirdparty%2Fbulma.git Add title weight variables, Add breakpoint variables, Remove card-image --- diff --git a/bulma/components/card.sass b/bulma/components/card.sass index 478af581c..c7595a037 100644 --- a/bulma/components/card.sass +++ b/bulma/components/card.sass @@ -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 diff --git a/bulma/config/variables.sass b/bulma/config/variables.sass index e118e8c86..649db1b4f 100644 --- a/bulma/config/variables.sass +++ b/bulma/config/variables.sass @@ -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 diff --git a/bulma/elements/elements.sass b/bulma/elements/elements.sass index 078d674a9..1cb1380a2 100644 --- a/bulma/elements/elements.sass +++ b/bulma/elements/elements.sass @@ -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) diff --git a/bulma/elements/titles.sass b/bulma/elements/titles.sass index 6d6c9d13e..a0eb9bbd1 100644 --- a/bulma/elements/titles.sass +++ b/bulma/elements/titles.sass @@ -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 diff --git a/bulma/utilities/mixins.sass b/bulma/utilities/mixins.sass index 0afe955ff..29c763c66 100644 --- a/bulma/utilities/mixins.sass +++ b/bulma/utilities/mixins.sass @@ -62,10 +62,6 @@ -ms-user-select: none user-select: none -$tablet: 769px -$desktop: 980px -$widescreen: 1180px - =from($device) @media screen and (min-width: $device) @content