common-ui/src/assets/styles/common-components.scss
2022-07-12 23:51:48 +03:00

164 lines
3.1 KiB
SCSS

@use 'common-mixins' as mixins;
.oval {
font-weight: 600;
display: flex;
justify-content: center;
align-items: center;
height: 24px;
width: 24px;
min-width: 24px;
font-size: 10px;
line-height: 12px;
text-align: center;
text-transform: uppercase;
border: none;
box-sizing: border-box;
&.large {
height: 32px;
width: 32px;
font-size: var(--iqser-font-size);
}
&.gray-dark {
background-color: var(--iqser-user-avatar-1);
color: var(--iqser-text);
}
&.gray-primary {
background-color: var(--iqser-user-avatar-1);
color: var(--iqser-primary);
}
&.lightgray-dark {
background-color: var(--iqser-user-avatar-2);
color: var(--iqser-text);
}
&.lightgray-primary {
background-color: var(--iqser-user-avatar-2);
color: var(--iqser-primary);
}
&.darkgray-white {
background-color: var(--iqser-accent);
color: var(--iqser-white);
}
&.lightgray-white {
background-color: var(--iqser-grey-5);
color: var(--iqser-white);
}
&.primary-white {
background-color: var(--iqser-primary);
color: var(--iqser-white);
}
&.white-dark {
background-color: var(--iqser-user-avatar-2);
color: var(--iqser-accent);
}
&.inactive {
background-color: var(--iqser-user-avatar-1);
color: var(--iqser-grey-7);
}
}
.oval {
border-radius: 50%;
}
.stats-subtitle {
display: flex;
> div {
display: flex;
align-items: center;
min-width: fit-content;
mat-icon {
width: 10px;
height: 11px;
margin-right: 6px;
}
&:not(:last-child) {
margin-right: 12px;
}
&.warn,
&.error {
opacity: 1;
padding: 3px 4px;
border-radius: 3px;
}
&.warn {
background-color: rgba(var(--iqser-yellow-rgb), 0.7);
color: var(--iqser-accent);
}
&.error {
background-color: rgba(var(--iqser-primary-rgb), 0.1);
color: var(--iqser-primary);
}
}
&:not(.cell) {
margin-top: 4px;
}
}
.overlay-shadow {
@include mixins.inset-shadow;
position: fixed;
width: 100%;
height: 4px;
z-index: 2;
}
.dot {
background: var(--iqser-primary);
height: 8px;
width: 8px;
border-radius: 50%;
position: absolute;
}
.multi-select {
min-height: 40px;
background: var(--iqser-primary);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 8px 0 16px;
color: var(--iqser-white);
.selected-wrapper {
display: flex;
align-items: center;
iqser-round-checkbox .wrapper.inactive {
cursor: default;
}
.all-caps-label {
margin: 0 16px 0 8px;
opacity: 1;
min-width: fit-content;
}
}
}
.read-only-indicator {
display: flex;
mat-icon {
height: 14px;
width: 14px;
}
}