Skip to content

Commit

Permalink
Add missing strip-unit SCSS function
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Nov 19, 2021
1 parent fe8384f commit 88613dc
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 8.1.9: 2021-11-19

* Add missing strip-unit SCSS function

### 8.1.8: 2021-11-18

* Fix `var(--gap-between-dropdown-toggle)` defined two times
Expand Down
4 changes: 2 additions & 2 deletions bin/tasks/additions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# @Author: Roni Laukkarinen
# @Date: 2021-05-21 14:40:29
# @Last Modified by: Roni Laukkarinen
# @Last Modified time: 2021-11-18 14:58:04
# @Last Modified time: 2021-11-19 12:14:21
echo "${YELLOW}Adding media library folder...${TXTRESET}"
mkdir -p ${PROJECT_PATH}/media
echo "" > ${PROJECT_PATH}/media/index.php
chmod 777 ${PROJECT_PATH}/media

echo "${YELLOW}Generating default README.md...${TXTRESET}"

NEWEST_AIR_VERSION="8.1.8"
NEWEST_AIR_VERSION="8.1.9"
NEWEST_WORDPRESS_VERSION="5.8.2"
NEWEST_PHP_VERSION="7.4"
CURRENT_DATE=$(LC_TIME=en_US date '+%d %b %Y' |tr ' ' '_');
Expand Down
4 changes: 2 additions & 2 deletions css/dev/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/dev/gutenberg-editor-styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/prod/global.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @Date: 2019-10-15 12:30:02
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2021-11-18 14:57:55
* @Last Modified time: 2021-11-19 12:14:09
*
* @package air-light
*/
Expand All @@ -17,7 +17,7 @@
/**
* The current version of the theme.
*/
define( 'AIR_LIGHT_VERSION', '8.1.8' );
define( 'AIR_LIGHT_VERSION', '8.1.9' );

// We need to have some defaults as comments or empties so let's allow this:
// phpcs:disable Squiz.Commenting.InlineComment.SpacingBefore, WordPress.Arrays.ArrayDeclarationSpacing.SpaceInEmptyArray
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": "air-light",
"version": "8.1.8",
"version": "8.1.9",
"description": "A minimalist WordPress starter theme.",
"author": "Digitoimisto Dude Oy ([email protected])",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Tags: one-column, accessibility-ready, translation-ready

Requires at least: 5.0
Tested up to: 5.8.2
Stable tag: 8.1.8
Stable tag: 8.1.9
License: MIT License
License URI: https://opensource.org/licenses/MIT

Expand Down
4 changes: 4 additions & 0 deletions sass/helpers/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
}

// Responsive fonts
@function strip-unit($value) {
@return math.div($value, $value * 0 + 1);
}

@mixin responsive-font($min-font-size, $max-font-size, $min-vw: 320px, $max-vw: 1920px) {
// stylelint-disable scss/no-global-function-names
$u1: unit($min-vw);
Expand Down

0 comments on commit 88613dc

Please sign in to comment.