Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
atomjoy authored Jul 27, 2023
1 parent 6102388 commit 929c727
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
11 changes: 2 additions & 9 deletions app/resources/js/components/input/CheckboxOnOff.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,8 @@ const checked = computed(() => {

<!--

// Multiple Array with strings values
let money = ref(['card','cash']) // Default selected in array
let lights = ref(true)

<Checkbox label="Cash" value="cash" v-model="money" name="pay_cash" />
<Checkbox label="Card" value="card" v-model="money" name="pay_card" />

// Single (true|false)
let remember_me = ref(true)

<Checkbox label="Remember me 1" value="1" v-model="remember_me" name="remember_me" />
<CheckboxOnOff label="Enable lights" value="1" v-model="lights" name="lights" />

-->
1 change: 0 additions & 1 deletion app/resources/js/components/input/css/input-root.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
:root {
color-scheme: light;
--wow-font-family: var(--font-family);
--wow-font-size: 18px;
--wow-bg: #fff;
--wow-input-bg: #f6f6f6;
Expand Down
20 changes: 10 additions & 10 deletions app/resources/js/components/input/css/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ textarea {
border-radius: var(--wow-border-radius);
border: 1px solid var(--wow-border);
background: var(--wow-input-bg);
font-family: var(--wow-font-family);
}

input:hover,
Expand Down Expand Up @@ -314,7 +313,8 @@ option {
align-items: center;
}
.checkbox-line label {
margin-top: 10px;
margin-top: 0px;
margin-bottom: 0px;
}
.checkbox-line .checkbox {
position: absolute;
Expand Down Expand Up @@ -362,17 +362,17 @@ option {
/* Checkbox onoff */

.checkbox-checkmark-onoff {
min-height: 45px;
min-width: 80px;
min-height: 40px;
min-width: 70px;
right: 5px;
}

.checkmark-onoff {
float: left;
box-sizing: border-box;
height: 42px;
width: 92px;
padding: 5px;
height: 35px;
width: 70px;
padding: 4px;
margin-left: 15px;
background: var(--wow-input-bg);
border: 1px solid var(--wow-border);
Expand All @@ -383,8 +383,8 @@ option {

.checkmark-onoff .dot {
float: left;
min-width: 30px;
min-height: 30px;
min-width: 26px;
min-height: 26px;
background: var(--wow-bg);
border-radius: var(--wow-border-radius);
border: 1px solid var(--wow-border);
Expand All @@ -398,7 +398,7 @@ option {
}

.checkmark-onoff-checked .dot {
float: right;
margin-left: 25px;
background: var(--wow-accent);
border: 1px solid var(--wow-accent);
transform: rotate(180deg);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 929c727

Please sign in to comment.