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-textfield.css

ai-textfield.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-textfield.css

145 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Refined styles for AI prompt UI in Elementor editor */
2 .ai-prompt-container {
3 display: inline-flex;
4 align-items: center;
5 margin: 8px 0; /* vertical spacing */
6 gap: 6px;
7 }
8 .ai-prompt-input {
9 background: #ffffff; /* white background */
10 color: #333333;
11 padding: 8px 12px;
12 font-size: 14px;
13 border: 1px solid #cccccc;
14 border-radius: 4px;
15 flex: 1 1 auto;
16 max-width: 300px;
17 transition: border-color 0.3s ease, box-shadow 0.3s ease;
18 }
19 .ai-prompt-input:focus {
20 border-color: #5B03FF;
21 box-shadow: 0 0 4px rgba(91,3,255,0.4);
22 outline: none;
23 }
24 .ai-prompt-submit,
25 .ai-prompt-cancel {
26 display: flex;
27 align-items: center;
28 justify-content: center;
29 width: 48px;
30 height: 32px;
31 border-radius: 8px;
32 border: none;
33 cursor: pointer;
34 transition: background-color 0.15s ease;
35 padding: 0; /* Reset default button padding */
36 margin: 0; /* Reset any default margins */
37 box-sizing: border-box;
38 overflow: hidden;
39 }
40 /* Send is the one action of the prompt row, so it stays a solid fill while the
41 Cancel beside it stays neutral. A tint here read as unavailable, and the icon
42 file is white, which all but vanished on a pale ground. */
43 .ai-prompt-submit {
44 background: #5B03FF;
45 border-color: transparent;
46 color: #ffffff;
47 }
48 .ai-prompt-submit:hover {
49 background: #4A02D6;
50 border-color: transparent;
51 box-shadow: none;
52 }
53 .ai-prompt-submit:active {
54 background: #3D01B0;
55 }
56 .ai-prompt-cancel {
57 background: #f5f5f5;
58 color: #333333;
59 }
60 .ai-prompt-cancel:hover {
61 background: #e0e0e0;
62 box-shadow: none;
63 }
64 /*
65 * AI Generate / AI Change buttons in the Elementor control panel.
66 *
67 * These used to be styled inline from JavaScript with a gradient and a glow on
68 * hover. Keeping them here gives them real interaction states and one place to
69 * change. The pair is deliberately identical: they are peers, and the label
70 * says which is which.
71 */
72 .ai-generate-btn,
73 .ai-change-btn {
74 /* A violet tint rather than a solid fill: the panel's other controls are
75 quiet, and a saturated block among them reads as an advertisement.
76 Values here are for the light panel; the dark panel overrides them. */
77 --ka-ai-btn-bg: rgba(91, 3, 255, .10);
78 --ka-ai-btn-bg-hover: rgba(91, 3, 255, .17);
79 --ka-ai-btn-bg-active: rgba(91, 3, 255, .24);
80 --ka-ai-btn-fg: #4A02D6;
81 --ka-ai-btn-ring: #5B03FF;
82
83 display: inline-flex;
84 align-items: center;
85 justify-content: center;
86 gap: 6px;
87 padding: 6px 12px;
88 border: none;
89 border-radius: 4px;
90 background: var(--ka-ai-btn-bg);
91 color: var(--ka-ai-btn-fg);
92 font-family: inherit;
93 font-size: 12px;
94 font-weight: 600;
95 line-height: 1.2;
96 letter-spacing: 0.01em;
97 white-space: nowrap;
98 cursor: pointer;
99 box-shadow: none;
100 transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
101 }
102
103 .ai-generate-btn:hover,
104 .ai-change-btn:hover {
105 background: var(--ka-ai-btn-bg-hover);
106 color: var(--ka-ai-btn-fg);
107 box-shadow: none;
108 }
109
110 /* A small press response reads as more responsive than a glow. */
111 .ai-generate-btn:active,
112 .ai-change-btn:active {
113 background: var(--ka-ai-btn-bg-active);
114 transform: translateY(1px);
115 }
116
117 .ai-generate-btn:focus-visible,
118 .ai-change-btn:focus-visible {
119 outline: 2px solid var(--ka-ai-btn-ring);
120 outline-offset: 2px;
121 }
122
123 .ai-generate-btn:disabled,
124 .ai-change-btn:disabled {
125 opacity: 0.5;
126 cursor: not-allowed;
127 transform: none;
128 }
129
130 /* The icon files are white, which is invisible on a tint - recolour them to
131 match the label. */
132 .ai-generate-btn img,
133 .ai-change-btn img {
134 filter: brightness(0) saturate(100%) invert(13%) sepia(96%) saturate(6704%) hue-rotate(266deg) brightness(85%) contrast(120%);
135 width: 14px;
136 height: 14px;
137 margin: 0;
138 flex: 0 0 14px;
139 vertical-align: middle;
140 }
141
142 .ai-generate-btn__label {
143 display: inline-block;
144 }
145