@govbr-ds/core
Version:
Padrão Digital de Governo
479 lines (478 loc) • 13.5 kB
CSS
.br-wizard {
--wizard-min-height: 300px;
--wizard-max-height: 800px;
display: flex;
flex-direction: column;
height: 100%;
margin-bottom: var(--spacing-scale-4x);
max-height: var(--wizard-max-height);
max-width: none;
min-height: var(--wizard-min-height);
}
.br-wizard .wizard-progress {
background-color: var(--background-alternative);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
grid-template-rows: none;
min-height: 164px;
overflow-x: auto;
overflow-y: hidden;
padding-top: var(--spacing-scale-7x);
width: 100%;
}
@media (max-width: 991px) {
.br-wizard .wizard-progress {
max-height: 100px;
min-height: 100px;
overflow-y: hidden;
padding-top: var(--spacing-scale-3x);
position: relative;
transition-delay: 0s;
transition-duration: 0.25s;
transition-property: all;
transition-timing-function: linear;
}
.br-wizard .wizard-progress::after {
background-color: transparent;
bottom: 2px;
color: var(--interactive);
content: "\f7a4";
display: block;
font-family: "Font Awesome 5 Free", sans-serif;
font-size: var(--switch-icon-size);
font-weight: var(--font-weight-black);
height: 1em;
left: 50%;
margin-left: -0.5em;
position: absolute;
top: unset;
transition-delay: 0s;
transition-duration: 0.25s;
transition-property: all;
transition-timing-function: linear;
width: auto;
}
}
.br-wizard .wizard-progress-btn {
background-color: transparent;
border: 0;
box-shadow: none ;
color: var(--interactive);
font-size: var(--font-size-scale-up-01, 16.8px);
line-height: 19px;
max-height: 90px;
padding-bottom: 0;
padding-top: var(--spacing-scale-2x);
position: relative;
text-indent: 0;
transition-delay: 0s;
transition-duration: 0.15s;
transition-property: all;
transition-timing-function: linear;
}
.br-wizard .wizard-progress-btn[disabled] {
color: rgba(var(--interactive-rgb), var(--disabled));
opacity: 1;
}
.br-wizard .wizard-progress-btn[disabled]::before {
opacity: var(--disabled);
}
.br-wizard .wizard-progress-btn:focus {
outline: none;
}
.br-wizard .wizard-progress-btn.focus-visible:not([disabled]):not(.disabled)::before, .br-wizard .wizard-progress-btn:focus-visible:not([disabled]):not(.disabled)::before {
outline-color: var(--focus-color);
outline-offset: var(--focus-offset);
outline-style: var(--focus-style);
outline-width: var(--focus-width);
}
.br-wizard .wizard-progress-btn:hover:not([disabled])::before {
background-image: linear-gradient(rgba(var(--interactive-rgb), var(--hover)), rgba(var(--interactive-rgb), var(--hover)));
}
.br-wizard .wizard-progress-btn:active:not([disabled])::before {
background-image: linear-gradient(rgba(var(--interactive-rgb), var(--pressed)), rgba(var(--interactive-rgb), var(--pressed)));
}
.br-wizard .wizard-progress-btn::before {
background-color: var(--background);
border: 2px solid var(--interactive);
border-radius: 50%;
box-sizing: border-box;
color: var(--interactive);
content: attr(step) ;
display: block;
font-size: var(--font-size-scale-up-02, 20.16px);
font-weight: var(--font-weight-semi-bold, 600);
height: 36px;
left: 50%;
line-height: 29px;
margin-top: -13px;
position: absolute;
top: 0;
transform: translateX(-50%);
transition: all 0.15s linear 0s, transform 0.15s cubic-bezier(0.05, 1.09, 0.16, 1.4) 0s;
width: 36px;
z-index: 3;
}
.br-wizard .wizard-progress-btn::after {
background-color: var(--interactive) ;
content: "";
display: block;
height: 1px;
left: calc(-50% + 17px);
position: absolute;
top: 5px;
transition-delay: 0s;
transition-duration: 0.15s;
transition-property: all;
transition-timing-function: linear;
width: calc(100% - 34px);
z-index: 1;
}
.br-wizard .wizard-progress-btn:first-child::after {
display: none;
}
.br-wizard .wizard-progress-btn[active] {
color: var(--active);
font-weight: var(--font-weight-semi-bold, 600);
}
.br-wizard .wizard-progress-btn[active]::after {
background-color: var(--active);
}
.br-wizard .wizard-progress-btn[active]::before {
background-color: var(--active);
border: 2px solid var(--background-light);
color: var(--background-light);
font-weight: var(--font-weight-bold, 700);
}
@media (max-width: 991px) {
.br-wizard .wizard-progress-btn .info {
font-size: var(--font-size-scale-down-02, 9.716px);
line-height: 1em;
text-align: center;
}
}
@media (max-width: 991px) {
.br-wizard[collapsed] .wizard-progress {
max-height: 64px;
min-height: 64px;
overflow-y: hidden;
padding-bottom: var(--spacing-scale-3x);
padding-top: var(--spacing-scale-3x);
}
.br-wizard[collapsed] .wizard-progress::after {
margin-top: var(--spacing-scale-4xh);
}
.br-wizard[collapsed] .wizard-progress-btn {
padding-bottom: var(--spacing-scale-base);
}
.br-wizard[collapsed] .wizard-progress-btn .info {
display: none;
}
.br-wizard[collapsed] .wizard-form {
height: auto;
}
.br-wizard[collapsed] .wizard-panel-content {
overflow-x: hidden;
overflow-y: auto;
}
}
.br-wizard .wizard-form {
display: flex;
flex: 1;
height: auto;
overflow: hidden;
position: relative;
}
.br-wizard .wizard-panel {
display: none;
flex-direction: column;
flex-wrap: nowrap;
height: auto;
left: 0;
margin-bottom: 0;
opacity: 0;
position: static;
top: 0;
visibility: hidden;
width: 100%;
}
.br-wizard .wizard-panel[active] {
display: flex;
height: auto;
left: 0 ;
opacity: 1;
transition-delay: 0s;
transition-duration: 0.5s;
transition-property: all;
transition-timing-function: linear;
visibility: visible;
}
@keyframes slide-left {
0% {
opacity: 0;
transform: translateX(1%);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
.br-wizard .wizard-panel-content {
border-top: 1px solid var(--border-color);
flex-grow: 1;
height: auto;
max-height: none;
overflow-x: auto;
overflow-y: auto;
padding: var(--spacing-scale-base) var(--spacing-scale-2x);
}
.br-wizard .wizard-panel-content::-webkit-scrollbar {
height: var(--spacing-scale-base);
width: var(--spacing-scale-base);
}
.br-wizard .wizard-panel-content::-webkit-scrollbar-track {
background: var(--gray-10);
}
.br-wizard .wizard-panel-content::-webkit-scrollbar-thumb {
background: var(--gray-30);
}
.br-wizard .wizard-panel-content:hover::-webkit-scrollbar-thumb {
background: var(--gray-40);
}
.br-wizard .wizard-panel-content:focus, .br-wizard .wizard-panel-content:focus-visible, .br-wizard .wizard-panel-content.focus-visible {
border-color: var(--focus) ;
box-shadow: 0 0 0 var(--surface-width-md) var(--focus);
outline: none;
}
.br-wizard .wizard-panel-content > :last-child {
margin-bottom: 0;
}
.br-wizard .wizard-panel-btn {
align-self: flex-end;
background-color: var(--background-alternative);
border-top: 1px solid var(--border-color);
height: fit-content;
margin-top: 1px;
padding: var(--spacing-scale-2x) 1.5%;
width: 100%;
}
.br-wizard .wizard-btn-next,
.br-wizard .wizard-btn,
.br-wizard .wizard-btn-prev {
float: right;
margin-left: var(--spacing-scale-2x);
}
.br-wizard .wizard-btn-canc {
float: left;
}
@media (max-width: 991px) {
.br-wizard .wizard-form {
height: auto;
}
.br-wizard .wizard-panel {
border-top: 0;
display: none;
flex-wrap: nowrap;
margin-bottom: 0;
max-height: none;
}
.br-wizard .wizard-panel-content {
height: auto;
max-height: 100%;
overflow-x: hidden;
overflow-y: auto;
padding: var(--spacing-scale-half) var(--spacing-scale-base);
transition-delay: 0s;
transition-duration: 0.25s;
transition-property: all;
transition-timing-function: linear;
}
.br-wizard .wizard-panel-btn {
align-items: flex-end;
background-color: var(--background-alternative);
display: flex;
flex-wrap: wrap;
height: fit-content;
justify-content: center;
padding: 0 ;
position: static;
width: 100%;
}
.br-wizard .wizard-btn-canc,
.br-wizard .wizard-btn-next,
.br-wizard .wizard-btn-prev,
.br-wizard .wizard-btn {
float: none;
margin: var(--spacing-scale-base) 5%;
width: 90%;
}
.br-wizard .wizard-btn-next,
.br-wizard .wizard-btn {
order: 1;
}
}
.br-wizard[vertical] {
flex-direction: row;
}
.br-wizard[vertical] .wizard-progress {
flex: 1;
float: none;
grid-template-columns: 1fr;
height: auto;
max-width: 260px;
overflow-x: hidden;
padding-top: 0;
position: relative;
text-align: right;
}
.br-wizard[vertical] .wizard-progress-btn {
height: 100%;
line-height: 100%;
max-height: 100%;
padding-bottom: 0;
padding-right: 70px;
padding-top: 0;
text-align: right;
}
.br-wizard[vertical] .wizard-progress-btn::before {
left: calc(100% - 32px);
line-height: 26px;
margin-top: calc(var(--spacing-scale-2x) * -1);
position: absolute;
text-align: center;
top: 50%;
}
.br-wizard[vertical] .wizard-progress-btn::after {
height: calc(100% - 34px);
left: calc(100% - 33px);
position: absolute;
top: calc(-50% + 18px);
width: 1px;
}
.br-wizard[vertical] .wizard-progress-btn[active]::after {
width: 1px;
}
.br-wizard[vertical][scroll] .wizard-progress {
overflow-y: auto;
}
.br-wizard[vertical][scroll] .wizard-progress::-webkit-scrollbar {
height: var(--spacing-scale-base);
width: var(--spacing-scale-base);
}
.br-wizard[vertical][scroll] .wizard-progress::-webkit-scrollbar-track {
background: var(--gray-10);
}
.br-wizard[vertical][scroll] .wizard-progress::-webkit-scrollbar-thumb {
background: var(--gray-30);
}
.br-wizard[vertical][scroll] .wizard-progress:hover::-webkit-scrollbar-thumb {
background: var(--gray-40);
}
.br-wizard[vertical][scroll] .wizard-progress .wizard-progress-btn {
min-height: 100px;
}
.br-wizard[vertical] .wizard-form {
float: none;
height: auto;
width: calc(100% - 260px);
}
.br-wizard[vertical] .wizard-form .wizard-panel .wizard-panel-content {
border-top: 0;
}
@media (max-width: 991px) {
.br-wizard[vertical] .wizard-progress {
max-height: 100%;
max-width: 110px;
}
.br-wizard[vertical] .wizard-progress::after {
height: 1em;
left: unset;
margin-top: -0.5em;
right: 2px;
top: 50%;
transform: rotate(-90deg);
width: 1em;
}
.br-wizard[vertical] .wizard-progress-btn {
line-height: 18px;
padding-right: var(--spacing-scale-7x);
}
.br-wizard[vertical] .wizard-progress-btn .info {
line-height: 1.6em;
margin-top: -0.5em;
position: absolute;
right: 54px;
}
.br-wizard[vertical] .wizard-form {
height: auto;
max-width: calc(100% - 110px);
min-width: calc(100% - 110px);
transition-delay: 0s;
transition-duration: 0.25s;
transition-property: all;
transition-timing-function: linear;
}
.br-wizard[vertical] .wizard-panel {
height: 100%;
max-height: 100%;
}
.br-wizard[vertical][collapsed] .wizard-progress {
max-width: 60px;
padding-bottom: 0;
padding-top: 0;
}
.br-wizard[vertical][collapsed] .wizard-progress-btn {
padding-right: 0;
}
.br-wizard[vertical][collapsed] .wizard-progress-btn .info {
display: none;
}
.br-wizard[vertical][collapsed] .wizard-form {
max-width: calc(100% - 60px);
min-width: calc(100% - 60px);
}
}
.br-wizard.inverted, .br-wizard.dark-mode {
--color: var(--color-dark);
--color-rgb: var(--color-dark-rgb);
--text-color: var(--color-dark);
--interactive: var(--interactive-dark);
--interactive-rgb: var(--interactive-dark-rgb);
--visited: var(--visited-dark);
--hover: var(--hover-dark);
--pressed: var(--pressed-dark);
--focus-color: var(--focus-color-dark);
--focus: var(--focus-color-dark);
}
.br-wizard.inverted .br-button.primary, .br-wizard.inverted .br-button[primary], .br-wizard.inverted .br-button.is-primary, .br-wizard.dark-mode .br-button.primary, .br-wizard.dark-mode .br-button[primary], .br-wizard.dark-mode .br-button.is-primary {
--color: var(--color-light);
--color-rgb: var(--color-light-rgb);
--text-color: var(--color-light);
--interactive: var(--interactive-light);
--interactive-rgb: var(--background-dark-rgb);
--visited: var(--visited-light);
--hover: var(--hover-light);
--pressed: var(--pressed-light);
--focus-color: var(--focus-color-light);
--focus: var(--focus-color-light);
background-color: var(--interactive-dark);
color: var(--background-dark);
}
.br-wizard.inverted .br-button.secondary, .br-wizard.inverted .br-button[secondary], .br-wizard.inverted .br-button.is-secondary, .br-wizard.dark-mode .br-button.secondary, .br-wizard.dark-mode .br-button[secondary], .br-wizard.dark-mode .br-button.is-secondary {
background-color: var(--background-dark);
}
.br-wizard.inverted .wizard-progress, .br-wizard.dark-mode .wizard-progress {
background-color: transparent;
}
.br-wizard.inverted .wizard-progress-btn[active], .br-wizard.dark-mode .wizard-progress-btn[active] {
color: var(--color);
}
.br-wizard.inverted .wizard-progress-btn[active]::before, .br-wizard.dark-mode .wizard-progress-btn[active]::before {
--interactive-rgb: var(--active-rgb);
background-color: var(--color);
color: var(--active);
}
.br-wizard.inverted .wizard-panel .wizard-panel-btn, .br-wizard.dark-mode .wizard-panel .wizard-panel-btn {
background-color: transparent;
}
/*# sourceMappingURL=wizard.css.map*/