mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-4984] make focused item visible - the focus-fix will be done to all expansion-panels with upgrade to @angular/material 8.2.3 * [ADF-4984] make focused mat-expansion-panels visible - get fix from @angular/material 8.2.3 * [ADF-4984] renaming
82 lines
1.9 KiB
SCSS
82 lines
1.9 KiB
SCSS
@import 'variables';
|
|
|
|
@mixin adf-no-select {
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
@mixin typo-icon {
|
|
font-family: 'Material Icons';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
letter-spacing: normal;
|
|
text-transform: none;
|
|
display: inline-block;
|
|
word-wrap: normal;
|
|
font-feature-settings: 'liga';
|
|
-webkit-font-feature-settings: 'liga';
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
@mixin material-animation-default($duration: 0.2s) {
|
|
transition-duration: $duration;
|
|
transition-timing-function: $animation-curve-default;
|
|
}
|
|
|
|
@mixin adf-line-clamp($line-height: 1.25, $lines: 3) {
|
|
position: relative;
|
|
line-height: $line-height;
|
|
padding: 0 !important;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
|
|
@supports (-webkit-line-clamp: 1) {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: $lines;
|
|
height: calc(0.99em * #{$line-height} * #{$lines});
|
|
}
|
|
|
|
@supports not (-webkit-line-clamp: 1) {
|
|
white-space: nowrap;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@mixin flex-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
@mixin flex-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
@mixin mat-expansion-panel-theme--fix($theme) {
|
|
$background: map-get($theme, background);
|
|
|
|
.mat-expansion-panel {
|
|
& .mat-expansion-panel-header.cdk-keyboard-focused,
|
|
& .mat-expansion-panel-header.cdk-program-focused,
|
|
&:not(.mat-expanded) .mat-expansion-panel-header:hover {
|
|
&:not([aria-disabled='true']) {
|
|
background: mat-color($background, hover);
|
|
}
|
|
}
|
|
}
|
|
}
|