Skip to content

Commit 50395e1

Browse files
committed
refactor: use built-in style instead of custom
1 parent b97574f commit 50395e1

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

_posts/2022/2022-02-06-make-sure-your-tests-can-fail.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Over the past few months, I've encountered a recurring situation during code rev
1717
## Case study
1818
Let me share an example so we can go through it together. Imagine a test that needs to verify that some data in the list appears ordered in the UI.
1919

20-
<pre class="align-center">
20+
<pre class="d-flex justify-content-center">
2121
🛒Shopping list
2222
☑️ Apples
2323
☑️ Bread
@@ -97,4 +97,4 @@ This is something we have to deal with. No one is going to write tests for tests
9797
## Conclusion
9898
Here are some recommendations to follow when creating tests:
9999
- Make sure that the code you create does what you think it should do.
100-
- Run the test under conditions where you expect it to fail to prove that it can.
100+
- Run the test under conditions where you expect it to fail to prove that it can.

assets/css/jekyll-theme-chirpy.scss

+14-16
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,30 @@
2323
}
2424

2525
/*
26-
* Post styles
26+
* Page styles
2727
*/
2828

29-
// Schemas and code blocks styles
30-
div.highlighter-rouge {
31-
max-height: 70vh;
32-
overflow-y: auto;
33-
}
34-
35-
// Custom alignment styles
36-
.align-center {
37-
display: flex;
38-
justify-content: center;
39-
}
40-
41-
// Progress bar
29+
// Back-to-top progress bar
4230
#progress-circle {
4331
margin: -1px -1px;
4432
top: -2.75rem;
4533
position: relative;
4634
transform: rotate(-90deg);
47-
}
4835

49-
#progress-circle circle {
36+
circle {
5037
stroke: var(--toc-highlight);
5138
stroke-dasharray: 2 * 3.14 * 20;
5239
stroke-dashoffset: 2 * 3.14 * 20;
5340
transition: stroke-dashoffset 0.2s;
41+
}
42+
}
43+
44+
/*
45+
* Post styles
46+
*/
47+
48+
// Schemas and code blocks styles
49+
div.highlighter-rouge {
50+
max-height: 70vh;
51+
overflow-y: auto;
5452
}

0 commit comments

Comments
 (0)