WEB広告運用の困りごとが集まる場所 コミュニティ コミュニティ アコーディオンボタンウィジェットを組み合わせたい 返信先:アコーディオンボタンウィジェットを組み合わせたい

  • ひじり

    メンバー
    2023年10月13日 12:18

    ▼CSS

    .accordion-wrap {

    font-size: 14px;

    max-width: 750px;

    margin-left: auto;

    margin-right: auto;

    }

    .accordion-btn {

    width: 80%;

    margin-left: auto;

    margin-right: auto;

    margin-bottom: 2em;

    text-align: center;

    background-color: #6ad1c8;

    color: #fff;

    border-radius: 99px;

    padding: 0.25em 0;

    cursor: pointer;

    font-size: 1em;

    transition: 0.25s;

    }

    .accordion-btn.mark::before {

    content: “▶︎”;

    display: inline-block;

    color: #fff;

    margin: 0 0.5em 0 0;

    transition: 0.25s;

    }

    .accordion-btn.mark.is-open::before {

    rotate: 90deg;

    }

    .accordion-btn:hover {

    opacity: .8;

    }

    .accordion-contents {

    line-height: 2;

    transition: opacity 0.75s, max-height 0.25s;

    }

    .accordion-contents.is-hide {

    opacity: 0;

    max-height: 0;

    overflow: hidden;

    }

    .check-list {

    border: solid 2px #6ad1c8;

    padding: 1em;

    background-color: #fff;

    box-shadow: 2px 2px 1px #ccc;

    position: relative;

    margin: 2em 0;

    }

    .check-list-title {

    color: #5bb8af;

    background-color: #fff;

    width: fit-content;

    padding: 0.25em 1em;

    position: absolute;

    top: -1.5em;

    font-weight: 600;

    }

    .check-list-item {

    display: flex;

    align-items: center;

    gap: 0.5em;

    }

    .check-list-item::before {

    content: “”;

    display: block;

    width: 1em;

    aspect-ratio: 1/1;

    background: url(https://file.mysquadbeyond.com/uploads/article_photo/photo/2826160/4ae5a437-4c8b-4731-b3b0-0ae497a7b2bb.svg) no-repeat 0 0/contain;

    }

    @media (max-width: 500px) {

    .accordion-wrap {

    font-size: 3.3vw;

    }

    }

    .wrap-table-compare {

    max-width: 100%;

    width: 800px;

    margin: 0 auto;

    }

    .table-compare {

    width: 100%;

    table-layout: fixed;

    border-collapse: collapse;

    border-spacing: 0;

    text-align: center;

    font-size: 14px;

    line-height: 1.4;

    }

    .table-compare th {

    background-color: #00cdde;

    border: 1px solid #00cdde;

    color: #fff;

    font-weight: bold;

    padding: 25px 0;

    width: 20%;

    font-size: 12px;

    }

    .table-compare td {

    border: 1px solid #cccccc;

    }

    .table-compare a {

    text-decoration: none;

    }

    .table-compare .icon {

    margin: 0 auto;

    width: 80%;

    box-sizing: border-box;

    }

    .table-compare .icon img {

    max-width: 100%;

    height: auto;

    vertical-align: bottom;

    }

    .table-compare .icon figcaption {

    font-size: 10px;

    color: #000000;

    }

    .table-compare .symbol {

    position: relative;

    display: inline-block;

    width: 52px;

    height: 52px;

    }

    .table-compare .symbol.circle::before {

    content: “”;

    display: inline-block;

    width: 100%;

    height: 100%;

    border: 7px solid #000;

    border-radius: 50%;

    box-sizing: border-box;

    }

    .table-compare .symbol.double::after {

    content: “”;

    display: inline-block;

    width: 50%;

    height: 50%;

    position: absolute;

    top: 25%;

    left: 25%;

    border: 7px solid #000;

    border-radius: 50%;

    box-sizing: border-box;

    }

    .table-compare .symbol.red::before,

    .table-compare .symbol.red::after {

    border-color: #e60033;

    }

    .table-compare .symbol.yellow::before,

    .table-compare .symbol.yellow::after {

    border-color: #f8b500;

    }

    .table-compare .note {

    font-size: 10px;

    }

    .table-compare .tag {

    display: block;

    width: 80%;

    border-radius: 5%;

    margin: 5px auto;

    box-shadow: 1px 1px 1px #dbdbdb;

    font-size: 10px;

    color: #fff;

    padding: 4px 3px;

    }

    .table-compare .tag.pink {

    background-color: #ed49b4;

    }

    .table-compare .tag.blue {

    background-color: #2D2DBB;

    }

    .table-compare .tag.green {

    background-color: #069100;

    }

    .table-compare .tag.yellow {

    background-color: #f0b137;

    }