<main class="main-wrapper">
    <article class="article-container">
        <h2 class="heading2">Side Arrow</h2>
        <div class="speech-balloon-wrap">
            <img src="https://placehold.jp/0f6bff/ffffff/x.png?text=dummy" class="profile-photo" alt="プロフィール写真" width="80" height="80" decoding="async">
            <p class="speech-balloon -left-arrow">左からの吹き出し左からの吹き出し左からの吹き出し</p>
        </div>
        <div class="speech-balloon-wrap mt48">
            <p class="speech-balloon -right-arrow">右からの吹き出し右からの吹き出し右からの吹き出し</p>
            <img src="https://placehold.jp/0f6bff/ffffff/x.png?text=dummy" class="profile-photo" alt="プロフィール写真" width="90" height="90" decoding="async">
        </div>
        <div class="divider my32"></div>
        <h2 class="heading2">Bottom Arrow</h2>
        <div class="speech-balloon-wrap">
            <p class="speech-balloon -bottom-arrow mb32">下からの吹き出し</p>
            <p class="speech-balloon -bottom-left-arrow mb32">左下からの吹き出し</p>
            <p class="speech-balloon -bottom-right-arrow mb32">右下からの吹き出し</p>
        </div>
    </article>
</main>
<main class="main-wrapper">
  <article class="article-container">
    <h2 class="heading2">Side Arrow</h2>
    <div class="speech-balloon-wrap">
      <img src="https://placehold.jp/0f6bff/ffffff/x.png?text=dummy" class="profile-photo" alt="プロフィール写真" width="80" height="80" decoding="async">
      <p class="speech-balloon -left-arrow">左からの吹き出し左からの吹き出し左からの吹き出し</p>
    </div>
    <div class="speech-balloon-wrap mt48">
      <p class="speech-balloon -right-arrow">右からの吹き出し右からの吹き出し右からの吹き出し</p>
      <img src="https://placehold.jp/0f6bff/ffffff/x.png?text=dummy" class="profile-photo" alt="プロフィール写真" width="90" height="90" decoding="async">
    </div>
    <div class="divider my32"></div>
    <h2 class="heading2">Bottom Arrow</h2>
    <div class="speech-balloon-wrap">
      <p class="speech-balloon -bottom-arrow mb32">下からの吹き出し</p>
      <p class="speech-balloon -bottom-left-arrow mb32">左下からの吹き出し</p>
      <p class="speech-balloon -bottom-right-arrow mb32">右下からの吹き出し</p>
    </div>
  </article>
</main>
/* No context defined. */
  • Content:
    .speech-balloon-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;
    }
    .speech-balloon-wrap .profile-photo {
      display: block;
      width: 90px;
      height: 90px;
      clip-path: circle(50%);
    }
    
    .speech-balloon {
      display: block;
      position: relative;
      padding: 1rem 2rem;
      border: .0625rem solid var(--black);
      line-height: 2;
      border-radius: .5rem;
    }
    .speech-balloon.-left-arrow::after {
      content: "";
      position: absolute;
      top: 44%;
      left: -1px;
      width: 1.25rem;
      height: 1.25rem;
      margin-bottom: .0625rem;
      border: .0625rem solid;
      border-color: var(--black) transparent transparent var(--black);
      background-color: var(--white);
      transform: rotate(315deg) skew(15deg, 15deg) translateY(-50%);
    }
    .speech-balloon.-right-arrow::after {
      content: "";
      position: absolute;
      top: 44%;
      right: -19px;
      width: 1.25rem;
      height: 1.25rem;
      margin-bottom: .0625rem;
      border: .0625rem solid;
      border-color: transparent var(--black) var(--black) transparent;
      background-color: var(--white);
      transform: rotate(315deg) skew(15deg, 15deg) translateY(-50%);
    }
    .speech-balloon.-bottom-arrow::after {
      content: "";
      position: absolute;
      bottom: -20px;
      left: 47.25%;
      width: 1.25rem;
      height: 1.25rem;
      margin-bottom: .0625rem;
      border: .0625rem solid;
      border-color: transparent var(--black) var(--black) transparent;
      background-color: var(--white);
      transform: rotate(45deg) skew(15deg, 15deg) translate(-50%);
    }
    .speech-balloon.-bottom-left-arrow::after {
      content: "";
      position: absolute;
      bottom: -20px;
      left: 16%;
      width: 1.25rem;
      height: 1.25rem;
      margin-bottom: .0625rem;
      border: .0625rem solid;
      border-color: transparent var(--black) var(--black) transparent;
      background-color: var(--white);
      transform: rotate(45deg) skew(15deg, 15deg) translate(-50%);
    }
    .speech-balloon.-bottom-right-arrow::after {
      content: "";
      position: absolute;
      right: 12%;
      bottom: -20px;
      width: 1.25rem;
      height: 1.25rem;
      margin-bottom: .0625rem;
      border: .0625rem solid;
      border-color: transparent var(--black) var(--black) transparent;
      background-color: var(--white);
      transform: rotate(45deg) skew(15deg, 15deg) translate(-50%);
    }
  • URL: /components/raw/speech-balloon/style.css
  • Filesystem Path: src/components/1-static-ui/speech-balloon/style.css
  • Size: 2.2 KB
  • Handle: @speech-balloon
  • Preview:
  • Filesystem Path: src/components/1-static-ui/speech-balloon/speech-balloon.hbs

No notes defined.