_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
_list-radio-buttons.scss
135 lines
| 1 | /* ------------------------------------------------- |
| 2 | List radio buttons |
| 3 | ------------------------------------------------- */ |
| 4 | |
| 5 | .section-radios { |
| 6 | display: flex; |
| 7 | justify-content: space-between; |
| 8 | |
| 9 | > div { |
| 10 | &:first-child { |
| 11 | flex: 0 0 15%; |
| 12 | } |
| 13 | |
| 14 | &:nth-child(2) { |
| 15 | flex: 1 1 auto; // magic |
| 16 | background: $blue_bg; |
| 17 | border-radius: 15px; |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | |
| 23 | .radio-buttons { |
| 24 | input[type=radio]=radio] { |
| 25 | display: none; |
| 26 | |
| 27 | + label { |
| 28 | border-radius: 15px 0 0 15px; |
| 29 | line-height: 30px; |
| 30 | margin-right: 15px; |
| 31 | |
| 32 | &:before { |
| 33 | display: inline-block; |
| 34 | color: #999; |
| 35 | text-align: center; |
| 36 | // 30px wide would make it square and provide enough space before the test, |
| 37 | // but we get 4px from new line in html, |
| 38 | // so 20 wide + 5 left margin + 1 right margin + 4 new line = 30px |
| 39 | font-size: 17px; |
| 40 | margin-left: 5px; |
| 41 | margin-right: 1px; |
| 42 | width: 20px; |
| 43 | |
| 44 | /* unchecked icon */ |
| 45 | content: ""; |
| 46 | -webkit-mask: url('../img/circle-regular.svg') center center no-repeat; |
| 47 | mask: url('../img/circle-regular.svg') center center no-repeat; |
| 48 | } |
| 49 | |
| 50 | &:hover:before { |
| 51 | color: #FF8900; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | &:checked + label { |
| 56 | &:before { |
| 57 | /* checked icon */ |
| 58 | content: "\f192"; |
| 59 | color: $blue; |
| 60 | } |
| 61 | |
| 62 | &:hover:before { |
| 63 | color: $orange; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | &.error + label, |
| 68 | &.error + label:before { |
| 69 | color: red; |
| 70 | } |
| 71 | |
| 72 | &:disabled + label { |
| 73 | color: #AAA; |
| 74 | |
| 75 | &:before { |
| 76 | color: #CCC; |
| 77 | } |
| 78 | |
| 79 | &:hover { |
| 80 | background: transparent; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | &:checked:disabled + label:hover { |
| 85 | background: #EAF7FB; |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | ul.radio-list { |
| 91 | margin: 15px 0; |
| 92 | |
| 93 | li { |
| 94 | margin: 0; |
| 95 | |
| 96 | &.current-selection { |
| 97 | label { |
| 98 | background: $blue_bg; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | label { |
| 103 | width: 100%; |
| 104 | white-space: nowrap; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | .radio-description { |
| 110 | padding: 0 15px; |
| 111 | |
| 112 | p { |
| 113 | margin: 15px 0 15px !important; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | .options { |
| 118 | margin: 0 10px 15px 0; |
| 119 | |
| 120 | // inner div required |
| 121 | > div { |
| 122 | display: inline-block; |
| 123 | |
| 124 | > div { |
| 125 | display: inline-block; |
| 126 | width: 25%; |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | // Add margin to match <p>. Must be after `.options` rules. |
| 132 | .description-inner { |
| 133 | margin: 15px 0; |
| 134 | } |
| 135 |