1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-18 20:01:26 +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

@@ -23,9 +23,9 @@ const Details: React.FC<{}> = () => {
<div className='p-8 pb-20'>
<BrowserFrame
html={`
<div class="container">
<div class="banner">
<!-- Tells visitors that the website uses cookie -->
<div class="container__content">
<div class="banner__content">
...
</div>
@@ -34,7 +34,7 @@ html={`
</div>
`}
css={`
.container {
.banner {
/* Banner is displayed at the bottom */
bottom: 0;
left: 0;
@@ -47,7 +47,7 @@ css={`
justify-content: center;
}
.container__content {
.banner__content {
/* Take available width */
flex: 1;
}