mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-26 05:20:47 +08:00
695 lines
16 KiB
CSS
695 lines
16 KiB
CSS
.hanko_container {
|
||
background-color: var(--background-color, white);
|
||
padding: var(--container-padding, 30px);
|
||
max-width: var(--container-max-width, 410px);
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-wrap: nowrap;
|
||
justify-content: center;
|
||
align-items: center;
|
||
align-content: flex-start;
|
||
box-sizing: border-box
|
||
}
|
||
|
||
.hanko_content {
|
||
box-sizing: border-box;
|
||
flex: 0 1 auto;
|
||
width: 100%;
|
||
height: 100%
|
||
}
|
||
|
||
.hanko_footer {
|
||
padding: .5rem 0 0;
|
||
box-sizing: border-box;
|
||
width: 100%
|
||
}
|
||
|
||
.hanko_footer :nth-child(1) {
|
||
float: left
|
||
}
|
||
|
||
.hanko_footer :nth-child(2) {
|
||
float: right
|
||
}
|
||
|
||
.hanko_clipboardContainer {
|
||
display: flex
|
||
}
|
||
|
||
.hanko_clipboardIcon {
|
||
display: flex;
|
||
margin: auto;
|
||
cursor: pointer
|
||
}
|
||
|
||
.hanko_icon,
|
||
.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,
|
||
.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner,
|
||
.hanko_exclamationMark,
|
||
.hanko_checkmark {
|
||
display: inline-block;
|
||
fill: var(--brand-contrast-color, white);
|
||
width: 18px
|
||
}
|
||
|
||
.hanko_icon.hanko_secondary,
|
||
.hanko_loadingSpinnerWrapper .hanko_secondary.hanko_loadingSpinner,
|
||
.hanko_loadingSpinnerWrapperIcon .hanko_secondary.hanko_loadingSpinner,
|
||
.hanko_secondary.hanko_exclamationMark,
|
||
.hanko_secondary.hanko_checkmark {
|
||
fill: var(--color, #333333)
|
||
}
|
||
|
||
.hanko_icon.hanko_disabled,
|
||
.hanko_loadingSpinnerWrapper .hanko_disabled.hanko_loadingSpinner,
|
||
.hanko_loadingSpinnerWrapperIcon .hanko_disabled.hanko_loadingSpinner,
|
||
.hanko_disabled.hanko_exclamationMark,
|
||
.hanko_disabled.hanko_checkmark {
|
||
fill: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_checkmark {
|
||
fill: var(--brand-color, #506cf0)
|
||
}
|
||
|
||
.hanko_checkmark.hanko_secondary {
|
||
fill: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_checkmark.hanko_fadeOut {
|
||
animation: hanko_fadeOut ease-out 1.5s forwards !important
|
||
}
|
||
|
||
@keyframes hanko_fadeOut {
|
||
0% {
|
||
opacity: 1
|
||
}
|
||
|
||
100% {
|
||
opacity: 0
|
||
}
|
||
}
|
||
|
||
.hanko_exclamationMark {
|
||
fill: var(--error-color, #e82020)
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapperIcon {
|
||
width: 100%;
|
||
column-gap: 10px;
|
||
margin-left: 10px
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapper,
|
||
.hanko_loadingSpinnerWrapperIcon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
height: 100%;
|
||
margin: 0 5px;
|
||
justify-content: inherit
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapper.hanko_centerContent,
|
||
.hanko_centerContent.hanko_loadingSpinnerWrapperIcon {
|
||
justify-content: center
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapper.hanko_maxWidth,
|
||
.hanko_maxWidth.hanko_loadingSpinnerWrapperIcon {
|
||
width: 100%
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapper .hanko_loadingSpinner,
|
||
.hanko_loadingSpinnerWrapperIcon .hanko_loadingSpinner {
|
||
fill: var(--brand-color, #506cf0);
|
||
animation: hanko_spin 500ms ease-in-out infinite
|
||
}
|
||
|
||
.hanko_loadingSpinnerWrapper.hanko_secondary,
|
||
.hanko_secondary.hanko_loadingSpinnerWrapperIcon {
|
||
fill: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
@keyframes hanko_spin {
|
||
0% {
|
||
transform: rotate(0deg)
|
||
}
|
||
|
||
100% {
|
||
transform: rotate(360deg)
|
||
}
|
||
}
|
||
|
||
.hanko_googleIcon.hanko_disabled {
|
||
fill: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_googleIcon.hanko_blue {
|
||
fill: #4285f4
|
||
}
|
||
|
||
.hanko_googleIcon.hanko_green {
|
||
fill: #34a853
|
||
}
|
||
|
||
.hanko_googleIcon.hanko_yellow {
|
||
fill: #fbbc05
|
||
}
|
||
|
||
.hanko_googleIcon.hanko_red {
|
||
fill: #ea4335
|
||
}
|
||
|
||
.hanko_microsoftIcon.hanko_disabled {
|
||
fill: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_microsoftIcon.hanko_blue {
|
||
fill: #00a4ef
|
||
}
|
||
|
||
.hanko_microsoftIcon.hanko_green {
|
||
fill: #7fba00
|
||
}
|
||
|
||
.hanko_microsoftIcon.hanko_yellow {
|
||
fill: #ffb900
|
||
}
|
||
|
||
.hanko_microsoftIcon.hanko_red {
|
||
fill: #f25022
|
||
}
|
||
|
||
.hanko_form {
|
||
display: flex;
|
||
flex-grow: 1
|
||
}
|
||
|
||
.hanko_form .hanko_ul {
|
||
flex-grow: 1;
|
||
margin: var(--item-margin, 0.5rem 0);
|
||
padding-inline-start: 0;
|
||
list-style-type: none;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 1em
|
||
}
|
||
|
||
.hanko_form .hanko_li {
|
||
display: flex;
|
||
max-width: 100%;
|
||
flex-grow: 1;
|
||
flex-basis: min-content
|
||
}
|
||
|
||
.hanko_form .hanko_li.hanko_maxWidth {
|
||
min-width: 100%
|
||
}
|
||
|
||
.hanko_button {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
border-radius: var(--border-radius, 8px);
|
||
border-style: var(--border-style, solid);
|
||
border-width: var(--border-width, 1px);
|
||
white-space: nowrap;
|
||
width: 100%;
|
||
min-width: var(--button-min-width, 7em);
|
||
height: var(--item-height, 42px);
|
||
outline: none;
|
||
cursor: pointer;
|
||
transition: .1s ease-out;
|
||
flex-grow: 1;
|
||
flex-shrink: 1;
|
||
display: inline-flex
|
||
}
|
||
|
||
.hanko_button:disabled {
|
||
cursor: default
|
||
}
|
||
|
||
.hanko_button.hanko_primary {
|
||
color: var(--brand-contrast-color, white);
|
||
background: var(--brand-color, #506cf0);
|
||
border-color: var(--brand-color, #506cf0);
|
||
justify-content: center
|
||
}
|
||
|
||
.hanko_button.hanko_primary:hover {
|
||
color: var(--brand-contrast-color, white);
|
||
background: var(--brand-color-shade-1, #6b84fb);
|
||
border-color: var(--brand-color, #506cf0)
|
||
}
|
||
|
||
.hanko_button.hanko_primary:focus {
|
||
color: var(--brand-contrast-color, white);
|
||
background: var(--brand-color, #506cf0);
|
||
border-color: var(--color, #333333)
|
||
}
|
||
|
||
.hanko_button.hanko_primary:disabled {
|
||
color: var(--color-shade-1, #8f9095);
|
||
background: var(--color-shade-2, #e5e6ef);
|
||
border-color: var(--color-shade-2, #e5e6ef)
|
||
}
|
||
|
||
.hanko_button.hanko_secondary {
|
||
color: var(--color, #333333);
|
||
background: var(--background-color, white);
|
||
border-color: var(--color, #333333);
|
||
justify-content: left
|
||
}
|
||
|
||
.hanko_button.hanko_secondary:hover {
|
||
color: var(--color, #333333);
|
||
background: var(--color-shade-2, #e5e6ef);
|
||
border-color: var(--color, #333333)
|
||
}
|
||
|
||
.hanko_button.hanko_secondary:focus {
|
||
color: var(--color, #333333);
|
||
background: var(--background-color, white);
|
||
border-color: var(--brand-color, #506cf0)
|
||
}
|
||
|
||
.hanko_button.hanko_secondary:disabled {
|
||
color: var(--color-shade-1, #8f9095);
|
||
background: var(--color-shade-2, #e5e6ef);
|
||
border-color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_button.hanko_dangerous {
|
||
color: var(--error-color, #e82020);
|
||
background: var(--background-color, white);
|
||
border-color: var(--error-color, #e82020);
|
||
flex-grow: 0;
|
||
width: auto
|
||
}
|
||
|
||
.hanko_inputWrapper {
|
||
flex-grow: 1;
|
||
position: relative;
|
||
display: flex;
|
||
min-width: var(--input-min-width, 14em);
|
||
max-width: 100%
|
||
}
|
||
|
||
.hanko_input {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
border-radius: var(--border-radius, 8px);
|
||
border-style: var(--border-style, solid);
|
||
border-width: var(--border-width, 1px);
|
||
height: var(--item-height, 42px);
|
||
color: var(--color, #333333);
|
||
border-color: var(--color-shade-1, #8f9095);
|
||
background: var(--background-color, white);
|
||
padding: 0 .5rem;
|
||
outline: none;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
transition: .1s ease-out
|
||
}
|
||
|
||
.hanko_input.hanko_error {
|
||
border-color: var(--error-color, #e82020)
|
||
}
|
||
|
||
.hanko_input:-webkit-autofill,
|
||
.hanko_input:-webkit-autofill:hover,
|
||
.hanko_input:-webkit-autofill:focus {
|
||
-webkit-text-fill-color: var(--color, #333333);
|
||
-webkit-box-shadow: 0 0 0 50px var(--background-color, white) inset
|
||
}
|
||
|
||
.hanko_input::-ms-reveal,
|
||
.hanko_input::-ms-clear {
|
||
display: none
|
||
}
|
||
|
||
.hanko_input::placeholder {
|
||
color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_input:focus {
|
||
color: var(--color, #333333);
|
||
border-color: var(--color, #333333)
|
||
}
|
||
|
||
.hanko_input:disabled {
|
||
color: var(--color-shade-1, #8f9095);
|
||
background: var(--color-shade-2, #e5e6ef);
|
||
border-color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_passcodeInputWrapper {
|
||
flex-grow: 1;
|
||
min-width: var(--input-min-width, 14em);
|
||
max-width: fit-content;
|
||
position: relative;
|
||
display: flex;
|
||
justify-content: space-between
|
||
}
|
||
|
||
.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper {
|
||
flex-grow: 1;
|
||
margin: 0 .5rem 0 0
|
||
}
|
||
|
||
.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper:last-child {
|
||
margin: 0
|
||
}
|
||
|
||
.hanko_passcodeInputWrapper .hanko_passcodeDigitWrapper .hanko_input {
|
||
text-align: center
|
||
}
|
||
|
||
.hanko_checkboxWrapper {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
color: var(--color, #333333);
|
||
align-items: center;
|
||
display: flex
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_label {
|
||
color: inherit;
|
||
padding-left: .5rem;
|
||
cursor: pointer
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_label.hanko_disabled {
|
||
cursor: default;
|
||
color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_checkbox {
|
||
border: currentColor solid 1px;
|
||
border-radius: .15em;
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
width: 1.1rem;
|
||
height: 1.1rem;
|
||
margin: 0;
|
||
color: currentColor;
|
||
background-color: var(--background-color, white);
|
||
font: inherit;
|
||
box-shadow: none;
|
||
display: inline-flex;
|
||
place-content: center;
|
||
cursor: pointer
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_checkbox:checked {
|
||
background-color: var(--color, #333333)
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_checkbox:disabled {
|
||
cursor: default;
|
||
background-color: var(--color-shade-2, #e5e6ef);
|
||
border-color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_checkbox:checked:after {
|
||
content: "✓";
|
||
color: var(--background-color, white);
|
||
position: absolute;
|
||
line-height: 1.1rem
|
||
}
|
||
|
||
.hanko_checkboxWrapper .hanko_checkbox:disabled:after {
|
||
color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_spacer {
|
||
height: 1em
|
||
}
|
||
|
||
.hanko_divider {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
display: flex;
|
||
visibility: var(--divider-visibility, visible);
|
||
color: var(--color-shade-1, #8f9095);
|
||
margin: var(--item-margin, 0.5rem 0);
|
||
padding: .5em 0
|
||
}
|
||
|
||
.hanko_divider .hanko_line {
|
||
border-bottom-style: var(--border-style, solid);
|
||
border-bottom-width: var(--border-width, 1px);
|
||
color: inherit;
|
||
font: inherit;
|
||
width: 100%
|
||
}
|
||
|
||
.hanko_divider .hanko_text {
|
||
font: inherit;
|
||
color: inherit;
|
||
background: var(--background-color, white);
|
||
padding: var(--divider-padding, 0 42px);
|
||
line-height: .1em
|
||
}
|
||
|
||
.hanko_errorBox {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
border-radius: var(--border-radius, 8px);
|
||
border-style: var(--border-style, solid);
|
||
border-width: var(--border-width, 1px);
|
||
color: var(--error-color, #e82020);
|
||
background: var(--background-color, white);
|
||
margin: var(--item-margin, 0.5rem 0);
|
||
display: flex;
|
||
align-items: start;
|
||
box-sizing: border-box;
|
||
line-height: 1.5rem;
|
||
padding: .25em;
|
||
gap: .2em
|
||
}
|
||
|
||
.hanko_errorBox>span {
|
||
display: inline-flex
|
||
}
|
||
|
||
.hanko_errorBox>span:first-child {
|
||
padding: .25em 0 .25em .19em
|
||
}
|
||
|
||
.hanko_errorBox[hidden] {
|
||
display: none
|
||
}
|
||
|
||
.hanko_errorMessage {
|
||
color: var(--error-color, #e82020)
|
||
}
|
||
|
||
.hanko_headline {
|
||
color: var(--color, #333333);
|
||
font-family: var(--font-family, sans-serif);
|
||
text-align: left;
|
||
letter-spacing: 0;
|
||
font-style: normal;
|
||
line-height: 1.1
|
||
}
|
||
|
||
.hanko_headline.hanko_grade1 {
|
||
font-size: var(--headline1-font-size, 24px);
|
||
font-weight: var(--headline1-font-weight, 600);
|
||
margin: var(--headline1-margin, 0 0 0.5rem)
|
||
}
|
||
|
||
.hanko_headline.hanko_grade2 {
|
||
font-size: var(--headline2-font-size, 16px);
|
||
font-weight: var(--headline2-font-weight, 600);
|
||
margin: var(--headline2-margin, 1rem 0 0.5rem)
|
||
}
|
||
|
||
.hanko_link {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
color: var(--link-color, #506cf0);
|
||
text-decoration: var(--link-text-decoration, none);
|
||
cursor: pointer;
|
||
background: none !important;
|
||
border: none;
|
||
padding: 0 !important;
|
||
transition: all .1s
|
||
}
|
||
|
||
.hanko_link:hover {
|
||
text-decoration: var(--link-text-decoration-hover, underline)
|
||
}
|
||
|
||
.hanko_link:disabled {
|
||
color: var(--color, #333333) !important;
|
||
pointer-events: none;
|
||
cursor: default
|
||
}
|
||
|
||
.hanko_link.hanko_danger {
|
||
color: var(--error-color, #e82020)
|
||
}
|
||
|
||
.hanko_linkWrapper {
|
||
display: inline-flex;
|
||
flex-direction: row;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
overflow: hidden
|
||
}
|
||
|
||
.hanko_linkWrapper.hanko_reverse {
|
||
flex-direction: row-reverse
|
||
}
|
||
|
||
.hanko_paragraph {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
color: var(--color, #333333);
|
||
margin: var(--item-margin, 0.5rem 0);
|
||
text-align: left;
|
||
word-break: break-word
|
||
}
|
||
|
||
.hanko_accordion {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
width: 100%;
|
||
overflow: hidden
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem {
|
||
color: var(--color, #333333);
|
||
margin: .25rem 0;
|
||
overflow: hidden
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem.hanko_dropdown {
|
||
margin: 0
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label {
|
||
border-radius: var(--border-radius, 8px);
|
||
border-style: none;
|
||
height: var(--item-height, 42px);
|
||
background: var(--background-color, white);
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 0 1rem;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
transition: all .35s
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label .hanko_labelText .hanko_description {
|
||
color: var(--color-shade-1, #8f9095)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label.hanko_dropdown {
|
||
margin: 0;
|
||
color: var(--link-color, #506cf0);
|
||
justify-content: flex-start
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label:hover {
|
||
color: var(--brand-contrast-color, white);
|
||
background: var(--brand-color-shade-1, #6b84fb)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label:hover .hanko_description {
|
||
color: var(--brand-contrast-color, white)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label:hover.hanko_dropdown {
|
||
color: var(--link-color, #506cf0);
|
||
background: none
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_label:not(.hanko_dropdown)::after {
|
||
content: "❯";
|
||
width: 1rem;
|
||
text-align: center;
|
||
transition: all .35s
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput {
|
||
position: absolute;
|
||
opacity: 0;
|
||
z-index: -1
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label {
|
||
color: var(--brand-contrast-color, white);
|
||
background: var(--brand-color, #506cf0)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label .hanko_description {
|
||
color: var(--brand-contrast-color, white)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label.hanko_dropdown {
|
||
color: var(--link-color, #506cf0);
|
||
background: none
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label:not(.hanko_dropdown)::after {
|
||
transform: rotate(90deg)
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionInput:checked+.hanko_label~.hanko_accordionContent {
|
||
margin: .25rem 1rem;
|
||
opacity: 1;
|
||
max-height: 100vh
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionContent {
|
||
max-height: 0;
|
||
margin: 0 1rem;
|
||
opacity: 0;
|
||
overflow: hidden;
|
||
transition: all .35s
|
||
}
|
||
|
||
.hanko_accordion .hanko_accordionItem .hanko_accordionContent.hanko_dropdownContent {
|
||
border-style: none
|
||
}
|
||
|
||
.hanko_otpCreationDetails {
|
||
font-weight: var(--font-weight, 400);
|
||
font-size: var(--font-size, 16px);
|
||
font-family: var(--font-family, sans-serif);
|
||
line-height: var(--line-height, 1.4rem);
|
||
color: var(--color, #333333);
|
||
margin: var(--item-margin, 0.5rem 0);
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
flex-direction: column;
|
||
font-size: smaller
|
||
}
|