1.1.0 • Published 7 years ago

stylelint-config-sky v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

stylelint-config-sky

Build Status codecov npm version

Install

$ npm install --save-dev stylelint-config-sky

Sample

@import url("x.css");
@import url("y.css");

.selector1 {
  margin-top: 24px;
  padding: "1px 2px 3px 4px";
}

.selector-1,
.selector-2,
.selector-3[type="text"] {
  background: linear-gradient(#fff, rgba(0, 0, 0, .1));
  box-sizing: border-box;
  color: #333;
}

.selector-a,
.selector-b:not(:first-child) {
  padding: 10px;
  top: calc(calc(1em * 20) / 40);
}

@media (min-width >= 10em) {
  .selector {
    /* comment 1*/
    background-color: #ccc;

    /* comment 2*/
    transform: translate(1, 1) scale(4);
  }
}

.selector-x > .selector-y {
  font-size: 1rem;
}

.selector-z:after {
  background-image: url("http://hoge/x.svg");
  content: "";
}

/* css-next */
:root {
  --font-size: 1rem;
  --color: #fff;
  --danger-theme: {
    background: red;
    color: hwb(90, 0%, 0%, .5);
  };
}

body {
  font-family: system-ui;
}

.selector-100 {
  text-align: center;

  & p {
    color: #f0f;
  }

  & a {
    color: var(--color);
  }
}

.danger {
  @apply --danger-theme;
  font-size: calc(var(--font-size) * 2);
}

p:matches(:first-child, .special) {
  background-color: hsl(300grad 25% 15% / 70%);
  color: red;
}

@custom-media --small-viewport (max-width: 30em);

@custom-selector :--button button, .button;
1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago