posts: factor out post navbar into component.
* Factor out the post navbar into a component. The post navbar is the part of the post containing the current search, the list of pools, and the list of favgroups, along with next/prev navigation links. * Change navbar markup: remove various unused CSS classes/IDs, change pools to use same markup as favgroups, replace nested <div>'s with flat <ul>/<li> list. * Use CSS to truncate long searches/pool names/favgroup names if they're too wide for the screen (especially on mobile).
This commit is contained in:
@@ -208,10 +208,6 @@ div#c-posts {
|
||||
margin: 1em 0 0.5em;
|
||||
}
|
||||
|
||||
.pool-name, .search-name {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
textarea {
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
@@ -225,51 +221,11 @@ div#c-posts {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#search-seq-nav + #pool-nav, #search-seq-nav + #favgroup-nav, #pool-nav + #favgroup-nav {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
|
||||
#recommended.loading-recommended-posts {
|
||||
pointer-events: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
#pool-nav, #search-seq-nav, #favgroup-nav {
|
||||
li {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 0 5.5em;
|
||||
|
||||
&[data-selected="true"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.prev {
|
||||
position: absolute;
|
||||
left: 2em;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.next {
|
||||
position: absolute;
|
||||
right: 2em;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.first {
|
||||
position: absolute;
|
||||
left: 0.5em;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.last {
|
||||
position: absolute;
|
||||
right: 0.5em;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
span.close-button {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
|
||||
Reference in New Issue
Block a user