Browse Source

Navbar revamp

spaghetti 8 years ago
parent
commit
069da51422

+ 96
- 156
design/privateheader.php View File

138
       <div id="logo">
138
       <div id="logo">
139
         <a href="index.php"></a>
139
         <a href="index.php"></a>
140
       </div>
140
       </div>
141
-<?
142
-if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
143
-  $UseAdvancedSearch = true;
144
-} else {
145
-  $UseAdvancedSearch = false;
146
-}
147
-?>
148
-      <div id="searchbars">
149
-        <ul>
150
-          <li id="searchbar_torrents">
151
-            <span class="hidden">Torrents: </span>
152
-            <form class="search_form" name="torrents" action="torrents.php" method="get">
153
-<?  if ($UseAdvancedSearch) { ?>
154
-              <input type="hidden" name="action" value="advanced" />
155
-<?  } ?>
156
-              <input id="torrentssearch" accesskey="t" spellcheck="false"
157
-                  onfocus="if (this.value == 'Torrents') { this.value = ''; }"
158
-                  onblur="if (this.value == '') { this.value = 'Torrents'; }"
159
-                  value="Torrents" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'groupname' : 'searchstr' ?>" size="17" />
160
-            </form>
161
-          </li>
162
-          <li id="searchbar_artists">
163
-            <span class="hidden">Artist: </span>
164
-            <form class="search_form" name="artists" action="artist.php" method="get">
165
-              <input id="artistsearch"<?=Users::has_autocomplete_enabled('search');
166
-                  ?> accesskey="a"
167
-                  spellcheck="false" autocomplete="off"
168
-                  onfocus="if (this.value == 'Artists') { this.value = ''; }"
169
-                  onblur="if (this.value == '') { this.value = 'Artists'; }"
170
-                  value="Artists" placeholder="Artists" type="text" name="artistname" size="17" />
171
-            </form>
172
-          </li>
173
-          <li id="searchbar_requests">
174
-            <span class="hidden">Requests: </span>
175
-            <form class="search_form" name="requests" action="requests.php" method="get">
176
-              <input id="requestssearch" spellcheck="false"
177
-                  onfocus="if (this.value == 'Requests') { this.value = ''; }"
178
-                  onblur="if (this.value == '') { this.value = 'Requests'; }"
179
-                  value="Requests" placeholder="Requests" type="text" name="search" size="17" />
180
-            </form>
181
-          </li>
182
-          <li id="searchbar_forums">
183
-            <span class="hidden">Forums: </span>
184
-            <form class="search_form" name="forums" action="forums.php" method="get">
185
-              <input value="search" type="hidden" name="action" />
186
-              <input id="forumssearch"
187
-                  onfocus="if (this.value == 'Forums') { this.value = ''; }"
188
-                  onblur="if (this.value == '') { this.value = 'Forums'; }"
189
-                  value="Forums" placeholder="Forums" type="text" name="search" size="17" />
190
-            </form>
191
-          </li>
192
-<!--
193
-          <li id="searchbar_wiki">
194
-            <span class="hidden">Wiki: </span>
195
-            <form class="search_form" name="wiki" action="wiki.php" method="get">
196
-              <input type="hidden" name="action" value="search" />
197
-              <input
198
-                  onfocus="if (this.value == 'Wiki') { this.value = ''; }"
199
-                  onblur="if (this.value == '') { this.value = 'Wiki'; }"
200
-                  value="Wiki" placeholder="Wiki" type="text" name="search" size="17" />
201
-            </form>
202
-          </li>
203
--->
204
-          <li id="searchbar_log">
205
-            <span class="hidden">Log: </span>
206
-            <form class="search_form" name="log" action="log.php" method="get">
207
-              <input id="logsearch"
208
-                  onfocus="if (this.value == 'Log') { this.value = ''; }"
209
-                  onblur="if (this.value == '') { this.value = 'Log'; }"
210
-                  value="Log" placeholder="Log" type="text" name="search" size="17" />
211
-            </form>
212
-          </li>
213
-          <li id="searchbar_users">
214
-            <span class="hidden">Users: </span>
215
-            <form class="search_form" name="users" action="user.php" method="get">
216
-              <input type="hidden" name="action" value="search" />
217
-              <input
218
-                  id="userssearch"
219
-                  onfocus="if (this.value == 'Users') { this.value = ''; }"
220
-                  onblur="if (this.value == '') { this.value = 'Users'; }"
221
-                  value="Users" placeholder="Users" type="text" name="search" size="20" />
222
-            </form>
223
-          </li>
224
-        </ul>
225
-      </div>
226
       <div id="menu">
141
       <div id="menu">
227
-        <h4 class="hidden">Site Menu</h4>
228
         <ul>
142
         <ul>
229
-          <li id="nav_index"<?=
230
-            Format::add_class($PageID, array('index'), 'active', true)?>>
231
-            <a href="index.php">Home</a>
232
-          </li>
233
           <li id="nav_torrents"<?=
143
           <li id="nav_torrents"<?=
234
-            Format::add_class($PageID, array('torrents', false, false), 'active', true)?>>
144
+            Format::add_class($PageID, ['torrents', false, false], 'active', true)?>>
235
             <a href="torrents.php">Torrents</a>
145
             <a href="torrents.php">Torrents</a>
236
           </li>
146
           </li>
237
           <li id="nav_collages"<?=
147
           <li id="nav_collages"<?=
238
-            Format::add_class($PageID, array('collages'), 'active', true)?>>
148
+            Format::add_class($PageID, ['collages'], 'active', true)?>>
239
             <a href="collages.php">Collections</a>
149
             <a href="collages.php">Collections</a>
240
           </li>
150
           </li>
241
           <li id="nav_requests"<?=
151
           <li id="nav_requests"<?=
242
-            Format::add_class($PageID, array('requests'), 'active', true)?>>
152
+            Format::add_class($PageID, ['requests'], 'active', true)?>>
243
             <a href="requests.php">Requests</a>
153
             <a href="requests.php">Requests</a>
244
           </li>
154
           </li>
245
           <li id="nav_forums"<?=
155
           <li id="nav_forums"<?=
246
-            Format::add_class($PageID, array('forums'), 'active', true)?>>
156
+            Format::add_class($PageID, ['forums'], 'active', true)?>>
247
             <a href="forums.php">Forums</a>
157
             <a href="forums.php">Forums</a>
248
           </li>
158
           </li>
249
           <li id="nav_irc"<?=
159
           <li id="nav_irc"<?=
250
-            Format::add_class($PageID, array('chat'), 'active', true)?>>
160
+            Format::add_class($PageID, ['chat'], 'active', true)?>>
251
             <a href="chat.php">IRC</a>
161
             <a href="chat.php">IRC</a>
252
           </li>
162
           </li>
253
           <li id="nav_top10"<?=
163
           <li id="nav_top10"<?=
254
-            Format::add_class($PageID, array('top10'), 'active', true)?>>
164
+            Format::add_class($PageID, ['top10'], 'active', true)?>>
255
             <a href="top10.php">Top 10</a>
165
             <a href="top10.php">Top 10</a>
256
           </li>
166
           </li>
257
           <li id="nav_rules"<?=
167
           <li id="nav_rules"<?=
258
-            Format::add_class($PageID, array('rules'), 'active', true)?>>
168
+            Format::add_class($PageID, ['rules'], 'active', true)?>>
259
             <a href="rules.php">Rules</a>
169
             <a href="rules.php">Rules</a>
260
           </li>
170
           </li>
261
           <li id="nav_wiki"<?=
171
           <li id="nav_wiki"<?=
262
-            Format::add_class($PageID, array('wiki'), 'active', true)?>>
172
+            Format::add_class($PageID, ['wiki'], 'active', true)?>>
263
             <a href="wiki.php">Wiki</a>
173
             <a href="wiki.php">Wiki</a>
264
           </li>
174
           </li>
265
-          <li id="nav_staff"<?=
266
-            Format::add_class($PageID, array('staff'), 'active', true)?>>
267
-            <a href="staff.php">Staff</a>
175
+          <li id="nav_user" class="nav_dropdown" <?=Format::add_class($PageID, ['user', false, false], 'active', true, 'id')?>>
176
+            <a href="user.php?id=<?=G::$LoggedUser['ID']?>" class="username"><?=G::$LoggedUser['Username']?></a>
177
+            <div id="user_menu">
178
+              <a href="user.php?action=edit&amp;userid=<?=G::$LoggedUser['ID']?>">Edit</a>
179
+              <a href="logout.php?auth=<?=G::$LoggedUser['AuthKey']?>">Logout</a>
180
+            </div>
181
+          </li>
182
+          <li id="nav_links" class="nav_dropdown<?=$NewSubscriptions ? ' highlite' : ''?>">
183
+            <a>â–ľ</a>
184
+            <div id="links_menu">
185
+              <a href="<?=Inbox::get_inbox_link(); ?>">Inbox</a>
186
+              <a href="staffpm.php">Staff Inbox</a>
187
+              <a href="torrents.php?type=uploaded&amp;userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
188
+              <a href="bookmarks.php?type=torrents">Bookmarks</a>
189
+<?  if (check_perms('site_torrents_notify')) { ?>
190
+              <a href="user.php?action=notify">Notifications</a>
191
+<?  } ?>
192
+              <a href="userhistory.php?action=subscriptions">Subscriptions</a>
193
+              <a href="comments.php">Comments</a>
194
+              <a href="friends.php">Friends</a>
195
+              <a href="better.php">Better</a>
196
+            </div>
268
           </li>
197
           </li>
269
         </ul>
198
         </ul>
199
+        </ul>
200
+      </div>
201
+<?
202
+if (isset(G::$LoggedUser['SearchType']) && G::$LoggedUser['SearchType']) { // Advanced search
203
+  $UseAdvancedSearch = true;
204
+} else {
205
+  $UseAdvancedSearch = false;
206
+}
207
+?>
208
+      <div id="searchbars">
209
+        <form class="search_form" name="torrents" action="torrents.php" method="get">
210
+<?  if ($UseAdvancedSearch) { ?>
211
+          <input type="hidden" name="action" value="advanced" />
212
+<?  } ?>
213
+          <input id="torrentssearch" accesskey="t" spellcheck="false"
214
+              onfocus="if (this.value == 'Torrents') { this.value = ''; }"
215
+              onblur="if (this.value == '') { this.value = 'Torrents'; }"
216
+              value="Torrents" placeholder="Torrents" type="text" name="<?=$UseAdvancedSearch ? 'groupname' : 'searchstr' ?>" size="17" />
217
+        </form>
218
+        <form class="search_form" name="artists" action="artist.php" method="get">
219
+          <input id="artistsearch"<?=Users::has_autocomplete_enabled('search');
220
+              ?> accesskey="a"
221
+              spellcheck="false" autocomplete="off"
222
+              onfocus="if (this.value == 'Artists') { this.value = ''; }"
223
+              onblur="if (this.value == '') { this.value = 'Artists'; }"
224
+              value="Artists" placeholder="Artists" type="text" name="artistname" size="17" />
225
+        </form>
226
+        <form class="search_form" name="requests" action="requests.php" method="get">
227
+          <input id="requestssearch" spellcheck="false"
228
+              onfocus="if (this.value == 'Requests') { this.value = ''; }"
229
+              onblur="if (this.value == '') { this.value = 'Requests'; }"
230
+              value="Requests" placeholder="Requests" type="text" name="search" size="17" />
231
+        </form>
232
+        <form class="search_form" name="forums" action="forums.php" method="get">
233
+          <input value="search" type="hidden" name="action" />
234
+          <input id="forumssearch"
235
+              onfocus="if (this.value == 'Forums') { this.value = ''; }"
236
+              onblur="if (this.value == '') { this.value = 'Forums'; }"
237
+              value="Forums" placeholder="Forums" type="text" name="search" size="17" />
238
+        </form>
239
+<!--
240
+        <form class="search_form" name="wiki" action="wiki.php" method="get">
241
+          <input type="hidden" name="action" value="search" />
242
+          <input
243
+              onfocus="if (this.value == 'Wiki') { this.value = ''; }"
244
+              onblur="if (this.value == '') { this.value = 'Wiki'; }"
245
+              value="Wiki" placeholder="Wiki" type="text" name="search" size="17" />
246
+        </form>
247
+-->
248
+        <form class="search_form" name="log" action="log.php" method="get">
249
+          <input id="logsearch"
250
+              onfocus="if (this.value == 'Log') { this.value = ''; }"
251
+              onblur="if (this.value == '') { this.value = 'Log'; }"
252
+              value="Log" placeholder="Log" type="text" name="search" size="17" />
253
+        </form>
254
+        <form class="search_form" name="users" action="user.php" method="get">
255
+          <input type="hidden" name="action" value="search" />
256
+          <input
257
+              id="userssearch"
258
+              onfocus="if (this.value == 'Users') { this.value = ''; }"
259
+              onblur="if (this.value == '') { this.value = 'Users'; }"
260
+              value="Users" placeholder="Users" type="text" name="search" size="20" />
261
+        </form>
270
       </div>
262
       </div>
271
       <div id="userinfo">
263
       <div id="userinfo">
272
-        <ul id="userinfo_username">
273
-          <li id="nav_userinfo" <?=Format::add_class($PageID, array('user', false, false), 'active', true, 'id')?>>
274
-            <a href="user.php?id=<?=G::$LoggedUser['ID']?>" class="username"><?=G::$LoggedUser['Username']?></a>
275
-          </li>
276
-          <li id="nav_userclass">
277
-            <span class="hidden userclass"><?=$ClassLevels[G::$LoggedUser['Class']]['Name']?></span>
278
-          </li>
279
-          <li id="nav_useredit" class="brackets<?=Format::add_class($PageID, array('user','edit'), 'active', false)?>">
280
-            <a href="user.php?action=edit&amp;userid=<?=G::$LoggedUser['ID']?>">Edit</a>
281
-          </li>
282
-          <li id="nav_logout" class="brackets">
283
-            <a href="logout.php?auth=<?=G::$LoggedUser['AuthKey']?>">Logout</a>
284
-          </li>
285
-        </ul>
286
         <ul id="userinfo_major">
264
         <ul id="userinfo_major">
287
           <li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>">
265
           <li id="nav_upload" class="brackets<?=Format::add_class($PageID, array('upload'), 'active', false)?>">
288
             <a href="upload.php">Upload</a>
266
             <a href="upload.php">Upload</a>
302
           <li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>">
280
           <li id="nav_donate" class="brackets<?=Format::add_class($PageID, array('donate'), 'active', false)?>">
303
             <a href="donate.php">Donate</a>
281
             <a href="donate.php">Donate</a>
304
           </li>
282
           </li>
283
+          <li id="nav_staff" class="brackets<?=Format::add_class($PageID, array('staff'), 'active', false)?>">
284
+            <a href="staff.php">Staff</a>
285
+          </li>
305
         </ul>
286
         </ul>
306
         <ul id="userinfo_stats">
287
         <ul id="userinfo_stats">
307
           <li id="stats_seeding">
288
           <li id="stats_seeding">
347
 <?  }
328
 <?  }
348
 ?>
329
 ?>
349
         </ul>
330
         </ul>
350
-        <ul id="userinfo_minor"<?=$NewSubscriptions ? ' class="highlite"' : ''?>>
351
-          <li>
352
-            <span id="header_links_menu" class="brackets">Links â–ľ</span>
353
-            <ul>
354
-              <li id="nav_inbox"<?=
355
-                Format::add_class($PageID, array('inbox'), 'active', true)?>>
356
-                <a href="<?=Inbox::get_inbox_link(); ?>">Inbox</a>
357
-              </li>
358
-              <li id="nav_staffinbox"<?=
359
-                Format::add_class($PageID, array('staffpm'), 'active', true)?>>
360
-                <a href="staffpm.php">Staff Inbox</a>
361
-              </li>
362
-              <li id="nav_uploaded"<?=
363
-                Format::add_class($PageID, array('torrents', false, 'uploaded'), 'active', true, 'userid')?>>
364
-                <a href="torrents.php?type=uploaded&amp;userid=<?=G::$LoggedUser['ID']?>">Uploads</a>
365
-              </li>
366
-              <li id="nav_bookmarks"<?=
367
-                Format::add_class($PageID, array('bookmarks'), 'active', true)?>>
368
-                <a href="bookmarks.php?type=torrents">Bookmarks</a>
369
-              </li>
370
-<?  if (check_perms('site_torrents_notify')) { ?>
371
-              <li id="nav_notifications"<?=
372
-                Format::add_class($PageID, array(array('torrents', 'notify'), array('user', 'notify')), 'active', true, 'userid')?>>
373
-                <a href="user.php?action=notify">Notifications</a>
374
-              </li>
375
-<?  }
376
-  $ClassNames = $NewSubscriptions ? 'new-subscriptions' : '';
377
-  $ClassNames = trim($ClassNames.Format::add_class($PageID, array('userhistory', 'subscriptions'), 'active', false));
378
-?>
379
-              <li id="nav_subscriptions"<?=$ClassNames ? " class=\"$ClassNames\"" : ''?>>
380
-                <a href="userhistory.php?action=subscriptions">Subscriptions</a>
381
-              </li>
382
-              <li id="nav_comments"<?=
383
-                Format::add_class($PageID, array('comments'), 'active', true, 'userid')?>>
384
-                <a href="comments.php">Comments</a></li>
385
-              <li id="nav_friends"<?=
386
-                Format::add_class($PageID, array('friends'), 'active', true)?>>
387
-                <a href="friends.php">Friends</a></li>
388
-            </ul>
389
-          </li>
390
-        </ul>
391
       </div>
331
       </div>
392
     </div>
332
     </div>
393
 <?
333
 <?

+ 0
- 12
static/functions/global.js View File

161
   }
161
   }
162
 }
162
 }
163
 
163
 
164
-function toggle_header_links(event) {
165
-  event.stopPropagation()
166
-  $('#userinfo_minor > li > ul').raw().style.display = ($('#userinfo_minor > li > ul').raw().style.display == 'block') ? 'none' : 'block'
167
-}
168
-function hide_header_links() {
169
-  $('#userinfo_minor > li > ul').raw().style.display = 'none'
170
-}
171
-
172
 function preload(image) {
164
 function preload(image) {
173
   var img = document.createElement('img')
165
   var img = document.createElement('img')
174
   img.style.display = 'none'
166
   img.style.display = 'none'
208
 }
200
 }
209
 
201
 
210
 $(function() {
202
 $(function() {
211
-  if ($('#header_links_menu').length > 0) {
212
-    $('#header_links_menu')[0].addEventListener('click', toggle_header_links)
213
-    $('body')[0].addEventListener('click', hide_header_links)
214
-  }
215
   if ($('.request_table').length > 0) {
203
   if ($('.request_table').length > 0) {
216
     var a = $('[cover]')[0]
204
     var a = $('[cover]')[0]
217
     if (a) preload(a.attributes.cover.value)
205
     if (a) preload(a.attributes.cover.value)

+ 111
- 59
static/styles/beluga/style.css View File

311
   content: "Oppaitime";
311
   content: "Oppaitime";
312
   font-size: 40px;
312
   font-size: 40px;
313
   line-height: 56px;
313
   line-height: 56px;
314
-  font-weight: bold;
314
+  font-weight: 100;
315
   font-family: sans-serif;
315
   font-family: sans-serif;
316
 }
316
 }
317
 
317
 
318
+.nav_dropdown > div {
319
+  position: absolute;
320
+  width: 135.56px;
321
+  text-align: center;
322
+  background: #509599;
323
+  margin-top: 50px;
324
+  z-index: 99999;
325
+}
326
+
327
+#menu > ul > .nav_dropdown:hover {
328
+  background-color: #509599;
329
+}
330
+
331
+#menu > ul > .nav_dropdown > div > a:hover {
332
+  color: #E9E9E9;
333
+}
334
+
335
+#nav_links {
336
+  max-width: 40px;
337
+}
338
+
339
+.nav_dropdown > div > a {
340
+  display: none;
341
+  color: white;
342
+  height: 50px;
343
+  line-height: 50px;
344
+}
345
+
346
+#nav_links > #links_menu {
347
+  margin-left: -95.56px;
348
+}
349
+
350
+.nav_dropdown:hover > div > a {
351
+  display: block;
352
+}
353
+
354
+#menu > ul > li > a:hover,
355
+.nav_dropdown:hover > div > a:hover {
356
+  background-color: rgba(255,255,255,0.2);
357
+}
358
+
318
 #userinfo {
359
 #userinfo {
319
   position: absolute;
360
   position: absolute;
320
-  top: 0;
361
+  top: 10px;
321
   right: 0;
362
   right: 0;
322
   z-index: 50;
363
   z-index: 50;
364
+  text-align: right;
323
 }
365
 }
324
 
366
 
325
 #userinfo > ul {
367
 #userinfo > ul {
334
   padding: 2px
376
   padding: 2px
335
 }
377
 }
336
 
378
 
337
-#userinfo_username, #userinfo_major {
338
-  display: inline-block
339
-}
340
-
341
 #userinfo_minor > li, #userinfo_minor > li > span {
379
 #userinfo_minor > li, #userinfo_minor > li > span {
342
   float: right;
380
   float: right;
343
 }
381
 }
373
 }
411
 }
374
 
412
 
375
 #menu {
413
 #menu {
376
-  margin-bottom: 2px;
377
   height: 50px;
414
   height: 50px;
415
+  border-radius: 5px 5px 0 0;
378
 }
416
 }
379
 
417
 
380
 #menu > ul {
418
 #menu > ul {
403
   white-space: nowrap;
441
   white-space: nowrap;
404
 }
442
 }
405
 
443
 
444
+#menu > ul > li:nth-of-type(1),
406
 #menu > ul > li:nth-of-type(1) > a {
445
 #menu > ul > li:nth-of-type(1) > a {
407
-  background-color: #0d5968
446
+  border-radius: 5px 0 0 0;
408
 }
447
 }
409
-#menu > ul > li:nth-of-type(2) > a {
410
-  background-color: #20717c
448
+#menu > ul > li:nth-of-type(10),
449
+#menu > ul > li:nth-of-type(10) > a {
450
+  border-radius: 0 5px 0 0;
411
 }
451
 }
412
-#menu > ul > li:nth-of-type(3) > a {
413
-  background-color: #1d818e
452
+#menu > ul > li:nth-of-type(1) {
453
+  background-color: #80af8a;
414
 }
454
 }
415
-#menu > ul > li:nth-of-type(4) > a {
416
-  background-color: #278E98
455
+#menu > ul > li:nth-of-type(2) {
456
+  background-color: #78aa86;
417
 }
457
 }
418
-#menu > ul > li:nth-of-type(5) > a {
419
-  background-color: #3eaca7
458
+#menu > ul > li:nth-of-type(3) {
459
+  background-color: #6fa585;
420
 }
460
 }
421
-#menu > ul > li:nth-of-type(6) > a {
422
-  background-color: #47B39A
461
+#menu > ul > li:nth-of-type(4) {
462
+  background-color: #659f82;
423
 }
463
 }
424
-#menu > ul > li:nth-of-type(7) > a {
425
-  background-color: #47bc97
464
+#menu > ul > li:nth-of-type(5) {
465
+  background-color: #58977f;
426
 }
466
 }
427
-#menu > ul > li:nth-of-type(8) > a {
428
-  background-color: #4DC593
467
+#menu > ul > li:nth-of-type(6) {
468
+  background-color: #4b907f;
429
 }
469
 }
430
-#menu > ul > li:nth-of-type(9) > a {
431
-  background-color: #74c796
470
+#menu > ul > li:nth-of-type(7) {
471
+  background-color: #3d8a81;
432
 }
472
 }
433
-#menu > ul > li:nth-of-type(10) > a {
434
-  background-color: #88C796
473
+#menu > ul > li:nth-of-type(8) {
474
+  background-color: #2e8180;
475
+}
476
+#menu > ul > li:nth-of-type(9) {
477
+  background-color: #247a80;
478
+}
479
+#menu > ul > li:nth-of-type(10) {
480
+  background-color: #1e7682;
481
+  border-radius: 0 5px 0 0;
435
 }
482
 }
436
 
483
 
437
 .alertbar {
484
 .alertbar {
438
-  background-color: #186c77;
485
+  background-color: #4b907f;
439
   text-align: center;
486
   text-align: center;
440
   color: #fff;
487
   color: #fff;
441
   font-size: 10pt;
488
   font-size: 10pt;
493
   width: 900px;
540
   width: 900px;
494
   height: 50px;
541
   height: 50px;
495
   padding: 8px 0;
542
   padding: 8px 0;
496
-  background: url(images/search.png) no-repeat #373a42;
543
+  background: #3b3f47;
497
   margin-bottom: 2px;
544
   margin-bottom: 2px;
545
+  display: flex;
546
+}
547
+
548
+#searchbars > .search_form {
549
+  flex: 1 1 auto;
550
+  text-align: center;
498
 }
551
 }
499
 
552
 
500
 #searchbars input {
553
 #searchbars input {
501
   box-sizing: border-box;
554
   box-sizing: border-box;
502
   width: 135px;
555
   width: 135px;
503
   height: 34px;
556
   height: 34px;
504
-  margin: 0;
505
-  border: 1px solid #5b5e64;
557
+  border: none;
558
+  border-radius: 2.5px;
559
+  background-color: #2B2D33;
506
   padding: 7px 11px 7px 8px;
560
   padding: 7px 11px 7px 8px;
507
-  color: #bdbec0;
508
-}
509
-
510
-#searchbars input:hover {
511
-  border: 1px solid #8e9198;
512
-}
513
-
514
-#searchbars input:focus {
515
-  border: 1px solid #fff;
561
+  color: #c6c9c9;
562
+  font-size: 12px;
516
 }
563
 }
517
 
564
 
518
 #searchbars ul {
565
 #searchbars ul {
2099
   background-color: #78467f;
2146
   background-color: #78467f;
2100
 }
2147
 }
2101
 body.style_pink #userinfo_stats { color: #db7bc7; }
2148
 body.style_pink #userinfo_stats { color: #db7bc7; }
2102
-body.style_pink #menu > ul > li:nth-of-type(1) > a { background-color: #3b2655; }
2103
-body.style_pink #menu > ul > li:nth-of-type(2) > a { background-color: #4f3063; }
2104
-body.style_pink #menu > ul > li:nth-of-type(3) > a { background-color: #643c72; }
2105
-body.style_pink #menu > ul > li:nth-of-type(4) > a { background-color: #78467f; }
2106
-body.style_pink #menu > ul > li:nth-of-type(5) > a { background-color: #8b518e; }
2107
-body.style_pink #menu > ul > li:nth-of-type(6) > a { background-color: #9f5c9c; }
2108
-body.style_pink #menu > ul > li:nth-of-type(7) > a { background-color: #b367aa; }
2109
-body.style_pink #menu > ul > li:nth-of-type(8) > a { background-color: #c871b9; }
2110
-body.style_pink #menu > ul > li:nth-of-type(9) > a { background-color: #db7bc7; }
2111
-body.style_pink #menu > ul > li:nth-of-type(10) > a { background-color: #ef86d5; }
2149
+body.style_pink #menu > ul > li:nth-of-type(1) { background-color: #3b2655; }
2150
+body.style_pink #menu > ul > li:nth-of-type(2) { background-color: #4f3063; }
2151
+body.style_pink #menu > ul > li:nth-of-type(3) { background-color: #643c72; }
2152
+body.style_pink #menu > ul > li:nth-of-type(4) { background-color: #78467f; }
2153
+body.style_pink #menu > ul > li:nth-of-type(5) { background-color: #8b518e; }
2154
+body.style_pink #menu > ul > li:nth-of-type(6) { background-color: #9f5c9c; }
2155
+body.style_pink #menu > ul > li:nth-of-type(7) { background-color: #b367aa; }
2156
+body.style_pink #menu > ul > li:nth-of-type(8) { background-color: #c871b9; }
2157
+body.style_pink #menu > ul > li:nth-of-type(9) { background-color: #db7bc7; }
2158
+body.style_pink #menu > ul > li:nth-of-type(10) { background-color: #ef86d5; }
2159
+body.style_pink #menu > ul > .nav_dropdown:hover,
2160
+body.style_pink .nav_dropdown > div {
2161
+  background-color: #e295d2;
2162
+}
2112
 body.style_pink .alertbar { background-color: #4f3063; }
2163
 body.style_pink .alertbar { background-color: #4f3063; }
2113
 body.style_pink .hide_torrents > .show_torrents_link:after,
2164
 body.style_pink .hide_torrents > .show_torrents_link:after,
2114
 body.style_pink .show_torrents > .show_torrents_link:after,
2165
 body.style_pink .show_torrents > .show_torrents_link:after,
2156
   background: rgba(24,32,41,0.3);
2207
   background: rgba(24,32,41,0.3);
2157
   border: none;
2208
   border: none;
2158
 }
2209
 }
2159
-body.style_haze #menu li:nth-child(1) a { background: rgba(24,32,41,0.7); }
2160
-body.style_haze #menu li:nth-child(2) a { background: rgba(24,32,41,0.65); }
2161
-body.style_haze #menu li:nth-child(3) a { background: rgba(24,32,41,0.6); }
2162
-body.style_haze #menu li:nth-child(4) a { background: rgba(24,32,41,0.55); }
2163
-body.style_haze #menu li:nth-child(5) a { background: rgba(24,32,41,0.5); }
2164
-body.style_haze #menu li:nth-child(6) a { background: rgba(24,32,41,0.45); }
2165
-body.style_haze #menu li:nth-child(7) a { background: rgba(24,32,41,0.4); }
2166
-body.style_haze #menu li:nth-child(8) a { background: rgba(24,32,41,0.35); }
2167
-body.style_haze #menu li:nth-child(9) a { background: rgba(24,32,41,0.3); }
2168
-body.style_haze #menu li:nth-child(10) a { background: rgba(24,32,41,0.25); }
2210
+body.style_haze #menu li:nth-child(1) { background: rgba(24,32,41,0.7); }
2211
+body.style_haze #menu li:nth-child(2) { background: rgba(24,32,41,0.65); }
2212
+body.style_haze #menu li:nth-child(3) { background: rgba(24,32,41,0.6); }
2213
+body.style_haze #menu li:nth-child(4) { background: rgba(24,32,41,0.55); }
2214
+body.style_haze #menu li:nth-child(5) { background: rgba(24,32,41,0.5); }
2215
+body.style_haze #menu li:nth-child(6) { background: rgba(24,32,41,0.45); }
2216
+body.style_haze #menu li:nth-child(7) { background: rgba(24,32,41,0.4); }
2217
+body.style_haze #menu li:nth-child(8) { background: rgba(24,32,41,0.35); }
2218
+body.style_haze #menu li:nth-child(9) { background: rgba(24,32,41,0.3); }
2219
+body.style_haze #menu li:nth-child(10) { background: rgba(24,32,41,0.25); }
2169
 body.style_haze #menu li a:hover { background: white; color: black; }
2220
 body.style_haze #menu li a:hover { background: white; color: black; }
2221
+body.style_haze .nav_dropdown > div { background: rgba(24,32,41,0.3); }
2170
 body.style_haze #userinfo_minor > li > ul { background: white; color: black; }
2222
 body.style_haze #userinfo_minor > li > ul { background: white; color: black; }
2171
 body.style_haze #alerts .alertbar {background: rgba(24,32,41,0.4);}
2223
 body.style_haze #alerts .alertbar {background: rgba(24,32,41,0.4);}
2172
 body.style_haze .colhead, body.style_haze .head {background: rgba(24,32,41,0.4);}
2224
 body.style_haze .colhead, body.style_haze .head {background: rgba(24,32,41,0.4);}

+ 38
- 2
static/styles/genaviv/style.css View File

1187
   background:#1a1a1a
1187
   background:#1a1a1a
1188
 }
1188
 }
1189
 #menu {
1189
 #menu {
1190
-  background:#1d1d1d;background:rgba(0,0,0,0.6);border:1px solid transparent
1190
+  background: #1d1d1d;
1191
+  background: rgba(0,0,0,0.6);
1192
+  border: 1px solid transparent;
1193
+
1194
+}
1195
+#menu > ul {
1196
+  display: flex;
1197
+  width: 850px;
1198
+  margin: 0 auto;
1199
+}
1200
+#menu > ul > li {
1201
+  position: relative;
1202
+  flex: 1 1 auto;
1203
+}
1204
+.nav_dropdown > div {
1205
+  position: absolute;
1206
+  background-color: rgba(0,0,0,0.6);
1207
+  width: 100%;
1208
+  z-index: 99999;
1209
+  margin-top: 14px;
1191
 }
1210
 }
1211
+#nav_links > #links_menu {
1212
+  width: 120px;
1213
+  margin-left: -68px;
1214
+}
1215
+.nav_dropdown > div > a {
1216
+  display: none;
1217
+  height: 32px;
1218
+  line-height: 32px;
1219
+}
1220
+.nav_dropdown:hover > div > a {
1221
+  display: block;
1222
+}
1223
+
1192
 #userinfo_minor a,#menu ul>li>a {
1224
 #userinfo_minor a,#menu ul>li>a {
1193
   color:#fff
1225
   color:#fff
1194
 }
1226
 }
1195
 #header div#searchbars {
1227
 #header div#searchbars {
1196
-  background:#131313;padding:4.5px 0
1228
+  background: #131313;
1229
+  padding: 4.5px 0;
1230
+  display: flex;
1231
+  width: 850px;
1232
+  margin: 0 auto;
1197
 }
1233
 }
1198
 div#ft_container {
1234
 div#ft_container {
1199
   background:#D0D0D0
1235
   background:#D0D0D0

+ 58
- 11
static/styles/oppai/style.css View File

162
 }
162
 }
163
 
163
 
164
 #menu {
164
 #menu {
165
-/*  position: absolute;
166
-  top: 226px; */
167
   width: 100%;
165
   width: 100%;
168
-  padding: 0.6em 0;
169
   text-align: center;
166
   text-align: center;
170
   background-color: #461640;
167
   background-color: #461640;
171
   font-size: 10pt;
168
   font-size: 10pt;
172
 }
169
 }
173
 
170
 
174
-#menu ul li {
171
+#menu > ul {
172
+  display: flex;
173
+  width: 80%;
174
+  margin: 0 auto;
175
+}
176
+
177
+#menu > ul > li {
175
   position: relative;
178
   position: relative;
176
-  display: inline;
179
+  display: flex;
180
+  margin: 0;
181
+  flex: 1 1 auto;
177
 }
182
 }
178
 
183
 
179
-#menu ul li a {
180
-  padding: 0.6em 1.1%;
184
+#menu ul > li > a {
185
+  padding: 0.6em 0;
186
+  display: inline-block;
187
+  width: 100%;
181
   color: #fbc2e5;
188
   color: #fbc2e5;
182
   transition: ease-in-out 0.1s;
189
   transition: ease-in-out 0.1s;
183
 }
190
 }
184
 
191
 
192
+#nav_links {
193
+  max-width: 40px;
194
+}
195
+
185
 #menu ul li a.active {
196
 #menu ul li a.active {
186
   background-color: #565656;
197
   background-color: #565656;
187
 }
198
 }
191
   text-decoration: none;
202
   text-decoration: none;
192
 }
203
 }
193
 
204
 
205
+#menu .nav_dropdown {
206
+  background: #461640;
207
+  margin-top: 0;
208
+}
209
+
210
+.nav_dropdown > div {
211
+  position: absolute;
212
+  background-color: #461640;
213
+  width: 100%;
214
+  z-index: 99999;
215
+  margin-top: 32px;
216
+}
217
+
218
+#nav_links > #links_menu {
219
+  width: 120px;
220
+  margin-left: -80px;
221
+}
222
+
223
+.nav_dropdown > div > a {
224
+  display: none;
225
+  color: #fbc2e5;
226
+  height: 32px;
227
+  line-height: 32px;
228
+}
229
+
230
+.nav_dropdown:hover > div > a {
231
+  display: block;
232
+}
233
+
194
 #userinfo {
234
 #userinfo {
195
 /*  position: absolute;
235
 /*  position: absolute;
196
   top: 258px; */
236
   top: 258px; */
234
 }
274
 }
235
 
275
 
236
 #searchbars {
276
 #searchbars {
237
-/*  position: absolute;
238
-  top: 199px; */
239
-  width: 100%;
240
   text-align: center;
277
   text-align: center;
241
   background-color: #7A3572;
278
   background-color: #7A3572;
242
-  padding: 4px 0px;
279
+  box-sizing: content-box;
280
+  padding: 4px 10%;
243
   border-bottom: 2px solid #FBC2E5;
281
   border-bottom: 2px solid #FBC2E5;
282
+  display: flex;
283
+}
284
+
285
+#searchbars > .search_form {
286
+  flex: 1 1 auto;
287
+  text-align: center;
288
+  margin: 0 3px;
244
 }
289
 }
245
 
290
 
246
 #searchbars input {
291
 #searchbars input {
247
   position: relative;
292
   position: relative;
248
   border: 1px solid transparent;
293
   border: 1px solid transparent;
294
+  box-sizing: border-box;
249
   padding: 2px 2px 2px 4px;
295
   padding: 2px 2px 2px 4px;
250
   font-size: 0.9em;
296
   font-size: 0.9em;
251
   background-color: #e0e0e0;
297
   background-color: #e0e0e0;
298
+  width: 100%;
252
   color: #444;
299
   color: #444;
253
 }
300
 }
254
 
301
 

Loading…
Cancel
Save