From 6ce0168ba53555053f90f1e6f50c45e51ddf2255 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 4 Sep 2022 10:14:11 +0200 Subject: [PATCH] docs: better alignment of icons Fixes issue with spacing between icon and text in backend docs headers. This reverts the changes from PR #5889 and #5701, which aligned menu/dropdown items when icons have different sizes, and implements an alternative fix which gives slightly better results, and also is more of a native Font Awesome solution: Font Awesome icons are designed on grid and share a consistent height. But they vary in width depending on how wide or narrow each symbol is. If you prefer to work with icons that have a consistent width, adding fa-fw will render each icon using the same width. --- docs/layouts/chrome/menu.html | 18 ++--- docs/layouts/chrome/navbar.html | 132 ++++++++++++++++---------------- docs/static/css/custom.css | 12 --- 3 files changed, 75 insertions(+), 87 deletions(-) diff --git a/docs/layouts/chrome/menu.html b/docs/layouts/chrome/menu.html index 3db7f54bd..85ea1e543 100644 --- a/docs/layouts/chrome/menu.html +++ b/docs/layouts/chrome/menu.html @@ -17,9 +17,9 @@
@@ -31,12 +31,12 @@
diff --git a/docs/layouts/chrome/navbar.html b/docs/layouts/chrome/navbar.html index f732756e3..591219cf3 100644 --- a/docs/layouts/chrome/navbar.html +++ b/docs/layouts/chrome/navbar.html @@ -14,18 +14,18 @@ Docs
diff --git a/docs/static/css/custom.css b/docs/static/css/custom.css index d112bbbfc..2ac4eb16a 100644 --- a/docs/static/css/custom.css +++ b/docs/static/css/custom.css @@ -142,18 +142,6 @@ h5 { font-size: 95%; } -/* Align dropdown items when icons have different sizes */ -.dropdown-item .fa, .fab, .fad, .fal, .far, .fas { - width: 20px; - text-align: center; -} - -/* Align menu items when icons have different sizes */ -.menu .fa, .fab, .fad, .fal, .far, .fas { - width: 18px; - text-align: center; -} - /* Make primary buttons rclone colours. Should learn sass and do this the proper way! */ .btn-primary { background-color: #3f79ad;