Skip to content

Commit

Permalink
scrollabble
Browse files Browse the repository at this point in the history
Signed-off-by: John Rayes <[email protected]>
  • Loading branch information
live627 committed Dec 10, 2023
1 parent 7f3a065 commit 908c47d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 964 deletions.
5 changes: 0 additions & 5 deletions Sources/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -2849,11 +2849,6 @@ protected function loadJavaScript()
// Queue our JQuery plugins!
self::loadJavaScriptFile('smf_jquery_plugins.js', ['defer' => true, 'minimize' => true], 'smf_jquery_plugins');

if (!User::$me->is_guest) {
self::loadJavaScriptFile('jquery.custom-scrollbar.js', ['defer' => true, 'minimize' => true], 'smf_jquery_scrollbar');
self::loadCSSFile('jquery.custom-scrollbar.css', ['force_current' => false, 'validate' => true], 'smf_scrollbar');
}

// script.js and theme.js, always required, so always add them! Makes index.template.php cleaner and all.
self::loadJavaScriptFile('script.js', ['defer' => false, 'minimize' => true], 'smf_script');
self::loadJavaScriptFile('theme.js', ['defer' => true, 'minimize' => true], 'smf_theme');
Expand Down
13 changes: 5 additions & 8 deletions Themes/default/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1531,14 +1531,11 @@ a[class^="mobile_generic_menu_"] {
-webkit-hyphens: auto;
hyphens: auto;
}
/* Fixes bug with border-box on scrollable js */
.scrollable,
.scrollable *,
#profile_menu {
box-sizing: content-box;
}
.top_menu.scrollable {
max-height: 30em;
@media (hover) {
.top_menu.scrollable {
max-height: 30em;
overflow: auto;
}
}
.pm_unread, .alerts_unread {
margin-top: 5px;
Expand Down
143 changes: 0 additions & 143 deletions Themes/default/css/jquery.custom-scrollbar.css

This file was deleted.

Loading

0 comments on commit 908c47d

Please sign in to comment.