A double leading dash is used for defining custom properties. For more information, check out this W3C Spec page.
Example from W3C:
:root {
--main-color: #05c;
--accent-color: #056;
}
#foo h1 {
color: var(--main-color);
}
More Related Contents:
- Why I can see Less instead of CSS in a browser [closed]
- Why aren’t my grid-template-areas with ASCII art not working?
- is there a css hack for safari only NOT chrome?
- How to remove the border highlight on an input text element
- Can I set background image and opacity in the same property?
- nth-child doesn’t respond to class [duplicate]
- CSS Margin Collapsing
- Make div stay at bottom of page’s content all the time even when there are scrollbars
- CSS3’s attr() doesn’t work in major browsers
- How do I apply opacity to a CSS color variable?
- Preloading CSS Images
- Left aligned last row in centered grid of elements
- Remove extra button spacing/padding in Firefox
- How to set border’s thickness in percentages?
- relative path to CSS file [closed]
- CSS background-size: cover + background-attachment: fixed clipping background images
- What does a star-preceded property mean in CSS?
- How do I force a DIV block to extend to the bottom of a page even if it has no content?
- CSS text-transform capitalize on all caps
- Disable antialising when scaling images [duplicate]
- angular 2 ngIf and CSS transition/animation
- Deprecated SMIL SVG animation replaced with CSS or Web animations effects (hover, click)
- ::before pseudo-element stacking order issue
- How to make a column span full width when a second column is not there? (CSS Grid)
- Styling mat-select in Angular Material
- What is the meaning of \9 in this width property value declaration? [duplicate]
- How to reference a .css file on a razor view?
- What are the rules around whitespace in attribute selectors?
- CSS select first element with a certain class
- CSS: background image does not fill when scrolling