From cec2f0d894b80f3affeb60cff2d4afa49a2019a8 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 29 Jul 2021 08:19:33 +0000 Subject: more work on bs5 --- view/theme/redbasic/css/style.css | 2 +- view/theme/redbasic/php/style.php | 4 +-- view/tpl/chatroomlist.tpl | 2 +- view/tpl/notifications_widget.tpl | 75 ++++----------------------------------- view/tpl/photo_albums.tpl | 2 +- 5 files changed, 12 insertions(+), 73 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 49adde9eb..811df02e4 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -13,7 +13,7 @@ html { } body { - font-size: 1rem; + font-size: 0.9rem; background-color: $bgcolour; background-image: url('$background_image'); background-attachment: fixed; diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index d278aa309..4fb239cb6 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -69,7 +69,7 @@ if ((!$schema) || ($schema == '---')) { } } - + //Set some defaults - we have to do this after pulling owner settings, and we have to check for each setting //individually. If we don't, we'll have problems if a user has set one, but not all options. if (! $nav_bg) @@ -158,7 +158,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) { } -// Set the schema to the default schema in derived themes. See the documentation for creating derived themes how to override this. +// Set the schema to the default schema in derived themes. See the documentation for creating derived themes how to override this. if(local_channel() && App::$channel && App::$channel['channel_theme'] != 'redbasic') set_pconfig(local_channel(), 'redbasic', 'schema', '---'); diff --git a/view/tpl/chatroomlist.tpl b/view/tpl/chatroomlist.tpl index c7f2c2c6f..2825a3f9e 100644 --- a/view/tpl/chatroomlist.tpl +++ b/view/tpl/chatroomlist.tpl @@ -3,7 +3,7 @@ diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 19452dad7..b75d9f796 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -493,9 +493,9 @@ if(fcount < 1) $('.' + n[1] + '-button').fadeOut(); - var count = Number($(this).find('.badge-secondary').html()); + var count = Number($(this).find('.bg-secondary').html()); count--; - $(this).find('.badge-secondary').html(count); + $(this).find('.bg-secondary').html(count); if(count < 1) $(this).remove(); } @@ -518,21 +518,21 @@ } - - -
- - -
- {{foreach $notifications as $notification}} -
- - -
- {{/foreach}} -
diff --git a/view/tpl/photo_albums.tpl b/view/tpl/photo_albums.tpl index 9e77ba71e..e2edec687 100644 --- a/view/tpl/photo_albums.tpl +++ b/view/tpl/photo_albums.tpl @@ -5,7 +5,7 @@ {{if $albums}} {{foreach $albums as $al}} {{if $al.shorttext}} - + {{/if}} {{/foreach}} {{/if}} -- cgit v1.2.3