-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The counts respect the viewer’s rating preference. Sets up for some future changes: * determining whether SFW mode has an effect when the configured rating preference is the same between SFW mode and non, so we can avoid confusingly showing a toggle that does nothing * making blocked tag filtering a visible operation on pages of results (which itself sets up for better pagination and performance improvements through caching and lightened database load) I’d like to provide counts for favorites and individual folders too, but they’re more involved. Ideally, counts would be stored in the database and updated eagerly; PostgreSQL makes it hard.
- Loading branch information
1 parent
0fa4c53
commit a652965
Showing
20 changed files
with
274 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#user-nav > li { | ||
width: 50%; | ||
float: left; | ||
} | ||
|
||
#user-nav > li > a { | ||
display: block; | ||
padding: 0.5em 0; | ||
font-size: 14px; | ||
font-size: 0.9rem; | ||
} | ||
|
||
.user-nav-with-count { | ||
position: relative; | ||
} | ||
|
||
.user-nav-with-count:hover { | ||
text-decoration: none; | ||
} | ||
|
||
.user-nav-with-count:hover > .user-nav-label { | ||
text-decoration: underline; | ||
} | ||
|
||
$count-selected-background: #006080; | ||
|
||
.user-nav-count { | ||
background-color: #2a2e2f; | ||
border-radius: 4px; | ||
color: #999; | ||
line-height: 1; | ||
margin-left: 6px; | ||
margin-top: calc(-0.5em - 4px); | ||
padding: 4px 6px; | ||
text-decoration: none; | ||
top: 50%; | ||
|
||
.current > & { | ||
background-color: $count-selected-background; | ||
color: scale-color($count-selected-background, $lightness: 75%); | ||
} | ||
} | ||
|
||
@media (min-width: 45em) { | ||
#user-nav > li { | ||
width: 25%; | ||
} | ||
} | ||
|
||
@media (min-width: 52em) { | ||
#user-nav > li { | ||
width: auto; | ||
float: left; | ||
} | ||
|
||
#user-nav > * + li { | ||
padding-left: 2.5em; | ||
} | ||
|
||
#user-nav > li > a { | ||
padding: 0; | ||
height: 48px; | ||
height: 3rem; | ||
line-height: 48px; | ||
line-height: 3rem; | ||
} | ||
} | ||
|
||
@media (min-width: 94em) { | ||
#user-nav > li { | ||
width: 14.28%; | ||
} | ||
|
||
#user-nav > * + li { | ||
padding-left: 0; | ||
} | ||
|
||
#user-nav > li > a { | ||
text-align: center; | ||
} | ||
|
||
.user-nav-count { | ||
position: absolute; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.