|
35 | 35 | <template v-if="mainTooltip"> |
36 | 36 | <div v-ripple="rippleColor == 'light' ? 'rgba(255, 255, 255, 0.35)' : ''" @click="toggle = !toggle" |
37 | 37 | v-tooltip="{ content: mainTooltip, placement: tooltipPosition, classes: 'fab-tooltip' }" |
38 | | - class="fab pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
| 38 | + class="fab-main pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
39 | 39 | > |
40 | 40 | <i :class="[ mainIconSize , { rotate: toggle } ,'material-icons main']">{{mainIcon}}</i> |
41 | 41 | <i :class="[ mainIconSize , { rotate: toggle } ,'material-icons close']">add</i> |
42 | 42 | </div> |
43 | 43 | </template> |
44 | 44 | <template v-else> |
45 | 45 | <div v-ripple="rippleColor == 'light' ? 'rgba(255, 255, 255, 0.35)' : ''" @click="toggle = !toggle" |
46 | | - class="fab pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
| 46 | + class="fab-main pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
47 | 47 | > |
48 | 48 | <i :class="[ mainIconSize , { rotate: toggle }, 'material-icons main']">{{mainIcon}}</i> |
49 | 49 | <i :class="[ mainIconSize , { rotate: toggle }, 'material-icons close']">add</i> |
|
53 | 53 | <template v-else> |
54 | 54 | <template v-if="mainTooltip"> |
55 | 55 | <div v-bind:v-tooltip="{ content: mainTooltip, placement: tooltipPosition, classes: 'fab-tooltip'}" |
56 | | - class="fab pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
| 56 | + class="fab-main pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
57 | 57 | > |
58 | 58 | <i class="material-icons md-36 main" :class="{ rotate: toggle }">{{mainIcon}}</i> |
59 | 59 | <i class="material-icons md-36 close" :class="{ rotate: toggle }">add</i> |
60 | 60 | </div> |
61 | 61 | </template> |
62 | 62 | <template v-else> |
63 | | - <div class="fab pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
| 63 | + <div class="fab-main pointer" :style="{ 'background-color': bgColor, 'padding': paddingAmount }" |
64 | 64 | > |
65 | 65 | <i class="material-icons md-36 main" :class="{ rotate: toggle }">{{mainIcon}}</i> |
66 | 66 | <i class="material-icons md-36 close" :class="{ rotate: toggle }">add</i> |
|
340 | 340 | z-index: 999; |
341 | 341 | } |
342 | 342 |
|
343 | | - .fab { |
| 343 | + .fab-main { |
344 | 344 | border-radius: 100px; |
345 | 345 | /*width: 65px;*/ |
346 | 346 | /*height: 65px;*/ |
|
354 | 354 | justify-content: center; |
355 | 355 | } |
356 | 356 |
|
357 | | - .fab .material-icons { |
| 357 | + .fab-main .material-icons { |
358 | 358 | color: white; |
359 | 359 | -webkit-transition: .4s all; |
360 | 360 | -moz-transition: .4s all; |
361 | 361 | transition: .4s all; |
362 | 362 | margin: 0px auto; |
363 | 363 | } |
364 | 364 |
|
365 | | - .fab .material-icons.main { |
| 365 | + .fab-main .material-icons.main { |
366 | 366 | opacity: 1; |
367 | 367 | position: absolute; |
368 | 368 | } |
369 | 369 |
|
370 | | - .fab .material-icons.close { |
| 370 | + .fab-main .material-icons.close { |
371 | 371 | opacity: 0; |
372 | 372 | position: absolute; |
373 | 373 | } |
374 | 374 |
|
375 | | - .fab .material-icons.main.rotate { |
| 375 | + .fab-main .material-icons.main.rotate { |
376 | 376 | -ms-transform: rotate(315deg); /* IE 9 */ |
377 | 377 | -webkit-transform: rotate(315deg); /* Chrome, Safari, Opera */ |
378 | 378 | transform: rotate(315deg); |
|
381 | 381 | transition: opacity .3s ease-in, transform .4s; |
382 | 382 | } |
383 | 383 |
|
384 | | - .fab .material-icons.close.rotate { |
| 384 | + .fab-main .material-icons.close.rotate { |
385 | 385 | -ms-transform: rotate(315deg); /* IE 9 */ |
386 | 386 | -webkit-transform: rotate(315deg); /* Chrome, Safari, Opera */ |
387 | 387 | transform: rotate(315deg); |
|
480 | 480 | /*font-size: 24px !important;*/ |
481 | 481 | } |
482 | 482 |
|
483 | | - .fab { |
| 483 | + .fab-main { |
484 | 484 | /*width: 55px;*/ |
485 | 485 | /*height: 55px;*/ |
486 | 486 | /*padding: 1.5rem;*/ |
487 | 487 | } |
488 | 488 |
|
489 | | - .fab i { |
| 489 | + .fab-main i { |
490 | 490 | /*font-size: 34px !important;*/ |
491 | 491 | } |
492 | 492 |
|
|
0 commit comments