mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
style(expansion): simplify vertical centering in header (#5950)
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
$mat-expansion-panel-header-height: 48px;
|
||||
$mat-expansion-panel-header-height-expanded: 64px;
|
||||
|
||||
.mat-expansion-panel-header {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: $mat-expansion-panel-header-height;
|
||||
line-height: $mat-expansion-panel-header-height;
|
||||
align-items: center;
|
||||
padding: 0 24px;
|
||||
|
||||
&.mat-expanded {
|
||||
height: $mat-expansion-panel-header-height-expanded;
|
||||
line-height: $mat-expansion-panel-header-height-expanded;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:hover {
|
||||
outline: none;
|
||||
|
||||
@@ -64,8 +64,8 @@ import {Subscription} from 'rxjs/Subscription';
|
||||
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
|
||||
]),
|
||||
trigger('expansionHeight', [
|
||||
state('collapsed', style({height: '48px', 'line-height': '48px'})),
|
||||
state('expanded', style({height: '64px', 'line-height': '64px'})),
|
||||
state('collapsed', style({height: '48px'})),
|
||||
state('expanded', style({height: '64px'})),
|
||||
transition('expanded <=> collapsed', animate(EXPANSION_PANEL_ANIMATION_TIMING)),
|
||||
]),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user