mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
139 lines
2.8 KiB
CSS
139 lines
2.8 KiB
CSS
@define-mixin button-type $type {
|
|
.button--$(type) {
|
|
color: var(--$(type)-link-color) !important;
|
|
border-color: var(--$(type)-border-color);
|
|
background: var(--$(type)-dark-color);
|
|
|
|
&.button--important {
|
|
color: var(--text-color) !important;
|
|
background: var(--$(type)-color);
|
|
box-shadow: 0 -1px var(--$(type)-dark-color) inset;
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--$(type)-muted-color) !important;
|
|
}
|
|
}
|
|
|
|
.button__group--$(type) {
|
|
border-color: var(--$(type)-color);
|
|
background: var(--$(type)-dark-color);
|
|
|
|
& a {
|
|
color: var(--$(type)-link-color);
|
|
|
|
&:hover {
|
|
@mixin animated-transition;
|
|
color: var(--text-color);
|
|
background: var(--$(type)-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.button {
|
|
@mixin animated-transition;
|
|
display: flex;
|
|
flex: 0 1 auto;
|
|
width: fit-content;
|
|
font-weight: bold;
|
|
font-size: var(--font-size);
|
|
background: var(--primary-dark-color);
|
|
color: var(--text-color);
|
|
border: 1px solid var(--primary-border-color);
|
|
border-radius: var(--border-radius-inner);
|
|
padding: 0 var(--padding-small);
|
|
overflow: hidden;
|
|
line-height: var(--button-height);
|
|
align-items: center;
|
|
|
|
&:hover {
|
|
@mixin animated-transition;
|
|
background: var(--primary-muted-color);
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.button > i {
|
|
margin-right: var(--padding-small);
|
|
}
|
|
|
|
.button--important {
|
|
background: var(--primary-color);
|
|
box-shadow: 0 -1px var(--primary-dark-color) inset;
|
|
}
|
|
|
|
.button__row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
|
|
& > button {
|
|
margin-right: var(--padding-small);
|
|
}
|
|
}
|
|
|
|
.button__group, .button__group--single, .button__group--standalone {
|
|
display: flex;
|
|
flex-direction: row;
|
|
border: 1px solid var(--secondary-color);
|
|
border-radius: var(--border-radius-inner);
|
|
margin-right: var(--padding-normal);
|
|
background: var(--secondary-dark-color);
|
|
line-height: var(--button-group-height);
|
|
|
|
&:last-child {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.button__group--tall {
|
|
line-height: var(--button-group-tall-height)
|
|
}
|
|
|
|
.button__group--small {
|
|
line-height: var(--button-group-small-height)
|
|
}
|
|
|
|
.button__group .button {
|
|
border: 0;
|
|
border-right: var(--secondary-color);
|
|
|
|
&:last-child {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
|
|
.button__group--single {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.button__group--standalone a {
|
|
@mixin animated-transition;
|
|
font-weight: bold;
|
|
padding: 0 var(--padding-small);
|
|
|
|
&:hover {
|
|
@mixin animated-transition;
|
|
background: var(--secondary-muted-color);
|
|
}
|
|
}
|
|
|
|
.button--borderless {
|
|
border-width: 0;
|
|
}
|
|
|
|
.block__header__buttons .button {
|
|
color: var(--link-color);
|
|
border-width: 0 !important;
|
|
background: 0;
|
|
|
|
&:hover {
|
|
background: var(--primary-muted-color);
|
|
}
|
|
}
|
|
|
|
@mixin button-type success;
|
|
@mixin button-type warning;
|
|
@mixin button-type danger;
|
|
@mixin button-type information;
|
|
@mixin button-type special;
|