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
@@ -444,9 +444,10 @@ Control structures
444
444
CSS
445
445
---
446
446
447
-
Take a look at the `Writing Tactical CSS & HTML <https://www.youtube.com/watch?v=hou2wJCh3XE&feature=plcp>`_ video on YouTube.
448
-
449
-
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.
447
+
- Do not bind your CSS to much to your HTML structure.
448
+
- Try to avoid IDs.
449
+
- Try to make your CSS reusable by grouping common attributes into classes.
450
+
- Take a look at the `Writing Tactical CSS & HTML <https://www.youtube.com/watch?v=hou2wJCh3XE&feature=plcp>`_ video on YouTube.
450
451
451
452
**DO**:
452
453
@@ -456,7 +457,7 @@ Don't bind your CSS too much to your HTML structure and try to avoid IDs. Also t
456
457
list-style-type: none;
457
458
}
458
459
459
-
.list>.list_item {
460
+
.list>.list__item {
460
461
display: inline-block;
461
462
}
462
463
@@ -477,4 +478,39 @@ Don't bind your CSS too much to your HTML structure and try to avoid IDs. Also t
477
478
display: inline-block;
478
479
}
479
480
480
-
**TBD**
481
+
Naming convention
482
+
^^^^^^^^^^^^^^^^^
483
+
484
+
We recommend to use the BEM (Block-Element-Modifier) naming convention for CSS classes.
485
+
BEM helps with making CSS reusable and better maintainable, especially when using pre-processors like SASS.
0 commit comments