- Inline
- Internal
- External
- External using @import
- type
- class
- id
:hover
:focus
:active
:not()
:first-child
:last-child
:nth-child()
:after
:before
:first-line
[attr]
[attr=value]
[attr~=value]
[attr|=value]
[attr^=value]
[attr$=value]
[attr*= ]
.a + b.
a. ~ b.
a. > b.
a. b.
- Inline style specificity
- Id selector specificity
- Class selector specificity
- Pseudo class selector specificity
- Attribute selector selector specificity
- Source order specificity
- !important
- Universal, combinators, and negation pseudo-class selector specificity
- Pre-defined values
- CSS-wide values
- URLs (absolute or relative)
- Integer [A]
- Numbers [A]
- Dimensions
- Distance
- Relative [A]
- Absolute [A]
- Angle [E]
- Time [D]
- Frequency [F]
- Resolution [E]
- Distance
- Percentages [A]
- Mixing percentages and dimensions [F]
- keywords
red
- hex
#000000
rgb
hsl
transparent
currentColor
- top
- right
- bottom
- left
url()
calc()
var()
hsl()
rgb()
linear-gradient()
cubic-bezier()
max()
min()
color
font
font-family
font-size
font-weight
text-align
text-decoration
text-transform
white-space
text-overflow
background-color
[A]background-image
[A]background-position
[B]background-repeat
[A]background-attachment
[D]bacgkround-size
[C]background-position
[B]background-origin
[D]
width
height
padding
border
margin
line-height
box-sizing
position
static
[B]relative
[A]absolute
[A]fixed
[A]sticky
[D]
z-index
[C]float
[A]vertical-align
[A]text-align
[A]top
[A]right
[A]bottom
[A]left
[A]
inline
[A]inline-block
[A]block
[A]flexbox
[C]grid
[D]table
[D]
- Container
flex-direction
flex-wrap
justify-content
align-items
align-content
- Items
flex
flex-grow
flex-shrink
flex-basis
align-self
order
- Container
grid-template
grid-template-rows
grid-template-columns
grid-template-areas
grid-gap
grid-auto-columns
grid-auto-flow
grid-auto-rows
justify-content
align-items
align-content
- Items
grid-area
grid-column
grid-row
align-self
transition-property
transition-duration
transition-timing-function
transition-delay
animation-name
animation-duration
animation-timing-function
animation-delay
animation-iteration-count
animation-direction
animation-fill-mode
animation-play-state
transform
scale
translate
skew
rotate
transform-origin
border
properties [A]margin
[A]padding
[A]background
[C]font
[D]transition
[D]animation
[E]
- nesting
- ampersand &
- variables
- interpolation
- % placeholder
@import
[A]@extend
[B]@mixin
[C]@include
[C]@function
[D]@error
[E]@warn
[E]@debug
[E]@at-root
[E]
@if
and@else
@each
@for
@while
- numbers [A]
- strings [A]
- colors [A]
- lists [D]
- maps [D]
- true and false [A]
- null
- plain CSS (radial-gradient(red, blue)) [D]
- numbers (abs, ceil, min, ...) [B]
- strings (quote, str-index, str-insert, ...) [D]
- colors
- lighten, darken [A]
- adjust-color, blue, desaturate, ... [D]
- lists (append, index, join, ...) [E]
- maps (map-get, map-has-key, map-merge, ...) [E]
- selectors (selector-extend, ...) [E]