micro-sidebar 1.2.0__py3-none-any.whl → 1.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {micro_sidebar-1.2.0.dist-info → micro_sidebar-1.2.1.dist-info}/METADATA +2 -1
- {micro_sidebar-1.2.0.dist-info → micro_sidebar-1.2.1.dist-info}/RECORD +7 -7
- sidebar/static/sidebar/sidebar.css +12 -6
- sidebar/static/sidebar/sidebar.js +0 -5
- {micro_sidebar-1.2.0.dist-info → micro_sidebar-1.2.1.dist-info}/LICENSE +0 -0
- {micro_sidebar-1.2.0.dist-info → micro_sidebar-1.2.1.dist-info}/WHEEL +0 -0
- {micro_sidebar-1.2.0.dist-info → micro_sidebar-1.2.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: micro-sidebar
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.1
|
|
4
4
|
Summary: A Reusable RTL Django Sidebar App
|
|
5
5
|
Home-page: https://github.com/debeski/micro-sidebar
|
|
6
6
|
Author: DeBeski
|
|
@@ -113,3 +113,4 @@ While it may theoretically work in LTR environments if standard Bootstrap files
|
|
|
113
113
|
| **v1.0.2** | Improved documentation clarity and added usage instructions. |
|
|
114
114
|
| **v1.1.0** | Renamed `content.html` to `main.html` for clarity. Refactored to use `{% block items %}` for easier extension. |
|
|
115
115
|
| **v1.2.0** | **New Theme Implementation:** Redesigned UI with rounded pill-shaped items, tactile micro-animations, and a refined color palette. Improved responsiveness with dynamic top-offset calculations and inline FOUC fixes for small screens. Fixed tooltip stickiness bug. |
|
|
116
|
+
| **v1.2.1** | **Positioning Fix:** Added `align-self: flex-start` to resolve 60px vertical offset in flex containers. Removed legacy `sidebar-top-offset` CSS variable and JS calculations. Added `box-shadow: none` and `outline: none` to accordion buttons to remove focus ring. Fixed page flickering on wider screens by constraining sidebar height with `calc(100vh - header-height)`. |
|
|
@@ -3,11 +3,11 @@ sidebar/apps.py,sha256=4UjKXHoBGKRLxpC9AY6eaq8YZx8unirUz_8u-IrlfVQ,145
|
|
|
3
3
|
sidebar/urls.py,sha256=UL_9e1RLNMxZXkah65m7GRU1dbViZRGeNPBIiSZpOYg,142
|
|
4
4
|
sidebar/views.py,sha256=MebyJ1ZiylSOPESXFkkQ8QTg-ClrkJn-oYLN6KrcgiM,418
|
|
5
5
|
sidebar/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
sidebar/static/sidebar/sidebar.css,sha256=
|
|
7
|
-
sidebar/static/sidebar/sidebar.js,sha256=
|
|
6
|
+
sidebar/static/sidebar/sidebar.css,sha256=f6xLSC3JiZFABkxWlFesuzAZZtAT3WW1nZBFMDQNS6Y,5283
|
|
7
|
+
sidebar/static/sidebar/sidebar.js,sha256=xDp038tlscz5KeTjBiEQTzZ2T7a8k4NY3rC6e9NvMsM,6314
|
|
8
8
|
sidebar/templates/sidebar/main.html,sha256=m2b34IO-kG7fn5d9vnx9Sjwls2l9uBn2gDL3E5_Gj70,1912
|
|
9
|
-
micro_sidebar-1.2.
|
|
10
|
-
micro_sidebar-1.2.
|
|
11
|
-
micro_sidebar-1.2.
|
|
12
|
-
micro_sidebar-1.2.
|
|
13
|
-
micro_sidebar-1.2.
|
|
9
|
+
micro_sidebar-1.2.1.dist-info/LICENSE,sha256=Fco89ULLSSxKkC2KKnx57SaT0R7WOkZfuk8IYcGiN50,1063
|
|
10
|
+
micro_sidebar-1.2.1.dist-info/METADATA,sha256=msQeEumoDwSbOS8n9pqkE36b9DnaD8IOzAiyBbQOZXw,4304
|
|
11
|
+
micro_sidebar-1.2.1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
12
|
+
micro_sidebar-1.2.1.dist-info/top_level.txt,sha256=ih69sjMhU1wOB9HzUV90yEY98aiPuGhzPBBBE-YtJ3w,8
|
|
13
|
+
micro_sidebar-1.2.1.dist-info/RECORD,,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
transition: width 0.2s ease-in-out;
|
|
4
4
|
background: linear-gradient(180deg, #ffffff 10%, #f1f7fd 100%);
|
|
5
5
|
position: sticky;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
top: var(--header-height, 60px);
|
|
7
|
+
align-self: flex-start; /* Force to top of flex container */
|
|
8
8
|
overflow-y: auto;
|
|
9
9
|
overflow-x: hidden;
|
|
10
|
-
height: calc(100vh - var(--
|
|
10
|
+
height: calc(100vh - var(--header-height, 60px));
|
|
11
11
|
border-left: 1px solid #f1f3f5;
|
|
12
12
|
scrollbar-width: thin;
|
|
13
13
|
scrollbar-color: rgba(0,0,0,0.1) transparent;
|
|
@@ -64,12 +64,11 @@
|
|
|
64
64
|
|
|
65
65
|
.sidebar {
|
|
66
66
|
position: fixed;
|
|
67
|
-
|
|
68
|
-
top: var(--sidebar-top-offset, 0px);
|
|
67
|
+
top: var(--header-height, 60px);
|
|
69
68
|
right: 0;
|
|
70
69
|
width: 250px;
|
|
71
70
|
transition: width 0.15s ease-in-out;
|
|
72
|
-
height: calc(100vh - var(--
|
|
71
|
+
height: calc(100vh - var(--header-height, 60px));
|
|
73
72
|
z-index: 1000;
|
|
74
73
|
--sidebar-item-px: 6px;
|
|
75
74
|
}
|
|
@@ -145,6 +144,13 @@
|
|
|
145
144
|
white-space: nowrap;
|
|
146
145
|
overflow: hidden;
|
|
147
146
|
transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
147
|
+
box-shadow: none !important;
|
|
148
|
+
outline: none !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.sidebar .accordion-button:focus {
|
|
152
|
+
box-shadow: none !important;
|
|
153
|
+
outline: none !important;
|
|
148
154
|
}
|
|
149
155
|
|
|
150
156
|
.sidebar .accordion-button:not(.collapsed) {
|
|
@@ -21,11 +21,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
|
21
21
|
// Function to handle sidebar collapsing based on window size
|
|
22
22
|
function adjustSidebarForWindowSize() {
|
|
23
23
|
const screenWidth = window.innerWidth;
|
|
24
|
-
const titlebar = document.querySelector('.titlebar');
|
|
25
|
-
const titlebarHeight = (titlebar && window.getComputedStyle(titlebar).display !== 'none') ? titlebar.offsetHeight : 0;
|
|
26
|
-
|
|
27
|
-
// Set dynamic CSS variable for the sidebar
|
|
28
|
-
sidebar.style.setProperty('--sidebar-top-offset', titlebarHeight + 'px');
|
|
29
24
|
|
|
30
25
|
if (screenWidth < 1100) {
|
|
31
26
|
// Always collapse sidebar on small screens
|
|
File without changes
|
|
File without changes
|
|
File without changes
|