_background.scss
1 year ago
_category-checkboxes.scss
1 year ago
_category-filter.scss
1 year ago
_checkbox-icons.scss
1 year ago
_custom-fields.scss
1 year ago
_elements.scss
1 year ago
_form-table.scss
1 year ago
_help-tab.scss
1 year ago
_inner-table.scss
1 year ago
_inputs.scss
1 year ago
_layout-example-columns.scss
1 year ago
_layout-example-grid.scss
1 year ago
_layout-example-masonry.scss
1 year ago
_layout-examples.scss
1 year ago
_layout.scss
1 year ago
_list-radio-buttons.scss
1 year ago
_misc.scss
1 year ago
_screenshots.scss
1 year ago
_sticky-views.scss
1 year ago
_structure.scss
1 year ago
_template.scss
1 year ago
_view-info.scss
1 year ago
_checkbox-icons.scss
60 lines
| 1 | /* ------------------------------------------------- |
| 2 | Replace checkboxes with icons |
| 3 | ------------------------------------------------- */ |
| 4 | |
| 5 | input[type=checkbox]=checkbox] { |
| 6 | display: none; |
| 7 | |
| 8 | // keep the inherited margins, adjust width if more space is necessary |
| 9 | + label { |
| 10 | &:before { |
| 11 | display: inline-block; |
| 12 | font-size: 18px; |
| 13 | width: 1em; |
| 14 | position: relative; |
| 15 | top: 1px; |
| 16 | |
| 17 | /* unchecked icon */ |
| 18 | content: ""; |
| 19 | color: $blue; |
| 20 | background: $blue; |
| 21 | -webkit-mask: url('../img/square-regular.svg') center center no-repeat; |
| 22 | mask: url('../img/square-regular.svg') center center no-repeat; |
| 23 | } |
| 24 | |
| 25 | &:hover:before { |
| 26 | color: $orange; |
| 27 | } |
| 28 | |
| 29 | } |
| 30 | |
| 31 | &:checked + label { |
| 32 | &:before { |
| 33 | /* checked icon */ |
| 34 | content: ""; |
| 35 | -webkit-mask: url('../img/check-square-regular.svg') center center no-repeat; |
| 36 | mask: url('../img/check-square-regular.svg') center center no-repeat; |
| 37 | } |
| 38 | |
| 39 | &:hover:before { |
| 40 | color: $orange; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | &:disabled + label { |
| 45 | &:before { |
| 46 | /* disabled icon */ |
| 47 | content: ""; |
| 48 | -webkit-mask: url('../img/minus-square-regular.svg') center center no-repeat; |
| 49 | mask: url('../img/minus-square-regular.svg') center center no-repeat; |
| 50 | color: $grayedout; |
| 51 | background: $grayedout; |
| 52 | } |
| 53 | |
| 54 | &:hover:before { |
| 55 | color: $grayedout; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | } |
| 60 |