PluginProbe ʕ •ᴥ•ʔ
VK Blocks / 1.126.3
VK Blocks v1.126.3
1.126.4 1.126.3 1.126.1 1.126.2 1.126.0 1.125.0 1.124.0 1.123.0 1.122.0 1.121.0 1.120.0 1.119.2 1.119.1 1.119.0 1.118.7 1.82.0.0 1.82.0.1 1.83.0.0 1.83.0.1 1.84.0.0 1.84.0.1 1.85.0.2 1.85.0.3 1.85.1.0 1.85.1.1 1.86.0.0 1.86.0.1 1.86.1.0 1.87.0.0 1.87.0.1 1.88.0.1 1.88.0.2 1.89.0.0 1.9.2 1.90.0.0 1.90.0.1 1.90.1.1 1.91.0.0 1.91.1.1 1.92.0.0 1.92.0.1 1.92.1.0 1.92.1.1 1.93.0.0 trunk 1.93.0.1 0.1.1 1.93.1.0 0.10.3 1.93.1.1 0.11.0 1.94.0.0 0.12.6 1.94.0.1 0.15.1 1.94.1.0 0.16.2 1.94.2.1 0.17.6 1.94.2.2 0.2.2 1.95.0.3 0.22.4 1.95.0.4 0.26.7 1.96.2.0 0.3.2 1.96.2.1 0.31.0 1.97.0.1 0.35.5 1.97.0.2 0.37.5 1.99.0.0 0.38.8 1.99.0.1 0.39.4 0.4.7 0.41.0 0.42.0 0.44.13 0.45.2 0.46.1 0.47.0 0.48.0 0.49.8 0.5.2 0.50.3 0.51.0 0.52.2 0.53.2 0.54.0 0.55.0 0.56.2 0.56.3 0.57.6 0.58.10 0.59.0 0.6.0 0.60.1 0.61.2 0.7.1 0.8.2 1.0.16 1.10.0 1.100.0.0 1.100.0.1 1.102.0.0 1.102.0.1 1.103.0.0 1.104.0.0 1.104.0.1 1.105.1.0 1.105.1.1 1.106.0.0 1.106.0.1 1.107.0.0 1.107.0.1 1.107.0.2 1.108.0.0 1.108.0.1 1.109.0.0 1.109.0.1 1.11.4 1.110.0.0 1.110.0.1 1.111.0.0 1.111.0.1 1.111.0.2 1.112.0.0 1.112.0.1 1.113.0.0 1.113.0.1 1.114.0.0 1.114.0.1 1.114.2.0 1.114.2.1 1.115.0.0 1.115.0.1 1.115.1.0 1.115.1.1 1.115.2.0 1.115.2.1 1.116.0.0 1.116.0.1 1.116.1.0 1.116.1.1 1.116.2.0 1.117.0.0 1.117.0.1 1.117.1.0 1.118.2 1.118.5 1.12.0 1.13.2 1.14.1 1.15.1 1.16.11 1.17.0 1.18.6 1.19.0 1.19.1 1.2.3 1.20.7 1.21.0 1.22.4 1.23.0 1.24.5 1.25.1 1.26.2 1.27.7.2 1.28.0.1 1.29.2.0 1.3.9 1.30.0.1 1.31.0.1 1.32.0.2 1.33.2.1 1.36.1.5 1.37.0.0 1.39.2.1 1.4.6 1.40.0.1 1.40.1.0 1.40.1.1 1.41.0.0 1.41.0.1 1.41.2.2 1.41.2.3 1.43.0.0 1.43.0.1 1.43.0.2 1.44.0.0 1.44.0.1 1.45.0.0 1.45.0.1 1.46.0.0 1.46.0.1 1.47.0.0 1.47.0.1 1.47.1.0 1.48.0.0 1.48.0.1 1.48.0.2 1.48.1.0 1.48.1.1 1.5.0 1.50.0.0 1.50.0.1 1.51.0.0 1.51.0.1 1.52.0.0 1.52.0.1 1.53.0.0 1.53.0.1 1.54.0.0 1.54.0.1 1.55.0.0 1.55.0.1 1.56.0.0 1.56.0.1 1.57.0.0 1.57.0.2 1.57.0.3 1.57.0.4 1.57.0.5 1.57.1.0 1.57.1.1 1.57.1.2 1.58.0.0 1.58.0.1 1.59.0.0 1.59.0.1 1.6.0 1.60.0.0 1.60.0.1 1.63.0.0 1.63.0.1 1.64.0.0 1.64.0.1 1.64.1.0 1.64.1.2 1.67.0.0 1.67.0.1 1.68.0.0 1.68.0.1 1.69.0.0 1.69.0.1 1.69.1.1 1.69.1.2 1.7.1 1.70.0.0 1.70.0.1 1.71.0.0 1.71.0.1 1.72.0.0 1.72.1.0 1.72.1.1 1.73.0.0 1.73.0.1 1.74.0.0 1.74.0.1 1.75.0.0 1.75.1.0 1.75.1.1 1.76.0.0 1.76.0.1 1.76.1.0 1.76.1.1 1.76.2.0 1.76.2.1 1.77.0.0 1.77.0.1 1.78.0.0 1.78.0.1 1.79.0.0 1.79.0.1 1.79.0.2 1.79.0.3 1.79.1.0 1.79.1.1 1.8.2 1.80.1.0 1.80.1.1 1.80.1.2 1.81.0.1 1.81.0.2
vk-blocks / src / components / scroll-hint / styles / _group.scss
vk-blocks / src / components / scroll-hint / styles Last commit date
_base.scss 1 week ago _group.scss 1 week ago _table.scss 1 week ago
_group.scss
429 lines
1 @use 'components/scroll-hint/styles/base' as *;
2 @use 'components/scrollbar-styles/scrollbar' as *;
3 @use 'utils/breakpoints' as *;
4
5 /*-------------------------------------------*/
6 /* スクロールヒント - グループブロック用
7 /*-------------------------------------------*/
8
9 // �
10 �通のテキスト要素セレクタ
11 $text-elements: p, h1, h2, h3, h4, h5, h6, li, span, div;
12
13 // 横並びレイアウトの�
14 �通パターン
15 @mixin horizontal-layout {
16 flex-wrap: nowrap;
17
18 > * {
19 flex-shrink: 0;
20 }
21 }
22
23 @mixin scrollable-group-default-child-layout(
24 $set-display: false,
25 $include-grid-auto-columns: true
26 ) {
27 @if $set-display {
28 display: block;
29 }
30
31 > *:not(.is-layout-grid):not(.is-layout-flex) {
32 width: 100%;
33 }
34
35 > .is-layout-grid,
36 > .is-layout-flex {
37 width: auto;
38 }
39
40 > .wp-block-group.is-layout-grid {
41 grid-template-columns: none;
42 grid-auto-flow: column;
43
44 @if $include-grid-auto-columns {
45 grid-auto-columns: 100%;
46 }
47 }
48
49 > .wp-block-group.is-layout-flex {
50 // 中身の�
51 に追従させて、はみ出し分もスクロール可能にする
52 min-width: max-content;
53 @include horizontal-layout;
54 }
55 }
56
57 // 横スクロール
58 @mixin scrollable-group {
59 overflow-x: auto;
60 -webkit-overflow-scrolling: touch;
61 // padding を�
62 に含めて、要素自体のはみ出しを抑制
63 box-sizing: border-box;
64 // モバイルでのオーバースクロール連鎖を抑制
65 overscroll-behavior-inline: contain;
66
67 @include scrollable-group-default-child-layout(true, true);
68
69 // カラムブロックを横並びに保つ
70 &.wp-block-columns,
71 .wp-block-columns {
72 flex-wrap: nowrap;
73 align-items: stretch;
74
75 .wp-block-column {
76 flex-shrink: 0;
77
78 // 注意: テーブルモード(data-table-mode="true")が有効な場合、
79 // view.jsのprocessGroupBlock()関数によって、.wp-block-columnに
80 // min-widthが動的に設定されます。これにより、複数の行にわたって
81 // 同じ列位置のカラム�
82 が統一され、テーブルのような見た目になります。
83
84 // カラム�
85 のすべての要素がコンテンツ�
86 に合わせる
87 > * {
88 max-width: 100%;
89 }
90
91 // テキスト要素は特に最大�
92 を基準にする
93 > p,
94 > h1,
95 > h2,
96 > h3,
97 > h4,
98 > h5,
99 > h6 {
100 max-width: 100%;
101 }
102 }
103 }
104
105 // テーブルモード以外の場合、各カラムがコンテンツ�
106 に応じた�
107 を持つようにする
108 &:not([data-table-mode="true"]) {
109 &.wp-block-columns,
110 .wp-block-columns {
111 .wp-block-column {
112 min-width: max-content;
113 }
114 }
115 }
116
117 // テキスト要素をnowrapにする(オプションが有効な場合のみ)
118 &[data-text-nowrap="true"]="true""] {
119 // グループ�
120 のすべてのテキスト要素
121 #{$text-elements} {
122 white-space: nowrap;
123 }
124
125 // カラムブロック�
126 のテキスト要素
127 &.wp-block-columns,
128 .wp-block-columns {
129 .wp-block-column {
130 #{$text-elements} {
131 white-space: nowrap;
132 }
133 }
134 }
135 }
136
137 // グリッドカラムブロックを横並びに保つ
138 .vk_gridColumn {
139 flex-wrap: nowrap;
140
141 .row {
142 flex-wrap: nowrap;
143 }
144
145 > [class*="col-"]*="col-""],
146 [class*="col-"]*="col-""] {
147 flex-shrink: 0;
148 width: auto;
149 flex: none;
150 max-width: none;
151 }
152 }
153
154 // グリッドカラムカードブロックを横並びに保つ
155 .vk_gridcolcard {
156 // インラインスタイルで設定されたgrid-template-columnsを上書き
157 grid-template-columns: none;
158 grid-auto-flow: column;
159 grid-auto-columns: max-content;
160
161 > * {
162 flex-shrink: 0;
163 }
164 }
165
166 // カードブロックを横並びに保つ
167 .vk_posts {
168 @include horizontal-layout;
169
170 .wp-block-vk-blocks-card-item {
171 width: auto;
172 }
173 }
174
175 // 横並びボタンブロックを横並びに保つ
176 .vk_buttons,
177 .vk_buttons_col {
178 @include horizontal-layout;
179 }
180
181 // 横並びアイコンブロックを横並びに保つ
182 .vk_icons,
183 .vk_icons_col {
184 @include horizontal-layout;
185 }
186
187 // アイコンカードブロックを横並びに保つ
188 .wp-block-vk-blocks-icon-card {
189 @include horizontal-layout;
190
191 .vk_icon-card_item,
192 .wp-block-vk-blocks-icon-card-item {
193 width: auto;
194 }
195 }
196
197 // ギャラリーブロックを横並びに保つ
198 .wp-block-gallery {
199 @include horizontal-layout;
200
201 .wp-block-image,
202 .wp-block-gallery-item {
203 flex-shrink: 0;
204 }
205 }
206
207 // ソーシャルリンクブロックを横並びに保つ
208 .wp-block-social-links {
209 @include horizontal-layout;
210
211 .wp-social-link {
212 flex-shrink: 0;
213 }
214 }
215 }
216
217 @mixin scrollable-group-editor {
218 overflow-x: auto;
219 -webkit-overflow-scrolling: touch;
220 box-sizing: border-box;
221
222 @include scrollable-group-default-child-layout(false, false);
223
224 // カラムブロックを横並びに保つ
225 &.wp-block-columns,
226 .wp-block-columns {
227 flex-wrap: nowrap;
228 align-items: stretch;
229
230 .wp-block-column {
231 flex-shrink: 0;
232
233 // カラム�
234 のすべての要素がコンテンツ�
235 に合わせる
236 > * {
237 max-width: 100%;
238 }
239
240 // テキスト要素は特に最大�
241 を基準にする
242 > p,
243 > h1,
244 > h2,
245 > h3,
246 > h4,
247 > h5,
248 > h6 {
249 width: max-content;
250 max-width: 100%;
251 }
252 }
253 }
254
255 // テーブルモード以外の場合、各カラムがコンテンツ�
256 に応じた�
257 を持つようにする
258 &:not([data-table-mode="true"]) {
259 &.wp-block-columns,
260 .wp-block-columns {
261 .wp-block-column {
262 min-width: max-content;
263 }
264 }
265 }
266
267 // テキスト要素をnowrapにする(オプションが有効な場合のみ)
268 &[data-text-nowrap="true"]="true""] {
269 // グループ�
270 のすべてのテキスト要素
271 #{$text-elements} {
272 white-space: nowrap;
273 }
274
275 // 編集画面のリッチテキストエディタ用
276 div[role="textbox"]="textbox""] {
277 white-space: nowrap !important;
278 }
279
280 // カラムブロック�
281 のテキスト要素
282 &.wp-block-columns,
283 .wp-block-columns {
284 .wp-block-column {
285 #{$text-elements} {
286 white-space: nowrap;
287 }
288 }
289 }
290 }
291
292 // グリッドカラムブロックを横並びに保つ
293 .vk_gridColumn {
294 flex-wrap: nowrap;
295
296 .row {
297 flex-wrap: nowrap;
298 }
299
300 > [class*="col-"]*="col-""],
301 [class*="col-"]*="col-""] {
302 flex-shrink: 0;
303 width: auto;
304 flex: none;
305 max-width: none;
306 }
307 }
308
309 // グリッドカラムカードブロックを横並びに保つ
310 .vk_gridcolcard {
311 // インラインスタイルで設定されたgrid-template-columnsを上書き
312 grid-template-columns: none;
313 grid-auto-flow: column;
314 grid-auto-columns: max-content;
315
316 > * {
317 flex-shrink: 0;
318 }
319 }
320
321 // カードブロックを横並びに保つ
322 .vk_posts {
323 @include horizontal-layout;
324
325 .wp-block-vk-blocks-card-item {
326 width: auto;
327 }
328 }
329
330 // 横並びボタンブロックを横並びに保つ
331 .vk_buttons,
332 .vk_buttons_col {
333 @include horizontal-layout;
334 }
335
336 // 横並びアイコンブロックを横並びに保つ
337 .vk_icons,
338 .vk_icons_col {
339 @include horizontal-layout;
340 }
341
342 // アイコンカードブロックを横並びに保つ
343 .wp-block-vk-blocks-icon-card {
344 @include horizontal-layout;
345
346 .vk_icon-card_item,
347 .wp-block-vk-blocks-icon-card-item {
348 width: auto;
349 }
350 }
351
352 // ギャラリーブロックを横並びに保つ
353 .wp-block-gallery {
354 @include horizontal-layout;
355
356 .wp-block-image,
357 .wp-block-gallery-item {
358 flex-shrink: 0;
359 }
360 }
361
362 // ソーシャルリンクブロックを横並びに保つ
363 .wp-block-social-links {
364 @include horizontal-layout;
365
366 .wp-social-link {
367 flex-shrink: 0;
368 }
369 }
370 }
371
372 /* フロントエンド
373 /*-------------------------------------------*/
374 .wp-block-group {
375 &.is-style-vk-group-scrollable {
376
377 &[data-scroll-breakpoint="group-scrollable-mobile"]="group-scrollable-mobile""] {
378 @media (width < $xs) {
379 @include scrollable-group;
380 @include scrollbar-custom;
381 }
382 }
383
384 &[data-scroll-breakpoint="group-scrollable-tablet"]="group-scrollable-tablet""] {
385 @media (width < $md) {
386 @include scrollable-group;
387 @include scrollbar-custom;
388 }
389 }
390
391 &[data-scroll-breakpoint="group-scrollable-pc"]="group-scrollable-pc""] {
392 @include scrollable-group;
393 @include scrollbar-custom;
394 }
395 }
396 }
397
398 /* 編集画面
399 /*-------------------------------------------*/
400 .editor-styles-wrapper {
401 .wp-block-group {
402 &.is-style-vk-group-scrollable {
403
404 &[data-scroll-breakpoint="group-scrollable-mobile"]="group-scrollable-mobile""] {
405 @media (width < $xs) {
406 @include scrollable-group-editor;
407 @include scrollbar-custom;
408 @include scrollbar-custom-editor-override;
409 }
410 }
411
412 &[data-scroll-breakpoint="group-scrollable-tablet"]="group-scrollable-tablet""] {
413 @media (width < $md) {
414 @include scrollable-group-editor;
415 @include scrollbar-custom;
416 @include scrollbar-custom-editor-override;
417 }
418 }
419
420 &[data-scroll-breakpoint="group-scrollable-pc"]="group-scrollable-pc""] {
421 @include scrollable-group-editor;
422 @include scrollbar-custom;
423 @include scrollbar-custom-editor-override;
424 }
425 }
426 }
427 }
428
429