Skip to content

Commit 929c727

Browse files
authored
Update
1 parent 6102388 commit 929c727

File tree

4 files changed

+12
-20
lines changed

4 files changed

+12
-20
lines changed

app/resources/js/components/input/CheckboxOnOff.vue

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,8 @@ const checked = computed(() => {
3939

4040
<!--
4141
42-
// Multiple Array with strings values
43-
let money = ref(['card','cash']) // Default selected in array
42+
let lights = ref(true)
4443
45-
<Checkbox label="Cash" value="cash" v-model="money" name="pay_cash" />
46-
<Checkbox label="Card" value="card" v-model="money" name="pay_card" />
47-
48-
// Single (true|false)
49-
let remember_me = ref(true)
50-
51-
<Checkbox label="Remember me 1" value="1" v-model="remember_me" name="remember_me" />
44+
<CheckboxOnOff label="Enable lights" value="1" v-model="lights" name="lights" />
5245
5346
-->

app/resources/js/components/input/css/input-root.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
:root {
22
color-scheme: light;
3-
--wow-font-family: var(--font-family);
43
--wow-font-size: 18px;
54
--wow-bg: #fff;
65
--wow-input-bg: #f6f6f6;

app/resources/js/components/input/css/input.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ textarea {
3636
border-radius: var(--wow-border-radius);
3737
border: 1px solid var(--wow-border);
3838
background: var(--wow-input-bg);
39-
font-family: var(--wow-font-family);
4039
}
4140

4241
input:hover,
@@ -314,7 +313,8 @@ option {
314313
align-items: center;
315314
}
316315
.checkbox-line label {
317-
margin-top: 10px;
316+
margin-top: 0px;
317+
margin-bottom: 0px;
318318
}
319319
.checkbox-line .checkbox {
320320
position: absolute;
@@ -362,17 +362,17 @@ option {
362362
/* Checkbox onoff */
363363

364364
.checkbox-checkmark-onoff {
365-
min-height: 45px;
366-
min-width: 80px;
365+
min-height: 40px;
366+
min-width: 70px;
367367
right: 5px;
368368
}
369369

370370
.checkmark-onoff {
371371
float: left;
372372
box-sizing: border-box;
373-
height: 42px;
374-
width: 92px;
375-
padding: 5px;
373+
height: 35px;
374+
width: 70px;
375+
padding: 4px;
376376
margin-left: 15px;
377377
background: var(--wow-input-bg);
378378
border: 1px solid var(--wow-border);
@@ -383,8 +383,8 @@ option {
383383

384384
.checkmark-onoff .dot {
385385
float: left;
386-
min-width: 30px;
387-
min-height: 30px;
386+
min-width: 26px;
387+
min-height: 26px;
388388
background: var(--wow-bg);
389389
border-radius: var(--wow-border-radius);
390390
border: 1px solid var(--wow-border);
@@ -398,7 +398,7 @@ option {
398398
}
399399

400400
.checkmark-onoff-checked .dot {
401-
float: right;
401+
margin-left: 25px;
402402
background: var(--wow-accent);
403403
border: 1px solid var(--wow-accent);
404404
transform: rotate(180deg);
9.86 KB
Loading

0 commit comments

Comments
 (0)