aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-25 15:22:15 +0000
committerMario <mario@mariovavti.com>2023-01-25 15:22:15 +0000
commit23f93044c1f511d21dcf612f1052db8801b2a4e0 (patch)
tree7babe60549769b59deeb36f7fea4c1d29715fba7 /view/theme/redbasic
parent32dcc28414a43b42e5da082b1781824ecac42bfb (diff)
downloadvolse-hubzilla-23f93044c1f511d21dcf612f1052db8801b2a4e0.tar.gz
volse-hubzilla-23f93044c1f511d21dcf612f1052db8801b2a4e0.tar.bz2
volse-hubzilla-23f93044c1f511d21dcf612f1052db8801b2a4e0.zip
update forkawesome lib
Diffstat (limited to 'view/theme/redbasic')
-rw-r--r--view/theme/redbasic/js/redbasic.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index ca27bb825..7a6d795a4 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -6,18 +6,19 @@ let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode');
if (redbasic_dark_mode == 1) {
$('html').attr('data-bs-theme', 'light');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
$('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
}
if (redbasic_dark_mode == 2) {
$('html').attr('data-bs-theme', 'dark');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
$('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
}
+
$(document).ready(function() {
+ $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
+
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {
@@ -31,6 +32,7 @@ $(document).ready(function() {
}
$('#css3-calc').remove(); // Remove the test element
+
if (document.querySelector('#region_1')) {
stickyScroll('.aside_spacer_left', '.aside_spacer_top_left', '.content', parseFloat(window.getComputedStyle(document.querySelector('#region_1')).getPropertyValue('padding-top')), 0);
}