Skip to content

Commit 23bb79a

Browse files
committed
unused files are removed and some style changes
1 parent e231586 commit 23bb79a

File tree

4 files changed

+26
-31
lines changed

4 files changed

+26
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chmod-checkbox",
3-
"version": "0.0.2",
3+
"version": "0.0.21",
44
"description": "Simple and ready to use chmod based checkbox web component with StencilJS",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",

src/components/chmod-checkbox/chmod-checkbox.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ label {
5050
width: 0px;
5151
height: 2px;
5252
border-radius: 2px; // so that the tick has nice rounded look
53-
background: $base-color;
5453
position: absolute;
54+
background: $base-color;
55+
transform-origin: 0% 0%;
5556
transform: rotate(45deg);
56-
top: 13px; // you'll need to experiment with placement depending on the dimensions you've chosen
57-
left: 9px; // you'll need to experiment with placement depending on the dimensions you've chosen
5857
transition: width 50ms ease 50ms;
59-
transform-origin: 0% 0%;
58+
left: 9px; // you'll need to experiment with placement depending on the dimensions you've chosen
59+
top: 13px; // you'll need to experiment with placement depending on the dimensions you've chosen
6060
}
6161

6262
&:after {
@@ -138,19 +138,19 @@ input[type="checkbox"] {
138138

139139
.wrapper {
140140
display: grid;
141-
grid-gap: 10px;
141+
grid-gap: 3px;
142142
grid-template-columns: repeat(3, 1fr);
143143
}
144144

145145
.column1 {
146-
grid-column: 1;
147146
grid-row: 3;
147+
grid-column: 1;
148148
}
149149
.column2 {
150-
grid-column: 2;
151150
grid-row: 3;
151+
grid-column: 2;
152152
}
153153
.column3 {
154-
grid-column: 3;
155154
grid-row: 3;
155+
grid-column: 3;
156156
}

src/index.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111
<script nomodule src="/build/chmod-checkbox.js"></script>
1212
</head>
1313
<body>
14-
<chmod-checkbox permission="0"/>
14+
<div style="display:flex">
15+
<div style="flex: 0 0 65%">
16+
<span>Hello</span>
17+
</div>
18+
<div style="flex:1">
19+
<div>
20+
<chmod-checkbox permission="0"/>
21+
</div>
22+
<div>
23+
<chmod-checkbox permission="0"/>
24+
</div>
25+
<div>
26+
<chmod-checkbox permission="0"/>
27+
</div>
28+
</div>
29+
30+
</div>
1531
</body>
1632
</html>

src/utils/utils.spec.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)