mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-20 09:30:36 +00:00
1c92d55917
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
370 lines
5.8 KiB
CSS
370 lines
5.8 KiB
CSS
/*=== STRUCTURE */
|
|
/*===============*/
|
|
/*=== Header */
|
|
.header {
|
|
background: var(--sid-bg);
|
|
|
|
.item {
|
|
vertical-align: middle;
|
|
|
|
&.title {
|
|
a {
|
|
padding: 0.5rem 1rem;
|
|
|
|
.logo {
|
|
filter: invert(80%);
|
|
}
|
|
|
|
&:hover {
|
|
.logo {
|
|
filter: invert(80%) opacity(80%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.search {
|
|
input {
|
|
width: 350px;
|
|
color: var(--sid-font-color);
|
|
border: none;
|
|
border-radius: 2px 0 0 2px;
|
|
background-color: var(--sid-bg-alt);
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: var(--sid-bg-dark);
|
|
}
|
|
|
|
&:focus {
|
|
color: var(--grey-dark);
|
|
background-color: var(--white);
|
|
}
|
|
}
|
|
|
|
input:focus ~ .btn,
|
|
input:hover ~ .btn {
|
|
background-color: var(--main-first);
|
|
|
|
.icon {
|
|
filter: brightness(3);
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
width: 3rem;
|
|
border-radius: 0 2px 2px 0;
|
|
background-color: var(--sid-bg-alt);
|
|
border-left-width: 0;
|
|
min-height: 35px;
|
|
|
|
.icon {
|
|
filter: invert(49%) sepia(13%) saturate(2426%) hue-rotate(346deg) brightness(99%) contrast(95%);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: var(--main-first-alt);
|
|
|
|
.icon {
|
|
filter: brightness(3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.configure {
|
|
text-align: center;
|
|
|
|
.btn {
|
|
padding: 0.25rem 1rem;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/*=== Body */
|
|
#global {
|
|
height: calc(100vh - (calc(3rem + 2 * var(--frss-padding-top-bottom))));
|
|
}
|
|
|
|
/*=== Prompt (centered) */
|
|
main.prompt {
|
|
background: var(--grey-light);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/*=== New article notification */
|
|
#new-article {
|
|
background: var(--main-first);
|
|
font-size: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
#new-article > a {
|
|
padding: calc(0.75rem + var(--frss-padding-top-bottom)) 1rem;
|
|
font-weight: bold;
|
|
color: var(--white);
|
|
}
|
|
|
|
#new-article > a:hover {
|
|
text-decoration: none;
|
|
background: var(--main-first-alt);
|
|
}
|
|
|
|
/*=== Transition indication, e.g. day */
|
|
.transition {
|
|
padding: 1rem 0 0 1.25rem;
|
|
color: var(--light-font-color);
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
line-height: 3em;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
|
|
.name {
|
|
padding: 0 1rem 0 1rem;
|
|
color: var(--main-font-color);
|
|
font-size: 0.875rem;
|
|
position: relative;
|
|
left: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
border-left-width: 0;
|
|
padding: 0.5rem 1rem;
|
|
background-color: var(--grey-light);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: var(--grey-medium-light);
|
|
}
|
|
|
|
&.active {
|
|
background-color: var(--main-first);
|
|
}
|
|
}
|
|
|
|
/*=== Index menu */
|
|
.nav_menu {
|
|
text-align: center;
|
|
padding: 5px 0;
|
|
|
|
.btn {
|
|
border-left-width: 0;
|
|
padding: 0.5rem 1rem;
|
|
background-color: var(--grey-lighter);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
|
|
&:hover {
|
|
background-color: var(--grey-medium-light);
|
|
}
|
|
}
|
|
|
|
.stick,
|
|
.group {
|
|
.btn {
|
|
border-left-width: 0;
|
|
padding: 0.5rem 1rem;
|
|
background-color: var(--grey-lighter);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: var(--grey-medium-light);
|
|
}
|
|
|
|
&.active {
|
|
background-color: var(--main-first);
|
|
|
|
.icon {
|
|
filter: brightness(5);
|
|
}
|
|
}
|
|
|
|
&.read_all {
|
|
padding: 5px 16px;
|
|
color: var(--main-font-color);
|
|
background-color: var(--grey-lighter);
|
|
|
|
transition: all 0.15s ease-in-out;
|
|
|
|
&:hover {
|
|
background-color: var(--grey-medium-light);
|
|
}
|
|
}
|
|
}
|
|
|
|
.dropdown:not(#dropdown-search-wrapper) {
|
|
a.dropdown-toggle {
|
|
border-left-width: 0;
|
|
background-image: url(icons/more.svg);
|
|
|
|
.icon {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
#dropdown-search-wrapper.dropdown {
|
|
a.dropdown-toggle {
|
|
border-left-width: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
#dropdown-query ~ .dropdown-menu .dropdown-header .icon {
|
|
vertical-align: middle;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
|
|
/*=== Content of feed articles */
|
|
.content, .content_thin {
|
|
padding: 20px 10px;
|
|
|
|
font-size: 1.125rem;
|
|
line-height: 1.8rem;
|
|
|
|
h1.title, h1 {
|
|
a {
|
|
color: var(--main-font-color);
|
|
font-family: "spectral", serif;
|
|
font-size: 2rem;
|
|
|
|
&:hover {
|
|
color: var(--main-first);
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.author {
|
|
color: var(--light-font-color);
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
p, ul {
|
|
font-size: 1.125rem;
|
|
line-height: 1.8rem;
|
|
}
|
|
|
|
.content hr {
|
|
margin: 30px 10px;
|
|
background: var(--grey-medium-light);
|
|
height: 1px;
|
|
border: 0;
|
|
box-shadow: 0 2px 5px #ccc;
|
|
}
|
|
|
|
pre {
|
|
background: var(--main-first-darker);
|
|
color: var(--white);
|
|
border-radius: 3px;
|
|
|
|
code {
|
|
background: transparent;
|
|
color: var(--white);
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
code {
|
|
background: var(--grey-lighter);
|
|
border-color: var(--grey-light);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
blockquote {
|
|
margin: 0;
|
|
padding: 5px 20px;
|
|
background: var(--grey-lighter);
|
|
display: block;
|
|
color: var(--main-font-color);
|
|
border-top: 1px solid var(--grey-medium-light);
|
|
border-bottom: 1px solid var(--grey-medium-light);
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/*=== Notification and actualize notification */
|
|
.notification {
|
|
padding: 1rem 0;
|
|
background: var(--grey-medium-light);
|
|
width: 100%;
|
|
height: 3rem;
|
|
color: var(--grey-dark);
|
|
font-size: 1em;
|
|
border: none;
|
|
position: fixed;
|
|
top: auto;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
|
|
a {
|
|
color: #000;
|
|
}
|
|
|
|
.msg {
|
|
display: inline-block;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
&.good {
|
|
background: var(--success-bg);
|
|
color: var(--white);
|
|
}
|
|
|
|
&.bad {
|
|
background: var(--alert-bg);
|
|
color: var(--white);
|
|
}
|
|
|
|
.close {
|
|
.icon {
|
|
filter: brightness(3);
|
|
}
|
|
}
|
|
|
|
&.good .close:hover {
|
|
background: var(--success-text);
|
|
}
|
|
|
|
&.bad .close:hover {
|
|
background: var(--alert-text);
|
|
}
|
|
|
|
&#actualizeProgress {
|
|
br {
|
|
display: none;
|
|
}
|
|
|
|
.title {
|
|
margin: 0 2rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*=== Navigation menu (for articles) */
|
|
#nav_entries {
|
|
background: var(--sid-bg);
|
|
}
|