UNPKG

fonteva-design-guide

Version:

## Dev, Build and Test

175 lines (148 loc) 4.59 kB
:host { height: 0; min-height: 60px; display: block; border-bottom: 1px solid var(--lwc-colorBorder); } :host .pfm-subheader_container { display: flex; max-width: 1200px; flex: 1; min-height: 60px; margin: auto; padding-left: 1.5rem; padding-right: 1.5rem; } :host .pfm-subheader_container > nav { display: flex; align-items: center; } :host .pfm-subheader_container > nav:not(.pfm-subheader__center) { width: calc(100% / 6); } /* Progress Styles */ :host(.pfm-subheader_progress) .pfm-subheader_container > nav:not(.pfm-subheader__center) { width: 100%; max-width: 50px; } :host(.pfm-subheader_progress) .pfm-subheader_container > nav.pfm-subheader__right { justify-content: flex-end; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step { height: 60px; padding-left: 1.5rem; padding-right: 1.5rem; display: flex; align-items: center; pointer-events: none; color: initial; } :host(.pfm-subheader_progress) .pfm-subheader_progress-badge { position: relative; z-index: 0; width: 25px; height: 25px; display: flex; flex-shrink: 0; align-items: center; justify-content: center; line-height: 1; margin-right: 0.5rem; } :host(.pfm-subheader_progress) .pfm-subheader_progress-badge:after { content: ''; position: absolute; left: 0; top: 0; width: 25px; height: 25px; border-radius: 50%; z-index: -1; background-color: #dcdddc; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-complete { pointer-events: all; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-complete:hover { background-color: #dcdddc; cursor: pointer; transition: background-color 0.25s cubic-bezier(1, 0, 0, 1); } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-complete .pfm-subheader_progress-badge:after { background-color: #04844b; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-active { background-color: var(--lwc-colorBackgroundButtonBrand, #2574a9); color: var(--lwc-colorTextButtonBrand, white); transition: all 0.25s cubic-bezier(1, 0, 0, 1); } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-active .pfm-subheader_progress-badge { color: var(--lwc-colorBackgroundButtonBrand, #2574a9); transition: all 0.25s cubic-bezier(1, 0, 0, 1); } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-active .pfm-subheader_progress-badge:after { background-color: var(--lwc-colorTextButtonBrand, white); transition: all 0.25s cubic-bezier(1, 0, 0, 1); } :host(.pfm-subheader_progress) .pfm-subheader_progress-step { position: relative; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step:before { content: ''; position: absolute; margin: auto 0; left: 0; height: 15px; width: 1px; background-color: var(--lwc-colorBorder); } :host(.pfm-subheader_progress) .pfm-subheader_progress-step:first-of-type:before { content: none; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-active:before { display: none; } :host(.pfm-subheader_progress) .pfm-subheader_progress-step.js-active + .pfm-subheader_progress-step:before { display: none; } :host(.pfm-subheader_progress) .pfm-subheader_progress-tiles { display: none; } :host(.pfm-subheader_progress) .pfm-subheader_progress-picklist { display: flex; } :host(.pfm-subheader_progress) .pfm-subheader__right { transform: scale(0.75); transform-origin: right; display: flex; align-self: center; min-width: 80px; } :host .pfm-subheader_container > .pfm-subheader__center { flex: 1; justify-content: flex-start; } @media (min-width: 1024px) { :host .pfm-subheader_container > .pfm-subheader__center { justify-content: center; padding-left: 1rem; padding-right: 1rem; } :host(.pfm-subheader_progress) .pfm-subheader_progress-tiles { display: flex; } :host(.pfm-subheader_progress) .pfm-subheader_progress-picklist { display: none; } :host(.pfm-subheader_progress) .pfm-subheader__right { transform: scale(1); transform-origin: initial; } } /* wcag countdown alert */ .pfm-subheader_countdown-alert { position: absolute; height: 0; width: 0; clip: rect(0, 0, 0, 0); }