mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-14 18:23:52 -04:00
At `max-width: 840px`, base-theme hides the "Mark as read" text button via `.no-mobile`. Each affected theme strips the toggle's left border and radius so it visually joins the text button at wider widths. With the text button hidden, the toggle is left with a flat left edge. The fix restores rounded left corners (and, where the theme has visible borders, the left border itself) on the lone toggle inside each theme's `@media (max-width: 840px)` block, matching #8711. Affected: Alternative-Dark, Ansum, Dark, Flat, Mapco, Pafat. Dark-pink inherits via its `../Alternative-Dark/adark.css` import. Alternative-Dark and Dark-pink also need a hover override on the same selector, since their `.btn:hover` rules replace the border color and would otherwise mismatch the static left border. The other themes don't change border on hover. References #7405 ### Screenshots #### Before, narrow Alt-Dark: lone toggle with flat left edge <img width="485" height="41" alt="alt-dark before" src="https://github.com/user-attachments/assets/de11b717-2e4d-4d8b-9ccf-0ed894ac9c95" /> #### After, narrow Alt-Dark: restored left edge, with matching hover border <img width="487" height="41" alt="alt-dark after hover" src="https://github.com/user-attachments/assets/6c2270d8-aafe-4203-8f27-5c9dc66d88ab" /> ### Notes - `.rtl.css` regenerated via `make rtl`. - `npm run stylelint` passes. - Verified at narrow width on FreshRSS 1.28.2-dev. Co-authored-by: Bjørn A. Andersen <polybjorn@users.noreply.github.com>
176 lines
2.2 KiB
CSS
176 lines
2.2 KiB
CSS
/*=== MOBILE */
|
|
/*===========*/
|
|
|
|
@media (max-width: 840px) {
|
|
.aside {
|
|
|
|
transition: all 0.2s ease-in-out;
|
|
|
|
&.aside_feed {
|
|
padding: 0;
|
|
}
|
|
|
|
.tree .tree-folder .tree-folder-items .item a {
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
}
|
|
|
|
.aside .toggle_aside,
|
|
#overlay .close,
|
|
.dropdown-menu .toggle_aside,
|
|
#slider .toggle_aside {
|
|
background-color: var(--main-first);
|
|
|
|
&:hover {
|
|
background-color: var(--main-first-alt);
|
|
}
|
|
|
|
.icon {
|
|
filter: grayscale(100%) brightness(2.5);
|
|
}
|
|
}
|
|
|
|
.header {
|
|
.item {
|
|
&.search {
|
|
display: none;
|
|
}
|
|
|
|
&.configure {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
#global {
|
|
height: calc(100% - 8rem);
|
|
}
|
|
|
|
#panel {
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
main.prompt {
|
|
max-width: 100%;
|
|
min-width: auto;
|
|
width: 75%;
|
|
}
|
|
|
|
.post {
|
|
padding-left: 1rem;
|
|
padding-right: 1rem;
|
|
}
|
|
|
|
.nav_menu {
|
|
padding-left: 0;
|
|
|
|
.btn {
|
|
margin: 0;
|
|
padding: 0.85rem 1.25rem;
|
|
}
|
|
|
|
.stick,
|
|
.group {
|
|
margin: 0.5rem 0.5rem;
|
|
|
|
.btn {
|
|
margin: 0;
|
|
padding: 0.85rem 1.25rem;
|
|
|
|
&.read_all {
|
|
padding: 0.85rem 1.25rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search {
|
|
.input {
|
|
max-width: 97%;
|
|
width: 90px;
|
|
|
|
&:focus {
|
|
width: 400px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#nav_menu_read_all #nav_menu_read .dropdown-toggle.btn {
|
|
background-image: none;
|
|
}
|
|
|
|
.nav_menu .stick #mark-read-menu .dropdown-toggle.btn {
|
|
border-left-width: 0;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#stream {
|
|
.flux {
|
|
.flux_header {
|
|
padding: 0.5rem 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown-target:target {
|
|
& ~ .dropdown-toggle::after {
|
|
background-color: var(--grey-lighter);
|
|
border-top: 1px solid var(--grey-light);
|
|
border-left: 1px solid var(--grey-light);
|
|
right: 21px;
|
|
bottom: -14px;
|
|
}
|
|
|
|
& ~ a.dropdown-toggle {
|
|
&:not(.btn) {
|
|
&::after {
|
|
bottom: -17px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.transition {
|
|
text-align: center;
|
|
padding: 1rem 0;
|
|
|
|
.name {
|
|
padding: 0;
|
|
display: block;
|
|
width: 100%;
|
|
line-height: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
}
|
|
|
|
#nav_entries button {
|
|
height: 4.5rem;
|
|
}
|
|
|
|
.notification {
|
|
border-radius: 0;
|
|
|
|
a.close {
|
|
background: transparent;
|
|
display: block;
|
|
left: 0;
|
|
}
|
|
|
|
a.close:hover {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
a.close .icon {
|
|
display: none;
|
|
|
|
}
|
|
}
|
|
}
|