@rocketsearch/nuxt-uappi 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
:class="['rocket-search', 'rocket-search__banner-slot', { 'rocket-search--empty': !waiting && !banners.length }]"
|
|
4
|
+
:data-rocket-banner-position="position"
|
|
5
|
+
>
|
|
3
6
|
<!-- Skeleton só com proporção declarada: sem saber a altura, ele é que causaria o pulo. -->
|
|
4
7
|
<div v-if="waiting && ratio" class="rocket-search__banner-skeleton" :style="{ aspectRatio: ratioCss }" aria-hidden="true" />
|
|
5
8
|
|
package/runtime/css/common.css
CHANGED
|
@@ -93,10 +93,12 @@
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
/* DEBUG: ?rocket-search-debug=true contorna e rotula toda posição de vitrine
|
|
97
|
-
vazias
|
|
96
|
+
/* DEBUG: ?rocket-search-debug=true contorna e rotula toda posição de vitrine e de banner —
|
|
97
|
+
inclusive as vazias (o RocketShowcase só as renderiza no debug; o slot do RocketBanner
|
|
98
|
+
existe sempre e sem altura). Mesmo layout da Linx 2.0.0. */
|
|
98
99
|
body.rocket-search-debug {
|
|
99
|
-
& [data-rocket-showcase-position]
|
|
100
|
+
& [data-rocket-showcase-position],
|
|
101
|
+
& [data-rocket-banner-position] {
|
|
100
102
|
--color: #64748b;
|
|
101
103
|
--content: attr(data-rocket-showcase-position);
|
|
102
104
|
position: relative;
|
|
@@ -135,11 +137,19 @@ body.rocket-search-debug {
|
|
|
135
137
|
z-index: 2;
|
|
136
138
|
}
|
|
137
139
|
|
|
138
|
-
/* Posição sem vitrine
|
|
140
|
+
/* Posição sem vitrine/banner */
|
|
139
141
|
&.rocket-search--empty::before {
|
|
140
142
|
content: var(--content) " · vazia";
|
|
141
143
|
}
|
|
142
144
|
|
|
145
|
+
&[data-rocket-banner-position] {
|
|
146
|
+
--content: attr(data-rocket-banner-position);
|
|
147
|
+
|
|
148
|
+
&::after {
|
|
149
|
+
content: "data-rocket-banner-position=\"" attr(data-rocket-banner-position) "\"";
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
143
153
|
&[data-rocket-showcase-position="hero"] {
|
|
144
154
|
--color: #7c3aed;
|
|
145
155
|
--content: "Hero";
|
|
@@ -164,6 +174,36 @@ body.rocket-search-debug {
|
|
|
164
174
|
--color: #2563eb;
|
|
165
175
|
--content: "Antes do footer";
|
|
166
176
|
}
|
|
177
|
+
|
|
178
|
+
&[data-rocket-banner-position="fullbanner"] {
|
|
179
|
+
--color: #db2777;
|
|
180
|
+
--content: "Fullbanner";
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
&[data-rocket-banner-position="menu"] {
|
|
184
|
+
--color: #0891b2;
|
|
185
|
+
--content: "Menu";
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&[data-rocket-banner-position="category"] {
|
|
189
|
+
--color: #65a30d;
|
|
190
|
+
--content: "Categoria";
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&[data-rocket-banner-position="mosaic"] {
|
|
194
|
+
--color: #9333ea;
|
|
195
|
+
--content: "Grade";
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&[data-rocket-banner-position="strip"] {
|
|
199
|
+
--color: #ea580c;
|
|
200
|
+
--content: "Faixa";
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&[data-rocket-banner-position="footer"] {
|
|
204
|
+
--color: #4f46e5;
|
|
205
|
+
--content: "Antes do rodapé";
|
|
206
|
+
}
|
|
167
207
|
}
|
|
168
208
|
}
|
|
169
209
|
|