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

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

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

            <div class="card-body">

                <!-- 見出し -->
                <h1 class="card-heading text-center">
                    #{heading|safe}
                </h1>

                <!-- 詳細テキスト -->
                <p class="card-detail">
                    #{detail|safe}
                </p>
            </div>
            <footer class="card-foot">

                <!-- ボタン -->
                <div class="card-button _fit-card">
                    <p class="button-block">
                        <button type="button" class="btn _fit-width _transparented karte-close">
                            <i class="icon #{style.closeIcon}" aria-hidden="true"></i><!--
                         --><span style="margin-left:6px">閉じる</span>
                        </button>
                    </p>
                </div>
            </footer>
        </div>
    </section>
</div>
  • URL: /components/raw/card-02/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._fit-width { width: 100% }
    .btn._transparented {
        background: 0;
        color: #{style.colorMain};
    }
    .btn._transparented:hover,
    .btn._transparented:focus { opacity: .5 }
    
    /* ボタンブロック */
    .card-button._fit-card .button-block .btn {
        border-radius: 0;
        width: 100%;
    }
    
    /* カード */
    .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,
    .card-foot { padding: 36px 40px 0 }
    .card-body::after,
    .card-foot::after {
        display: block;
        height: 36px;
        content: "";
        position: relative;
        z-index: -1;
    }
    .card-body {
        position: relative;
        overflow: inherit;
    }
    .card-foot {
        box-shadow: 0 -1px rgba(0,0,0,.06);
        min-height: auto;
    }
    .card ._fit-card {
        margin-left: -40px;
        margin-right: -40px;
    }
    .card ._fit-card:first-child { margin-top: -36px }
    .card ._fit-card:last-child { margin-bottom: -36px }
    
    /* - 画像 */
    .card-avatar {
        position: absolute;
        left: 50%;
        margin: -38px 0 0 -38px;
        border: solid 4px #{style.colorBg};
        background: #{style.colorBg};
        width: 76px;
    }
    .card-avatar + * { margin-top: 20px }
    
    /* - 見出し */
    .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 }
    
    /* ユーティリティ */
    .radius-circle {
        border-radius: 50% !important;
        overflow: hidden;
    }
    .text-center { text-align: center !important }
    
  • URL: /components/raw/card-02/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
    closeLabel,style,スタイル,閉じる ラベル,text,閉じる,,,,
    closeColor,style,スタイル,閉じる カラー,color,#333,,,,
    image,,,画像,image,https://img-cf.karte.io/image/5a8fc0f8dd4fcc08f62a0a5a::template2.png,,,,
    heading,,,見出し,text,"ご希望の物件は
    見つかりませんでしたか?",,,,
    detail,,,詳細テキスト,text,"検索条件を少し変更するだけで、あなたの理想の物件に出会える可能性が高くなります。
    条件を変えて検索してみてください。",,,,
    btnLabel,,,ボタン ラベル,text,確認する,,,,