PluginProbe
AI Builder – Generate pages, blocks, images & translate with AI / 2.7.2
AI Builder – Generate pages, blocks, images & translate with AI v2.7.2
2.7.10 2.7.9 2.7.8 2.0.8 2.0.9 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.10 All 122 releases
ai-builder / assets / js / src / editor-blocks / fixed-bg-group / style.css

style.css in AI Builder – Generate pages, blocks, images & translate with AI 2.7.2, at assets/js/src/editor-blocks/fixed-bg-group/style.css

116 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Fixed Background Group Styles */
2
3 /* Frontend Styles */
4 .aibui-fixed-bg-group.fixed-bg-section,
5 .aibui-group-block.fixed-bg-section {
6 position: relative !important;
7 min-height: 100px !important;
8 background-size: cover !important;
9 background-position: center !important;
10 background-repeat: no-repeat !important;
11 background-attachment: fixed !important;
12 overflow: hidden !important;
13 }
14
15 /* Overlay styles - géré par CSS ::before pseudo-element */
16 .aibui-fixed-bg-group.fixed-bg-section::before,
17 .aibui-group-block.fixed-bg-section::before {
18 content: "" !important;
19 position: absolute !important;
20 top: 0 !important;
21 left: 0 !important;
22 width: 100% !important;
23 height: 100% !important;
24 background-color: var(--fixed-bg-overlay-color, rgba(63, 23, 99, 0.8)) !important;
25 z-index: 0 !important;
26 box-shadow:
27 inset 0 80px 80px -60px rgba(0, 0, 0, 0.7), /* haut */
28 inset 0 -80px 80px -60px rgba(0, 0, 0, 0.7); /* bas */
29 pointer-events: none !important;
30 }
31
32 .aibui-fixed-bg-group.fixed-bg-section > *,
33 .aibui-group-block.fixed-bg-section > * {
34 position: relative !important;
35 z-index: 1 !important; /* le contenu reste au-dessus du voile */
36 }
37
38 /* Editor Styles - Solution pour background-attachment: fixed */
39 .editor-styles-wrapper .aibui-fixed-bg-group.fixed-bg-section,
40 .editor-styles-wrapper .aibui-group-block.fixed-bg-section {
41 background-attachment: scroll !important; /* Fallback pour l'éditeur */
42 position: relative !important;
43 min-height: 100px !important;
44 background-size: cover !important;
45 background-position: center !important;
46 background-repeat: no-repeat !important;
47 overflow: hidden !important;
48 }
49
50 /* Overlay styles pour l'éditeur - géré par CSS ::before pseudo-element */
51 .editor-styles-wrapper .aibui-fixed-bg-group.fixed-bg-section::before,
52 .editor-styles-wrapper .aibui-group-block.fixed-bg-section::before {
53 content: "" !important;
54 position: absolute !important;
55 top: 0 !important;
56 left: 0 !important;
57 width: 100% !important;
58 height: 100% !important;
59 background-color: var(--fixed-bg-overlay-color, rgba(63, 23, 99, 0.8)) !important;
60 z-index: 0 !important;
61 box-shadow:
62 inset 0 80px 80px -60px rgba(0, 0, 0, 0.7), /* haut */
63 inset 0 -80px 80px -60px rgba(0, 0, 0, 0.7); /* bas */
64 pointer-events: none !important;
65 }
66
67 .editor-styles-wrapper .aibui-fixed-bg-group.fixed-bg-section > *,
68 .editor-styles-wrapper .aibui-group-block.fixed-bg-section > * {
69 position: relative !important;
70 z-index: 1 !important;
71 }
72
73 /* Indicateur visuel dans l'éditeur */
74 .editor-styles-wrapper .aibui-group-block.fixed-bg-section::after {
75 content: "Fixed Background Group";
76 position: absolute;
77 top: 10px;
78 right: 10px;
79 background: rgba(0, 0, 0, 0.7);
80 color: white;
81 padding: 4px 8px;
82 border-radius: 4px;
83 font-size: 12px;
84 z-index: 2;
85 pointer-events: none;
86 }
87
88 /* Responsive adjustments */
89 @media (max-width: 768px) {
90 .aibui-group-block.fixed-bg-section,
91 .editor-styles-wrapper .aibui-group-block.fixed-bg-section {
92 background-attachment: scroll; /* Mobile fallback */
93 min-height: 300px;
94 }
95 }
96
97 /* Default background image when no image is selected */
98 .aibui-group-block.fixed-bg-section.default-bg {
99 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%236366f1;stop-opacity:1" /><stop offset="100%" style="stop-color:%239f7aea;stop-opacity:1" /></linearGradient></defs><rect width="100%" height="100%" fill="url(%23grad)"/></svg>');
100 }
101
102 /* Overlay color customization */
103 .aibui-group-block.fixed-bg-section .fixed-bg-overlay {
104 position: absolute;
105 top: 0;
106 left: 0;
107 width: 100%;
108 height: 100%;
109 z-index: 0;
110 }
111
112 .aibui-group-block.fixed-bg-section .fixed-bg-overlay + * {
113 position: relative;
114 z-index: 1;
115 }
116