| 1 |
/** |
| 2 |
* == Structure of Radio Container == |
| 3 |
<div class="wpbc_ui_radio_section"> |
| 4 |
<div class="wpbc_ui_radio_container"> |
| 5 |
<div class="wpbc_ui_radio_choice"> |
| 6 |
<input class="wpbc_ui_radio_choice_input" type="radio" /> |
| 7 |
<label class="wpbc_ui_radio_choice_title" for="..." >Full Day(s) Bookings</label> |
| 8 |
<p class="wpbc_ui_radio_choice_description">Receive bookings for full date(s). No times selection.</p> |
| 9 |
</div> |
| 10 |
</div> |
| 11 |
<div class="wpbc_ui_radio_container" data-selected="true" tabindex="0"> |
| 12 |
... |
| 13 |
</div> |
| 14 |
</div> |
| 15 |
*/ |
| 16 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 17 |
/* Containers */ |
| 18 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 19 |
.wpbc_ui_radio_section { |
| 20 |
flex: 1 1 100%; |
| 21 |
display: flex; |
| 22 |
flex-flow: column nowrap; |
| 23 |
align-items: center; |
| 24 |
justify-content: center; |
| 25 |
} |
| 26 |
.wpbc_ui_radio_section.wpbc_ui_radio_section_as_row{ |
| 27 |
flex-flow: row wrap; |
| 28 |
align-items: flex-start; |
| 29 |
justify-content: center; |
| 30 |
} |
| 31 |
.wpbc_ui_radio_container { |
| 32 |
display: flex; |
| 33 |
flex-direction: column; |
| 34 |
align-items: stretch; |
| 35 |
justify-content: flex-start; |
| 36 |
padding: 0; |
| 37 |
border: 0px solid #e0e0e0; |
| 38 |
box-shadow: 0 0 1px 1px #cccccc78; |
| 39 |
border-radius: 2px; |
| 40 |
width: 100%; |
| 41 |
cursor: pointer; |
| 42 |
background: #fff; |
| 43 |
max-width: 420px; |
| 44 |
margin: 10px 1em 10px 0; |
| 45 |
} |
| 46 |
.wpbc_ui_radio_container[data-selected] { |
| 47 |
border: 0px solid var(--wp-admin-theme-color, #007cba); |
| 48 |
box-shadow: 0 0 0px 2px var(--wp-admin-theme-color, #007cba); |
| 49 |
border-radius: 4px; |
| 50 |
} |
| 51 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 52 |
/* Disabled */ |
| 53 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 54 |
.wpbc_ui_radio_container.disabled{ |
| 55 |
cursor: default; |
| 56 |
} |
| 57 |
.wpbc_ui_radio_container.disabled a{ |
| 58 |
cursor: pointer; |
| 59 |
} |
| 60 |
|
| 61 |
.wpbc_ui_radio_container.disabled input.wpbc_ui_radio_choice_input { |
| 62 |
pointer-events: none; |
| 63 |
cursor: default !important; |
| 64 |
} |
| 65 |
.wpbc_ui_radio_container.disabled label.wpbc_ui_radio_choice_title{ |
| 66 |
color:#aaa; |
| 67 |
cursor: default !important; |
| 68 |
} |
| 69 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 70 |
div.wpbc_ui_radio_choice{ |
| 71 |
padding: 16px; |
| 72 |
} |
| 73 |
|
| 74 |
input.wpbc_ui_radio_choice_input{ |
| 75 |
|
| 76 |
} |
| 77 |
label.wpbc_ui_radio_choice_title{ |
| 78 |
|
| 79 |
} |
| 80 |
.wpbc_ui_radio_text_right { |
| 81 |
float: right; |
| 82 |
/*display: inline;*/ |
| 83 |
position: relative; |
| 84 |
/*padding-inline-start: var(--wpbc_form-padding-between-label-checkbox-radio);*/ |
| 85 |
/*font-size: var(--wpbc_form-label-size-font-size);*/ |
| 86 |
/*vertical-align: middle;*/ |
| 87 |
margin: 3px 0 0; |
| 88 |
color: #529933; |
| 89 |
} |
| 90 |
p.wpbc_ui_radio_choice_description{ |
| 91 |
|
| 92 |
} |
| 93 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 94 |
/* Footer */ |
| 95 |
/* -------------------------------------------------------------------------------------------------------------------- */ |
| 96 |
div.wpbc_ui_radio_footer { |
| 97 |
padding: 0 16px; |
| 98 |
border-top: 1px solid #e8e8e8; |
| 99 |
} |
| 100 |
div.wpbc_ui_radio_footer p.wpbc_ui_radio_choice_description{ |
| 101 |
padding: 0 0 6px; |
| 102 |
font-size: 13px; |
| 103 |
} |
| 104 |
|