You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: developer_manual/getting_started/codingguidelines.rst
+41-5Lines changed: 41 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -449,9 +449,10 @@ Control structures
449
449
CSS
450
450
---
451
451
452
-
Take a look at the `Writing Tactical CSS & HTML <https://www.youtube.com/watch?v=hou2wJCh3XE&feature=plcp>`_ video on YouTube.
453
-
454
-
Don't bind your CSS too much to your HTML structure and try to avoid IDs. Also try to make your CSS reusable by grouping common attributes into classes.
452
+
- Do not bind your CSS to much to your HTML structure.
453
+
- Try to avoid IDs.
454
+
- Try to make your CSS reusable by grouping common attributes into classes.
455
+
- Take a look at the `Writing Tactical CSS & HTML <https://www.youtube.com/watch?v=hou2wJCh3XE&feature=plcp>`_ video on YouTube.
455
456
456
457
**DO**:
457
458
@@ -461,7 +462,7 @@ Don't bind your CSS too much to your HTML structure and try to avoid IDs. Also t
461
462
list-style-type: none;
462
463
}
463
464
464
-
.list>.list_item {
465
+
.list>.list__item {
465
466
display: inline-block;
466
467
}
467
468
@@ -482,4 +483,39 @@ Don't bind your CSS too much to your HTML structure and try to avoid IDs. Also t
482
483
display: inline-block;
483
484
}
484
485
485
-
**TBD**
486
+
Naming convention
487
+
^^^^^^^^^^^^^^^^^
488
+
489
+
We recommend to use the BEM (Block-Element-Modifier) naming convention for CSS classes.
490
+
BEM helps with making CSS reusable and better maintainable, especially when using pre-processors like SASS.
0 commit comments