Open slavkoja opened 5 years ago
I was referring to the PHP code when I'we written lightweight, anyway You're right, the whole JS is not used (I've forgot to remove the calls) and the bootstrap CSS code can be minimized
I hope, that my CSS pickup will be useful ;-)
It's useful, I'm only fixing some thing. Anyway I would keep the HTML code compatible with Bootstrap (and thus not changing the margins and padding) to allow people switch seamlessly from the minimal css implementation to Bootstrap, in order to provide the framework to add component as custom bars (for Custom classes, see the wiki) to the code, without messing with lots of overrides.
Compatibility with anything is not bad at all and rewriting margins is simple via custom CSS.
But i afraid, if mentioned the <br>
tags will not mess with flex
layout.
BTW, with my changes it looks (original width 1400 px):
Solved by removing the
tag (which behaviour is not well defined) and by adding the mb-3 class to the status cards. I've pushed the changes into master
OK, thanks
Describe the bug I am not sure, if it is intended or not. The project itself is described as lightweight, but it uses the Bootstrap CSS (152 kB) which is not very light. Beside this, it uses three JS files (jQuery 68 kB, Popper 21 kB and Bootstrap 57 kB). From them, only Bootstrap CSS is partially used, then it loads not used 156 kB of JS and mostly not used 152 kB of CSS.
To Reproduce Always
Expected behavior I expect from lightweight system, that it will use only really needed things.
Additional context I try to remove all JSs from
status.php
template and i do not see any corruption. Then i pickup only used classes from bootstrap (for testing incustom.css
1,2 kB with spaces):I did minimal changes in this CSS:
.jumbotron
class.card
classFinally, thanks to
.card
margin the<br>
tag instatus_card.php
can (have) be removed.I suggest to remove bootstrap at all, and place these CSS into separate file, to leave the
custom.css
for customization.