Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

エクスペリメンタル: cssをno bundleで読み込む #50

Open
monoharada opened this issue Jan 24, 2024 · 1 comment
Open

エクスペリメンタル: cssをno bundleで読み込む #50

monoharada opened this issue Jan 24, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@monoharada
Copy link
Contributor

概要

  • src内のcssファイルをbundleせず全て_global.tsxへlinkタグで挿入する
  • 単一のcssについてui.css内にある
.button {
  @layer ui.base {
    padding: calc(var(--line-height) / 4 * 1em) var(--font-size);
    border: 1px solid #fff;
    border-radius: var(--buton-border-radius);
    background-color: #000;
    color: #fff;
    font-size: var(--font-size);
    line-height: var(--line-height);
  }

  @layer ui.state {
    transition: filter 0.2s ease-in-out;

    @media (hover: hover) {
      &:hover {
        filter: invert(100%);
      }
    }
  }
}

などを参考にcssファイルの書き方を提供する。

  • no bundle,モダンcssについてドキュメンテーションする
@monoharada monoharada self-assigned this Jan 24, 2024
@monoharada monoharada added the enhancement New feature or request label Jan 24, 2024
Copy link

新しいブランチ feature_issue-50 が作成されました。
Checkout with GitHub CLI:

gh pr checkout 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant