174 lines
3.5 KiB
SCSS
174 lines
3.5 KiB
SCSS
// Quick Icons
|
|
|
|
.quick-icons {
|
|
background-color: var(--body-bg);
|
|
|
|
.nav {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
|
|
grid-gap: 1rem;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
ul {
|
|
padding: 0;
|
|
}
|
|
|
|
.quickicon {
|
|
--text-color: var(--template-quickicon-color);
|
|
--bg-color: hsl(var(--hue), 60%, 97%);
|
|
--icon-color: var(--template-quickicon-color);
|
|
--bg-color-hvr: var(--template-bg-dark);
|
|
|
|
display: flex;
|
|
flex-grow: 1;
|
|
|
|
a {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
justify-content: flex-end;
|
|
padding: 0 1rem;
|
|
color: var(--text-color);
|
|
background-color: var(--bg-color);
|
|
transition: all .25s ease;
|
|
|
|
.quickicon-icon {
|
|
margin-top: .5rem;
|
|
margin-inline-start: .2rem;
|
|
|
|
> * {
|
|
font-size: $quickicon-icon-size;
|
|
color: var(--icon-color);
|
|
}
|
|
}
|
|
|
|
.quickicon-name {
|
|
padding: .125rem 0 .6rem;
|
|
font-size: $display2-size;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.quickicon-amount {
|
|
padding: .25rem .5rem;
|
|
font-weight: $bold-weight;
|
|
line-height: 1rem;
|
|
background: hsl(var(--hue),50%,93%);
|
|
border-radius: $border-radius;
|
|
transition: all .25s ease;
|
|
margin-inline-start: .5rem;
|
|
@if $enable-dark-mode {
|
|
/* stylelint-disable max-nesting-depth */
|
|
@include color-mode(dark) {
|
|
/* stylelint-enable max-nesting-depth */
|
|
color: var(--template-bg-dark-80);
|
|
}
|
|
}
|
|
}
|
|
|
|
.j-links-link {
|
|
display: block;
|
|
padding: 0 .2rem;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
color: $white;
|
|
text-decoration: none;
|
|
background: var(--bg-color-hvr);
|
|
|
|
.quickicon-amount {
|
|
background: var(--icon-color);
|
|
}
|
|
}
|
|
|
|
&.warning,
|
|
&.danger {
|
|
--text-color: var(--danger);
|
|
--bg-color: #f4f0f0;
|
|
--icon-color: #ce8484;
|
|
--bg-color-hvr: var(--danger);
|
|
}
|
|
|
|
&.success {
|
|
--text-color: var(--success);
|
|
--bg-color: #f3f9f3;
|
|
--icon-color: #55a258;
|
|
--bg-color-hvr: var(--success);
|
|
}
|
|
}
|
|
}
|
|
|
|
@if $enable-dark-mode {
|
|
@include color-mode(dark) {
|
|
.quickicon {
|
|
--bg-color: var(--template-bg-dark-80);
|
|
--bg-color-hvr: var(--template-bg-dark-65);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.quickicon-info {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.quickicon-linkadd {
|
|
width: 2.5rem;
|
|
font-size: 1.2rem;
|
|
background: hsl(var(--hue),50%,93%);
|
|
transition: all .25s ease;
|
|
|
|
a {
|
|
align-items: flex-end;
|
|
justify-content: center;
|
|
width: 100%;
|
|
|
|
> * {
|
|
margin-bottom: 10px;
|
|
color: var(--template-quickicon-color);
|
|
}
|
|
|
|
@if $enable-dark-mode {
|
|
@include color-mode(dark) {
|
|
/* stylelint-disable max-nesting-depth */
|
|
> * {
|
|
/* stylelint-enable max-nesting-depth */
|
|
color: var(--template-bg-dark-80);
|
|
}
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus,
|
|
&:active {
|
|
background: var(--template-bg-dark);
|
|
|
|
* {
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.quickicon-single,
|
|
.quickicon-group {
|
|
display: flex;
|
|
min-height: 6rem;
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--hue),50%,93%);
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
#content .menu-quicktask {
|
|
position: absolute;
|
|
inset-inline-end: 1.25rem;
|
|
}
|