Use single file for extends (#3216)

* Use single file for extends

* Update changelog
This commit is contained in:
Jeremy Thomas 2020-12-20 12:10:04 +00:00 committed by GitHub
parent ab65e4b437
commit 2cbef5868e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 275 additions and 7297 deletions

View File

@ -2,6 +2,23 @@
## 0.9.2
### Breaking change
To fix duplicate imports, all Sass placeholders have moved from the `utilities/mixins` file to its own `utilities/extends` file.
The Sass placeholders are:
* `%control`
* `%unselectable`
* `%arrow`
* `%block`
* `%delete`
* `%loader`
* `%overlay`
If you were importing them directly from `utilities/mixins`, you'll need to import `utilities/extends` instead.
If you were importing `utilities/_all` or even `bulma.sass` directly, no change is required.
### New features
* Fix #1583 New `is-ghost` button that behaves / looks like a regular link
@ -13,6 +30,8 @@
* Fix #3089 Sub columns of a variable columns have weird gap
* Fix #2937 Add `width: unset` for narrow columns
* #3208 Fix #3163 Do not override is-rounded with button-small
* #3216 Removed duplicate `mixins` imports, created a single `extends` file
* #3216 Removed all references to the `.sass` file extension have been removed, since they're unnecessary when there's no ambiguity between a `.sass` file or a `.scss` file
### Improvements

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
/* Bulma Base */
@charset "utf-8"
@import "minireset.sass"
@import "generic.sass"
@import "animations.sass"
@import "minireset"
@import "generic"
@import "animations"

View File

@ -1,15 +1,15 @@
/* Bulma Components */
@charset "utf-8"
@import "breadcrumb.sass"
@import "card.sass"
@import "dropdown.sass"
@import "level.sass"
@import "media.sass"
@import "menu.sass"
@import "message.sass"
@import "modal.sass"
@import "navbar.sass"
@import "pagination.sass"
@import "panel.sass"
@import "tabs.sass"
@import "breadcrumb"
@import "card"
@import "dropdown"
@import "level"
@import "media"
@import "menu"
@import "message"
@import "modal"
@import "navbar"
@import "pagination"
@import "panel"
@import "tabs"

View File

@ -1,16 +1,16 @@
/* Bulma Elements */
@charset "utf-8"
@import "box.sass"
@import "button.sass"
@import "container.sass"
@import "content.sass"
@import "icon.sass"
@import "image.sass"
@import "notification.sass"
@import "progress.sass"
@import "table.sass"
@import "tag.sass"
@import "title.sass"
@import "box"
@import "button"
@import "container"
@import "content"
@import "icon"
@import "image"
@import "notification"
@import "progress"
@import "table"
@import "tag"
@import "title"
@import "other.sass"
@import "other"

View File

@ -1,9 +1,9 @@
/* Bulma Form */
@charset "utf-8"
@import "shared.sass"
@import "input-textarea.sass"
@import "checkbox-radio.sass"
@import "select.sass"
@import "file.sass"
@import "tools.sass"
@import "shared"
@import "input-textarea"
@import "checkbox-radio"
@import "select"
@import "file"
@import "tools"

View File

@ -1,5 +1,3 @@
@import "shared"
%checkbox-radio
cursor: pointer
display: inline-block

View File

@ -1,5 +1,3 @@
@import "shared"
$file-border-color: $border !default
$file-radius: $radius !default

View File

@ -1,5 +1,3 @@
@import "shared"
$textarea-padding: $control-padding-horizontal !default
$textarea-max-height: 40em !default
$textarea-min-height: 8em !default

View File

@ -1,5 +1,3 @@
@import "shared"
$select-colors: $form-colors !default
.select

View File

@ -1,5 +1,3 @@
@import "shared"
$label-color: $text-strong !default
$label-weight: $weight-bold !default

View File

@ -1,5 +1,5 @@
/* Bulma Grid */
@charset "utf-8"
@import "columns.sass"
@import "tiles.sass"
@import "columns"
@import "tiles"

View File

@ -1,12 +1,12 @@
/* Bulma Helpers */
@charset "utf-8"
@import "color.sass"
@import "flexbox.sass"
@import "float.sass"
@import "other.sass"
@import "overflow.sass"
@import "position.sass"
@import "spacing.sass"
@import "typography.sass"
@import "visibility.sass"
@import "color"
@import "flexbox"
@import "float"
@import "other"
@import "overflow"
@import "position"
@import "spacing"
@import "typography"
@import "visibility"

View File

@ -1,6 +1,6 @@
/* Bulma Layout */
@charset "utf-8"
@import "hero.sass"
@import "section.sass"
@import "footer.sass"
@import "hero"
@import "section"
@import "footer"

View File

@ -1,8 +1,9 @@
/* Bulma Utilities */
@charset "utf-8"
@import "initial-variables.sass"
@import "functions.sass"
@import "derived-variables.sass"
@import "mixins.sass"
@import "controls.sass"
@import "initial-variables"
@import "functions"
@import "derived-variables"
@import "mixins"
@import "controls"
@import "extends"

View File

@ -1,4 +1,4 @@
@import "derived-variables.sass"
@import "derived-variables"
$control-radius: $radius !default
$control-radius-small: $radius-small !default
@ -39,9 +39,6 @@ $control-padding-horizontal: calc(0.75em - #{$control-border-width}) !default
fieldset[disabled] &
cursor: not-allowed
%control
+control
// The controls sizes use mixins so they can be used at different breakpoints
=control-small
border-radius: $control-radius-small

View File

@ -1,5 +1,5 @@
@import "initial-variables.sass"
@import "functions.sass"
@import "initial-variables"
@import "functions"
$primary: $turquoise !default

View File

@ -0,0 +1,22 @@
@import "mixins"
%control
+control
%unselectable
+unselectable
%arrow
+arrow
%block
+block
%delete
+delete
%loader
+loader
%overlay
+overlay

View File

@ -161,9 +161,6 @@
-ms-user-select: none
user-select: none
%unselectable
+unselectable
=arrow($color: transparent)
border: 3px solid $color
border-radius: 2px
@ -180,18 +177,12 @@
transform-origin: center
width: 0.625em
%arrow
+arrow
=block($spacing: $block-spacing)
&:not(:last-child)
margin-bottom: $spacing
%block
+block
=delete
@extend %unselectable
+unselectable
-moz-appearance: none
-webkit-appearance: none
background-color: bulmaRgba($scheme-invert, 0.2)
@ -256,9 +247,6 @@
min-width: 32px
width: 32px
%delete
+delete
=loader
animation: spinAround 500ms infinite linear
border: 2px solid $grey-lighter
@ -271,9 +259,6 @@
position: relative
width: 1em
%loader
+loader
=overlay($offset: 0)
bottom: $offset
left: $offset
@ -281,5 +266,3 @@
right: $offset
top: $offset
%overlay
+overlay

View File

@ -1,63 +1,64 @@
module.exports = Object.freeze({
SOURCES: [
`base/animations.sass`,
`base/generic.sass`,
`base/minireset.sass`,
`base/animations`,
`base/generic`,
`base/minireset`,
`components/breadcrumb.sass`,
`components/card.sass`,
`components/dropdown.sass`,
`components/level.sass`,
`components/media.sass`,
`components/menu.sass`,
`components/message.sass`,
`components/modal.sass`,
`components/navbar.sass`,
`components/pagination.sass`,
`components/panel.sass`,
`components/tabs.sass`,
`components/breadcrumb`,
`components/card`,
`components/dropdown`,
`components/level`,
`components/media`,
`components/menu`,
`components/message`,
`components/modal`,
`components/navbar`,
`components/pagination`,
`components/panel`,
`components/tabs`,
`elements/box.sass`,
`elements/button.sass`,
`elements/container.sass`,
`elements/content.sass`,
`elements/icon.sass`,
`elements/image.sass`,
`elements/notification.sass`,
`elements/other.sass`,
`elements/progress.sass`,
`elements/table.sass`,
`elements/tag.sass`,
`elements/title.sass`,
`elements/box`,
`elements/button`,
`elements/container`,
`elements/content`,
`elements/icon`,
`elements/image`,
`elements/notification`,
`elements/other`,
`elements/progress`,
`elements/table`,
`elements/tag`,
`elements/title`,
`form/checkbox-radio.sass`,
`form/file.sass`,
`form/input-textarea.sass`,
`form/select.sass`,
`form/tools.sass`,
`form/checkbox-radio`,
`form/file`,
`form/input-textarea`,
`form/select`,
`form/tools`,
`grid/columns.sass`,
`grid/tiles.sass`,
`grid/columns`,
`grid/tiles`,
`helpers/color.sass`,
`helpers/flexbox.sass`,
`helpers/float.sass`,
`helpers/other.sass`,
`helpers/overflow.sass`,
`helpers/position.sass`,
`helpers/spacing.sass`,
`helpers/typography.sass`,
`helpers/visibility.sass`,
`helpers/color`,
`helpers/flexbox`,
`helpers/float`,
`helpers/other`,
`helpers/overflow`,
`helpers/position`,
`helpers/spacing`,
`helpers/typography`,
`helpers/visibility`,
`layout/footer.sass`,
`layout/hero.sass`,
`layout/section.sass`,
`layout/footer`,
`layout/hero`,
`layout/section`,
`utilities/controls.sass`,
`utilities/derived-variables.sass`,
`utilities/functions.sass`,
`utilities/initial-variables.sass`,
`utilities/mixins.sass`,
`utilities/controls`,
`utilities/derived-variables`,
`utilities/extends`,
`utilities/functions`,
`utilities/initial-variables`,
`utilities/mixins`,
],
buildCSS: (fn, name, options) => {
try {