@okjavis/nodebb-theme-javis 1.4.0 → 1.5.0
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.
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/scss/_base.scss +42 -178
package/package.json
CHANGED
package/plugin.json
CHANGED
package/scss/_base.scss
CHANGED
|
@@ -9,197 +9,61 @@ nav[component="sidebar/right"],
|
|
|
9
9
|
display: none !important;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
//
|
|
13
|
-
// MAIN CONTENT CENTERING (Reddit-style)
|
|
14
|
-
// ===========================================================
|
|
15
|
-
// Center the main content area with equal margins on both sides
|
|
16
|
-
// This applies to ALL main content pages including feed, category, recent, etc.
|
|
12
|
+
// No custom layout overrides - use Harmony defaults
|
|
17
13
|
|
|
18
|
-
//
|
|
19
|
-
.
|
|
20
|
-
max-width:
|
|
21
|
-
margin: 0 auto
|
|
22
|
-
padding: 0 24px !important; // Equal padding on both sides - 24px like Reddit
|
|
23
|
-
display: flex !important;
|
|
24
|
-
justify-content: center !important; // Center the flex items
|
|
25
|
-
|
|
26
|
-
// Left sidebar (widget area)
|
|
27
|
-
> .col-lg-3[data-widget-area="left"] {
|
|
28
|
-
flex: 0 0 auto !important;
|
|
29
|
-
width: 0 !important; // Hide left sidebar to match your design
|
|
30
|
-
max-width: 0 !important;
|
|
31
|
-
padding: 0 !important;
|
|
32
|
-
overflow: hidden !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Main feed content (col-lg-6)
|
|
36
|
-
> .col-lg-6 {
|
|
37
|
-
flex: 0 0 auto !important;
|
|
38
|
-
width: 800px !important; // Main content fixed width (Reddit ~750-800px)
|
|
39
|
-
max-width: 800px !important;
|
|
40
|
-
padding-left: 0 !important;
|
|
41
|
-
padding-right: 24px !important; // Gap between content and sidebar
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Right sidebar (trending/widgets)
|
|
45
|
-
> .col-lg-3[data-widget-area="right"] {
|
|
46
|
-
flex: 0 0 auto !important;
|
|
47
|
-
width: 312px !important; // Sidebar fixed width (Reddit ~312px)
|
|
48
|
-
max-width: 312px !important;
|
|
49
|
-
padding-left: 0 !important;
|
|
50
|
-
padding-right: 0 !important;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@media (max-width: 991px) {
|
|
54
|
-
padding: 0 16px !important; // Smaller padding on tablets
|
|
55
|
-
flex-direction: column !important;
|
|
56
|
-
|
|
57
|
-
> .col-lg-6,
|
|
58
|
-
> .col-lg-3 {
|
|
59
|
-
width: 100% !important;
|
|
60
|
-
max-width: 100% !important;
|
|
61
|
-
padding: 0 !important;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media (max-width: 768px) {
|
|
66
|
-
padding: 0 12px !important; // Even smaller on mobile
|
|
67
|
-
}
|
|
14
|
+
// Search bar width override
|
|
15
|
+
.search-widget .input-group {
|
|
16
|
+
max-width: 650px;
|
|
17
|
+
margin: 0 auto;
|
|
68
18
|
}
|
|
69
19
|
|
|
70
|
-
//
|
|
71
|
-
|
|
72
|
-
//
|
|
73
|
-
// Target the brand header area where search widget is
|
|
74
|
-
.brand-container [data-widget-area="brand-header"] {
|
|
75
|
-
max-width: 500px !important; // Reddit search bar width (~500px)
|
|
76
|
-
margin: 0 auto !important; // Center the search bar
|
|
77
|
-
display: flex !important;
|
|
78
|
-
align-items: center !important;
|
|
20
|
+
// Left sidebar layout - navigation at top, profile/collapse at bottom
|
|
21
|
+
nav[component="sidebar/left"] {
|
|
22
|
+
justify-content: flex-start !important; // Remove space-between
|
|
79
23
|
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
display: flex !important;
|
|
85
|
-
align-items: center !important;
|
|
86
|
-
position: relative !important; // For absolute positioning of button
|
|
24
|
+
// Main navigation list - keep at top with no extra margin
|
|
25
|
+
#main-nav {
|
|
26
|
+
margin-top: 0 !important; // Remove top margin to be close to logo
|
|
27
|
+
flex-grow: 0 !important; // Don't grow to fill space
|
|
87
28
|
}
|
|
88
29
|
|
|
89
|
-
//
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.form-control {
|
|
93
|
-
flex: 1 !important;
|
|
94
|
-
padding: 10px 48px 10px 16px !important; // Extra padding on right for button
|
|
95
|
-
border-radius: 20px !important; // Fully rounded like Reddit
|
|
96
|
-
border: 1px solid $jv-border-subtle !important;
|
|
97
|
-
background: $jv-surface !important;
|
|
98
|
-
font-size: 14px !important;
|
|
99
|
-
width: 100% !important;
|
|
100
|
-
|
|
101
|
-
&:focus {
|
|
102
|
-
border-color: $jv-primary !important;
|
|
103
|
-
outline: none !important;
|
|
104
|
-
box-shadow: 0 0 0 1px $jv-primary !important;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Search button styling - positioned inside input on the right
|
|
109
|
-
button[type="submit"],
|
|
110
|
-
.btn {
|
|
111
|
-
position: absolute !important;
|
|
112
|
-
right: 4px !important; // Small gap from edge
|
|
113
|
-
top: 50% !important;
|
|
114
|
-
transform: translateY(-50%) !important;
|
|
115
|
-
padding: 8px 12px !important;
|
|
116
|
-
border-radius: 16px !important;
|
|
117
|
-
background: transparent !important;
|
|
118
|
-
border: none !important;
|
|
119
|
-
color: $jv-text-muted !important;
|
|
120
|
-
margin: 0 !important;
|
|
121
|
-
|
|
122
|
-
&:hover {
|
|
123
|
-
background: rgba(0, 0, 0, 0.05) !important;
|
|
124
|
-
color: $jv-primary !important;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
i {
|
|
128
|
-
font-size: 16px !important;
|
|
129
|
-
}
|
|
30
|
+
// Sidebar toggle container - push to bottom
|
|
31
|
+
.sidebar-toggle-container {
|
|
32
|
+
margin-top: auto !important; // Push to bottom
|
|
130
33
|
}
|
|
131
34
|
}
|
|
132
35
|
|
|
133
|
-
//
|
|
134
|
-
.
|
|
135
|
-
max-width:
|
|
136
|
-
|
|
137
|
-
padding
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
36
|
+
// Reddit-style layout: Equal spacing and wider feed
|
|
37
|
+
.feed > .row {
|
|
38
|
+
max-width: 1400px; // Reddit's approximate max-width
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
padding: 0 20px; // Reddit-style horizontal padding
|
|
41
|
+
justify-content: center; // Center the columns
|
|
42
|
+
|
|
43
|
+
// Equal gap between columns (Reddit uses ~16-20px)
|
|
44
|
+
gap: 20px;
|
|
45
|
+
|
|
46
|
+
// Adjust column widths for better proportions
|
|
47
|
+
> [data-widget-area="left"] {
|
|
48
|
+
flex: 0 0 auto;
|
|
49
|
+
width: 280px; // Fixed width for left sidebar (not using Bootstrap col-lg-3)
|
|
147
50
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// Feed header area - add more padding (Reddit-style)
|
|
151
|
-
.feed {
|
|
152
|
-
// Add top padding to feed container
|
|
153
|
-
padding-top: 20px !important; // Reddit has ~20px top padding
|
|
154
51
|
|
|
155
|
-
//
|
|
156
|
-
.
|
|
157
|
-
|
|
158
|
-
|
|
52
|
+
// Center feed content - make it wider
|
|
53
|
+
> .col-lg-6 {
|
|
54
|
+
flex: 1 1 auto; // Take remaining space
|
|
55
|
+
max-width: 700px; // Reddit's feed is ~640-700px
|
|
56
|
+
margin-left: 0 !important; // Remove ms-auto
|
|
57
|
+
padding-left: 0 !important; // Remove left padding
|
|
58
|
+
padding-right: 0 !important; // Remove right padding
|
|
159
59
|
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// For other pages (category, recent, etc.) that use col-lg-9
|
|
163
|
-
main .container,
|
|
164
|
-
.container-fluid {
|
|
165
|
-
> .row {
|
|
166
|
-
max-width: 1440px !important;
|
|
167
|
-
margin: 0 auto !important;
|
|
168
|
-
padding: 0 24px !important;
|
|
169
|
-
justify-content: center !important;
|
|
170
|
-
|
|
171
|
-
> .col-lg-9 {
|
|
172
|
-
flex: 0 0 auto !important;
|
|
173
|
-
width: 640px !important;
|
|
174
|
-
max-width: 640px !important;
|
|
175
|
-
padding-left: 0 !important;
|
|
176
|
-
padding-right: 24px !important;
|
|
177
|
-
|
|
178
|
-
@media (max-width: 1200px) {
|
|
179
|
-
width: 100% !important;
|
|
180
|
-
max-width: 640px !important;
|
|
181
|
-
padding-right: 16px !important;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
> .col-lg-3[data-widget-area="sidebar"] {
|
|
186
|
-
flex: 0 0 auto !important;
|
|
187
|
-
width: 312px !important;
|
|
188
|
-
max-width: 312px !important;
|
|
189
|
-
padding-left: 0 !important;
|
|
190
|
-
padding-right: 0 !important;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
@media (max-width: 991px) {
|
|
194
|
-
padding: 0 16px !important;
|
|
195
60
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
61
|
+
// Right sidebar (Trending)
|
|
62
|
+
> [data-widget-area="right"] {
|
|
63
|
+
flex: 0 0 auto;
|
|
64
|
+
width: 320px; // Fixed width for right sidebar
|
|
65
|
+
padding-left: 0 !important; // Remove left padding
|
|
66
|
+
padding-right: 0 !important; // Remove right padding
|
|
203
67
|
}
|
|
204
68
|
}
|
|
205
69
|
|