animate-css
9 years ago
font-awesome
9 years ago
jquery-ui
9 years ago
select2
9 years ago
wpmu-card-list.scss
9 years ago
wpmu-html.scss
9 years ago
wpmu-ui.scss
9 years ago
wpmu-vnav.scss
9 years ago
wpmu-html.scss
369 lines
| 1 | /** |
| 2 | * WPMU Dev HTML helper styles |
| 3 | * (Philipp Stracker for WPMU Dev) |
| 4 | * |
| 5 | * This file is included by the WDev()->html->element() function. |
| 6 | * |
| 7 | * @since 1.1.0 |
| 8 | */ |
| 9 | |
| 10 | /*** |
| 11 | * GENERAL INPUT FIELDS * |
| 12 | ***/ |
| 13 | |
| 14 | #wpwrap, |
| 15 | body { |
| 16 | .wpmui-input-wrapper.wpmui-loading { |
| 17 | & > * { |
| 18 | opacity: 0.25; |
| 19 | cursor: default; |
| 20 | } |
| 21 | |
| 22 | .wpmui-field-input { |
| 23 | background-color: #E5E5E5; |
| 24 | } |
| 25 | |
| 26 | &:after { |
| 27 | top: 5px; /* compensate for the field margin */ |
| 28 | bottom: 5px; /* compensate for the field margin */ |
| 29 | background-color: transparent; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | .wpmui-field-description { |
| 34 | display: block; |
| 35 | margin: 10px 4px 10px 0; |
| 36 | color: #666; |
| 37 | font-size: 0.9em; |
| 38 | font-weight: normal; |
| 39 | } |
| 40 | |
| 41 | .wpmui-field-input, |
| 42 | .wpmui-field-button { |
| 43 | margin-top: 6px; |
| 44 | margin-bottom: 6px; |
| 45 | vertical-align: top; |
| 46 | display: inline-block; |
| 47 | position: relative; |
| 48 | } |
| 49 | |
| 50 | .wpmui-field-input.button, |
| 51 | .wpmui-field-input.button-primary, |
| 52 | .wpmui-field-button { |
| 53 | margin-right: 6px; |
| 54 | } |
| 55 | |
| 56 | .wpmui-field-label { |
| 57 | display: block; |
| 58 | clear: both; |
| 59 | margin: 2px 0; |
| 60 | font-style: normal; |
| 61 | color: #222; |
| 62 | |
| 63 | &.inline-label { |
| 64 | display: inline-block; |
| 65 | margin: 6px 10px 6px 0; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | h3.wpmui-field-label { |
| 70 | margin-bottom: 10px; |
| 71 | } |
| 72 | |
| 73 | .wpmui-label-before, |
| 74 | .wpmui-label-after { |
| 75 | display: inline-block; |
| 76 | margin: 6px; |
| 77 | line-height: 28px; |
| 78 | vertical-align: top; |
| 79 | |
| 80 | .wpmui-field-input, |
| 81 | .wpmui-field-button { |
| 82 | margin-top: 0; |
| 83 | margin-bottom: 0; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | .wpmui-label-before { |
| 88 | margin-left: 0; |
| 89 | } |
| 90 | |
| 91 | /* Styles used to display input elements inside Widget Admin */ |
| 92 | .widget-content .wpmui-wrapper { |
| 93 | display: block; |
| 94 | margin: 1em 0; |
| 95 | |
| 96 | .wpmui-field-label { |
| 97 | margin: 0; |
| 98 | } |
| 99 | |
| 100 | .wpmui-field-description { |
| 101 | margin: 0; |
| 102 | } |
| 103 | |
| 104 | .wpmui-field-input, |
| 105 | .wpmui-field-button { |
| 106 | margin-top: 4px; |
| 107 | margin-bottom: 0; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /* horizontal separator */ |
| 112 | .wpmui-separator { |
| 113 | border-bottom: 1px solid #E5E5E5; |
| 114 | margin: 15px 0; |
| 115 | } |
| 116 | |
| 117 | /* vertical separator */ |
| 118 | .wpmui-divider { |
| 119 | position: absolute; |
| 120 | right: 20px; |
| 121 | top: 0; |
| 122 | bottom: 0; |
| 123 | |
| 124 | border-right: 1px solid #E5E5E5; |
| 125 | } |
| 126 | |
| 127 | .wpmui-hidden { |
| 128 | display: none; |
| 129 | visibility: hidden; |
| 130 | } |
| 131 | |
| 132 | .wpmui-fa { |
| 133 | font-family: Fontawesome440 !important; |
| 134 | } |
| 135 | |
| 136 | .no-click { |
| 137 | cursor: default; |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | /*** |
| 142 | * HTML BLOCK (read only) * |
| 143 | ***/ |
| 144 | #wpwrap, |
| 145 | body { |
| 146 | .wpmui-html-text-wrapper { |
| 147 | label { |
| 148 | cursor: default; |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /*** |
| 154 | * CHECKBOX * |
| 155 | ***/ |
| 156 | #wpwrap, |
| 157 | body { |
| 158 | .wpmui-field-checkbox { |
| 159 | margin: 6px 4px 0 0; |
| 160 | position: absolute; |
| 161 | left: 0; |
| 162 | top: 0; |
| 163 | } |
| 164 | |
| 165 | .wpmui-checkbox-wrapper { |
| 166 | margin: 6px auto; |
| 167 | position: relative; |
| 168 | display: inline-block; |
| 169 | line-height: 28px; |
| 170 | |
| 171 | .wpmui-checkbox-caption { |
| 172 | padding-left: 24px; |
| 173 | font-weight: 500; |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | .wpmui-checkbox-list { |
| 178 | border: 1px solid #e5e5e5; |
| 179 | padding: 0 5px; |
| 180 | background: #FFFFFF; |
| 181 | |
| 182 | max-height: 320px; |
| 183 | overflow: auto; |
| 184 | |
| 185 | .wpmui-checkbox-wrapper { |
| 186 | margin: 0; |
| 187 | } |
| 188 | |
| 189 | .wpmui-no-checkbox .wpmui-checkbox-caption { |
| 190 | padding: 0; |
| 191 | } |
| 192 | |
| 193 | .wpmui-group { |
| 194 | margin-bottom: 10px; |
| 195 | |
| 196 | .wpmui-parent .wpmui-checkbox-caption { |
| 197 | font-weight: 600; |
| 198 | } |
| 199 | |
| 200 | .wpmui-child { |
| 201 | margin-left: 24px; |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /*** |
| 208 | * RADIO SLIDER * |
| 209 | ***/ |
| 210 | #wpwrap, |
| 211 | body { |
| 212 | .wpmui-radio-slider-wrapper { |
| 213 | clear: both; |
| 214 | |
| 215 | .wpmui-field-label { |
| 216 | cursor: default; |
| 217 | } |
| 218 | |
| 219 | .wpmui-label-before, |
| 220 | .wpmui-label-after { |
| 221 | line-height: 18px; |
| 222 | margin-top: 3px; |
| 223 | margin-bottom: 3px; |
| 224 | } |
| 225 | |
| 226 | .wpmui-radio-slider { |
| 227 | position: relative; |
| 228 | display: inline-block; |
| 229 | |
| 230 | width: 40px; |
| 231 | height: 18px; |
| 232 | margin: 3px 0; |
| 233 | |
| 234 | border-radius: 10px; |
| 235 | background: rgb(176, 176, 176); |
| 236 | opacity: .8; |
| 237 | overflow: visible; |
| 238 | cursor: pointer; |
| 239 | |
| 240 | &:hover { |
| 241 | opacity: 1; |
| 242 | } |
| 243 | |
| 244 | &[readonly]], |
| 245 | &[readonly]]:hover { |
| 246 | opacity: 0.5; |
| 247 | cursor: default; |
| 248 | |
| 249 | .wpmui-toggle { |
| 250 | opacity: .7; |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | &.on { |
| 255 | background: #6BBB1A; /* rgb( 107, 187, 26 ) */ |
| 256 | |
| 257 | .wpmui-toggle { |
| 258 | left: 21px; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | .wpmui-toggle { |
| 263 | position: absolute; |
| 264 | display: inline-block; |
| 265 | |
| 266 | left: 0; |
| 267 | width: 12px; |
| 268 | height: 12px; |
| 269 | margin: 3px; |
| 270 | |
| 271 | background: #F4F4F4; |
| 272 | border-radius: 50%; |
| 273 | transition: all .2s ease-in-out; |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | .wpmui-label-before { |
| 278 | color: #000; |
| 279 | } |
| 280 | |
| 281 | .wpmui-label-after { |
| 282 | color: #CCC; |
| 283 | } |
| 284 | |
| 285 | &.on { |
| 286 | .wpmui-label-before { |
| 287 | color: #CCC; |
| 288 | } |
| 289 | |
| 290 | .wpmui-label-after { |
| 291 | color: #390; /* rgb( 51, 153, 0 ) */ |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | &.reverse-wrapper { |
| 296 | .wpmui-radio-slider { |
| 297 | background: #6BBB1A; /* rgb( 107, 187, 26 ) */ |
| 298 | } |
| 299 | |
| 300 | .wpmui-label-before { |
| 301 | color: #390; /* rgb( 51, 153, 0 ) */ |
| 302 | } |
| 303 | |
| 304 | .wpmui-label-after { |
| 305 | color: #CCC; |
| 306 | } |
| 307 | |
| 308 | &.on { |
| 309 | .wpmui-radio-slider { |
| 310 | background: #B0B0B0; |
| 311 | } |
| 312 | |
| 313 | .wpmui-label-before { |
| 314 | color: #CCC; |
| 315 | } |
| 316 | |
| 317 | .wpmui-label-after { |
| 318 | color: #000; |
| 319 | } |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | &.inp-before-wrapper { |
| 324 | position: relative; |
| 325 | display: block; |
| 326 | |
| 327 | .wpmui-field-label { |
| 328 | margin-left: 50px; |
| 329 | } |
| 330 | |
| 331 | .wpmui-radio-slider { |
| 332 | position: absolute; |
| 333 | left: 0; |
| 334 | top: 0; |
| 335 | } |
| 336 | } |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | /*** |
| 341 | * HTML TABLE * |
| 342 | ***/ |
| 343 | |
| 344 | .wpmui-html-table { |
| 345 | width: 100%; |
| 346 | clear: both; |
| 347 | margin: 10px 0; |
| 348 | |
| 349 | background: #FFF; |
| 350 | border: 1px solid #e5e5e5; |
| 351 | border-spacing: 0; |
| 352 | -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04); |
| 353 | box-shadow: 0 1px 1px rgba(0,0,0,.04); |
| 354 | |
| 355 | td, |
| 356 | th { |
| 357 | line-height: 24px; |
| 358 | padding: 8px 6px; |
| 359 | vertical-align: top; |
| 360 | font-size: 12px; |
| 361 | overflow: hidden; |
| 362 | color: #555; |
| 363 | } |
| 364 | |
| 365 | thead tr th { |
| 366 | border-bottom: 1px solid #e1e1e1; |
| 367 | color: #333; |
| 368 | } |
| 369 | } |