diff --git a/assets/sass/application.scss b/assets/sass/application.scss index 7e352c3f30..4663c4c47b 100644 --- a/assets/sass/application.scss +++ b/assets/sass/application.scss @@ -49,3 +49,64 @@ pre { .d-flex{ display: flex; } + +.bar-chart { + display: inline-grid; + + /* Got the idea of using
,
, and
from: + * https://css-tricks.com/making-charts-with-css/ */ + dt { + grid-column: 1 / 4; + text-align: center; + } + + dd { + padding: 5px; + margin: 0; + text-align: center; + display: flex; + flex-direction: column; + } + + dd + dd { + border-left: 1px solid #ccc; + } + + progress { + /* Reset the default appearance */ + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + + writing-mode: vertical-lr; + + width: 2em; + height: 5em; + background: none; + border: none; + position: relative; + } + + progress::-webkit-progress-bar { + background: none; + } + + progress::-webkit-progress-value { + /* Chrome (and derivatives) are stubborn to attach the bar to the top */ + bottom: 0; + position: absolute; + } + + progress.git::-moz-progress-bar { + background-color: #E09FA0; + } + progress.git::-webkit-progress-value { + background-color: #E09FA0; + } + progress.svn::-moz-progress-bar { + background-color: #E05F49; + } + progress.svn::-webkit-progress-value { + background-color: #E05F49; + } +} diff --git a/assets/sass/book.scss b/assets/sass/book.scss index 41660c2e98..2fad1c671f 100644 --- a/assets/sass/book.scss +++ b/assets/sass/book.scss @@ -106,7 +106,8 @@ ol.book-toc { padding: 5px; } -.book table.ref th:nth-child(1), td:nth-child(1) { +.book table.ref th:nth-child(1), +.book td:nth-child(1) { width: 25%; padding: 5px; } @@ -170,4 +171,4 @@ ol.book-toc { .book-wrapper { margin-right: 0; } -} \ No newline at end of file +} diff --git a/content/about/small-and-fast.html b/content/about/small-and-fast.html index 7de37e6de0..f5e3e6204a 100644 --- a/content/about/small-and-fast.html +++ b/content/about/small-and-fast.html @@ -31,42 +31,165 @@

Benchmarks

- init benchmarks +
+
Commit A
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Commit B
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Diff Curr
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Diff Rec
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Diff Tags
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Clone
+
+ + git* +
+
+ + git +
+
+ +
+
- init benchmarks +
+
Log (50)
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Log (All)
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Log (File)
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Update
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Blame
+
+ + git +
+
+ + svn +
+
- init benchmarks +
+
Size
+
+ + git +
+
+ + svn +
+