_editor_after.scss
1 year ago
_editor_after_admin_sidebar.scss
5 months ago
_editor_before.scss
2 weeks ago
_editor_before_animation.scss
9 months ago
_editor_before_appender.scss
3 years ago
_editor_before_archive-list.scss
3 years ago
_editor_before_balloon.scss
2 years ago
_editor_before_border-box.scss
3 years ago
_editor_before_breadcrumb.scss
3 years ago
_editor_before_button-outer.scss
3 years ago
_editor_before_button.scss
1 year ago
_editor_before_custom-block-variation.scss
2 years ago
_editor_before_custom-css-extension.scss
2 years ago
_editor_before_faq.scss
3 years ago
_editor_before_fixed-display.scss
9 months ago
_editor_before_grid-column.scss
1 year ago
_editor_before_gridcolcard.scss
1 year ago
_editor_before_icon-card.scss
3 years ago
_editor_before_icon.scss
3 years ago
_editor_before_icon_list.scss
2 years ago
_editor_before_icons.scss
3 years ago
_editor_before_navigation.scss
2 weeks ago
_editor_before_outer.scss
7 months ago
_editor_before_select-post.scss
3 years ago
_editor_before_slider.scss
1 year ago
_editor_before_tab.scss
1 year ago
_editor_before_table.scss
3 years ago
_editor_before_template_inserter.scss
3 years ago
_editor_before_vk-heading.scss
3 years ago
_editor_before_vk-posts.scss
9 months ago
_editor_common_core.scss
3 months ago
_variables.scss
1 year ago
editor-block-build-marge.scss
2 weeks ago
_editor_before.scss
423 lines
| 1 | @import "_variables"; |
| 2 | @import "../lib/bootstrap/scss/bootstrap-sidepanel.scss"; |
| 3 | |
| 4 | /* Pro版ブロック表示 */ |
| 5 | .vk_block_icon_pro { |
| 6 | fill: #c00; |
| 7 | } |
| 8 | |
| 9 | .block-editor-inserter__block-list { |
| 10 | .editor-block-list-item-vk-blocks-taxonomy:after, |
| 11 | .editor-block-list-item-vk-blocks-select-post-list:after, |
| 12 | .editor-block-list-item-vk-blocks-accordion:after, |
| 13 | .editor-block-list-item-vk-blocks-animation:after, |
| 14 | .editor-block-list-item-vk-blocks-archive-list:after, |
| 15 | .editor-block-list-item-vk-blocks-blog-card:after, |
| 16 | .editor-block-list-item-vk-blocks-blog-card-excerpt:after, |
| 17 | .editor-block-list-item-vk-blocks-blog-card-site-logo:after, |
| 18 | .editor-block-list-item-vk-blocks-blog-card-featured-image:after, |
| 19 | .editor-block-list-item-vk-blocks-blog-card-site-title:after, |
| 20 | .editor-block-list-item-vk-blocks-blog-card-title:after, |
| 21 | .editor-block-list-item-vk-blocks-breadcrumb:after, |
| 22 | .editor-block-list-item-vk-blocks-button-outer:after, |
| 23 | .editor-block-list-item-vk-blocks-card:after, |
| 24 | .editor-block-list-item-vk-blocks-child-page:after, |
| 25 | .editor-block-list-item-vk-blocks-post-category-badge\/category-badge:after, |
| 26 | [class*="editor-block-list-item-vk-blocks-post-category-badge"]*="editor-block-list-item-vk-blocks-post-category-badge""]:after, |
| 27 | .editor-block-list-item-vk-blocks-dynamic-text:after, |
| 28 | .editor-block-list-item-vk-blocks-timeline:after, |
| 29 | .editor-block-list-item-vk-blocks-step:after, |
| 30 | .editor-block-list-item-vk-blocks-outer:after, |
| 31 | .editor-block-list-item-vk-blocks-post-list:after, |
| 32 | .editor-block-list-item-vk-blocks-post-list-slider:after, |
| 33 | .editor-block-list-item-vk-blocks-post-new-badge\/new-badge:after, |
| 34 | .editor-block-list-item-vk-blocks-table-of-contents:after, |
| 35 | .editor-block-list-item-vk-blocks-table-of-contents-new:after, |
| 36 | .editor-block-list-item-vk-blocks-simple-table:after, |
| 37 | .editor-block-list-item-vk-blocks-grid-column:after, |
| 38 | .editor-block-list-item-vk-blocks-gridcolcard:after, |
| 39 | .editor-block-list-item-vk-blocks-icon-card:after, |
| 40 | .editor-block-list-item-vk-blocks-fixed-display:after, |
| 41 | .editor-block-list-item-vk-blocks-tab:after { |
| 42 | position: absolute; |
| 43 | top: 0; |
| 44 | right: 0; |
| 45 | content: "Pro"; |
| 46 | display: inline-block; |
| 47 | font-size: 10px; |
| 48 | line-height: 1; |
| 49 | color: #fff; |
| 50 | background-color: #cd3034; |
| 51 | border-radius: 2px; |
| 52 | padding: 3px 4px; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // ラベル名と説明の文字の太さも大きさも同じでわからないので太字に |
| 57 | .block-prop-title { |
| 58 | font-weight: bold; |
| 59 | } |
| 60 | |
| 61 | // パネルの文字サイズがテーマなどの影響を受けるので上書き |
| 62 | .components-panel { |
| 63 | h4 { |
| 64 | font-size:14px; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // カードなどで文字位置のalignのツールバーが文字の右に回り込んでしまうため指定 |
| 69 | .components-panel__body .components-base-control__label { |
| 70 | display:block; |
| 71 | } |
| 72 | |
| 73 | /* ブロックの種類� |
| 74 | �れ替えトグルについて、この指定がないと見えてしまう */ |
| 75 | .components-button.block-editor-block-switcher__toggle { |
| 76 | overflow: hidden; |
| 77 | } |
| 78 | |
| 79 | /* スライダーを表示 : デフォルトだとbootstrapに非表示にされてしまう */ |
| 80 | input[type="range"]="range""] { |
| 81 | margin: 1px; |
| 82 | } |
| 83 | |
| 84 | // これがないとスタッフブロックや各種画像の外側のbuttonが高さを検出できない |
| 85 | button.image-button:not(.button-delete) { |
| 86 | height: 100%; |
| 87 | } |
| 88 | |
| 89 | .components-base-control { |
| 90 | // サイトエディタ で スライドアイテム などの設定パネルで画像がはみ出る不� |
| 91 | �合を修正 |
| 92 | img { |
| 93 | max-width: 100%; |
| 94 | } |
| 95 | // 独自に追加 |
| 96 | &__title { |
| 97 | padding-bottom: 3px; |
| 98 | border-bottom: 1px solid #ccc; |
| 99 | margin-bottom: 1em; |
| 100 | display: block; |
| 101 | } |
| 102 | &__label { |
| 103 | } |
| 104 | &__help { |
| 105 | margin-top: 0; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | .components-radio-control__option label { |
| 110 | margin-bottom: 0; |
| 111 | } |
| 112 | .components-checkbox-control__label { |
| 113 | margin-bottom: 0; |
| 114 | } |
| 115 | .components-color-palette { |
| 116 | display: block; |
| 117 | overflow: hidden; |
| 118 | } |
| 119 | |
| 120 | .editor-url-input input[type="text"]="text""] { |
| 121 | width: 100%; |
| 122 | } |
| 123 | |
| 124 | // カラムなどのインサーター |
| 125 | @import "./editor_before_appender"; |
| 126 | |
| 127 | // ブロックテンプレートのサイドバー調整 |
| 128 | @import "./editor_before_template_inserter"; |
| 129 | // アイコンリスト |
| 130 | @import "./editor_before_icon_list"; |
| 131 | // 吹き出し画像読み込み |
| 132 | @import "./editor_before_balloon"; |
| 133 | // VKボタン |
| 134 | @import "./editor_before_button"; |
| 135 | // テーブル |
| 136 | @import "./editor_before_table"; |
| 137 | // 枠線ボックス |
| 138 | @import "./editor_before_border-box"; |
| 139 | // アイコン |
| 140 | @import "./editor_before_icon"; |
| 141 | // アイコン横並び |
| 142 | @import "./editor_before_icons"; |
| 143 | // ボタン横並び |
| 144 | @import "./editor_before_button-outer"; |
| 145 | // VK見出し |
| 146 | @import "./editor_before_vk-heading"; |
| 147 | // faq |
| 148 | @import "./editor_before_faq"; |
| 149 | // breadcrumb |
| 150 | @import "./editor_before_breadcrumb"; |
| 151 | // slider |
| 152 | @import "./editor_before_slider"; |
| 153 | // グリッドカラムカード |
| 154 | @import "./editor_before_gridcolcard"; |
| 155 | // edit custom css extension |
| 156 | @import "./editor_before_custom-css-extension"; |
| 157 | // edit custom block variation |
| 158 | @import "./editor_before_custom-block-variation"; |
| 159 | // archive-list |
| 160 | @import "./editor_before_archive-list"; |
| 161 | |
| 162 | // VK Outer & スライダーアイテム 編集パネル |
| 163 | $color-danger: #dd3333; |
| 164 | .vk_outer_sidebar_bgImage, |
| 165 | .vk_slider_item_sidebar_bgImage, |
| 166 | .vk_slider_item_sidebar_bgImage_button_container { |
| 167 | position: relative; |
| 168 | .components-button:not(.image-button), |
| 169 | .components-button-group { |
| 170 | position: absolute; |
| 171 | top: 50%; |
| 172 | left: 50%; |
| 173 | transform: translateY(-50%) translateX(-50%); |
| 174 | transition: all 1s; |
| 175 | } |
| 176 | .components-button-group { |
| 177 | display: grid; |
| 178 | place-items: center; |
| 179 | gap: .375rem; |
| 180 | opacity: 0; |
| 181 | transition: all 1s; |
| 182 | } |
| 183 | .button-delete { |
| 184 | border: 1px solid $color-danger; |
| 185 | color: $color-danger; |
| 186 | &:hover { |
| 187 | background-color: $color-danger; |
| 188 | border: 1px solid #b72a2a; |
| 189 | color: #fff; |
| 190 | } |
| 191 | } |
| 192 | &:hover .components-button-group { |
| 193 | transition: all 1s; |
| 194 | opacity: 1; |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | .vk_slider_item_sidebar_bgImage_button_container img { |
| 199 | min-width: 248px; |
| 200 | } |
| 201 | |
| 202 | // 背景画像をブロックツールバーから変更するためのポップオーバー |
| 203 | .vk-block-editor-bg-image-toolbar__popover { |
| 204 | // メディアライブラリ(.media-modal-backdrop: z-index 159900)より背面に� |
| 205 | �置し、 |
| 206 | // 「Select image / Replace Image」でモーダルを開いたときにポップオーバーが |
| 207 | // モーダルより手前に残らないようにする。core/cover の MediaReplaceFlow が |
| 208 | // 採用しているポップオーバーの z-index(99999)と同じ値。 |
| 209 | // .components-popover のデフォルト z-index(1000000)を上書きするため2クラスで指定。 |
| 210 | &.components-popover { |
| 211 | z-index: 99999; |
| 212 | } |
| 213 | .vk-block-editor-bg-image-toolbar__content { |
| 214 | width: 280px; |
| 215 | padding: 16px; |
| 216 | } |
| 217 | // 各デバイス(PC / タブレット / モバイル)の設定ブロックの間隔 |
| 218 | .vk-block-editor-bg-image-toolbar__field + .vk-block-editor-bg-image-toolbar__field { |
| 219 | margin-top: 16px; |
| 220 | } |
| 221 | .vk-block-editor-bg-image-toolbar__label { |
| 222 | margin: 0 0 6px; |
| 223 | font-weight: bold; |
| 224 | } |
| 225 | // プレビュー画像がポップオーバー� |
| 226 | を� |
| 227 | えないようにする |
| 228 | .icon-image { |
| 229 | max-width: 100%; |
| 230 | min-width: 0; |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | .mb-2+div.components-toolbar{ |
| 235 | margin-top: 0!important; |
| 236 | } |
| 237 | |
| 238 | |
| 239 | /* editor area *********************************************/ |
| 240 | .editor-styles-wrapper, //サイトエディター用に追加 |
| 241 | // .edit-post-visual-editor, |
| 242 | .components-tab-panel__tab-content{ |
| 243 | |
| 244 | .vk_width-full div[data-type="vk-blocks/slider-item"]="vk-blocks/slider-item""]{ |
| 245 | max-width:100%; |
| 246 | .vk_slider_item-paddingLR-use, |
| 247 | .vk_slider_item-paddingLR-zero{ |
| 248 | // コンテンツエリアをはみ出させる |
| 249 | .wp-block { max-width:100%; } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | .is-sidebar-opened & .swiper-container.vk_slider.vk_width-full{ |
| 254 | // サイドバー表示時に� |
| 255 | �� |
| 256 | 要素がはみ出してサイドバーの下などに� |
| 257 | �り込むのを防止 |
| 258 | margin-left: calc( 50% - 50vw + 140px ); |
| 259 | margin-right: calc( 50% - 50vw + 140px ); |
| 260 | padding-right:0; |
| 261 | padding-left:0; |
| 262 | width: calc( 100vw - 280px ); |
| 263 | } |
| 264 | |
| 265 | |
| 266 | // 編集画面での識別用枠 |
| 267 | .vk_spacer, |
| 268 | .vk_slider, |
| 269 | .vk_slider_item, |
| 270 | .vk_animation, |
| 271 | .vk_fixed-display { |
| 272 | border:1px dotted #ccc; |
| 273 | } |
| 274 | |
| 275 | .vk_slider_item{ |
| 276 | min-height:3em; |
| 277 | .block-editor-inner-blocks{ |
| 278 | width: 100%; |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | // 固定ページ本文ブロック |
| 283 | div[data-type="vk-blocks/page-content"]="vk-blocks/page-content""].is-selected{ |
| 284 | .vk_pageContent { |
| 285 | border:1px dotted #ccc; |
| 286 | opacity: 0.5; |
| 287 | } |
| 288 | .vk_pageContent_editBtn { |
| 289 | position: absolute; |
| 290 | z-index: 9999; |
| 291 | top:-3em; |
| 292 | right:0; |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | // Outer編集用CSS |
| 297 | @import "./_editor_before_outer"; |
| 298 | |
| 299 | // 選択投稿リスト編集用CSS |
| 300 | @import "./_editor_before_select-post"; |
| 301 | |
| 302 | // アニメーションブロックの識別用枠線 |
| 303 | @import "./editor_before_animation"; |
| 304 | |
| 305 | // 固定表示ブロックの識別用枠線 |
| 306 | @import "./editor_before_fixed-display"; |
| 307 | |
| 308 | @import "./editor_before_tab"; |
| 309 | |
| 310 | // アイコンカードの見出しがテーマの見出し指定機能に負けるので上書き |
| 311 | @import "./editor_before_icon-card"; |
| 312 | |
| 313 | /* これがないとGutenberg標準のエディタCSSに負ける */ |
| 314 | h1:first-child.vk_prBlocks_item_title { |
| 315 | margin-top: 0.9em; |
| 316 | } |
| 317 | .vk_prContent_colTxt_title { |
| 318 | border: none; |
| 319 | &::after { |
| 320 | display: none; |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | /* Bootstrap Adjuster */ |
| 325 | $border_primary: 1px solid #e5e5e5; |
| 326 | $color_font_default: #464646; |
| 327 | |
| 328 | $xs-max: 575.98px; |
| 329 | $sm-max: 767.98px; |
| 330 | $md-max: 991.98px; |
| 331 | $lg-max: 1199.98px; |
| 332 | $xl-max: 1399.98px; |
| 333 | |
| 334 | $sm-min: 576px; |
| 335 | $md-min: 768px; |
| 336 | $lg-min: 992px; |
| 337 | $xl-min: 1200px; |
| 338 | $xxl-min: 1200px; |
| 339 | |
| 340 | $color-danger: #b52727; |
| 341 | |
| 342 | /*-------------------------------------------*/ |
| 343 | /* card |
| 344 | /*-------------------------------------------*/ |
| 345 | |
| 346 | // Card ボタンリンクの説明 |
| 347 | .postList_itemCard_button-option { |
| 348 | margin-bottom: 5px; |
| 349 | } |
| 350 | |
| 351 | .vk_post_imgOuter { |
| 352 | position: relative; |
| 353 | .components-button { |
| 354 | position: absolute; |
| 355 | top: 50%; |
| 356 | left: 50%; |
| 357 | transform: translateY(-50%) translateX(-50%); |
| 358 | transition: all 1s; |
| 359 | } |
| 360 | .button-delete { |
| 361 | opacity: 0; |
| 362 | border: 1px solid $color-danger; |
| 363 | color: $color-danger; |
| 364 | transition: all 1s; |
| 365 | &:hover { |
| 366 | background-color: $color-danger; |
| 367 | color: #fff; |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | .vk_post_imgOuter:hover .button-delete { |
| 372 | transition: all 1s; |
| 373 | opacity: 1; |
| 374 | } |
| 375 | |
| 376 | /*-------------------------------------------*/ |
| 377 | /* .vk_posts |
| 378 | /*-------------------------------------------*/ |
| 379 | @import "./editor_before_vk-posts"; |
| 380 | |
| 381 | /*-------------------------------------------*/ |
| 382 | /* .vk_grid-column Layout |
| 383 | /*-------------------------------------------*/ |
| 384 | @import "./editor_before_grid-column"; |
| 385 | |
| 386 | /*-------------------------------------------*/ |
| 387 | /* core/navigation Show menu item description |
| 388 | /*-------------------------------------------*/ |
| 389 | @import "./editor_before_navigation"; |
| 390 | |
| 391 | /*-------------------------------------------*/ |
| 392 | /* edit hidden block class |
| 393 | /*-------------------------------------------*/ |
| 394 | .vk_edit_hidden_warning { |
| 395 | // border:1px dotted #666; |
| 396 | opacity: 0.4 !important; |
| 397 | } |
| 398 | .vk_edit_hidden_all { |
| 399 | opacity: 0.2 !important; |
| 400 | } |
| 401 | |
| 402 | .vk_icon-card_item_title {//Added not to decorate |
| 403 | background-color: transparent; |
| 404 | margin-top: 0.9em; |
| 405 | margin-bottom: 0.6em; |
| 406 | font-size: 21px; |
| 407 | line-height: 1.4em; |
| 408 | border: none; |
| 409 | border-radius:unset; |
| 410 | padding: 0; |
| 411 | outline: unset; |
| 412 | outline-offset: unset; |
| 413 | box-shadow: unset; |
| 414 | color: inherit; |
| 415 | display: block; |
| 416 | &::before { |
| 417 | content: none; |
| 418 | } |
| 419 | &::after { |
| 420 | border: none; |
| 421 | } |
| 422 | } |
| 423 |