PluginProbe ʕ •ᴥ•ʔ
VK Blocks / 1.124.0
VK Blocks v1.124.0
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 / extensions / core / navigation / style.scss
vk-blocks / src / extensions / core / navigation Last commit date
style.js 2 months ago style.scss 2 months ago
style.scss
122 lines
1 /*-------------------------------------------*/
2 /* core/navigation : メニュー�
3 目の説明を表示 */
4 /* Show menu item description option */
5 /*-------------------------------------------*/
6
7 /*
8 * コアは `.wp-block-navigation .wp-block-navigation-item__description { display: none; }`
9 * (詳細度 0,2,0)で説明を非表示にしている。
10 * ブロック単位クラスを最外殻 `.wp-block-navigation` に付与した上で、
11 * `.wp-block-navigation.vk-navigation-show-description`(詳細度 0,3,0)で
12 * 確実に上書きする。!important は使わない。
13 *
14 * Core hides the description with `.wp-block-navigation .wp-block-navigation-item__description`
15 * (specificity 0,2,0). We override it with a higher specificity selector
16 * (0,3,0) scoped to the block that has the toggle enabled, without !important.
17 */
18 .wp-block-navigation.vk-navigation-show-description {
19 /*
20 * 説明あり(2行)と説明なし(1行)の�
21 目が混在すると、�
22 目ごとに
23 * 高さが変わる。コアは各�
24 目(li)�
25 でサブメニューの矢印を縦中央に置くため、
26 * �
27 目の高さがバラつくと矢印の縦位置も�
28 目ごとにズレてしまう。
29 * コンテナを align-items: stretch にして�
30 ��
31 目の高さを最も高い�
32 目に
33 * そろえ、矢印の縦位置を安定させる。
34 * (height: stretch ではなくコンテナ側の align-items を使う。後�
35
36 * クロスブラウザで安定し、モバイルのオーバーレイ表示時はコアが
37 * align-items を上書きするため、この指定は横並び時のみ効く。)
38 * Items with a description (2 lines) and without (1 line) end up at
39 * different heights. Core vertically centers the submenu arrow inside each
40 * item, so mismatched item heights make the arrow position drift per item.
41 * Stretch all items to the tallest one's height so the arrow stays put.
42 * (Use the container's align-items, not height: stretch, for cross-browser
43 * stability; in the mobile overlay core overrides align-items, so this only
44 * affects the horizontal layout.)
45 */
46 .wp-block-navigation__container {
47 align-items: stretch;
48 }
49 /*
50 * 高さをそろえても、ラベルは引き続き上端でそろえたい。さらに、�
51 目に背景色や
52 * 枠線を付けるテーマ(ピル型・ボタン型メニュー)でも、説明なし�
53 目の背景や
54 * クリック範囲が隣の説明あり�
55 目より低くならないよう、コンテンツ(<a>)自体を
56 * �
57 目いっぱいに伸ばす。<a> はブロック要素なので、高さを伸ばしてもラベルの
58 * テキストは上端から流れ、ラベルは上にそろったままになる。
59 * Keep labels aligned to the top, and also stretch the content (<a>) to fill
60 * the item height so that—on themes that give menu items a background or
61 * border (pill/button menus)—a description-less item's background and click
62 * area don't come out shorter than its neighbors. The content is a block
63 * element, so stretching its height keeps the label flowing from the top.
64 */
65 .wp-block-navigation__container
66 > .wp-block-navigation-item
67 > .wp-block-navigation-item__content {
68 align-self: stretch;
69 }
70 /*
71 * 矢印(サブメニューインジケーター)は�
72 目の縦中央に固定する。
73 * 上でコンテンツ(<a>)を stretch にしたが、矢印は引き伸ばさず中央へ置き、
74 * 説明あり/なしのどちらの�
75 目でも矢印が同じ高さに来るようにする。
76 * Pin the submenu arrow to the vertical center of the item. The content (<a>)
77 * is stretched above, but the arrow should stay centered (not stretched) so it
78 * lands at the same height whether or not the item has a description.
79 */
80 .wp-block-navigation__container
81 > .wp-block-navigation-item
82 > .wp-block-navigation__submenu-icon {
83 align-self: center;
84 }
85 .wp-block-navigation-item__description {
86 display: block;
87 /*
88 * 説明文は副次�
89 報なのでラベルより一回り小さくし、ラベルとの間に余白を取る。
90 * 色は固定せずテーマの文字色(currentColor)を継承させたうえで、
91 * opacity で少しだけ弱め、ラベルとの主従(�
92 報の優�
93 �順位)を表す。
94 * 固定色ではなく opacity にすることで、暗背景テーマでも文字色に追従する。
95 * The description is secondary info: render it a bit smaller than the label
96 * and add spacing from the label. No fixed color is set so it inherits the
97 * theme text color (currentColor); opacity slightly de-emphasizes it to
98 * express the label/description hierarchy while still following the theme.
99 */
100 font-size: 0.8em;
101 margin-top: 0.25em;
102 opacity: 0.85;
103 }
104 /*
105 * サブメニュー(ドロップダウン)�
106 の�
107 目。コアは
108 * `...__submenu-container > ... > .wp-block-navigation-item__content`
109 * を display:flex(既定 row)にしているため、説明が出るとラベルの
110 * 右隣に横並びになってしまう。縦積み(flex-direction: column)に戻し、
111 * 左寄せにして自然に読めるようにする。
112 * Submenu (dropdown) items. Core sets the submenu item content to
113 * display:flex (default row), so the description ends up beside the label.
114 * Restore vertical stacking and left-align it so the dropdown reads naturally.
115 */
116 .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
117 flex-direction: column;
118 align-items: flex-start;
119 text-align: left;
120 }
121 }
122