mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-02-14 15:31:13 -05:00
I was tired of having to handle the SCSS themes differently. fix https://github.com/FreshRSS/FreshRSS/issues/7611 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8200 Convert Ansum and Mapco themes from SCSS to native CSS. The changes are actually quite limited (mostly changing the syntax of the variables and a few other things) Require support for: * https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Nesting * https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/Nesting_selector * https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color-mix SCSS and SAAS tools and references are also removed. Tests welcome. The styles are left as individual CSS files as designed originally in SCSS. I expect proper HTTP caching and HTTP/2 to be sufficient instead of aggregating back to a single CSS, but might be done in another PR if needed. At the same time, fixed the fact that we had various whitespace styles in our JSON files, in particular in those themes, sometimes with 2 spaces, or 4 spaces, or tabs. Use tabs everywhere as defined in editorconfig. I would like to merge this one first to complete https://github.com/FreshRSS/FreshRSS/pull/8230 * RTLCSS stringMap https://github.com/FreshRSS/FreshRSS/pull/8241#discussion_r2553175514 https://github.com/MohammadYounes/rtlcss/issues/108#issuecomment-347033134
276 lines
4.5 KiB
CSS
276 lines
4.5 KiB
CSS
/*=== Tree */
|
|
.tree {
|
|
margin: 10px 0;
|
|
|
|
&#sidebar {
|
|
scrollbar-color: rgba(255,255, 0, 0.1) rgba(0, 0, 0, 0.05);
|
|
scrollbar-color: color-mix(in srgb, var(--sid-font-color) 20%, transparent) color-mix(in srgb, var(--sid-font-color) 13%, transparent);
|
|
}
|
|
|
|
.tree-folder {
|
|
border-bottom: 1px solid var(--sid-sep);
|
|
box-shadow: inset 1px -11px 8px #0003;
|
|
|
|
.tree-folder-title {
|
|
padding: 0.75rem 1rem;
|
|
background: var(--sid-bg);
|
|
position: relative;
|
|
font-size: 0.85rem;
|
|
letter-spacing: 1px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
|
|
button.dropdown-toggle {
|
|
margin: -0.75rem -1rem -0.75rem 0.25rem;
|
|
padding: 0.75rem 1rem 0.75rem 0;
|
|
|
|
&:hover {
|
|
.icon {
|
|
filter: brightness(1.7) !important;
|
|
transition: 0.1s linear;
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.title {
|
|
background: inherit;
|
|
color: var(--sid-font-color);
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
.tree-folder-title {
|
|
background: var(--sid-bg);
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
.tree-folder-items {
|
|
background: var(--sid-bg-alt);
|
|
|
|
.item {
|
|
font-size: 1rem;
|
|
font-weight: 400;
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
|
|
&.active {
|
|
background: var(--sid-active);
|
|
|
|
.dropdown li a {
|
|
color: var(--main-font-color);
|
|
|
|
&:hover {
|
|
color: var(--sid-font-color);
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--sid-active-font);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--sid-bg-dark);
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--sid-font-color);
|
|
|
|
&.dropdown-toggle {
|
|
.icon {
|
|
margin-left: 0.25rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*=== Buttons */
|
|
.stick,
|
|
.group {
|
|
input, .btn {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.btn:first-child {
|
|
border-radius: 0 5px 5px 0;
|
|
}
|
|
|
|
.btn:last-child, input:last-child, .dropdown:last-child > .btn {
|
|
border-radius: 5px 0 0 5px;
|
|
}
|
|
|
|
.btn + .btn,
|
|
.btn + input,
|
|
.btn + .dropdown > .btn,
|
|
input + .btn,
|
|
input + input,
|
|
input + .dropdown > .btn,
|
|
.dropdown + .btn,
|
|
.dropdown + input,
|
|
.dropdown + .dropdown > .btn {
|
|
border-right: 1px solid var(--grey-medium-light);
|
|
}
|
|
|
|
}
|
|
|
|
.aside {
|
|
background: var(--sid-bg);
|
|
|
|
|
|
&.aside_feed {
|
|
padding: 10px 0;
|
|
text-align: center;
|
|
background: var(--sid-bg);
|
|
border-left: 1px solid var(--sid-sep);
|
|
|
|
.tree-folder-title:hover button.dropdown-toggle .icon {
|
|
filter: none;
|
|
}
|
|
}
|
|
|
|
&.aside_feed .tree {
|
|
margin: 10px 0 50px;
|
|
}
|
|
|
|
a:hover {
|
|
.icon {
|
|
filter: brightness(1.7);
|
|
transition: 0.1s linear;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
/* Sidebar des pages de configuration */
|
|
|
|
|
|
|
|
/*=== Navigation */
|
|
.nav-list {
|
|
font-size: 1rem;
|
|
|
|
.item.nav-header,
|
|
.item {
|
|
min-height: 2.5em;
|
|
line-height: 2.5em;
|
|
}
|
|
|
|
.item {
|
|
background: var(--sid-bg);
|
|
min-height: 2.5em;
|
|
line-height: 2.5em;
|
|
|
|
&.nav-header {
|
|
min-height: 2.5em;
|
|
line-height: 2.5em;
|
|
}
|
|
|
|
a,
|
|
.as-link {
|
|
padding: 0 1rem;
|
|
color: var(--sid-font-color);
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
}
|
|
|
|
a:hover,
|
|
.as-link:hover {
|
|
background: var(--sid-bg-dark);
|
|
text-decoration: none;
|
|
}
|
|
|
|
&.active {
|
|
background: var(--main-first);
|
|
color: var(--white);
|
|
|
|
a,
|
|
.as-link {
|
|
background: var(--main-first);
|
|
color: var(--white);
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-header {
|
|
padding: 0 1rem;
|
|
font-weight: bold;
|
|
color: var(--grey-dark);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.nav-form {
|
|
padding: 3px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
/*=== Aside main page (categories) */
|
|
.aside_feed .tree-folder-title > .title:not([data-unread="0"]) {
|
|
width: calc(100% - 35px - 35px);
|
|
}
|
|
|
|
.aside.aside_feed .category .title:not([data-unread="0"])::after {
|
|
margin: 0.75rem 0 0 0;
|
|
background-color: var(--sid-pills);
|
|
}
|
|
|
|
.aside.aside_feed .feed .item-title:not([data-unread="0"])::after {
|
|
margin: 0.5em 0 0 0;
|
|
background-color: var(--sid-pills);
|
|
}
|
|
|
|
.feed.item.empty.active {
|
|
background: var(--grey-dark);
|
|
}
|
|
|
|
.feed.item.error.active {
|
|
background: var(--grey-dark);
|
|
}
|
|
|
|
.feed.item.empty,
|
|
.feed.item.empty > a {
|
|
color: var(--grey-dark);
|
|
}
|
|
|
|
.feed.item.error,
|
|
.feed.item.error > a {
|
|
color: var(--grey-dark);
|
|
}
|
|
|
|
.feed.item.empty.active,
|
|
.feed.item.error.active,
|
|
.feed.item.empty.active > a,
|
|
.feed.item.error.active > a {
|
|
color: var(--white);
|
|
}
|
|
|
|
.aside_feed .tree-folder-items .dropdown-menu::after {
|
|
right: 2px;
|
|
}
|
|
|
|
.aside_feed .tree-folder-items .item .dropdown-target:target ~ .dropdown-toggle > .icon,
|
|
.aside_feed .tree-folder-items .item:hover .dropdown-toggle > .icon,
|
|
.aside_feed .tree-folder-items .item.active .dropdown-toggle > .icon {
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.aside_feed .stick #btn-add {
|
|
border-right-color: var(--sid-bg);
|
|
}
|