Skip to content

Commit

Permalink
Dev: use plain checkboxes (fruity)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 12, 2017
1 parent d9730c8 commit 3a0571b
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions themes/survey/fruity/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -882,3 +882,10 @@ body .checkbox-item label::after {
.btn:focus, .btn:hover {
color: #fff;
}

/* Remove borders when checkbox is checked */
.checkbox-item input[type="checkbox"]:checked + label::before{
border: none;
background-color: transparent;
outline: none;
}
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/apple_blossom.css
Original file line number Diff line number Diff line change
Expand Up @@ -2022,4 +2022,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u
/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#AA4340}

.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #AA4340 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #AA4340; }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/bay_of_many.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#214F7E}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #214F7E }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #214F7E }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/black_pearl.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#071630}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #071630 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #071630 }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/dark_sky.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#000000}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #000000 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #000000 }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/free_magenta.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#C63678}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #C63678 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #C63678 }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/purple_tentacle.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#993399}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #993399 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #993399 }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/sea_green.css
Original file line number Diff line number Diff line change
Expand Up @@ -2027,4 +2027,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u
/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#328637}

.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color:#328637 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { background-color:#328637; color: white; }
2 changes: 1 addition & 1 deletion themes/survey/fruity/css/variations/sunset_orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -2021,4 +2021,4 @@ input[type="text"], input[type="password"], .ui-autocomplete-input, textarea, .u

/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
body .answer-item label::after{background-color:#FE5B35}
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: #FE5B35 }
.checkbox-item input[type="checkbox"]:checked + label::after, .checkbox-item input[type="radio"]:checked + label::after { color: white; background-color: #FE5B35 }

0 comments on commit 3a0571b

Please sign in to comment.