In the following guides, you will find some basic code formatting conventions used in LUCI.
<a class="luci-link" href="somewhere.html">
<span class="luci-link__text"> Standard Text </span>
</a>
luci-
in order to namespace the library..sass-lint.yml
..luci-block {}
.luci-block--modifier {}
.luci-block__element {}
.luci-block__element--modifier {}
<ul class="luci-block luci-block--modifier">
<li class="luci-block__element luci-block__element--modifier"></li>
</ul>
.luci-block {
.luci-block__element {
/* This selector is too specific. */
/* Don't nest elements inside of blocks. */
}
}
.luci-block__element {
.luci-block--modifier & {
/* This keeps element styles all together. */
}
}
The component javascript used in the LUCI documentation site is meant to demonstrate presentational functionality.
JS files are not inteded for use in production.
The LUCI design system is optimized for the following browsers:
Browser | Version |
---|---|
Google Chrome |
Latest |
Mozilla Firefox |
Latest |
Safari |
Latest |
Internet Explorer |
11 |
Microsoft Edge |
Latest |