118 lines
2.5 KiB
SCSS
118 lines
2.5 KiB
SCSS
.mat-button,
|
|
.mat-flat-button {
|
|
border-radius: var(--iqser-button-radius) !important;
|
|
font-size: var(--iqser-button-font-size) !important;
|
|
height: var(--iqser-button-height);
|
|
display: flex !important;
|
|
align-items: center;
|
|
|
|
.mat-button-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
line-height: 34px;
|
|
transition: opacity 0.2s;
|
|
width: 100%;
|
|
|
|
> *:not(:last-child) {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
> span {
|
|
margin: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mat-button,
|
|
.mat-icon-button,
|
|
.mat-flat-button {
|
|
&.mat-button-disabled .mat-button-wrapper {
|
|
color: var(--iqser-text);
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
.mat-flat-button.mat-primary,
|
|
.mat-button.primary {
|
|
padding: 0 14px;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
|
|
background-color: var(--iqser-primary);
|
|
|
|
&.mat-button-disabled {
|
|
background-color: var(--iqser-primary);
|
|
|
|
.mat-button-wrapper {
|
|
color: var(--iqser-white);
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
&:not(.mat-button-disabled):hover {
|
|
background-color: var(--iqser-primary-2);
|
|
}
|
|
}
|
|
|
|
iqser-icon-button,
|
|
iqser-chevron-button,
|
|
.user-button,
|
|
iqser-circle-button {
|
|
position: relative;
|
|
display: flex;
|
|
|
|
button {
|
|
font-weight: 400 !important;
|
|
transition: background-color 0.2s;
|
|
|
|
&.overlay {
|
|
background: rgba(var(--iqser-primary-rgb), 0.1);
|
|
}
|
|
|
|
&:not(.overlay):not(.mat-button-disabled):not(.primary):not(.dark-bg):not(.warn):not(.help):hover {
|
|
background-color: var(--iqser-btn-bg);
|
|
}
|
|
|
|
&.primary {
|
|
font-weight: 500 !important;
|
|
background-color: var(--iqser-primary);
|
|
color: var(--iqser-white);
|
|
|
|
&:hover {
|
|
background-color: var(--iqser-primary-2);
|
|
}
|
|
}
|
|
|
|
&.dark-bg:hover {
|
|
background-color: var(--iqser-btn-bg-hover);
|
|
}
|
|
|
|
&.help:hover {
|
|
background-color: var(--iqser-helpmode-primary);
|
|
color: var(--iqser-grey-1);
|
|
}
|
|
}
|
|
|
|
.dot {
|
|
top: 1px;
|
|
left: 1px;
|
|
}
|
|
}
|
|
|
|
iqser-chevron-button,
|
|
iqser-circle-button,
|
|
iqser-icon-button {
|
|
&[aria-expanded='true'] {
|
|
button {
|
|
background: rgba(var(--iqser-primary-rgb), 0.1);
|
|
|
|
&.primary {
|
|
background: var(--iqser-primary-2);
|
|
}
|
|
|
|
&.grey-selected {
|
|
background-color: var(--iqser-btn-bg);
|
|
}
|
|
}
|
|
}
|
|
}
|