.vote-wrapper{ display: flex; flex-grow: 1; } .evote{ $checkfocus: 1px dotted rgba(black, .5); $checkfocus-offset: .1em; padding: 1rem; margin-top: 1rem; @include breakpoint(medium){ padding: 2rem; margin-top: 2rem; } .row{ display: flex; flex-direction: column; align-items: center; text-align: center; } &__grid .row{ display: block; text-align: left; } &__content{ margin: 1rem auto; @include breakpoint(medium){ margin: 2rem auto; } } &__options{ text-align: left; margin: 1rem auto; flex-grow: 1; @include breakpoint(medium){ margin: 2rem auto; } &--boolean{ @include breakpoint(medium){ display: flex; width: 100%; justify-content: center; } > *{ flex-basis: 200px; margin-left: 1rem; margin-right: 1rem; } } } &__card{ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06); padding: 1rem 2rem; border-radius: .5rem; background-color: $white; margin-bottom: 1rem; &.is-disabled{ background-color: $medium-gray; cursor: not-allowed; > *{ opacity: .5; } } } &__check{ cursor: pointer; display: flex; align-items: center; @include breakpoint(medium){ font-size: 1.2rem; } input[type="checkbox"], input[type="radio"]{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } [aria-disabled="true"]{ pointer-events: none; } } &__check-label{ position: relative; padding-left: 1em; line-height: 1.4; input[type="radio"] + &::before{ content: ""; width: 1em; height: 1em; border-radius: 50%; border: 1px solid; position: absolute; left: -.7em; top: .2em; color: $secondary; } input[type="radio"]:focus + &::before{ outline: $checkfocus; outline-offset: $checkfocus-offset; } input[type="radio"]:checked + &::after{ content: ""; width: .7em; height: .7em; border-radius: 50%; background-color: $secondary; position: absolute; left: -.55em; top: .35em; } input[type="checkbox"] + &::before{ content: ""; width: 1em; height: 1em; border: 1px solid; position: absolute; left: -.7em; top: .2em; color: $secondary; border-radius: 3px; } input[type="checkbox"]:focus + &::before{ outline: $checkfocus; outline-offset: $checkfocus-offset; } input[type="checkbox"]:checked + &::before{ background-color: $secondary; } input[type="checkbox"]:checked + &::after{ content: ""; width: .3em; height: .6em; position: absolute; left: -.5em; top: .15em; border-width: 0 2px 2px 0; border-style: solid; border-color: $white; transform-origin: bottom left; transform: rotate(45deg); } } &__check-extra{ display: block; font-size: 60%; text-transform: uppercase; letter-spacing: .01em; font-weight: 600; button{ font-size: inherit; text-transform: inherit; font-family: inherit; } } &__counter{ position: sticky; bottom: 2rem; right: 0; margin-left: auto; text-align: right; line-height: 1.2; background-color: $medium-gray; padding: .3rem 1rem; border-radius: $global-radius; } &__counter-num{ font-size: 1.2em; } &__confirm{ margin-top: 2rem; max-width: 40em; text-align: left; line-height: 1.2; dt{ font-weight: 600; } dd:not(:last-child){ margin-bottom: 2rem; } } &__confirm-label{ font-size: 80%; text-transform: uppercase; letter-spacing: .01em; color: $primary; } &__edit-answer{ text-transform: none; letter-spacing: normal; } &__encrypting, &__casting, &__confirming{ width: 200px; height: 40px; display: flex; margin: 2rem auto; } &__dot{ width: 10px; height: 10px; margin: 10px auto; border-radius: 50px; background: $primary; &:nth-child(odd){ animation: dotTop 1s infinite ease-in-out; } &:nth-child(even){ animation: dotBottom 1s infinite ease-in-out; } @media (prefers-reduced-motion){ animation: none !important; } @keyframes dotTop{ 0%{ transform: translateY(-15px); } 50%{ transform: translateY(15px); } 100%{ transform: translateY(-15px); } } @keyframes dotBottom{ 0%{ transform: translateY(15px); } 50%{ transform: translateY(-15px); } 100%{ transform: translateY(15px); } } } &__poll-id{ overflow-wrap: anywhere; } &__preview{ .accordion-title::before{ font-size: 1.5rem; margin-top: -.75rem; color: $anchor-color; font-weight: normal; } } &__preview-question{ border: $border; font-weight: 600; &:not(:first-child){ border-top: 0; } .label{ margin-left: .5rem; } } &__preview-result{ line-height: 1.2; margin-bottom: 1rem; } &__preview-option{ margin-bottom: -.2rem; font-size: 1rem; } &__preview-bar{ display: flex; align-items: center; .progress{ flex-grow: 1; margin-right: 1rem; } } &__preview-label{ font-size: .8rem; margin-top: -.2rem; } &__preview-perc{ width: 2rem; text-align: right; font-weight: bold; } }