Animation

Description: animation can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// animation
animation: {
name: 'test'
timeline: {
'50%': {
font-size: 1em
}
}
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# animation
animation:
name: test
timeline:
50%:
font-size: 1em
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
animation-delay: 0s;
animation-name: test;
animation-duration: 0.5s;
animation-fill-mode: none;
animation-direction: normal;
animation-iteration-count: 1;
animation-play-state: running;
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
@keyframes test {
50% {
font-size: 1em;
}
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // animation
    animation: {
      name: 'test'
      timeline: {
        '50%': {
          font-size: 1em
        }
      }
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
  animation-delay: 0s;
  animation-name: test;
  animation-duration: 0.5s;
  animation-fill-mode: none;
  animation-direction: normal;
  animation-iteration-count: 1;
  animation-play-state: running;
  animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
@keyframes test {
  50% {
    font-size: 1em;
  }
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # animation
    animation:
      name: test
      timeline:
        50%:
          font-size: 1em

Attribute

Description: attribute can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// attribute
attribute: {
key: '[data-role="test"]'
font-size: 1em
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# attribute
attribute:
key: '[data-role="test"]'
font-size: 1em
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
}
.test:not(.bad)[data-role="test"] {
font-size: 1em;
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // attribute
    attribute: {
      key: '[data-role="test"]'
      font-size: 1em
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
}
.test:not(.bad)[data-role="test"] {
  font-size: 1em;
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # attribute
    attribute:
      key: '[data-role="test"]'
      font-size: 1em

Notes

Component

Description: component can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// component
component-span: {
font-size: 1em
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# component
component-span:
font-size: 1em
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
}
.test:not(.bad) > span {
font-size: 1em;
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // component
    component-span: {
      font-size: 1em
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
}
.test:not(.bad) > span {
  font-size: 1em;
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # component
    component-span:
      font-size: 1em

Element

Description: element can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// element
first-child: {
font-size: 1em
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# element
first-child:
font-size: 1em
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
}
.test:not(.bad):first-child {
font-size: 1em;
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // element
    first-child: {
      font-size: 1em
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
}
.test:not(.bad):first-child {
  font-size: 1em;
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # element
    first-child:
      font-size: 1em

Grid

Description: grid can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// grid
grid: {
column: '1/3'
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# grid
grid:
column: 1/3
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
flex: 0 0 auto;
width: calc(99.9% * 1 / 3 - (30px - 30px * 1 / 3));
}
.test:not(.bad):nth-child(1n) {
margin-right: 30px;
}
.test:not(.bad):last-child {
margin-right: 0;
}
.test:not(.bad):nth-child(3n) {
float: right;
margin-right: 0;
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // grid
    grid: {
      column: '1/3'
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
  flex: 0 0 auto;
  width: calc(99.9% * 1 / 3 - (30px - 30px * 1 / 3));
}
.test:not(.bad):nth-child(1n) {
  margin-right: 30px;
}
.test:not(.bad):last-child {
  margin-right: 0;
}
.test:not(.bad):nth-child(3n) {
  float: right;
  margin-right: 0;
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # grid
    grid:
      column: 1/3

Media

Description: media can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// media
media-md: {
height: 300px
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# media
media-md:
height: 300px
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
}
@media (min-width: 600px) and (max-width: 800px) {
.test:not(.bad) {
height: 300px;
}
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // media
    media-md: {
      height: 300px
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
}
@media (min-width: 600px) and (max-width: 800px) {
  .test:not(.bad) {
    height: 300px;
  }
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # media
    media-md:
      height: 300px

State

Description: state can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// state
hover-on: {
opacity: 0.5
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# state
hover-on:
opacity: 0.5
.test {
width: 200px;
}
.test:not(.bad) {
height: 200px;
}
.test:not(.bad):hover {
opacity: 0.5;
transition-delay: 0s;
transition-duration: 0.5s;
transition-property: opacity;
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // state
    hover-on: {
      opacity: 0.5
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  height: 200px;
}
.test:not(.bad):hover {
  opacity: 0.5;
  transition-delay: 0s;
  transition-duration: 0.5s;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # state
    hover-on:
      opacity: 0.5

Transition

Description: transition can be used in non.

Edit
ctr('.test', {
width: 200px
non: {
key: '.bad'
height: 200px
// transition
transition: {
opacity: 1
}
}
})
.test:
width: 200px
non:
key: .bad
height: 200px
# transition
transition:
opacity: 1
.test {
width: 200px;
}
.test:not(.bad) {
opacity: 1;
height: 200px;
transition-delay: 0s;
transition-duration: 0.5s;
transition-property: opacity;
transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
ctr('.test', {
  width: 200px
  non: {
    key: '.bad'
    height: 200px
    // transition
    transition: {
      opacity: 1
    }
  }
})
.test {
  width: 200px;
}
.test:not(.bad) {
  opacity: 1;
  height: 200px;
  transition-delay: 0s;
  transition-duration: 0.5s;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}
.test:
  width: 200px
  non:
    key: .bad
    height: 200px
    # transition
    transition:
      opacity: 1