1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 18:56:29 +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

@@ -26,10 +26,10 @@ const Details: React.FC<{}> = () => {
html={`
<div class="container">
<!-- The real file input -->
<input type="file" class="input" />
<input type="file" class="container__input" />
<!-- The upload icon -->
<div class="icon">...</div>
<div class="container__icon">...</div>
<!-- The label -->
...
@@ -48,7 +48,7 @@ css={`
border: 1px solid rgba(0, 0, 0, 0.3);
}
.input {
.container__input {
/* Take the full size */
height: 100%;
left: 0;
@@ -60,7 +60,7 @@ css={`
opacity: 0;
}
.icon {
.container__icon {
margin-right: 8px
}
`}