Skip to content

Commit eb776bf

Browse files
authored
Merge pull request #30 from chrisrhymes/29-import-deprecation-warning
Update @import to @use statements
2 parents 79ddc8e + 4a8822d commit eb776bf

File tree

6 files changed

+2088
-2960
lines changed

6 files changed

+2088
-2960
lines changed

changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.1.0
2+
* Update from @import to @use statements for future Sass compatibility
3+
4+
# 1.0.0
5+
* Upgrade to Bulma v1
6+
17
# 0.6
28
* Upgrade to Bulma 0.9.3
39

docs/docs.css

Lines changed: 2043 additions & 2921 deletions
Large diffs are not rendered by default.

docs/docs.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
{
2-
"name": "bulma-block-list",
3-
"version": "1.0.0",
4-
"description": "A simple scss package extending Bulma with block style list elements",
5-
"homepage": "https://github.com/chrisrhymes/bulma-block-list#readme",
6-
"bugs": {
7-
"url": "https://github.com/chrisrhymes/bulma-block-list/issues"
8-
},
9-
"main": "src/block-list.scss",
10-
"scripts": {
11-
"dev": "sass --load-path=node_modules src/docs.scss docs/docs.css"
12-
},
13-
"keywords": [
14-
"Bulma",
15-
"List",
16-
"BlockList",
17-
"Unordered List"
18-
],
19-
"author": "chrisrhymes",
20-
"license": "MIT",
21-
"dependencies": {
22-
"bulma": "^1.0.0"
23-
},
24-
"devDependencies": {
25-
"sass": "^1.75.0"
26-
}
2+
"name": "bulma-block-list",
3+
"version": "1.1.0",
4+
"description": "A simple scss package extending Bulma with block style list elements",
5+
"homepage": "https://github.com/chrisrhymes/bulma-block-list#readme",
6+
"bugs": {
7+
"url": "https://github.com/chrisrhymes/bulma-block-list/issues"
8+
},
9+
"main": "src/block-list.scss",
10+
"scripts": {
11+
"dev": "sass --load-path=node_modules src/docs.scss docs/docs.css"
12+
},
13+
"keywords": [
14+
"Bulma",
15+
"List",
16+
"BlockList",
17+
"Unordered List"
18+
],
19+
"author": "chrisrhymes",
20+
"license": "MIT",
21+
"dependencies": {
22+
"bulma": "^1.0.0"
23+
},
24+
"devDependencies": {
25+
"sass": "^1.75.0"
26+
}
2727
}

src/block-list.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@charset "utf-8";
22

3-
@use "sass:math";
3+
@use 'sass:math';
44

5-
@import "bulma/sass/utilities/initial-variables.scss";
6-
@import "bulma/sass/utilities/derived-variables.scss";
5+
@use 'bulma/sass/utilities/initial-variables.scss';
6+
@use 'bulma/sass/utilities/derived-variables.scss';
77

88
$block-list-separator: 0.25rem !default;
99
$block-list-highlight-width: 5px !default;
@@ -19,7 +19,7 @@ $block-list-highlight-width: 5px !default;
1919
list-style: none;
2020

2121
li {
22-
padding: math.div($gap, 2);
22+
padding: math.div(initial-variables.$gap, 2);
2323
background: var(--bulma-body-background-color);
2424
margin-bottom: $block-list-separator;
2525
}
@@ -41,23 +41,23 @@ $block-list-highlight-width: 5px !default;
4141

4242
li.is-small,
4343
&.is-small > li {
44-
font-size: $size-7;
45-
padding: math.div($gap, 3);
44+
font-size: initial-variables.$size-7;
45+
padding: math.div(initial-variables.$gap, 3);
4646
}
4747

4848
li.is-normal,
4949
&.is-normal > li {
50-
font-size: $size-6;
50+
font-size: initial-variables.$size-6;
5151
}
5252

5353
li.is-large,
5454
&.is-large > li {
55-
font-size: $size-5;
55+
font-size: initial-variables.$size-5;
5656
}
5757

5858
li.has-radius,
5959
&.has-radius > li {
60-
border-radius: $radius;
60+
border-radius: initial-variables.$radius;
6161
}
6262

6363
li.is-highlighted,
@@ -73,7 +73,7 @@ $block-list-highlight-width: 5px !default;
7373

7474
li.is-outlined,
7575
&.is-outlined > li {
76-
@include outlined("light");
76+
@include outlined('light');
7777
}
7878

7979
li.has-icon {
@@ -98,7 +98,7 @@ $block-list-highlight-width: 5px !default;
9898
}
9999
}
100100

101-
@each $name, $pair in $colors {
101+
@each $name, $pair in derived-variables.$colors {
102102
li.is-#{$name},
103103
&.is-#{$name} > li {
104104
background: var(--bulma-#{$name});

src/docs.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@charset "utf-8";
22

3-
@use "bulma/sass";
3+
@use 'bulma/sass';
44

5-
@import "block-list";
5+
@use 'block-list';

0 commit comments

Comments
 (0)