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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user