PluginProbe
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder / 51.1.36
King Addons for Elementor – 80+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce, Mega Menu, Popup Builder v51.1.36
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.36, at includes/admin/css/ai-imagefield.css

183 lines 4.8 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: linear-gradient(135deg, #E1CBFF, #5B03FF);
100 color: #ffffff;
101 }
102 .kng-ai-image-generate-btn:hover,
103 .kng-ai-image-prompt-submit:hover {
104 box-shadow: 0 0 8px rgba(91,3,255,0.6);
105 }
106 .kng-ai-image-prompt-cancel {
107 display: flex;
108 align-items: center;
109 justify-content: center;
110 height: 32px;
111 width: 50px;
112 border-radius: 12px;
113 border: none;
114 cursor: pointer;
115 transition: box-shadow 0.3s ease, background 0.3s ease;
116 padding: 0 12px;
117 margin: 0;
118 box-sizing: border-box;
119 overflow: hidden;
120 background: #f5f5f5;
121 color: #333333;
122 }
123 .kng-ai-image-prompt-cancel:hover {
124 background: #e0e0e0;
125 box-shadow: 0 0 6px rgba(0,0,0,0.15);
126 }
127 /* Style selects in prompt container */
128 .kng-ai-image-prompt-container select {
129 height: 32px;
130 padding: 0 8px;
131 border: 1px solid #ccc;
132 border-radius: 4px;
133 background: #fff;
134 }
135 /* Layout for each row in prompt UI */
136 .kng-ai-image-field-row {
137 display: flex;
138 align-items: center;
139 gap: 6px;
140 }
141 .kng-ai-image-field-row--buttons {
142 justify-content: flex-start;
143 }
144 /* Label for each control */
145 .kng-ai-image-field-label {
146 width: 80px;
147 font-size: 12px;
148 color: #555;
149 flex-shrink: 0;
150 }
151 /* Active state for open button */
152 .kng-ai-image-generate-btn.is-active {
153 background: #cccccc !important;
154 color: #666666 !important;
155 box-shadow: none !important;
156 }
157 /* Cancel cross icon styling */
158 .kng-ai-image-prompt-cancel .kng-ai-image-cancel-icon {
159 font-size: 16px;
160 line-height: 1;
161 color: #555;
162 }
163 .kng-ai-image-prompt-cancel:hover .kng-ai-image-cancel-icon {
164 color: #333;
165 }
166
167 .kng-ai-image-prompt-submit.is-processing,
168 .kng-ai-image-prompt-submit::disabled {
169 color: #ffffff !important;
170 }
171
172 .kng-ai-image-bg-checkbox-label {
173 display: inline-flex;
174 }
175
176 .kng-ai-image-prompt-note {
177 padding-bottom: 20px;
178 border-bottom: 1px solid #ccc;
179 color: var(--e-a-color-txt-muted);
180 font-size: 11px;
181 font-style: italic;
182 line-height: 1.4;
183 }