4aeeb92324589e0/app/node_modules/sucrase">sucrase 30f7226d9a first commit 3 jaren geleden supports-preserve-symlinks-flag 30f7226d9a first commit 3 jaren geleden tailwind-color-palette 30f7226d9a first commit 3 jaren geleden tailwindcss 30f7226d9a first commit 3 jaren geleden thenify 30f7226d9a first commit 3 jaren geleden thenify-all 30f7226d9a first commit 3 jaren geleden to-regex-range 30f7226d9a first commit 3 jaren geleden tr46 30f7226d9a first commit 3 jaren geleden ts-interface-checker 30f7226d9a first commit 3 jaren geleden uglify-js 30f7226d9a first commit 3 jaren geleden underscore 30f7226d9a first commit 3 jaren geleden upper-case 30f7226d9a first commit 3 jaren geleden util-deprecate 30f7226d9a first commit 3 jaren geleden valid-data-url 30f7226d9a first commit 3 jaren geleden web-resource-inliner 30f7226d9a first commit 3 jaren geleden webidl-conversions 30f7226d9a first commit 3 jaren geleden whatwg-url 30f7226d9a first commit 3 jaren geleden wrap-ansi 30f7226d9a first commit 3 jaren geleden wrappy 30f7226d9a first commit 3 jaren geleden y18n 30f7226d9a first commit 3 jaren geleden yallist 30f7226d9a first commit 3 jaren geleden yaml 30f7226d9a first commit 3 jaren geleden yargs 30f7226d9a first commit 3 jaren geleden yargs-parser 30f7226d9a first commit 3 jaren geleden .yarn-integrity 30f7226d9a first commit 3 jaren geleden tum/tmt_learning - Gogs: Simplico Git Service

暫無描述

Prach Pongpanich 6f337d0a21 install tailwind alpine daisyui 3 年之前
..
LICENSE 6f337d0a21 install tailwind alpine daisyui 3 年之前
README.md 6f337d0a21 install tailwind alpine daisyui 3 年之前
index.d.ts 6f337d0a21 install tailwind alpine daisyui 3 年之前
index.js 6f337d0a21 install tailwind alpine daisyui 3 年之前
package.json 6f337d0a21 install tailwind alpine daisyui 3 年之前

README.md

PostCSS Nested

<img align="right" width="135" height="95"

 title="Philosopher’s stone, logo of PostCSS"
 src="https://postcss.org/logo-leftp.svg">

PostCSS plugin to unwrap nested rules closer to Sass syntax.

.phone {
    &_title {
        width: 500px;
        @media (max-width: 500px) {
            width: auto;
        }
        body.is_dark & {
            color: white;
        }
    }
    img {
        display: block;
    }
}

.title {
  font-size: var(--font);

  @at-root html {
      --font: 16px
  }
}

will be processed to:

.phone_title {
    width: 500px;
}
@media (max-width: 500px) {
    .phone_title {
        width: auto;
    }
}
body.is_dark .phone_title {
    color: white;
}
.phone img {
    display: block;
}

.title {
  font-size: var(--font);
}
html {
  --font: 16px
}

Related plugins:

  • Use postcss-current-selector after this plugin if you want to use current selector in properties or variables values.
  • Use postcss-nested-ancestors before this plugin if you want to reference any ancestor element directly in your selectors with ^&.

Alternatives:

<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"

   alt="Sponsored by Evil Martians" width="236" height="54">

Docs

Read full docs here.