2020-09-21 20:07:36 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/focus";
|
2020-09-02 02:46:13 +08:00
|
|
|
@import "../../stylesheets/variables/breakpoints";
|
2016-07-28 05:50:35 +08:00
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
:root {
|
|
|
|
--col-amount: 2;
|
|
|
|
--max-btn-width: 9em;
|
2019-06-17 22:19:57 +08:00
|
|
|
--overlayIndex: 9999;
|
2018-10-26 09:40:15 +08:00
|
|
|
--overlayOpacity: 0.349;
|
2020-09-21 20:07:36 +08:00
|
|
|
--poll-index: 1016;
|
2018-10-26 09:40:15 +08:00
|
|
|
--poll-width: 18rem;
|
2020-09-22 06:52:38 +08:00
|
|
|
--poll-bottom-offset: 4.5rem;
|
2018-10-26 09:40:15 +08:00
|
|
|
}
|
2018-10-15 22:36:26 +08:00
|
|
|
|
2018-10-26 00:07:24 +08:00
|
|
|
.overlay {
|
|
|
|
position: absolute;
|
|
|
|
height: 100vh;
|
|
|
|
width: 100vw;
|
2018-10-26 09:40:15 +08:00
|
|
|
z-index: var(--overlayIndex);
|
2018-10-26 00:07:24 +08:00
|
|
|
pointer-events: none;
|
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
@include mq($hasPhoneDimentions) {
|
2018-10-30 00:57:19 +08:00
|
|
|
pointer-events: auto;
|
2018-10-26 09:40:15 +08:00
|
|
|
background-color: rgba(0, 0, 0, var(--overlayOpacity));
|
2018-10-26 00:07:24 +08:00
|
|
|
}
|
|
|
|
}
|
2018-09-01 01:14:00 +08:00
|
|
|
|
2016-07-28 05:50:35 +08:00
|
|
|
.pollingContainer {
|
2018-10-26 00:07:24 +08:00
|
|
|
pointer-events:auto;
|
2019-03-28 23:58:10 +08:00
|
|
|
min-width: var(--poll-width);
|
2018-10-12 23:05:53 +08:00
|
|
|
position: absolute;
|
2018-10-26 02:19:25 +08:00
|
|
|
|
2020-09-21 20:07:36 +08:00
|
|
|
z-index: var(--poll-index);
|
2018-10-26 01:44:03 +08:00
|
|
|
border: 1px solid var(--color-off-white);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
box-shadow: var(--color-gray-dark) 0px 0px var(--lg-padding-y);
|
2018-04-14 02:52:18 +08:00
|
|
|
align-items: center;
|
2018-10-12 23:05:53 +08:00
|
|
|
text-align: center;
|
|
|
|
font-weight: 600;
|
2018-10-26 01:44:03 +08:00
|
|
|
padding: var(--md-padding-y);
|
|
|
|
background-color: var(--color-white);
|
2020-09-22 06:52:38 +08:00
|
|
|
bottom: var(--poll-bottom-offset);
|
2019-08-27 04:08:40 +08:00
|
|
|
right: var(--jumbo-padding-x);
|
2019-08-28 01:57:20 +08:00
|
|
|
|
2019-08-27 04:08:40 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
left: var(--jumbo-padding-x);
|
|
|
|
right: auto;
|
2019-03-28 23:58:10 +08:00
|
|
|
}
|
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
@include mq($hasPhoneDimentions) {
|
2018-10-26 00:07:24 +08:00
|
|
|
bottom: auto;
|
|
|
|
right: auto;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, -50%);
|
2021-05-08 02:39:40 +08:00
|
|
|
max-height: 95%;
|
|
|
|
overflow-y: auto;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
2019-08-27 04:08:40 +08:00
|
|
|
left: 50%;
|
2019-05-14 21:15:54 +08:00
|
|
|
}
|
2018-10-26 00:07:24 +08:00
|
|
|
}
|
2018-10-26 02:33:02 +08:00
|
|
|
}
|
2016-07-28 05:50:35 +08:00
|
|
|
|
2018-10-26 02:33:02 +08:00
|
|
|
.pollingTitle {
|
|
|
|
white-space: nowrap;
|
|
|
|
padding-bottom: var(--md-padding-y);
|
|
|
|
padding-top: var(--md-padding-y);
|
2020-09-21 20:07:36 +08:00
|
|
|
font-size: var(--font-size-small);
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.pollButtonWrapper {
|
|
|
|
text-align: center;
|
|
|
|
padding: var(--sm-padding-y);
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollingButton {
|
|
|
|
width: 100%;
|
|
|
|
max-width: var(--max-btn-width);
|
|
|
|
|
|
|
|
@include mq($hasPhoneDimentions) {
|
|
|
|
max-width: none;
|
|
|
|
}
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2018-04-14 02:52:18 +08:00
|
|
|
.pollingAnswers {
|
|
|
|
display: grid;
|
2018-10-26 09:40:15 +08:00
|
|
|
grid-template-columns: repeat(var(--col-amount), 1fr);
|
2018-10-12 23:05:53 +08:00
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
@include mq($hasPhoneDimentions) {
|
2018-10-26 00:07:24 +08:00
|
|
|
grid-template-columns: repeat(1, 1fr);
|
2018-09-01 01:14:00 +08:00
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.pollButtonWrapper button {
|
2018-10-26 09:40:15 +08:00
|
|
|
grid-column: 1;
|
2018-09-01 01:14:00 +08:00
|
|
|
}
|
|
|
|
}
|
2018-10-26 00:07:24 +08:00
|
|
|
|
|
|
|
z-index: 1;
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.stacked {
|
|
|
|
grid-template-columns: repeat(1, 1fr);
|
|
|
|
|
|
|
|
.pollButtonWrapper button {
|
|
|
|
max-width: none !important;
|
|
|
|
}
|
2018-04-14 02:52:18 +08:00
|
|
|
}
|
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.removeColumns {
|
|
|
|
grid-template-columns: auto;
|
|
|
|
}
|
2018-10-26 09:40:15 +08:00
|
|
|
|
2019-03-28 23:58:10 +08:00
|
|
|
.autoWidth {
|
|
|
|
width: auto;
|
2018-04-14 02:52:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
2021-02-08 19:12:08 +08:00
|
|
|
|
|
|
|
.checkbox {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: var(--poll-sm-margin);
|
|
|
|
}
|
2021-02-08 21:37:34 +08:00
|
|
|
|
|
|
|
.checkboxContainer {
|
|
|
|
margin-bottom: var(--poll-sm-margin);
|
|
|
|
}
|
2021-03-07 22:12:49 +08:00
|
|
|
|
2020-09-21 20:07:36 +08:00
|
|
|
.qHeader {
|
|
|
|
text-align: left;
|
2021-03-07 22:12:49 +08:00
|
|
|
position: relative;
|
2020-09-21 20:07:36 +08:00
|
|
|
left: var(--sm-padding-y);
|
|
|
|
}
|
|
|
|
|
|
|
|
.qTitle {
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.qText {
|
|
|
|
color: var(--color-text);
|
|
|
|
word-break: break-word;
|
2021-05-20 22:53:52 +08:00
|
|
|
white-space: pre-wrap;
|
2020-09-21 20:07:36 +08:00
|
|
|
font-size: var(--font-size-large);
|
2020-09-22 06:52:38 +08:00
|
|
|
max-width: var(--poll-width);
|
|
|
|
padding-right: var(--sm-padding-x);
|
2020-09-21 20:07:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.typedResponseWrapper {
|
|
|
|
margin: var(--jumbo-padding-y) .5rem .5rem .5rem;
|
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
|
|
|
}
|
|
|
|
|
2020-09-22 06:52:38 +08:00
|
|
|
.submitVoteBtn {
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
}
|
|
|
|
|
2020-09-21 20:07:36 +08:00
|
|
|
.typedResponseInput {
|
|
|
|
@include inputFocus(var(--color-blue-light));
|
|
|
|
color: var(--color-text);
|
|
|
|
-webkit-appearance: none;
|
|
|
|
padding: calc(var(--sm-padding-y) * 2.5) calc(var(--sm-padding-x) * 1.25);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
border: 1px solid var(--color-gray-lighter);
|
|
|
|
box-shadow: 0 0 0 1px var(--color-gray-lighter);
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2021-03-08 01:26:10 +08:00
|
|
|
|
|
|
|
.multipleResponseAnswersTable {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.multipleResponseAnswersTableAnswerText {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2021-05-26 19:34:48 +08:00
|
|
|
.pollingSecret {
|
|
|
|
font-size: var(--font-size-small);
|
2021-06-17 01:01:56 +08:00
|
|
|
max-width: var(--poll-width);
|
2021-05-26 19:34:48 +08:00
|
|
|
}
|