Skip to content

Commit efabf8b

Browse files
committed
Sticky side menu
Fixed stricky side menu
1 parent d207d3f commit efabf8b

4 files changed

Lines changed: 5 additions & 16 deletions

File tree

‎ileapp.spec‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ a = Analysis(['ileapp.py'],
1111
('.\\scripts\\dark-mode-switch.js', '.\\scripts'),
1212
('.\\scripts\\feather.min.js', '.\\scripts'),
1313
('.\\scripts\\chats.css', '.\\scripts'),
14-
('.\\scripts\\custom.css', '.\\scripts'),
15-
('.\\scripts\\sidebar.js', '.\\scripts'),
1614
('.\\scripts\\MDB-Free_4.13.0', '.\\scripts\\MDB-Free_4.13.0')],
1715
hiddenimports=[],
1816
hookspath=[],

‎ileappGUI.spec‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ a = Analysis(['ileappGUI.py'],
1111
('.\\scripts\\dark-mode-switch.js', '.\\scripts'),
1212
('.\\scripts\\feather.min.js', '.\\scripts'),
1313
('.\\scripts\\chats.css', '.\\scripts'),
14-
('.\\scripts\\custom.css', '.\\scripts'),
15-
('.\\scripts\\sidebar.js', '.\\scripts'),
1614
('.\\scripts\\MDB-Free_4.13.0', '.\\scripts\\MDB-Free_4.13.0')],
1715
hiddenimports=[],
1816
hookspath=[],

‎scripts/html_parts.py‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@
2121
<!-- Your custom styles (optional) -->
2222
<link rel="stylesheet" href="_elements/dashboard.css">
2323
<link rel="stylesheet" href="_elements/chats.css">
24-
<link rel="stylesheet" href="_elements/custom.css"> <!-------Link to custom.css-------!>
24+
2525
<!-- MDBootstrap Datatables -->
2626
<link rel="stylesheet" href="_elements/MDB-Free_4.13.0/css/addons/datatables.min.css" rel="stylesheet">
2727
2828
<!-- Icons -->
2929
<!--script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script-->
3030
<script src="_elements/feather.min.js"></script>
31-
<script src="_elements/sidebar.js"></script> <!-------Link to sidebar.js-------!>
3231
3332
</head>
3433
<body>
@@ -39,9 +38,7 @@
3938
"""
4039
<!-- Start your project here-->
4140
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
42-
<button type="button" class="toggle" id="toggle" onclick="sidebar_toggle()"> <!-------Added toggle button-------!>
43-
<span></span>
44-
</button>
41+
4542
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">{0}</a>
4643
<div class="custom-control custom-switch">
4744
<input type="checkbox" class="custom-control-input" id="darkSwitch" />
@@ -55,8 +52,8 @@
5552
"""
5653
body_sidebar_setup = \
5754
"""
58-
<nav class="col-md-2 d-none d-md-block bg-light sidebar" id="sidebar_id"> <!-------Added html ID tag sidebar_id-------!>
59-
<div class="sidebar-sticky">
55+
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
56+
<div class="sidebar-sticky" id="sidebar_id">
6057
<ul class="nav flex-column">
6158
6259
"""
@@ -127,7 +124,7 @@
127124

128125
body_main_header = \
129126
"""
130-
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4" id="main"> <!-------Added html ID tag main-------!>
127+
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4" >
131128
"""
132129
# Variable {title}, {description}
133130
body_main_data_title = \

‎scripts/report.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,6 @@ def copy_no_perm(src, dst, *, follow_symlinks=True):
416416
shutil.copytree(os.path.join(__location__, "MDB-Free_4.13.0"), os.path.join(elements_folder, 'MDB-Free_4.13.0'),
417417
copy_function=copy_no_perm)
418418

419-
#Copies custom.css & sidebard.js files to local directory
420-
shutil.copyfile(os.path.join(__location__, "custom.css"), os.path.join(elements_folder, "custom.css"))
421-
shutil.copyfile(os.path.join(__location__, "sidebar.js"), os.path.join(elements_folder, "sidebar.js"))
422-
423419

424420
except shutil.Error:
425421
print("shutil reported an error. Maybe due to recursive directory copying.")

0 commit comments

Comments
 (0)