diff --git a/plugins/poll/assets/stylesheets/common/poll.scss b/plugins/poll/assets/stylesheets/common/poll.scss index 6db6031a496..4c645da9fb7 100644 --- a/plugins/poll/assets/stylesheets/common/poll.scss +++ b/plugins/poll/assets/stylesheets/common/poll.scss @@ -452,11 +452,45 @@ div.poll-outer { content: ""; } + &[data-poll-type="multiple"], + &[data-poll-type="ranked_choice"] { + [data-poll-option-id] { + display: flex; + align-items: center; + } + } + &[data-poll-type="multiple"] { li[data-poll-option-id]:before { border-radius: 3px; } } + + &[data-poll-type="ranked_choice"] { + li[data-poll-option-id] { + position: relative; + &:before { + mask-image: svg-uri( + '' + ); + z-index: 1; + width: 0.75em; + margin-right: 0.75em; + left: 0.2em; + background: var(--primary-high); + border-radius: var(--d-button-border-radius); + border: none; + } + &:after { + content: ""; + position: absolute; + height: 1.125em; + width: 1.125em; + background: var(--primary-low); + border-radius: var(--d-button-border-radius); + } + } + } } }