| 1 |
/** |
| 2 |
* All of the CSS for your public-facing functionality should be |
| 3 |
* included in this file. |
| 4 |
*/ |
| 5 |
/** |
| 6 |
* Environment for all styles (variables, additions, etc). |
| 7 |
*/ |
| 8 |
/*--------------------------------------------------------------*/ |
| 9 |
/*--------------------------------------------------------------*/ |
| 10 |
.pk-pin-it { |
| 11 |
--pk-pinterest-pinit-background: #bd081c; |
| 12 |
--pk-pinterest-pinit-background-hover: #ee0a23; |
| 13 |
--pk-pinterest-pinit-color: #FFFFFF; |
| 14 |
--pk-pinterest-pinit-color-hover: #FFFFFF; |
| 15 |
--pk-pinterest-pinit-font-size: 16px; |
| 16 |
} |
| 17 |
|
| 18 |
/*--------------------------------------------------------------*/ |
| 19 |
.pk-pin-it-container { |
| 20 |
position: relative; |
| 21 |
max-width: 100%; |
| 22 |
} |
| 23 |
|
| 24 |
@-webkit-keyframes pk_pin_it_show { |
| 25 |
0% { |
| 26 |
opacity: 0; |
| 27 |
} |
| 28 |
100% { |
| 29 |
opacity: 1; |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
@keyframes pk_pin_it_show { |
| 34 |
0% { |
| 35 |
opacity: 0; |
| 36 |
} |
| 37 |
100% { |
| 38 |
opacity: 1; |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
.pk-pin-it { |
| 43 |
position: absolute; |
| 44 |
top: 1rem; |
| 45 |
left: 1rem; |
| 46 |
color: var(--pk-pinterest-pinit-color) !important; |
| 47 |
text-decoration: none !important; |
| 48 |
border: none !important; |
| 49 |
-webkit-box-shadow: none !important; |
| 50 |
box-shadow: none !important; |
| 51 |
background-color: var(--pk-pinterest-pinit-background); |
| 52 |
width: 2.5rem; |
| 53 |
height: 2.5rem; |
| 54 |
line-height: 2.5rem; |
| 55 |
font-size: var(--pk-pinterest-pinit-font-size); |
| 56 |
text-align: center; |
| 57 |
opacity: 1; |
| 58 |
-webkit-transition: background-color 0.25s ease; |
| 59 |
transition: background-color 0.25s ease; |
| 60 |
z-index: 2; |
| 61 |
} |
| 62 |
|
| 63 |
.pk-pin-it:hover { |
| 64 |
background-color: var(--pk-pinterest-pinit-background-hover); |
| 65 |
color: var(--pk-pinterest-pinit-color-hover); |
| 66 |
} |
| 67 |
|
| 68 |
.pk-pin-it span:first-child { |
| 69 |
display: none; |
| 70 |
} |
| 71 |
|
| 72 |
.pk-pin-it.pk-pin-it-visible { |
| 73 |
-webkit-animation: pk_pin_it_show 0.25s ease; |
| 74 |
animation: pk_pin_it_show 0.25s ease; |
| 75 |
} |
| 76 |
|
| 77 |
.wp-block-gallery .blocks-gallery-image .pk-pin-it, |
| 78 |
.wp-block-gallery .blocks-gallery-item |
| 79 |
.wp-block-gallery.is-cropped .blocks-gallery-image .pk-pin-it, |
| 80 |
.wp-block-gallery.is-cropped .blocks-gallery-item .pk-pin-it { |
| 81 |
width: 2.5rem; |
| 82 |
height: 2.5rem; |
| 83 |
line-height: 2.5rem; |
| 84 |
} |
| 85 |
|