2017-10-20 05:53:08 -04:00
|
|
|
.renderColorSwatchClasses(@colorName) {
|
2019-12-05 14:09:31 -05:00
|
|
|
@colorVal: @@colorName;
|
|
|
|
@colorValRed: red(@colorVal);
|
|
|
|
@colorValGreen: green(@colorVal);
|
|
|
|
@colorValBlue: blue(@colorVal);
|
|
|
|
@colorValAsRGB: 'rgb(@{colorValRed}, @{colorValGreen}, @{colorValBlue})';
|
2017-10-20 05:53:08 -04:00
|
|
|
|
2019-12-05 14:09:31 -05:00
|
|
|
&.@{colorName} {
|
|
|
|
.color-swatch {
|
|
|
|
background-color: @colorVal;
|
|
|
|
}
|
|
|
|
.color-less-var::before {
|
|
|
|
content: '@@{colorName}';
|
|
|
|
}
|
|
|
|
.color-hex-val::before {
|
|
|
|
content: '@{colorVal}';
|
|
|
|
}
|
|
|
|
.color-rgb-val::before {
|
|
|
|
font-size: 10px;
|
|
|
|
content: '@{colorValAsRGB}';
|
|
|
|
}
|
|
|
|
}
|
2017-10-20 05:53:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-row {
|
2019-12-05 14:09:31 -05:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2017-10-20 05:53:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-box {
|
2019-12-05 14:09:31 -05:00
|
|
|
background: white;
|
|
|
|
margin: 10px 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: 16.666%;
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-1);
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-2);
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-3);
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-4);
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-5);
|
|
|
|
.renderColorSwatchClasses(ol-blue-gray-6);
|
|
|
|
.renderColorSwatchClasses(ol-green);
|
|
|
|
.renderColorSwatchClasses(ol-dark-green);
|
|
|
|
.renderColorSwatchClasses(ol-blue);
|
|
|
|
.renderColorSwatchClasses(ol-dark-blue);
|
|
|
|
.renderColorSwatchClasses(ol-red);
|
|
|
|
.renderColorSwatchClasses(ol-dark-red);
|
2017-10-20 05:53:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-swatch {
|
2019-12-05 14:09:31 -05:00
|
|
|
height: 100px;
|
|
|
|
width: 100px;
|
|
|
|
margin: 10px auto;
|
|
|
|
border-radius: 4px;
|
2017-10-20 05:53:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-label {
|
2019-12-05 14:09:31 -05:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0 3px 10px;
|
2017-10-20 05:53:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.color-label pre {
|
2019-12-05 14:09:31 -05:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 1.8em;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|