From f3b4308cb59bf4b21ff186f8479c82239446d139 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 7 Jun 2021 12:56:27 +0200 Subject: upgrade to bootstrap 5.0.1 and first batch of fixes --- view/theme/redbasic/css/style.css | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 5f469eb7b..2d48f3655 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -13,7 +13,7 @@ html { } body { - font-size: 0.9rem; + font-size: 1rem; background-color: $bgcolour; background-image: url('$background_image'); background-attachment: fixed; @@ -1273,7 +1273,7 @@ img.mail-conv-sender-photo { border-radius: $radius; } -#nav-app-link { +#nav-app-link-wrapper.has_location .nav-link { padding: 0 !important; line-height: 1.175; white-space: nowrap; @@ -1469,7 +1469,6 @@ blockquote { .dropdown-menu { color: $font_colour; - font-size: 0.9rem; border-radius: $radius; } @@ -1627,17 +1626,17 @@ dl.bb-dl > dd > li { /* Turn checkboxes into switches */ -.form-group.checkbox > div { +.onoffswitch.checkbox > div { position: relative; width: 60px; -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; display:inline-block; } -.form-group.checkbox input { +.onoffswitch.checkbox input { display: none; } -.form-group.checkbox > div label { +.onoffswitch.checkbox > div label { display: block; overflow: hidden; cursor: pointer; border: 1px solid #ccc; border-radius: 12px; @@ -1648,11 +1647,11 @@ dl.bb-dl > dd > li { font-weight: normal; } -.form-group.checkbox:hover label { +.onoffswitch.checkbox:hover label { color: $link_colour; } -.form-group.checkbox:hover > div label { +.onoffswitch.checkbox:hover > div label { border-color: $link_colour; } @@ -1691,17 +1690,17 @@ dl.bb-dl > dd > li { -o-transition: all 0.3s ease-in 0s; transition: all 0.3s ease-in 0s; } -.form-group.checkbox > div > input:checked + label .onoffswitch-inner { +.onoffswitch.checkbox > div > input:checked + label .onoffswitch-inner { margin-left: 0px; } -.form-group.checkbox > div > input:checked + label .onoffswitch-switch { +.onoffswitch.checkbox > div > input:checked + label .onoffswitch-switch { right: 0px; background-color: #0275d8; } -.form-group.checkbox > div > input:disabled + label .onoffswitch-switch { +.onoffswitch.checkbox > div > input:disabled + label .onoffswitch-switch { background-color: red; opacity: 0.3; filter:alpha(opacity=30); -- cgit v1.2.3 From e39b29cc4b9599918fc87dfc0de753d9db7f1980 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 8 Jul 2021 13:35:28 +0200 Subject: set touch_max to 1/10 of the screen width to prevent overlaping with cursor positioning --- view/theme/redbasic/js/redbasic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index a354682d7..9312d8390 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -71,7 +71,7 @@ $(document).ready(function() { setInterval(function () {checkNotify();}, 10 * 1000); var touch_start = null; - var touch_max = 70; + var touch_max = window.innerWidth / 10; window.addEventListener('touchstart', function(e) { if (e.touches.length === 1){ @@ -90,7 +90,7 @@ $(document).ready(function() { window.addEventListener('touchend', function(e) { $('html, body').css('overflow-y', ''); - let touch_offset = 30; //at least 100px are a swipe + let touch_offset = 30; //at least 30px are a swipe if (touch_start) { //the only finger that hit the screen left it let touch_end = e.changedTouches.item(0).clientX; -- cgit v1.2.3 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 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'view/theme') 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', '---'); -- cgit v1.2.3 From cddc0217724f1a7661014d50e4c940e623a0c2dc Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 3 Aug 2021 07:12:35 +0000 Subject: Apps drag and drop feature --- view/theme/redbasic/js/redbasic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 9312d8390..c0c03d4f8 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -50,7 +50,7 @@ $(document).ready(function() { }); $("input[data-role=cat-tagsinput]").tagsinput({ - tagClass: 'badge badge-pill badge-warning text-dark' + tagClass: 'badge rounded-pill bg-warning text-dark' }); $('a.disabled').click(function(e) { -- cgit v1.2.3 From db4109c2a0d10bbbbb3e85e6ba35f820c9aa1e11 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 15 Aug 2021 08:26:11 +0000 Subject: streamline default link color --- view/theme/redbasic/php/style.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 4fb239cb6..3ea94f9aa 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -79,7 +79,7 @@ if (! $nav_icon_colour) if (! $nav_active_icon_colour) $nav_active_icon_colour = 'rgba(255, 255, 255, 0.75)'; if (! $link_colour) - $link_colour = '#007bff'; + $link_colour = '#0d6efd'; if (! $banner_colour) $banner_colour = '#fff'; if (! $bgcolour) -- cgit v1.2.3 From 189da4fdc1408a25b4fd68c0b7d5834232a599a2 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 23 Aug 2021 10:32:48 +0000 Subject: untangle the app template into separate templates and fix bbcode view --- view/theme/redbasic/css/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 811df02e4..228e7b63a 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1743,7 +1743,7 @@ dl.bb-dl > dd > li { border-left: 0.2rem solid #eee; } -.app-icon { +.app-icon i { color: #777; font-size: 80px; text-shadow: 3px 3px 3px lightgrey; -- cgit v1.2.3 From 64b59b4358879fb938ab92ece79070910d09543f Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Aug 2021 06:56:45 +0000 Subject: capitalize widget titles --- view/theme/redbasic/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'view/theme') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 228e7b63a..9c3596f1b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1195,6 +1195,12 @@ img.mail-conv-sender-photo { border-radius: $radius; } +.widget h3 { + font-size: 0.9rem; + text-transform: uppercase; +} + + #note-text { border-radius: $radius; } -- cgit v1.2.3