Files
FreshRSS/p/themes/Mapco/_layout.scss
maTh e53ba88bb9 Search Improved: dropdown (#4994)
* first draft

* fix

* RTL CSS

* add link to documentation

* hide search button in desktop view

* rename .no-desktop to .only-mobile

* i18n

* add ID

* Theme: Swage

* Theme Scewdriver

* Theme Pafat

* Theme flat

* Theme: Adark

* Theme: Dark

* i18n: German

* i18n en-us

* fix i18n

* Update app/i18n/fr/gen.php

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/layout/nav_menu.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/layout/nav_menu.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* Update app/layout/nav_menu.phtml

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>

* wip

* mapco theme

* RTL for Ansum and Mapco

* fix

* fix

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
2023-01-30 20:32:55 +01:00

394 lines
6.3 KiB
SCSS

@use "mixins";
@use "variables";
/*=== STRUCTURE */
/*===============*/
/*=== Header */
.header {
background: variables.$sid-bg;
.item {
vertical-align: middle;
&.title {
a {
padding: 0.5rem 1rem;
.logo {
filter: grayscale(100%) brightness(3);
}
&:hover {
.logo {
filter: grayscale(100%) brightness(2.2);
}
}
}
}
&.search {
input {
width: 350px;
color: variables.$sid-font-color;
border: none;
border-radius: 2px 0 0 2px;
background-color: variables.$sid-bg-alt;
@include mixins.transition(all, 0.15s, ease-in-out);
&:hover {
background-color: variables.$sid-bg-dark;
}
&:focus {
color: variables.$grey-dark;
background-color: variables.$white;
}
}
input:focus ~ .btn,
input:hover ~ .btn {
background-color: variables.$main-first;
.icon {
filter: brightness(3);
}
}
.btn {
width: 3rem;
border-radius: 0 2px 2px 0;
background-color: variables.$sid-bg-alt;
border-left-width: 0;
min-height: 35px;
&:hover {
background-color: variables.$main-first-alt;
.icon {
filter: brightness(3);
}
}
}
}
&.configure {
text-align: center;
.btn .icon,
> .icon {
filter: brightness(3)
}
.signin {
color: white;
}
.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: variables.$grey-light;
border-radius: 5px;
}
/*=== New article notification */
#new-article {
background: variables.$main-first;
font-size: 1rem;
text-align: center;
}
#new-article > a {
line-height: 3em;
font-weight: bold;
color: variables.$white;
}
#new-article > a:hover {
text-decoration: none;
background: variables.$main-first-alt;
}
/*=== Day indication */
.day {
padding: 1rem 0 0 1.25rem;
color: variables.$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: variables.$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: variables.$grey-light;
background-position: center;
background-repeat: no-repeat;
@include mixins.transition(all, 0.15s, ease-in-out);
&:hover {
background-color: variables.$grey-medium-light;
}
&.active {
background-color: variables.$main-first;
.icon {
filter: brightness(3);
}
}
}
/*=== Index menu */
.nav_menu {
text-align: center;
padding: 5px 0;
.btn {
border-left-width: 0;
padding: 0.5rem 1rem;
background-color: variables.$grey-lighter;
background-position: center;
background-repeat: no-repeat;
&:hover {
background-color: variables.$grey-medium-light;
}
}
.stick {
.btn {
border-left-width: 0;
padding: 0.5rem 1rem;
background-color: variables.$grey-lighter;
background-position: center;
background-repeat: no-repeat;
@include mixins.transition(all, 0.15s, ease-in-out);
&:hover {
background-color: variables.$grey-medium-light;
}
&.active {
background-color: variables.$main-first;
}
// actions
&#toggle-read.active {
.icon {
filter: brightness(3.5);
}
}
&#toggle-unread.active {
.icon {
filter: brightness(3.5) grayscale(1);
}
}
// read all
&.read_all {
padding: 5px 16px;
color: variables.$main-font-color;
background-color: variables.$grey-lighter;
@include mixins.transition(all, 0.15s, ease-in-out);
&:hover {
background-color: variables.$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;
}
}
}
}
/*=== Content of feed articles */
.content, .content.thin {
padding: 20px 10px;
font-size: 1.125rem;
line-height: 1.8rem;
h1.title, h1 {
a {
color: variables.$main-font-color;
font-family: "spectral", serif;
font-size: 2rem;
&:hover {
color: variables.$main-first;
text-decoration: none;
}
}
}
.author {
color: variables.$light-font-color;
font-size: 1.125rem;
}
p, ul {
font-size: 1.125rem;
line-height: 1.8rem;
}
.content hr {
margin: 30px 10px;
background: variables.$grey-medium-light;
height: 1px;
border: 0;
box-shadow: 0 2px 5px #ccc;
}
pre {
margin: 10px auto;
padding: 10px 20px;
overflow: auto;
background: variables.$main-first-darker;
color: variables.$white;
font-size: 0.9rem;
border-radius: 3px;
code {
background: transparent;
color: variables.$white;
border: none;
}
}
code {
padding: 2px 5px;
background: variables.$code-bg;
color: variables.$code-text;
font-size: 1rem;
// border: 1px solid variables.$alert-light;
border-radius: 3px;
}
blockquote {
margin: 0;
padding: 0.5rem 1.5rem;
background: variables.$grey-lighter;
display: block;
color: variables.$light-font-color;
border-left: 4px solid variables.$grey-medium-light;
p {
margin: 0;
}
}
}
/*=== Notification and actualize notification */
.notification {
padding: 1rem 0;
background: variables.$grey-medium-light;
width: 100%;
height: 3rem;
color: variables.$grey-dark;
font-size: 1em;
border: none;
position: fixed;
top: auto;
bottom: 0;
left: 0;
right: 0;
text-align: center;
line-height: 3em;
vertical-align: middle;
.msg {
display: inline-block;
font-size: 1rem;
}
&.good {
background: variables.$success-bg;
color: variables.$white;
}
&.bad {
background: variables.$alert-bg;
color: variables.$white;
}
a.close {
border-radius: 0 3px 3px 0;
}
&.good a.close:hover {
background: variables.$success-text;
}
&.bad a.close:hover {
background: variables.$alert-text;
}
&#actualizeProgress {
br {
display: none;
}
.title {
margin: 0 2rem;
}
}
}
/*=== Navigation menu (for articles) */
#nav_entries {
margin: 0;
text-align: center;
line-height: 3em;
table-layout: fixed;
background: variables.$sid-bg;
}