mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-29 08:39:58 +02:00
Use BEM naming convention
This commit is contained in:
@@ -26,13 +26,13 @@ const Details: React.FC<{}> = () => {
|
||||
<BrowserFrame
|
||||
html={`
|
||||
<div class="container">
|
||||
<header class="header">
|
||||
<header class="container__header">
|
||||
...
|
||||
</header>
|
||||
<main class="main">
|
||||
<main class="container__main">
|
||||
...
|
||||
</main>
|
||||
<footer class="footer">
|
||||
<footer class="container__footer">
|
||||
...
|
||||
</footer>
|
||||
</div>
|
||||
@@ -43,11 +43,13 @@ css={`
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
.header,
|
||||
.footer {
|
||||
|
||||
.container__header,
|
||||
.container__footer {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.main {
|
||||
|
||||
.container__main {
|
||||
flex-grow: 1;
|
||||
}
|
||||
`}
|
||||
|
Reference in New Issue
Block a user