<style>
.xf-panel-item {
align-items: center;
background-color: var(--cros-sys-base_elevated);
border-radius: 8px;
display: flex;
flex-direction: row;
height: auto;
padding: 14px 0px;
width: 504px;
}
xf-button {
height: 36px;
}
.xf-panel-text {
color: var(--cros-sys-on_surface);
flex: 1;
font: var(--cros-body-2-font);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.xf-panel-label-text {
outline: none;
}
:host([panel-type='3']) .xf-panel-label-text {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
display: -webkit-box;
overflow: hidden;
white-space: normal;
}
.xf-panel-secondary-text {
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
display: -webkit-box;
overflow: hidden;
white-space: normal;
}
:host([panel-type='3']) .xf-linebreaker {
display: none;
}
.xf-panel-label-text {
color: var(--cros-sys-on_surface);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.xf-panel-secondary-text {
color: var(--cros-sys-on_surface_variant);
}
:host(:not([detailed-panel])) .xf-padder-4 {
width: 4px;
}
:host(:not([detailed-panel])) .xf-padder-16 {
width: 16px;
}
:host(:not([detailed-panel])) .xf-grow-padder {
width: 24px;
}
xf-circular-progress {
padding: 16px;
}
:host(:not([detailed-summary])) iron-icon {
height: 36px;
padding: 16px;
width: 36px;
}
:host([panel-type='0']) .xf-panel-item {
height: var(--progress-height);
padding-bottom: var(--progress-padding-bottom);
padding-top: var(--progress-padding-top);
}
:host([detailed-panel]:not([detailed-summary])) .xf-panel-text {
margin-inline-end: 24px;
margin-inline-start: 24px;
}
:host([detailed-panel][panel-type='2']) .xf-panel-secondary-text {
color: var(--cros-sys-positive);
}
:host([detailed-panel][panel-type='2'][fade-secondary-text])
.xf-panel-secondary-text {
color: var(--cros-sys-on_surface_variant);
}
:host([detailed-panel]:not([detailed-summary])) xf-button {
margin-inline-end: 8px;
}
:host([detailed-panel]:not([detailed-summary])) xf-button:last-of-type {
margin-inline-end: 12px;
}
:host([detailed-panel]:not([detailed-summary])) xf-button[data-category='cancel'] {
/* This is to make sure the cancel icon button is aligned with the collapse button. */
margin-inline-end: 16px;
}
:host([detailed-panel]:not([detailed-summary])) #indicator {
display: none;
}
:host([detailed-summary][data-category='collapsed'])
.xf-panel-item {
width: 236px;
}
:host([detailed-summary]) .xf-panel-text {
align-items: center;
display: flex;
font: var(--cros-button-2-font);
height: 48px;
max-width: unset;
width: 100%;
}
:host([detailed-summary]) #indicator {
margin-inline-start: 22px;
padding: 0;
}
:host([detailed-summary]) #indicator[icon='files36:success'] {
--iron-icon-fill-color: var(--cros-sys-positive);
}
:host([detailed-summary]) #indicator[icon='files36:failure'] {
--iron-icon-stroke-color: var(--cros-sys-error);
}
:host([detailed-summary]) #indicator[icon='files36:warning'] {
--iron-icon-fill-color: var(--cros-sys-warning);
}
#indicator {
height: 32px;
margin-inline-end: 18px;
width: 32px;
}
:host([detailed-summary]) #primary-action {
align-items: center;
display: flex;
height: 48px;
justify-content: center;
margin-inline-end: 10px;
margin-inline-start: auto;
width: 48px;
}
:host([detailed-panel]) .xf-padder-4 {
display: none;
}
:host([detailed-panel]) .xf-padder-16 {
display: none;
}
:host([detailed-panel]) .xf-grow-padder {
display: none;
}
</style>
<div class='xf-panel-item'>
<xf-circular-progress id='indicator'>
</xf-circular-progress>
<div class='xf-panel-text' role='alert' tabindex='0'>
<span class='xf-panel-label-text'>
</span>
<br class='xf-linebreaker'>
</div>
<div class='xf-grow-padder'></div>
<xf-button id='secondary-action' tabindex='-1'>
</xf-button>
<div id='button-gap' class='xf-padder-4'></div>
<xf-button id='primary-action' tabindex='-1'>
</xf-button>
<div class='xf-padder-16'></div>
</div>