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

Commit

Permalink
Bulma 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Campbell committed Oct 1, 2020
1 parent 3893038 commit e2d22e4
Show file tree
Hide file tree
Showing 32 changed files with 201 additions and 110 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a port of the [Bulma](https://bulma.io/) project SASS files to the
SCSS syntax.

Currently, these files are based on Bulma version 0.9.0, and will be updated
Currently, these files are based on Bulma version 0.9.1, and will be updated
with later releases. The files are converted to SCSS with
[this script](https://gist.github.com/j1mc/ff1ff83e277b1e221761fc0c0ee3b164).

Expand Down
1 change: 1 addition & 0 deletions base/_all.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* Bulma Base */
@import "minireset";
@import "generic";
1 change: 1 addition & 0 deletions base/_generic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ section {
body,
button,
input,
optgroup,
select,
textarea {
font-family: $body-family;
Expand Down
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.0 | MIT License | github.com/jgthms/bulma */
/*! bulma.io v0.9.1 | MIT License | github.com/jgthms/bulma */
@import "utilities/_all";
@import "base/_all";
@import "elements/_all";
Expand Down
1 change: 1 addition & 0 deletions components/_all.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Bulma Components */
@import "breadcrumb";
@import "card";
@import "dropdown";
Expand Down
4 changes: 4 additions & 0 deletions components/_card.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$card-color: $text !default;
$card-background-color: $scheme-main !default;
$card-shadow: 0 0.5em 1em -0.125em rgba($scheme-invert, 0.1), 0 0px 0 1px rgba($scheme-invert, 0.02) !default;
$card-radius: 0.25rem !default;
$card-overflow: hidden !default;

$card-header-background-color: transparent !default;
$card-header-color: $text-strong !default;
Expand All @@ -19,9 +21,11 @@ $card-media-margin: $block-spacing !default;

.card {
background-color: $card-background-color;
border-radius: $card-radius;
box-shadow: $card-shadow;
color: $card-color;
max-width: 100%;
overflow: $card-overflow;
position: relative;
}

Expand Down
4 changes: 3 additions & 1 deletion components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $modal-card-foot-border-top: 1px solid $border !default;
$modal-card-body-background-color: $scheme-main !default;
$modal-card-body-padding: 20px !default;

$modal-breakpoint: $tablet !default;

.modal {
@extend %overlay;

Expand Down Expand Up @@ -60,7 +62,7 @@ $modal-card-body-padding: 20px !default;
width: 100%;

// Responsiveness
@include tablet {
@include from($modal-breakpoint) {
margin: 0 auto;
max-height: calc(100vh - #{$modal-content-spacing-tablet});
width: $modal-content-width;
Expand Down
4 changes: 3 additions & 1 deletion components/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default;

$navbar-breakpoint: $desktop !default;

$navbar-colors: $colors !default;

@mixin navbar-fixed {
left: 0;
position: fixed;
Expand All @@ -59,7 +61,7 @@ $navbar-breakpoint: $desktop !default;
position: relative;
z-index: $navbar-z;

@each $name, $pair in $colors {
@each $name, $pair in $navbar-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
1 change: 1 addition & 0 deletions elements/_all.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Bulma Elements */
@import "box";
@import "button";
@import "container";
Expand Down
4 changes: 3 additions & 1 deletion elements/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ $button-static-color: $text-light !default;
$button-static-background-color: $scheme-main-ter !default;
$button-static-border-color: $border !default;

$button-colors: $colors !default;

// The button sizes use mixins so they can be used at different breakpoints
@mixin button-small {
border-radius: $radius-small;
Expand Down Expand Up @@ -155,7 +157,7 @@ $button-static-border-color: $border !default;
}
}

@each $name, $pair in $colors {
@each $name, $pair in $button-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
19 changes: 12 additions & 7 deletions elements/_container.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$container-offset: 2 * $gap !default;
$container-max-width: $fullhd !default;

.container {
flex-grow: 1;
Expand All @@ -7,7 +8,7 @@ $container-offset: 2 * $gap !default;
width: auto;

&.is-fluid {
max-width: none;
max-width: none !important;
padding-left: $gap;
padding-right: $gap;
width: 100%;
Expand All @@ -19,25 +20,29 @@ $container-offset: 2 * $gap !default;


@include until-widescreen {
&.is-widescreen {
max-width: $widescreen - $container-offset;
&.is-widescreen:not(.is-max-desktop) {
max-width: min($widescreen, $container-max-width) - $container-offset;
}
}


@include until-fullhd {
&.is-fullhd {
max-width: $fullhd - $container-offset;
&.is-fullhd:not(.is-max-desktop):not(.is-max-widescreen) {
max-width: min($fullhd, $container-max-width) - $container-offset;
}
}


@include widescreen {
max-width: $widescreen - $container-offset;
&:not(.is-max-desktop) {
max-width: min($widescreen, $container-max-width) - $container-offset;
}
}


@include fullhd {
max-width: $fullhd - $container-offset;
&:not(.is-max-desktop):not(.is-max-widescreen) {
max-width: min($fullhd, $container-max-width) - $container-offset;
}
}
}
4 changes: 3 additions & 1 deletion elements/_notification.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default;
$notification-padding-ltr: 1.25rem 2.5rem 1.25rem 1.5rem !default;
$notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default;

$notification-colors: $colors !default;

.notification {
@extend %block;

Expand Down Expand Up @@ -54,7 +56,7 @@ $notification-padding-rtl: 1.25rem 1.5rem 1.25rem 2.5rem !default;
}

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $notification-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
8 changes: 7 additions & 1 deletion elements/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ $progress-border-radius: $radius-rounded !default;

$progress-indeterminate-duration: 1.5s !default;

$progress-colors: $colors !default;

.progress {
@extend %block;

Expand Down Expand Up @@ -35,7 +37,7 @@ $progress-indeterminate-duration: 1.5s !default;
}

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $progress-colors {
$color: nth($pair, 1);

&.is-#{$name} {
Expand Down Expand Up @@ -75,6 +77,10 @@ $progress-indeterminate-duration: 1.5s !default;
&::-moz-progress-bar {
background-color: transparent;
}

&::-ms-fill {
animation-name: none;
}
}

// Sizes
Expand Down
4 changes: 3 additions & 1 deletion elements/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $table-row-active-color: $primary-invert !default;
$table-striped-row-even-background-color: $scheme-main-bis !default;
$table-striped-row-even-hover-background-color: $scheme-main-ter !default;

$table-colors: $colors !default;

.table {
@extend %block;

Expand All @@ -37,7 +39,7 @@ $table-striped-row-even-hover-background-color: $scheme-main-ter !default;
vertical-align: top;

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $table-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
4 changes: 3 additions & 1 deletion elements/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $tag-color: $text !default;
$tag-radius: $radius !default;
$tag-delete-margin: 1px !default;

$tag-colors: $colors !default;

.tags {
align-items: center;
display: flex;
Expand Down Expand Up @@ -115,7 +117,7 @@ $tag-delete-margin: 1px !default;
}

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $tag-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
1 change: 1 addition & 0 deletions form/_all.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* Bulma Form */
@import "shared";
@import "input-textarea";
@import "checkbox-radio";
Expand Down
3 changes: 2 additions & 1 deletion form/_checkbox-radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
}

&[disabled],
fieldset[disabled] & {
fieldset[disabled] &,
input[disabled] {
color: $input-disabled-color;
cursor: not-allowed;
}
Expand Down
4 changes: 3 additions & 1 deletion form/_file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ $file-name-border-style: solid !default;
$file-name-border-width: 1px 1px 1px 0 !default;
$file-name-max-width: 16em !default;

$file-colors: $form-colors !default;

.file {
@extend %unselectable;

Expand All @@ -20,7 +22,7 @@ $file-name-max-width: 16em !default;
position: relative;

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $file-colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

Expand Down
4 changes: 3 additions & 1 deletion form/_input-textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $textarea-padding: $control-padding-horizontal !default;
$textarea-max-height: 40em !default;
$textarea-min-height: 8em !default;

$textarea-colors: $form-colors !default;

%input-textarea {
@extend %input;

Expand All @@ -14,7 +16,7 @@ $textarea-min-height: 8em !default;
}

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $textarea-colors {
$color: nth($pair, 1);

&.is-#{$name} {
Expand Down
4 changes: 3 additions & 1 deletion form/_select.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$select-colors: $form-colors !default;

.select {
display: inline-block;
max-width: 100%;
Expand Down Expand Up @@ -68,7 +70,7 @@
}

// Colors
@each $name, $pair in $colors {
@each $name, $pair in $select-colors {
$color: nth($pair, 1);

&.is-#{$name} {
Expand Down
2 changes: 2 additions & 0 deletions form/_shared.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$form-colors: $colors !default;

$input-color: $text-strong !default;
$input-background-color: $scheme-main !default;
$input-border-color: $border !default;
Expand Down
4 changes: 3 additions & 1 deletion form/_tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $label-weight: $weight-bold !default;

$help-size: $size-small !default;

$label-colors: $form-colors !default;

.label {
color: $label-color;
display: block;
Expand Down Expand Up @@ -32,7 +34,7 @@ $help-size: $size-small !default;
font-size: $help-size;
margin-top: 0.25rem;

@each $name, $pair in $colors {
@each $name, $pair in $label-colors {
$color: nth($pair, 1);

&.is-#{$name} {
Expand Down
1 change: 1 addition & 0 deletions grid/_all.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/* Bulma Grid */
@import "columns";
@import "tiles";
2 changes: 2 additions & 0 deletions helpers/_all.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* Bulma Helpers */
@import "color";
@import "flexbox";
@import "float";
@import "other";
@import "overflow";
Expand Down
Loading

0 comments on commit e2d22e4

Please sign in to comment.