style.css
192 lines
| 1 | /** |
| 2 | * All of the CSS for your public-facing functionality should be |
| 3 | * included in this file. (pro) css |
| 4 | */ |
| 5 | #pi_checkout_field { |
| 6 | display: grid; |
| 7 | grid-template-columns: 1fr 1fr; |
| 8 | grid-column-gap: 15px; |
| 9 | position: relative; |
| 10 | } |
| 11 | |
| 12 | .pi_delivery_type { |
| 13 | grid-column: span 2; |
| 14 | } |
| 15 | |
| 16 | .pi_delivery_type input[type="radio"] { |
| 17 | visibility: hidden; |
| 18 | display: none !important; |
| 19 | } |
| 20 | |
| 21 | .pi_delivery_type .woocommerce-input-wrapper { |
| 22 | display: flex; |
| 23 | } |
| 24 | |
| 25 | .pi_delivery_type .woocommerce-input-wrapper label { |
| 26 | flex: 1; |
| 27 | text-align: center; |
| 28 | padding: 10px; |
| 29 | cursor: pointer; |
| 30 | margin-left:0; |
| 31 | margin-right:0; |
| 32 | } |
| 33 | |
| 34 | .pi_delivery_type .woocommerce-input-wrapper label:first-of-type { |
| 35 | border-radius: 5px 0 0 5px; |
| 36 | } |
| 37 | |
| 38 | .pi_delivery_type .woocommerce-input-wrapper label:last-of-type { |
| 39 | border-radius: 0px 5px 5px 0px; |
| 40 | } |
| 41 | |
| 42 | .pi_delivery_type .input-radio:checked + label { |
| 43 | font-weight: bold; |
| 44 | color: #fff; |
| 45 | } |
| 46 | |
| 47 | .pisol-pickup-add input { |
| 48 | display: none !important; |
| 49 | } |
| 50 | |
| 51 | .pisol-pickup-add { |
| 52 | width: 50%; |
| 53 | padding: 10px; |
| 54 | box-sizing: border-box; |
| 55 | } |
| 56 | |
| 57 | .pisol-location { |
| 58 | padding: 10px; |
| 59 | background: #ccc; |
| 60 | border-radius: 10px; |
| 61 | width: 100% !important; |
| 62 | cursor: pointer; |
| 63 | display: block !important; |
| 64 | box-sizing: border-box; |
| 65 | } |
| 66 | |
| 67 | .pi_delivery_type.pi_rounded .woocommerce-input-wrapper label { |
| 68 | border-radius: 5px 5px 5px 5px; |
| 69 | } |
| 70 | |
| 71 | .pisol-location-radio:checked + label { |
| 72 | background: rgba(0, 119, 255, 0.63); |
| 73 | color: #fff; |
| 74 | } |
| 75 | |
| 76 | .woocommerce-input-wrapper-new { |
| 77 | width: 100%; |
| 78 | } |
| 79 | |
| 80 | #pi_delivery_date_field{ |
| 81 | position: relative; |
| 82 | } |
| 83 | |
| 84 | #pi_delivery_date{ |
| 85 | width:100%; |
| 86 | } |
| 87 | |
| 88 | .pisol_clear_button{ |
| 89 | position: absolute; |
| 90 | width: 10px; |
| 91 | height: 10px; |
| 92 | display: block; |
| 93 | line-height: 10px; |
| 94 | right: 20px; |
| 95 | cursor:pointer; |
| 96 | } |
| 97 | |
| 98 | /* date time approx message */ |
| 99 | .pisol-date-time-approx-message{ |
| 100 | padding:10px; |
| 101 | margin-top:20px; |
| 102 | margin-bottom:20px; |
| 103 | border:1px solid #ccc; |
| 104 | border-radius:6px; |
| 105 | text-align:center; |
| 106 | font-weight:bold; |
| 107 | } |
| 108 | |
| 109 | /* |
| 110 | time picker was hidden in many themes, so this fixes that issue |
| 111 | Time picker hidden issue |
| 112 | */ |
| 113 | .ui-timepicker-standard, #ui-datepicker-div{ |
| 114 | z-index:100000 !important; |
| 115 | } |
| 116 | /* End Time picker hidden issue */ |
| 117 | |
| 118 | #pi_delivery_time_field .select2{ |
| 119 | width:100% !important; |
| 120 | } |
| 121 | |
| 122 | .pi-pickup-location-dropdown-container{ |
| 123 | width:100%; |
| 124 | padding:5px 0px; |
| 125 | } |
| 126 | |
| 127 | .pi-pickup-location-dropdown-container select{ |
| 128 | width:100%; |
| 129 | padding:5px; |
| 130 | } |
| 131 | |
| 132 | .pi_location_row{ |
| 133 | display:flex; |
| 134 | align-items: center; |
| 135 | } |
| 136 | |
| 137 | .pi_location_left{ |
| 138 | width:20%; |
| 139 | margin-right:10px; |
| 140 | } |
| 141 | |
| 142 | #pi_delivery_type_field .woocommerce-input-wrapper .woocommerce-radio-wrapper{ |
| 143 | display:flex; |
| 144 | width:100%; |
| 145 | } |
| 146 | |
| 147 | .pi-location-required{ |
| 148 | color: red; |
| 149 | font-weight: 700; |
| 150 | border: 0!important; |
| 151 | text-decoration: none; |
| 152 | } |
| 153 | |
| 154 | .pi-single-type{ |
| 155 | border-radius:5px !important; |
| 156 | } |
| 157 | |
| 158 | @media (max-width:768px){ |
| 159 | #pi_checkout_field{ |
| 160 | display:block; |
| 161 | } |
| 162 | |
| 163 | .pisol-pickup-add{ |
| 164 | width: 100%; |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | .woocommerce-checkout .blockUI.blockOverlay{ |
| 169 | display:block !important; |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Protect from other CSS that hides select box |
| 174 | */ |
| 175 | #pi_delivery_time_field .select2.select2-container{ |
| 176 | display: block !important; |
| 177 | } |
| 178 | |
| 179 | .pi-js-loading::before { |
| 180 | content: "Loading..."; |
| 181 | position: absolute; |
| 182 | top: 0; |
| 183 | left: 0; |
| 184 | width: 100%; |
| 185 | height: 100%; |
| 186 | background-color: rgba(255, 255, 255, 0.8); |
| 187 | z-index: 10; |
| 188 | text-align: center; |
| 189 | display: flex; |
| 190 | justify-content: center; |
| 191 | align-items: center; |
| 192 | } |