sw-Button

/src/assets/css/namespace/sitewide/_Button.scss

ボタンのデフォルトスタイルです。

aタグボタンaタグボタン
.l-Wrapper
  a.sw-Button(href="#") aタグボタン
  a.sw-Button.-disabled(href="#" tabindex="-1") aタグボタン
  button.sw-Button#foo(type="button") buttonタグボタン
  button.sw-Button(disabled type="button") buttonタグボタン
  input.sw-Button(type="button" value="inputボタン")
  input.sw-Button(type="button" value="inputボタン" disabled)

.-fullを追加すると横幅100%になります。

.l-Wrapper
  a.sw-Button(href="#") デフォルト
  a.sw-Button.-full(href="#") 横幅100%

.-autoを追加すると横幅はなりゆきになります。

.l-Wrapper
  a.sw-Button(href="#") デフォルト
  a.sw-Button.-auto(href="#") 横幅なりゆき

.sw-Button_Moreを追加すると矢印が付きます。

.l-Wrapper
  a.sw-Button(href="#") デフォルト
  a.sw-Button(href="#")
    | 矢印付きボタン
    svg.sw-Button_More(role="img")
      use(xlink:href="/assets/svg/sprite.svg#right-arrow1")

sw-Label

/src/assets/css/namespace/sitewide/_Label.scss

インラインで表示するラベルコンポーネントです。

spanタグのラベルです。 aタグのラベルです。
.l-Wrapper
  span.sw-Label spanタグのラベルです。
  label.sw-Label labelタグのラベルです。
  a.sw-Label(href="#") aタグのラベルです。
/src/assets/css/namespace/sitewide/_Link.scss

テキストリンクのデフォルトスタイルです。

.l-Wrapper
  p.sw-Text
    a.sw-Link(href="#") テキストリンクです。

sw-LinkDownload

/src/assets/css/namespace/sitewide/_LinkDownload.scss

ファイルをダウンロードするためのリンクであることを示す場合に使います。

.l-Wrapper
  p.sw-Text
    a.sw-Link(href="#") テキストリンクです。

  p.sw-Text
    a.sw-LinkDownload(href="#")
      | ファイルをダウンロードする
      svg.sw-LinkDownload_Icon(role="img")
        use(xlink:href="/assets/svg/sprite.svg#download1")

sw-LinkExternal

/src/assets/css/namespace/sitewide/_LinkExternal.scss

外部リンクであることを示す場合に使います。

.l-Wrapper
  p.sw-Text
    a.sw-Link(href="#") テキストリンクです。

  p.sw-Text
    a.sw-LinkExternal(href="#")
      | 外部リンクを開く
      svg.sw-LinkExternal_Icon(role="img")
        use(xlink:href="/assets/svg/sprite.svg#external1")

sw-LinkMore

/src/assets/css/namespace/sitewide/_LinkMore.scss

クリックを促すようなテキストリンクに使います。

.l-Wrapper
  p.sw-Text
    a.sw-Link(href="#") テキストリンクです。

  p.sw-Text
    a.sw-LinkMore(href="#")
      | 詳しく見る
      svg.sw-LinkMore_Icon(role="img")
        use(xlink:href="/assets/svg/sprite.svg#right-arrow1")

sw-LinkNote

/src/assets/css/namespace/sitewide/_LinkNote.scss

注釈へのリンクです。<sup>タグの子要素として指定します。

○○1を使っています。

○○1を使っています。

.l-Wrapper
  p.sw-Text ○○
    sup.sw-Sup
      a.sw-LinkNote(href="#") 1
    | を使っています。

  p.sw-Text(lang="en") ○○
    sup.sw-Sup
      a.sw-LinkNote(href="#") 1
    | を使っています。

sw-LinkPdf

/src/assets/css/namespace/sitewide/_LinkPdf.scss

リンク先がPDFであることを示す場合に使います。

.l-Wrapper
  p.sw-Text
    a.sw-Link(href="#") テキストリンクです。

  p.sw-Text
    a.sw-LinkPdf(href="#")
      | PDFをダウンロードする
      svg.sw-LinkPdf_Icon(role="img")
        use(xlink:href="/assets/svg/sprite.svg#pdf1")