Add upvote and downvote buttons beneath thumbnails on the post index page. This is disabled by default. To enable it, click the "..." menu in the top right of the page, then click "Show scores". This is currently a per-search setting, not an account setting. If you enable it in one tab, it won't be enabled in other tabs.
40 lines
703 B
SCSS
40 lines
703 B
SCSS
@import "../../javascript/src/styles/base/000_vars.scss";
|
|
|
|
div.popup-menu {
|
|
display: inline-block;
|
|
|
|
a.popup-menu-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
color: var(--muted-text-color);
|
|
|
|
// the popup menu is open
|
|
&[aria-expanded="true"] {
|
|
@include active-link;
|
|
}
|
|
|
|
// the popup menu is not open
|
|
&:not([aria-expanded="true"]) {
|
|
@include inactive-link;
|
|
}
|
|
}
|
|
|
|
ul.popup-menu-content {
|
|
display: none;
|
|
|
|
li a {
|
|
display: block;
|
|
padding: 0.125em 0 0.125em 0;
|
|
|
|
.icon {
|
|
width: 1rem;
|
|
margin-right: 0.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|