Primjer komponente:
<header class="flex-row align-center">
<ul class="navbar">
<li class="primary navbar_item active">Home</li>
<li class="navbar_item">Products</li>
<li class="navbar_item disabled">Resources</li>
</ul>
</header>
DA:
.navbar {
}
.navbar_menuitem {
}
NE:
.nav-bar {
}
.navbar-menu-item {
}
.navbar_menu-item {
}
.navbar-menu_item {
}
.navbar_menu_item {
}
DA:
.navbar_menuitem {
}
NE:
.menuitem {
}
.navbarmenuitem {
}
DA:
.navbar.selected {
}
NE:
.b-navbar.s-selected {
}
DA:
.tab.selected {
}
NE:
.selected {
}
DA:
.section.card > .section-body {
}
NE:
.section.card .section-body {
}
DA:
.primary.btn {
}
.btn.pressed {
}
<button class="primary btn">Click Me</button>
<button class="btn pressed">Click Me</button>
<button class="primary btn pressed">Click Me</button>
<button class="btn pad-xl pressed">Click Me</button>
NE:
.btn.primary {
}
<button class="btn primary">Click Me</button>
<button class="pressed btn">Click Me</button>
<button class="btn primary pressed">Click Me</button>
<button class="btn pressed pad-xl">Click Me</button>
.btn.selected {
background: yellow;
}
.primary.btn {
background: red; //overrides selected state
}
.primary.btn.selected {
background: lightred;
}
DA:
.flex-row {
}
.size-l {
}
NE:
.row {
}
.large {
}