PluginProbe
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder / 51.1.82
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder v51.1.82
51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 51.1.46 51.1.47 51.1.49 All 37 releases
king-addons / includes / admin / css / ai-imagefield.css

ai-imagefield.css in King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder 51.1.82, at includes/admin/css/ai-imagefield.css

188 lines 4.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Styles for AI Image Generation controls in Elementor */
2 .kng-ai-image-field-wrapper {
3 display: flex;
4 flex-direction: column;
5 gap: 6px;
6 margin-top: 8px;
7 width: 100%;
8 }
9 .kng-ai-image-btn-wrapper {
10 display: inline-flex;
11 align-items: center;
12 gap: 6px;
13 width: 100%;
14 }
15 .kng-ai-image-btn-wrapper.is-processing .kng-ai-image-generate-btn {
16 opacity: 0.7;
17 cursor: default;
18 pointer-events: none;
19 }
20 .kng-ai-image-prompt-container {
21 display: flex;
22 flex-direction: column;
23 align-items: stretch;
24 gap: 8px;
25 margin: 8px 0;
26 }
27 .kng-ai-image-prompt-input {
28 flex: 1;
29 padding: 6px 10px;
30 border: 1px solid #ccc;
31 border-radius: 4px;
32 font-size: 12px;
33 min-height: 40px;
34 }
35 .kng-ai-image-prompt-submit,
36 .kng-ai-image-prompt-cancel {
37 display: flex;
38 align-items: center;
39 justify-content: center;
40 width: 32px;
41 height: 32px;
42 padding: 4px;
43 border: 1px solid #ccc;
44 background: #fff;
45 border-radius: 4px;
46 cursor: pointer;
47 transition: box-shadow 0.3s ease, background 0.3s ease;
48 }
49 .kng-ai-image-prompt-submit img,
50 .kng-ai-image-generate-btn img,
51 .kng-ai-image-prompt-cancel img {
52 width: 16px;
53 height: 16px;
54 }
55 .kng-ai-image-prompt-submit:hover,
56 .kng-ai-image-generate-btn:hover {
57 box-shadow: 0 0 8px rgba(91,3,255,0.6);
58 }
59 /* Border animation on preview during processing */
60 .elementor-control-media__preview.king-addons-field-pulsing {
61 animation: kingAddonsPulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1) !important;
62 border: 2px solid #5B03FF !important;
63 }
64 /* Animations for AI Image Generation */
65 @keyframes kingAddonsPulse {
66 0% { box-shadow: 0 0 0 0 rgba(91,3,255,0.4), inset 0 0 0 1px rgba(91,3,255,0.4); }
67 50% { box-shadow: 0 0 0 10px rgba(91,3,255,0.2), inset 0 0 0 5px rgba(91,3,255,0.6); }
68 100% { box-shadow: 0 0 0 0 rgba(91,3,255,0.1), inset 0 0 0 1px rgba(91,3,255,0.4); }
69 }
70 @keyframes kingAddonsRotatePulse {
71 0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
72 50% { transform: scale(1.15) rotate(180deg); filter: brightness(1.2) drop-shadow(0 0 3px rgba(91,3,255,0.7)); }
73 100% { transform: scale(1) rotate(360deg); filter: brightness(1); }
74 }
75 /* Animate button icons when processing */
76 .kng-ai-image-generate-btn.is-processing img,
77 .kng-ai-image-prompt-submit.is-processing img {
78 animation: kingAddonsRotatePulse 2s infinite ease-in-out;
79 }
80 /* Copy AI Text Field button styles to Image Field */
81 .kng-ai-image-generate-btn,
82 .kng-ai-image-prompt-submit {
83 display: flex;
84 align-items: center;
85 justify-content: center;
86 height: 32px;
87 border-radius: 12px;
88 border: none;
89 cursor: pointer;
90 transition: box-shadow 0.3s ease, background 0.3s ease;
91 padding: 0 12px;
92 margin: 0;
93 box-sizing: border-box;
94 overflow: hidden;
95 width: 100%;
96 }
97 .kng-ai-image-generate-btn,
98 .kng-ai-image-prompt-submit {
99 background: #5B03FF;
100 color: #ffffff;
101 }
102 .kng-ai-image-generate-btn:hover,
103 .kng-ai-image-prompt-submit:hover {
104 background: #4A02D6;
105 box-shadow: none;
106 }
107 .kng-ai-image-generate-btn:active,
108 .kng-ai-image-prompt-submit:active {
109 background: #3D01B0;
110 }
111 .kng-ai-image-prompt-cancel {
112 display: flex;
113 align-items: center;
114 justify-content: center;
115 height: 32px;
116 width: 50px;
117 border-radius: 12px;
118 border: none;
119 cursor: pointer;
120 transition: box-shadow 0.3s ease, background 0.3s ease;
121 padding: 0 12px;
122 margin: 0;
123 box-sizing: border-box;
124 overflow: hidden;
125 background: #f5f5f5;
126 color: #333333;
127 }
128 .kng-ai-image-prompt-cancel:hover {
129 background: #e0e0e0;
130 box-shadow: 0 0 6px rgba(0,0,0,0.15);
131 }
132 /* Style selects in prompt container */
133 .kng-ai-image-prompt-container select {
134 height: 32px;
135 padding: 0 8px;
136 border: 1px solid #ccc;
137 border-radius: 4px;
138 background: #fff;
139 }
140 /* Layout for each row in prompt UI */
141 .kng-ai-image-field-row {
142 display: flex;
143 align-items: center;
144 gap: 6px;
145 }
146 .kng-ai-image-field-row--buttons {
147 justify-content: flex-start;
148 }
149 /* Label for each control */
150 .kng-ai-image-field-label {
151 width: 80px;
152 font-size: 12px;
153 color: #555;
154 flex-shrink: 0;
155 }
156 /* Active state for open button */
157 .kng-ai-image-generate-btn.is-active {
158 background: #cccccc !important;
159 color: #666666 !important;
160 box-shadow: none !important;
161 }
162 /* Cancel cross icon styling */
163 .kng-ai-image-prompt-cancel .kng-ai-image-cancel-icon {
164 font-size: 16px;
165 line-height: 1;
166 color: #555;
167 }
168 .kng-ai-image-prompt-cancel:hover .kng-ai-image-cancel-icon {
169 color: #333;
170 }
171
172 .kng-ai-image-prompt-submit.is-processing,
173 .kng-ai-image-prompt-submit::disabled {
174 color: #ffffff !important;
175 }
176
177 .kng-ai-image-bg-checkbox-label {
178 display: inline-flex;
179 }
180
181 .kng-ai-image-prompt-note {
182 padding-bottom: 20px;
183 border-bottom: 1px solid #ccc;
184 color: var(--e-a-color-txt-muted);
185 font-size: 11px;
186 font-style: italic;
187 line-height: 1.4;
188 }