-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webui: Update Bootstrap to version 5.3.2
Upgrade Bootstrap from version 3.4.1 to version 5.3.2 (i.e. the latest version at the moment). This is a major change, upgrading by two major releases, to it requires a lot of adjustments in the current templates and HTML code. While adjusting the existing markup to be compatible with Bootstrap 5, also rewrite parts of the markup to make better use of semantically correct tags (e.g. not use tables for layouting only), reduce the use of inline CSS styles (and use the proper Bootstrap classes instead), unify the look and feel of the web UI a bit, and fix some HTML validation errors. Dependency-wise this removed the Glyphicon and the jQuery dependencies completely. Bootstrap itself is moved to the webpack bundle instead of being a set of separate files.
- Loading branch information
1 parent
d29b765
commit e391538
Showing
70 changed files
with
844 additions
and
1,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$secondary: rgb(205, 205, 205); | ||
|
||
@import "~bootstrap/scss/bootstrap"; | ||
|
||
a:not([rel~="external"]):not(.btn):not(.list-group-item) { | ||
color: #181818; | ||
} | ||
|
||
a:not([rel~="external"]):not(.btn):not(.nav-link):not(.list-group-item) { | ||
text-decoration: none; | ||
} | ||
|
||
a:not([rel~="external"]):not(.btn):not(.nav-link):not(.list-group-item):hover { | ||
color: #23527c; | ||
text-decoration: underline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short disclaimer: I'm not saying it looks better than before 😄 While I think this could be put on the production server without any issues, I'm also happy to do further fine-tuning of this before.
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. I'll take a look at it tomorrow during the day, and probably deploy it if nothing weird jumps out at me. 😄
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticing this in the build part of Cypress test logs for one of the dependabot changes today:
It's just a warning rather than a hard error, but we should probably look into it. 😄
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nearly the end of today here, and I still haven't looked at this change (been merging dependabot PRs).
It'll have to be a tomorrow thing instead, as I'm too sleepy atm for it to be a safe thing to do. 😇
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MKleusberg
I've just taken a look at this in my local dev setup. The front page and user preferences pages (maybe others too) are pretty broken with Firefox. 😦Haven't investigated why yet, as I'm working on a different issue. There's nothing obvious in the javascript console though.Nope, my mistake. I needed to properly rebuild my local Docker image for this to show up fully. Looks fine so far. 😄
The Upload page looks a bit weird though, as the width of everything seems to be close to 100%.
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I get the same warnings locally. They are coming from the Bootstrap code being compiled to CSS - so not really a problem on our end.
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed now 😄
e391538
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This has been deployed to production. 😄