mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-23 03:34:41 -04:00
* remove .pagination .item a:hover * remove .pagination .loading * Update swage.scss * .pagination .item a centralized to template.css * adark theme: mobile: border * remove text-align: center * remove .pager-current * remove .content .pagination * remove font-size * font-style: italic; in template.css * fix
363 lines
5.9 KiB
SCSS
363 lines
5.9 KiB
SCSS
@use "sass:string";
|
||
|
||
@use "mixins";
|
||
|
||
@use "variables";
|
||
|
||
/*=== COMPONENTS */
|
||
/*===============*/
|
||
/*=== Forms */
|
||
// parti dans _forms.scss
|
||
|
||
/*=== Horizontal-list */
|
||
.horizontal-list {
|
||
margin: 0;
|
||
padding: 0.1rem 0;
|
||
|
||
.item {
|
||
vertical-align: middle;
|
||
|
||
&:first-child {
|
||
padding-left: 0.5rem;
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
/*=== Dropdown */
|
||
.dropdown-menu {
|
||
margin: 9px 0 0 0;
|
||
padding: 0.5rem 0 1rem 0;
|
||
background: variables.$grey-lighter;
|
||
font-size: 1rem;
|
||
border: none;
|
||
border-radius: 3px;
|
||
box-shadow: 0px 6px 8px 0px rgba(0,0,0,0.35);
|
||
text-align: left;
|
||
|
||
&::after {
|
||
border: none;
|
||
right: 18px;
|
||
}
|
||
|
||
.dropdown-header {
|
||
// padding: 0 5px 5px;
|
||
margin: 1rem 0.5rem 1rem 1rem;
|
||
font-weight: bold;
|
||
text-align: left;
|
||
color: variables.$grey-dark;
|
||
text-transform: uppercase;
|
||
letter-spacing: 1px;
|
||
|
||
}
|
||
|
||
.item {
|
||
|
||
@include mixins.transition(all, 0.075s, ease-in-out);
|
||
|
||
a, span, .as-link {
|
||
padding: 0 2rem;
|
||
color: variables.$main-font-color;
|
||
font-size: 1rem;
|
||
line-height: 2.5em;
|
||
}
|
||
|
||
&:not(.addItem):hover {
|
||
background: variables.$main-first;
|
||
color: variables.$white;
|
||
|
||
a, button, label {
|
||
text-decoration: none;
|
||
color: variables.$white;
|
||
}
|
||
}
|
||
|
||
&[aria-checked="true"] {
|
||
a::before {
|
||
margin: 0 0 0 -14px;
|
||
font-weight: bold;
|
||
}
|
||
}
|
||
}
|
||
|
||
.input {
|
||
select, input {
|
||
margin: 0 auto 5px;
|
||
padding: 2px 5px;
|
||
border-radius: 3px;
|
||
}
|
||
}
|
||
|
||
.separator {
|
||
margin: 0.75rem 0;
|
||
border-bottom: 1px solid variables.$grey-light;
|
||
// display: none;
|
||
}
|
||
|
||
}
|
||
|
||
.tree .tree-folder .tree-folder-items .dropdown-menu {
|
||
// to reset the appearance of the dropdown in the case of a dark sidebar
|
||
.item {
|
||
padding: 0;
|
||
|
||
a,
|
||
button {
|
||
color: variables.$main-font-color;
|
||
|
||
&:hover {
|
||
color: variables.$white;
|
||
}
|
||
}
|
||
|
||
&:hover {
|
||
background: variables.$main-first;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
/*=== Alerts */
|
||
.alert {
|
||
margin: 1rem 0;
|
||
// width: 100%;
|
||
padding: 1rem;
|
||
background: variables.$grey-lighter;
|
||
color: variables.$grey-dark;
|
||
font-size: 1rem;
|
||
border: 1px solid variables.$grey-medium;
|
||
border-radius: 3px;
|
||
text-shadow: 0 0 1px variables.$grey-light;
|
||
}
|
||
|
||
.alert-head {
|
||
font-size: 1.15em;
|
||
}
|
||
|
||
.alert > a {
|
||
text-decoration: underline;
|
||
color: inherit;
|
||
}
|
||
|
||
.alert-warn {
|
||
background: variables.$warning-light;
|
||
color: variables.$warning-text;
|
||
border: 1px solid string.unquote(variables.$warning-text + '33'); // on ajoute l’opacité à la fin
|
||
}
|
||
|
||
.alert-success {
|
||
background: variables.$success-light;
|
||
color: variables.$success-text;
|
||
border: 1px solid string.unquote(variables.$success-text + '33');
|
||
}
|
||
|
||
.alert-error {
|
||
background: variables.$alert-light;
|
||
color: variables.$alert-text;
|
||
border: 1px solid string.unquote(variables.$alert-text + '33');
|
||
}
|
||
|
||
/*=== Pagination */
|
||
.pagination {
|
||
background: variables.$grey-light;
|
||
color: variables.$main-font-color;
|
||
|
||
.item a {
|
||
color: variables.$main-font-color;
|
||
}
|
||
|
||
}
|
||
|
||
#load_more.loading,
|
||
#load_more.loading:hover {
|
||
background: url("loader.gif") center center no-repeat #34495e;
|
||
}
|
||
|
||
/*=== Boxes */
|
||
.box {
|
||
background: variables.$white;
|
||
// border: 1px solid #ddd;
|
||
border: none;
|
||
border-radius: 3px;
|
||
|
||
box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.25);
|
||
|
||
.box-title {
|
||
margin: 0;
|
||
padding: 5px 10px;
|
||
background: variables.$grey-light;
|
||
color: variables.$main-font-color;
|
||
// border-bottom: 1px solid #ddd;
|
||
border-radius: 2px 2px 0 0;
|
||
|
||
.configure {
|
||
margin-right: 4px;
|
||
}
|
||
|
||
&:hover {
|
||
.configure {
|
||
background: url("icons/cog.svg") no-repeat 4px 4px;
|
||
display: block;
|
||
float: left;
|
||
width: 1.75rem;
|
||
height: 1.75rem;
|
||
border-radius: 2px;
|
||
margin-right: 0.5rem;
|
||
|
||
.icon {
|
||
display: none;
|
||
border-radius: 3px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
&:hover {
|
||
background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
|
||
}
|
||
}
|
||
}
|
||
|
||
|
||
form {
|
||
input {
|
||
width: 85%;
|
||
}
|
||
|
||
.dropdown {
|
||
float: right;
|
||
|
||
a.dropdown-toggle {
|
||
padding: 0;
|
||
// float: right;
|
||
border-radius: 0;
|
||
background-image: url(icons/more.svg);
|
||
background-repeat: no-repeat;
|
||
background-position: right 8px;
|
||
|
||
img {
|
||
display: none;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.box-content {
|
||
// max-height: 260px;
|
||
padding-left: 30px;
|
||
|
||
.item {
|
||
padding: 0.5rem 0;
|
||
color: variables.$main-font-color;
|
||
font-size: 1rem;
|
||
border-bottom: 1px solid variables.$grey-light;
|
||
line-height: 1.7em;
|
||
|
||
img {
|
||
margin-right: 0.75rem;
|
||
}
|
||
|
||
.configure {
|
||
background: url("icons/cog.svg") no-repeat 4px 4px;
|
||
display: block;
|
||
float: left;
|
||
width: 1.75rem;
|
||
height: 1.75rem;
|
||
border-radius: 2px;
|
||
margin-right: 0.5rem;
|
||
|
||
.icon {
|
||
display: none;
|
||
border-radius: 3px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
&:hover {
|
||
// background: $main-first;
|
||
background: url("icons/cog-white.svg") no-repeat 4px 4px variables.$main-first;
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
.item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
}
|
||
}
|
||
|
||
/*=== "Load more" part */
|
||
#bigMarkAsRead {
|
||
text-align: center;
|
||
text-decoration: none;
|
||
background: variables.$main-first-light;
|
||
color: variables.$main-first;
|
||
|
||
@include mixins.transition(all, 0.15s, ease-in-out);
|
||
|
||
&:hover {
|
||
background: variables.$main-first;
|
||
color: #fff;
|
||
|
||
.bigTick {
|
||
background: url(icons/tick-white.svg) center no-repeat;
|
||
}
|
||
}
|
||
|
||
.bigTick {
|
||
margin: 0.5rem 0;
|
||
background: url(icons/tick-color.svg) center no-repeat;
|
||
display: inline-block;
|
||
width: 64px;
|
||
height: 64px;
|
||
text-indent: -9999px;
|
||
white-space: nowrap;
|
||
}
|
||
}
|
||
|
||
// page de login
|
||
.formLogin {
|
||
background: variables.$sid-bg;
|
||
|
||
.header {
|
||
.configure {
|
||
padding-right: 1rem;
|
||
|
||
img {
|
||
margin-right: 0.5rem;
|
||
}
|
||
|
||
a.signin {
|
||
color: variables.$white;
|
||
}
|
||
}
|
||
}
|
||
|
||
h1 {
|
||
color: variables.$white;
|
||
}
|
||
|
||
form#crypto-form {
|
||
div {
|
||
margin-bottom: 1rem;
|
||
|
||
label {
|
||
color: variables.$grey-medium;
|
||
font-size: 1rem;
|
||
|
||
|
||
}
|
||
|
||
input {
|
||
background: variables.$main-first-darker;
|
||
|
||
&:focus {
|
||
background: variables.$grey-lighter;
|
||
color: variables.$main-font-color;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|