code-example
Version:
Language code example.
49 lines (39 loc) • 786 B
JavaScript
const code = ` : #f938ab;
.box-shadow( , ) when (iscolor( )) {
border-radius: ;
}
.box-shadow( , : 50%) when (isnumber( )) {
.box-shadow( , rgba(0, 0, 0, ));
}
.box {
color: saturate( , 5%);
border-color: lighten( , 30%);
div {
.box-shadow((0 0 5px), 30%);
}
}
#header {
h1 {
font-size: 26px;
font-weight: bold;
}
p { font-size: 12px;
a { text-decoration: none;
&:hover { border-width: 1px }
}
}
}
-border: 1px;
-color: #111;
: #842210;
#header {
color: ( -color * 3);
border-left: -border;
border-right: ( -border * 2);
}
#footer {
color: ( -color + #003300);
border-color: desaturate( , 10%);
}
`;
export default code;