Skip to content

Commit 53452a7

Browse files
authored
Add green and red side border for good and bad examples (#1237)
1 parent 44e62d5 commit 53452a7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

_static/devguide_overrides.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,10 @@
7878
fill: #2222EE;
7979
stroke: #008888;
8080
}
81+
82+
.good pre {
83+
border-left: 3px solid rgba(74, 182, 93, 1);
84+
}
85+
.bad pre {
86+
border-left: 3px solid rgb(244, 76, 78);
87+
}

getting-started/git-boot-camp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ In either case, adjust and clean up the commit message.
492492
✅ Here's an example of a **good** commit message:
493493

494494
.. code-block:: text
495+
:class: good
495496
496497
gh-12345: Improve the spam module (GH-777)
497498
@@ -501,6 +502,7 @@ In either case, adjust and clean up the commit message.
501502
❌ Here's an example of a **bad** commit message:
502503

503504
.. code-block:: text
505+
:class: bad
504506
505507
gh-12345: Improve the spam module (#777)
506508
@@ -576,6 +578,7 @@ one as is and delete the number of the backport pull request.
576578
✅ Example of good backport commit message:
577579

578580
.. code-block:: text
581+
:class: good
579582
580583
gh-12345: Improve the spam module (GH-777)
581584
@@ -587,6 +590,7 @@ one as is and delete the number of the backport pull request.
587590
❌ Example of bad backport commit message:
588591

589592
.. code-block:: text
593+
:class: bad
590594
591595
gh-12345: Improve the spam module (GH-777) (#888)
592596

0 commit comments

Comments
 (0)