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

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

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

        <a class="card-media _edged" href="#{link}">
            <div class="card-body">

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

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

            <i class="card-arrow #{iconArrowRight}" aria-hidden="true"></i>
        </a>
    </section>
</div>
  • URL: /components/raw/notification-03/style.css
  • Content:
    /* ベース */
    button {
        margin: 0;
        width: auto;
        height: auto;
        font-family: inherit;
        cursor: pointer;
    }
    a *,
    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-close-circle {
        position: absolute;
        z-index: 1;
        border-radius: 50%;
        line-height: 1;
        transition: .25s;
        top: -10px;
        right: -10px;
        padding: 10px;
        background: #{style.colorMain};
        color: #fff;
        font-size: 10px;
    }
    .btn-close-circle:hover,
    .btn-close-circle:focus {
        -webkit-transform: rotate(90deg);
                transform: rotate(90deg);
    }
    .btn-close-circle .icon {
        display: inline-block;
        vertical-align: top;
    }
    
    /* メディアカード */
    a.card-media {
        transition: .2s;
        text-decoration: none;
    }
    a.card-media:hover,
    a.card-media:focus {
        opacity: .75;
        box-shadow: 0 5px 16px rgba(0,0,0,.1), 0 8px 28px rgba(0,0,0,.16);
    }
    .card-media {
        display: -webkit-flex;
        display: flex;
        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-media._edged { border-radius: 0 }
    .card-media .card-body { padding: 16px 19px 0 }
    .card-media .card-body::after {
        display: block;
        height: 16px;
        content: "";
        position: relative;
        z-index: -1;
    }
    .card-media .card-body {
        position: relative;
        overflow: inherit;
        -webkit-flex-grow: 1;
                flex-grow: 1;
        -webkit-flex-basis: 0;
                flex-basis: 0;
        line-height: 1.5;
    }
    
    /* - 見出し */
    .card-media .card-heading {
        color: #{style.colorMain};
        font-weight: 600;
        font-size: 14px;
        line-height: 1.375;
    }
    .card-media .card-heading:not(:last-child) { margin-bottom: .5em }
    
    /* - リンクアイコン */
    .card-media .card-arrow {
        -webkit-align-self: center;
                align-self: center;
        width: 2em;
        font-size: 13px;
    }
    
  • URL: /components/raw/notification-03/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
    heading,,,見出し,text,"伝わりやすさをデザインする
    文字の整理術",,,,
    detail,,,詳細テキスト,text,基礎を理解するだけで読みやすさや見た目の美しさは格段にアップします。,,,,
    link,,,リンク先,url,https://example.com/,,,,
    iconArrowRight,,,リンクアイコン,icon,krt-icon-arrow-right01,,,,1