Search
 
SCRIPT & CODE EXAMPLE
 

CSS

CSS Global variables

:root {
	--global--color-primary: #28303d;
}

a {
	color: var(--global--color-primary);
}

.social-icons a {
	background: var(--global--color-primary);
}
Comment

add css variables without global

div {
  --color: #fff;
}

div .child {
  color: var(--color);
}
Comment

PREVIOUS NEXT
Code Example
Css :: textarea resize only horizontal 
Css :: rotate icon on click css 
Css :: position an icon in relation a parent element 
Css :: css text border 
Css :: how to change paragraph text color to orange - css 
Css :: how to make a triangle in css 
Css :: Warning: Failed child context type: Invalid child context `virtualizedCell.cellKey` of type `number` supplied to `CellRenderer`, expected `string`. 
Css :: dont brake text in css 
Css :: padding right 
Css :: how to center a text input in css 
Css :: how to change selection color 
Css :: rgb gold 
Css :: centos 8 cron on reboot 
Css :: z pos css 
Css :: postcss-preset-env: end value has mixed support, consider using flex-end instead 
Css :: css style slider color 
Css :: text properties css 
Css :: how to hide the scrollbar in css 
Css :: insert background image css error 
Css :: set background image and color both 
Css :: move up on hover css 
Css :: css scroll snap 
Css :: css blur border 
Css :: javascript canvas pixel art 
Css :: css border different sides 
Css :: Install css-loader and style-loader 
Css :: regex remove css comment 
Css :: center pop up css 
Css :: scss percentage 
Css :: background image with color overlay gradient css 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =