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