blob: 122e2e74b5fcb77f327f9941b2f07fcf4395f3a5 [file] [log] [blame]
<style>
.xf-panel-item {
align-items: center;
background-color: rgba(0,0,0,0);
border-radius: 4px;
display: flex;
flex-direction: row;
height: 68px;
width: 400px;
}
.xf-button {
height: 36px;
width: 36px;
}
.xf-panel-text {
flex: 1;
font: 13px Roboto;
line-height: 20px;
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;
}
:host([panel-type='3']) .xf-linebreaker {
display: none;
}
.xf-panel-label-text {
color: var(--google-grey-900);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.xf-panel-secondary-text {
color: var(--google-grey-700);
}
: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;
}
// TODO(crbug.com/947388) Use '--goog' prefixed CSS varables.
.xf-success {
color: rgb(52, 168, 83);
}
.xf-failure {
color: rgb(234, 67, 53);
}
: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(--google-green-600);
}
:host([detailed-panel]:not([detailed-summary])) xf-button {
margin-inline-end: 12px;
}
: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;
height: 48px;
max-width: unset;
width: 100%;
}
:host([detailed-summary]) #indicator {
margin-inline-start: 22px;
padding: 0;
}
:host([detailed-summary][data-category='collapsed']) #indicator {
margin-inline-end: 20px;
min-width: 28px;
}
:host([detailed-summary][data-category='expanded']) #indicator {
margin-inline-end: 18px;
min-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>