PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.1
2.15.0 2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 All 82 releases
ablocks / assets / build / blocks / image-hotspot / style.css

style.css in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.9.1, at assets/build/blocks/image-hotspot/style.css

168 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .ablocks-block--image-hotspot > .ablocks-block-container {
2 position: relative;
3 width: 100%;
4 height: auto;
5 margin: 0 auto;
6 display: flex;
7 align-items: center;
8 }
9
10 .ablocks-block--image-hotspot .ablocks-icon.ablocks-icon--close {
11 position: absolute;
12 top: 10px;
13 right: 15px;
14 cursor: pointer;
15 z-index: 100;
16 border-radius: 50%;
17 height: 20px;
18 width: 20px;
19
20 }
21 .ablocks-block--image-hotspot .ablocks-icon.ablocks-icon--close svg{
22 fill: #000;
23 width: 20px;
24 height: 20px;
25 }
26 .ablocks-block--image-hotspot .ablocks-icon.ablocks-icon--close:hover svg{
27 border-radius: 50%;
28 background-color: #d9d9d9;
29 }
30
31 /* .ablocks-block--image-hotspot .ablocks-icon.ablocks-icon--close:hover {
32 background-color: #d9d9d9;
33 } */
34
35 .ablocks-image-hotspot__bg-image {
36 width: 100%;
37 height: auto;
38 object-fit: contain;
39 object-position: center;
40 position: relative;
41 }
42
43
44 .ablocks-image-hotspot__pin{
45 position: absolute;
46 width: 15px;
47 height: 15px;
48 background-color: #d9d9d9;
49 border-radius: 50%;
50 cursor: pointer;
51 z-index: 1;
52 }
53 .ablocks-image-hotspot__tooltip-content {
54 word-wrap: break-word;
55 overflow-wrap:anywhere;
56 position: absolute;
57 z-index: 2;
58 transform: translate(-50%, 40px);
59 pointer-events: auto;
60 }
61
62
63 .ablocks-image-hotspot-tooltip-arrow{
64 position: absolute;
65 width: 1px;
66 height: 1px;
67 border-left: 10px solid transparent;
68 border-right: 10px solid transparent;
69 border-bottom: 10px solid #fff;
70 top: -10px;
71 left: 50%;
72 transform: translate(-48%, -50%) rotate(0deg);
73 }
74
75 .ablocks-block--image-hotspot-child > .ablocks-block-container > .block-editor-inner-blocks > .block-editor-block-list__layout{
76 display: flex;
77 flex-direction: column;
78 gap: 10px;
79 }
80
81 .ablocks-block--image-hotspot-child > .ablocks-block-container {
82 display: none;
83 }
84 .ablocks-image-hotspot__tooltip--active {
85 display: block !important;
86 }
87
88 .ablocks-image-hotspot__pin:after{
89 content: '';
90 position: absolute;
91 background-color: #d9d9d9;
92 border-radius: 50%;
93 cursor: pointer;
94 z-index: 1;
95 height: 100%;
96 width: 100%;
97 }
98
99 @keyframes ablocks-hotspot-puls-effect {
100 0% {
101 transform: scale(1);
102 opacity: 1;
103 }
104 50% {
105 transform: scale( var(--ablocks-hotspot-effect-max-scale, 1.5) );
106 opacity: 0.5;
107 }
108 100% {
109 transform: scale(1);
110 opacity: 1;
111 }
112 }
113
114 @keyframes ablocks-hotspot-soft-beat {
115 0% {
116 transform: scale(1);
117 opacity: 1;
118 }
119 50% {
120 transform: scale( var(--ablocks-hotspot-effect-max-scale, 1.5) );
121 opacity: 0.8;
122 }
123 100% {
124 transform: scale(1);
125 opacity: 1;
126 }
127 }
128
129 @keyframes ablocks-hotspot-glow {
130 0% {
131 box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
132 }
133 50% {
134 box-shadow: 0 0 20px rgba(255, 255, 255, 1);
135 }
136 100% {
137 box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
138 }
139 }
140
141
142 /* Fade in/out */
143 @keyframes ablocks-hotspot-fadeIn {
144 0% { opacity: 0; }
145 100% { opacity: 1; }
146 }
147
148 @keyframes ablocks-hotspot-fadeGrow {
149 0% {
150 transform: translate(var(--ablocks-hotspot-translateX-start, 0px), var(--ablocks-hotspot-translateY-start, 0px)) rotate(0deg) scale(0.6);
151 opacity: 0;
152 }
153 100% {
154 transform: translate(var(--ablocks-hotspot-translateX-end, 0px), var(--ablocks-hotspot-translateY-end, 0px)) rotate(0deg) scale(1);
155 opacity: 1;
156 }
157 }
158
159 @keyframes ablocks-hotspot-slideIn {
160 0% {
161 transform: translate(var(--ablocks-hotspot-translateX-start, 0px), var(--ablocks-hotspot-translateY-start, 0px)) rotate(0deg);
162 opacity: 0;
163 }
164 100% {
165 transform: translate(var(--ablocks-hotspot-translateX-end, 0px), var(--ablocks-hotspot-translateY-end, 0px)) rotate(0deg);
166 opacity: 1;
167 }
168 }