mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Fix incorrect modal colors on the reader page
This commit is contained in:
parent
4af5258602
commit
0e7be6392d
@ -22,8 +22,7 @@ const setTheme = themeStr => {
|
||||
$('.uk-card').addClass('uk-card-secondary');
|
||||
$('.uk-card').removeClass('uk-card-default');
|
||||
$('.ui-widget-content').addClass('dark');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$('html').css('background', '');
|
||||
$('body').removeClass('uk-light');
|
||||
$('.uk-card').removeClass('uk-card-secondary');
|
||||
@ -39,5 +38,11 @@ const styleModal = () => {
|
||||
$('.uk-modal-footer').css('background', color);
|
||||
};
|
||||
|
||||
// do it before document is ready to prevent the initial flash of white
|
||||
// do it before document is ready to prevent the initial flash of white on
|
||||
// most pages
|
||||
setTheme(getTheme());
|
||||
|
||||
$(() => {
|
||||
// hack for the reader page
|
||||
setTheme(getTheme());
|
||||
});
|
||||
|
@ -4,7 +4,6 @@
|
||||
<%= render_component "head" %>
|
||||
|
||||
<body>
|
||||
<script src="<%= base_url %>js/theme.js"></script>
|
||||
<div class="uk-section uk-section-default uk-section-small reader-bg">
|
||||
<div class="uk-container uk-container-small">
|
||||
<%- urls.each_with_index do |url, i| -%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user