Skip to content

Commit

Permalink
Merge pull request #19 from pocketsize/dev
Browse files Browse the repository at this point in the history
Version 1.0.4
  • Loading branch information
björn committed Aug 1, 2019
2 parents 5516d31 + 6433f2f commit 2bd1c1a
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 18 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.4] - 2019-08-01
### Changed
- SCSS: Fixed type checking in breakpoint function

## [1.0.3] - 2019-08-01
### Added
- JS: Added toggle method in state
Expand All @@ -11,19 +15,17 @@ All notable changes to this project will be documented in this file.
- SCSS: Fixed bug where inline-layout did not pass along $align to inline-column
- SCSS: Switch third argument in the state mixin from $global to $local


## [1.0.2] - 2019-04-29

### Removed
- JS: Remove references to not yet implemeted methods in state


## [1.0.1] - 2019-04-29

### Removed
- JS: Remove references to not yet implemeted methods in state


[1.0.4]: https://github.com/pocketsize/bolts-lib/releases/tag/1.0.4
[1.0.3]: https://github.com/pocketsize/bolts-lib/releases/tag/1.0.3
[1.0.2]: https://github.com/pocketsize/bolts-lib/releases/tag/1.0.2
[1.0.1]: https://github.com/pocketsize/bolts-lib/releases/tag/1.0.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Bolts
*v1.0.3*
*v1.0.4*

Bolts is a collection of practical Sass mixins and JS functions helping you deal with all the mundane website building and styling tasks, so that you can focus on creating something new. It aims to be a toolkit that does the things you're tired of.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolts-lib",
"version": "1.0.3",
"version": "1.0.4",
"description": "Front-end helper library",
"main": "src/js/index.js",
"author": "Pocketsize <[email protected]> (https://www.pocketsize.se)",
Expand Down
2 changes: 1 addition & 1 deletion src/js/bolts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down
2 changes: 1 addition & 1 deletion src/js/detect.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down
3 changes: 1 addition & 2 deletions src/js/misc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down Expand Up @@ -28,7 +28,6 @@ function autoHeight(selector) {
elem.style.height = `${elem.scrollHeight}px`
}


if (this.elems.length) {
this.elems.forEach(elem => {
this.measure(elem)
Expand Down
2 changes: 1 addition & 1 deletion src/js/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down
2 changes: 1 addition & 1 deletion src/js/timing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down
17 changes: 11 additions & 6 deletions src/sass/bolts.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Bolts 1.0.3 | MIT License
* Bolts 1.0.4 | MIT License
*
* Developed by Pocketsize
* http://www.pocketsize.se/
Expand Down Expand Up @@ -145,11 +145,16 @@ $bolts-selectors: false !default;
@if (map-get($bolts-breakpoints, $from)) { $from: map-get($bolts-breakpoints, $from) }
@if (map-get($bolts-breakpoints, $to)) { $to: map-get($bolts-breakpoints, $to) }

@if (type-of($from) != number) {
@error "breakpoint: Invalid value supplied to argument $from (#{$from})";
@if ($from != false) {
@if (type-of($from) != number or type-of($from) == number and unitless($from)) {
@error "breakpoint: Invalid value supplied to argument $from (#{$from})";
}
}
@if (type-of($to) != number) {
@error "breakpoint: Invalid value supplied to argument $to (#{$to})";

@if ($to != false) {
@if (type-of($to) != number or type-of($to) == number and unitless($to)) {
@error "breakpoint: Invalid value supplied to argument $from (#{$to})";
}
}

@if ($from and $to) { @return "min-" + $property + ": " + ($from + 1) + ") and (max-" + $property + ": " + $to; }
Expand Down Expand Up @@ -1438,7 +1443,7 @@ $bolts-selectors: false !default;

@mixin orientation($orientation: false) {
@if ($orientation == portrait or $orientation == landscape or $orientation == square) {
@include state('orientation', $orientation, false) {
@include state('orientation', $orientation, true) {
@content;
}
}
Expand Down

0 comments on commit 2bd1c1a

Please sign in to comment.