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