{% include '@style-variables' -%}
{% include '@self-resources' %}

<div class="wrapper">
    <section krt-if="state == 1"
            class="card _fit-height"
        >
        <div class="card-body">

            <!-- 閉じるボタン -->
            <button type="button" class="btn btn-close karte-close"
                    aria-label="閉じる"
                >
                <i class="icon #{style.closeIcon}" aria-hidden="true"></i>
            </button>

            <!-- 画像 -->
            <figure class="card-image"
                    style="width:128px"
                >
                <img
                    src="#{image}"
                    alt=""
                >
            </figure>

            <!-- コンテンツ -->
            <div>
                <h2 class="text-center card-heading">
                    #{list.heading1}
                </h2>
                <p  class="text-center card-detail _size-sm">
                    #{list.detail1|safe}
                </p>

                <h2 class="text-center card-heading">
                    #{list.heading2}
                </h2>
                <p  class="text-center card-detail _size-sm">
                    #{list.detail2|safe}
                </p>

                <h2 class="card-heading">
                    #{list.heading3}
                </h2>
                <p  class="card-detail">
                    #{list.detail3|safe}
                </p>
            </div>

            <!-- ボタン -->
            <div class="card-button">
                <ul class="button-block">
                    <li>
                        <a class="btn _fit-width _bordered _edged"
                                href="#{btnLink}"
                            >
                            #{btnLabel}
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </section>
</div>
  • URL: /components/raw/sidebar-05/style.css
  • Content:
    /* ベース */
    figure { margin: 0 }
    img {
        max-width: 100%;
        vertical-align: bottom;
    }
    button {
        margin: 0;
        width: auto;
        height: auto;
        font-family: inherit;
        cursor: pointer;
    }
    button * { cursor: inherit }
    .wrapper {
        position: relative;
        height: 100%;
        text-align: left;
        font-size: 12px;
        line-height: 1.66667;
    }
    .wrapper * {
        box-sizing: border-box;
        white-space: inherit;
        font-size: 100%;
        line-height: inherit;
    }
    
    /* ボタン */
    .btn {
        transition: .2s;
        display: inline-block;
        border-radius: 4px;
        border: solid 1px transparent;
        padding: 13px 16px;
        background: #{style.colorMain};
        color: #fff;
        vertical-align: middle;
        text-decoration: none;
        text-align: center;
        line-height: 1.25;
    }
    .btn:hover,
    .btn:focus { opacity: .75 }
    .btn._edged { border-radius: 0 }
    .btn._fit-width { width: 100% }
    .btn._bordered {
        border-color: inherit;
        background: 0;
        color: #{style.colorMain};
    }
    .btn._bordered:hover,
    .btn._bordered:focus {
        opacity: 1;
        border-color: #{style.colorMain};
        background: #{style.colorMain};
        color: #fff;
    }
    
    /* 閉じるボタン */
    .btn-close {
        position: absolute;
        z-index: 1;
        border-radius: 50%;
        line-height: 1;
        transition: .25s;
        top: 7px;
        right: 7px;
        padding: 6px;
        background: 0;
        color: #{style.closeColor};
    }
    .btn-close:hover,
    .btn-close:focus {
        opacity: .5;
        -webkit-transform: rotate(90deg);
                transform: rotate(90deg);
    }
    .btn-close .icon {
        display: inline-block;
        vertical-align: top;
    }
    
    /* ボタンブロック */
    .button-block li { list-style: none }
    .button-block.columns > li {
        -webkit-flex-basis: calc(~"25% - 10px");
                flex-basis: calc(~"25% - 10px");
    }
    .button-block:not(.columns) li + li { margin-top: 10px }
    
    /* カラム */
    .columns {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
                flex-wrap: wrap;
        margin: -10px 0 0 -10px;
    }
    .columns > li {
        -webkit-flex-grow: 1;
                flex-grow: 1;
        margin: 10px 0 0 10px;
    }
    .columns > li { list-style: none }
    .card .columns > li {
        -webkit-flex-basis: calc(~"25% - 10px");
                flex-basis: calc(~"25% - 10px");
    }
    
    /* カード */
    .card {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
                flex-direction: column;
        box-shadow: 0 5px 16px rgba(0,0,0,.05), 0 8px 14px rgba(0,0,0,.08);
        border-radius: 8px;
        width: 320px;
        max-width: 90vw;
        max-height: calc(~"100vh - 160px");
        overflow-y: auto;
        background: #{style.colorBg} no-repeat 50%;
        background-size: cover;
        color: #{style.colorText};
    }
    .card-body { padding: 36px 40px 0 }
    .card-body::after {
        display: block;
        height: 36px;
        content: "";
        position: relative;
        z-index: -1;
    }
    .card-body {
        position: relative;
        overflow: inherit;
    }
    .card._fit-height {
        border-radius: 0;
        height: 0;
        min-height: 100%;
    }
    .card._fit-height .card-body {
        -webkit-flex-grow: 1;
                flex-grow: 1;
        -webkit-flex-basis: 0;
                flex-basis: 0;
    }
    
    /* - 画像 */
    .card-image {
        margin: 0 auto;
        text-align: center;
    }
    .card-image:not(:last-child) { margin-bottom: 24px }
    
    /* - 見出し */
    .card-heading {
        color: #{style.colorMain};
        font-weight: 600;
        font-size: 16px;
        line-height: 1.55;
    }
    .card-heading:not(:last-child) { margin-bottom: 1em }
    
    /* - 詳細テキスト */
    .card-detail { line-height: 1.8 }
    .card-detail:not(:last-child) { margin-bottom: 24px }
    
    /* - ボタン */
    .card-button:not(:first-child) { margin-top: 32px }
    
    /* ユーティリティ */
    .text-center { text-align: center !important }
    
  • URL: /components/raw/sidebar-05/variables.csv
  • Content:
    name,folder,folder_name,label,data_type,value,preview_value,help,is_required,is_hidden
    colorMain,style,スタイル,メインカラー,color,#333,,,,
    colorText,style,スタイル,テキストカラー,color,#333,,,,
    colorBg,style,スタイル,背景カラー,color,#fff,,,,
    closeIcon,style,スタイル,閉じるアイコン,icon,krt-icon-close05,,,,1
    closeColor,style,スタイル,閉じるアイコン カラー,color,#999,,,,
    heading1,list,コンテンツ,見出し1,text,初めての方へ,,,,
    detail1,list,コンテンツ,詳細1,text,"基本サービスやご利用方法をご紹介します。
    お得な特典や役立つ情報が満載です。",,,,
    heading2,list,コンテンツ,見出し2,text,5つの会員特典,,,,
    detail2,list,コンテンツ,詳細2,text,会員だけのお得な特典を紹介します。,,,,
    heading3,list,コンテンツ,見出し3,text,,,,,
    detail3,list,コンテンツ,詳細3,text,"1. 最短で当日お届け
    2. シークレットセールご招待
    3. すべてのアイテム ポイント1%還元
    4. 豊富な支払い方法
    5. 手厚いアフターサポート",,,,
    image,,,画像,image,https://img-cf.karte.io/image/5a8f8d02afcded2a4f39dd9b::template5_02.png,,,,
    btnLabel,,,ボタン ラベル,text,詳細を確認する,,,,
    btnLink,,,ボタン リンク先,text,https://example.com/,,,,