Skip to content

Commit 5eef4f5

Browse files
committed
Move css variables into the componnet wrapper
1 parent 94d3ad5 commit 5eef4f5

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

dist/cssonly.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cssonly",
33
"description": "",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"main": "dist/cssonly.css",
66
"devDependencies": {
77
"autoprefixer": "^9.8.6",

src/image-comparison/style.scss

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
:root {
1+
.cssonly-image-comparison {
22
--height: 400px;
33
--width: 600px;
4-
}
54

6-
.cssonly-image-comparison {
75
display: inline-block;
86
position: relative;
97
width: var(--width);

src/rating/style.scss

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
:root {
1+
.cssonly-rating {
22
--icon-size: 36px;
33
--filled-icon: "";
44
--non-filled-icon: "";
55
--filled-color: #ffb400;
66
--non-filled-color: rgba(0, 0, 0, 0.26);
7-
}
87

9-
.cssonly-rating {
108
display: inline-flex;
119
position: relative;
12-
font-size: var(--icon-size);
1310
flex-direction: row-reverse;
1411
justify-content: center;
1512

@@ -25,7 +22,7 @@
2522
&::before {
2623
content: var(--non-filled-icon);
2724
color: var(--non-filled-color);
28-
font-size: inherit;
25+
font-size: var(--icon-size);
2926
display: inline-block;
3027
cursor: pointer;
3128
transition: color 0.15s;

src/tabs/style.scss

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
:root {
1+
.cssonly-tabs {
22
// --tabs-number: 5; // one of them is required
33
// --tabs-width: 70px; // one of them is required
44
--line-color: #4f46e5;
55
--trnasition-time: 0.2s;
6-
}
76

8-
.cssonly-tabs {
97
display: flex;
108
position: relative;
119
align-items: center;

0 commit comments

Comments
 (0)