Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Updates for Bulma 0.9.4
Browse files Browse the repository at this point in the history
See the Bulma 0.9.4 release notes: https://github.com/jgthms/bulma/releases/tag/0.9.4
  • Loading branch information
Jim Campbell committed May 9, 2022
1 parent f2a8a53 commit cce74cf
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bulma.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! bulma.io v0.9.3 | MIT License | github.com/jgthms/bulma */
/*! bulma.io v0.9.4 | MIT License | github.com/jgthms/bulma */
@import "utilities/_all";
@import "base/_all";
@import "elements/_all";
Expand Down
3 changes: 2 additions & 1 deletion components/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
box-shadow: $pagination-shadow-inset;
}

&[disabled] {
&[disabled],
&.is-disabled {
background-color: $pagination-disabled-background-color;
border-color: $pagination-disabled-border-color;
box-shadow: none;
Expand Down
21 changes: 20 additions & 1 deletion elements/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ $button-static-background-color: $scheme-main-ter !default;
$button-static-border-color: $border !default;

$button-colors: $colors !default;
$button-responsive-sizes: ("mobile": ("small": $size-small * 0.75, "normal": $size-small * 0.875, "medium": $size-small, "large": $size-normal), "tablet-only": ("small": $size-small * 0.875, "normal": $size-small, "medium": $size-normal, "large": $size-medium)) !default;

// The button sizes use mixins so they can be used at different breakpoints
@mixin button-small {
Expand Down Expand Up @@ -219,7 +220,7 @@ $button-colors: $colors !default;
&[disabled],
fieldset[disabled] & {
background-color: $color;
border-color: transparent;
border-color: $color;
box-shadow: none;
}

Expand Down Expand Up @@ -509,3 +510,21 @@ $button-colors: $colors !default;
}
}
}

@each $bp-name, $bp-sizes in $button-responsive-sizes {
@include breakpoint($bp-name) {
@each $size, $value in $bp-sizes {
@if $size != "normal" {
.button.is-responsive.is-#{$size} {
font-size: $value;
}
}
@else {
.button.is-responsive,
.button.is-responsive.is-normal {
font-size: $value;
}
}
}
}
}
7 changes: 5 additions & 2 deletions elements/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $content-heading-color: $text-strong !default;
$content-heading-weight: $weight-semibold !default;
$content-heading-line-height: 1.125 !default;

$content-block-margin-bottom: 1em !default;

$content-blockquote-background-color: $background !default;
$content-blockquote-border-left: 5px solid $border !default;
$content-blockquote-padding: 1.25em 1.5em !default;
Expand All @@ -16,6 +18,7 @@ $content-table-cell-padding: 0.5em 0.75em !default;
$content-table-cell-heading-color: $text-strong !default;
$content-table-head-cell-border-width: 0 0 2px !default;
$content-table-head-cell-color: $text-strong !default;
$content-table-body-last-row-cell-border-bottom-width: 0 !default;
$content-table-foot-cell-border-width: 2px 0 0 !default;
$content-table-foot-cell-color: $text-strong !default;

Expand All @@ -36,7 +39,7 @@ $content-table-foot-cell-color: $text-strong !default;
pre,
table {
&:not(:last-child) {
margin-bottom: 1em;
margin-bottom: $content-block-margin-bottom;
}
}

Expand Down Expand Up @@ -226,7 +229,7 @@ $content-table-foot-cell-color: $text-strong !default;
&:last-child {
td,
th {
border-bottom-width: 0;
border-bottom-width: $content-table-body-last-row-cell-border-bottom-width;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion elements/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $table-cell-border: 1px solid $border !default;
$table-cell-border-width: 0 0 1px !default;
$table-cell-padding: 0.5em 0.75em !default;
$table-cell-heading-color: $text-strong !default;
$table-cell-text-align: left !default;

$table-head-cell-border-width: 0 0 2px !default;
$table-head-cell-color: $text-strong !default;
Expand Down Expand Up @@ -77,7 +78,7 @@ $table-colors: $colors !default;
color: $table-cell-heading-color;

&:not([align]) {
text-align: inherit;
text-align: $table-cell-text-align;
}
}

Expand Down
3 changes: 2 additions & 1 deletion form/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ $select-colors: $form-colors !default;
// Modifiers
&.is-disabled {
&::after {
border-color: $input-disabled-color;
border-color: $input-disabled-color !important;
opacity: 0.5;
}
}

Expand Down
5 changes: 2 additions & 3 deletions utilities/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}
}

@function findLightColor($color) {
@function findLightColor($color, $l: 96%) {
@if type-of($color) == "color" {
$l: 96%;

Expand All @@ -129,9 +129,8 @@
@return $background;
}

@function findDarkColor($color) {
@function findDarkColor($color, $base-l: 29%) {
@if type-of($color) == "color" {
$base-l: 29%;
$luminance: colorLuminance($color);
$luminance-delta: 0.53 - $luminance;
$target-l: round($base-l + $luminance-delta * 53);
Expand Down
1 change: 1 addition & 0 deletions utilities/_initial-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ $widescreen-enabled: true !default;
// 1344px container + 4rem
$fullhd: 1344px + 2 * $gap !default;
$fullhd-enabled: true !default;
$breakpoints: ("mobile": ("until": $tablet), "tablet": ("from": $tablet), "tablet-only": ("from": $tablet, "until": $desktop), "touch": ("from": $desktop), "desktop": ("from": $desktop), "desktop-only": ("from": $desktop, "until": $widescreen), "until-widescreen": ("until": $widescreen), "widescreen": ("from": $widescreen), "widescreen-only": ("from": $widescreen, "until": $fullhd), "until-fullhd": ("until": $fullhd), "fullhd": ("from": $fullhd)) !default;

// Miscellaneous

Expand Down
36 changes: 36 additions & 0 deletions utilities/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
}

@mixin hamburger($dimensions) {
-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
background: none;
border: none;
cursor: pointer;
display: block;
height: $dimensions;
Expand Down Expand Up @@ -126,6 +131,12 @@
}
}

@mixin between($from, $until) {
@media screen and (min-width: $from) and (max-width: $until - 1px) {
@content;
}
}

@mixin mobile {
@media screen and (max-width: $tablet - 1px) {
@content;
Expand Down Expand Up @@ -204,6 +215,31 @@
}
}

@mixin breakpoint($name) {
$breakpoint: map-get($breakpoints, $name);

@if $breakpoint {
$from: map-get($breakpoint, "from");
$until: map-get($breakpoint, "until");

@if $from and $until {
@include between($from, $until) {
@content;
}
}
@else if $from {
@include from($from) {
@content;
}
}
@else if $until {
@include until($until) {
@content;
}
}
}
}

@mixin ltr {
@if not $rtl {
@content;
Expand Down

0 comments on commit cce74cf

Please sign in to comment.