1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-12 17:14:19 +02:00

Use BEM naming convention

This commit is contained in:
Phuoc Nguyen
2021-04-01 16:46:44 +07:00
parent e1b4c6efa2
commit 538e5f750e
37 changed files with 233 additions and 214 deletions

View File

@@ -49,12 +49,12 @@ const Details: React.FC<{}> = () => {
html={`
<div class="tabs">
<!-- Active tab -->
<div class="tab--active">
<div class="tabs__tab--active">
...
</div>
<!-- Inactive tab -->
<div class="tab--inactive">
<div class="tabs__tab--inactive">
...
</div>
</div>
@@ -67,7 +67,7 @@ css={`
justify-content: center;
}
.tab--active {
.tabs__tab--active {
/* Border */
border: 1px solid rgba(0, 0, 0, 0.3);
/* Hide the bottom border */
@@ -78,7 +78,7 @@ css={`
border-top-right-radius: 2px;
}
.tab--inactive {
.tabs__tab--inactive {
/* Has only the bottom border */
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}