2016-07-28 05:50:35 +08:00
|
|
|
@import "../../stylesheets/variables/_all";
|
|
|
|
|
2018-10-15 22:36:26 +08:00
|
|
|
$poll-width: 18rem;
|
2018-10-16 03:05:50 +08:00
|
|
|
$max-btn-width: 9em;
|
2018-10-15 22:36:26 +08:00
|
|
|
$col-amount: 2;
|
|
|
|
|
2018-09-01 01:14:00 +08:00
|
|
|
// pollingAnswer position offsets
|
|
|
|
$xs-portrait-offset: 8.75em;
|
|
|
|
$xs-landscape-offset: 4.75em;
|
|
|
|
$s-portrait-offset: 11.75em;
|
|
|
|
$s-landscape-offset: 1.75em;
|
|
|
|
|
2016-07-28 05:50:35 +08:00
|
|
|
.pollingContainer {
|
2018-10-15 22:36:26 +08:00
|
|
|
width: $poll-width;
|
2018-10-12 23:05:53 +08:00
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
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);
|
|
|
|
bottom: var(--sm-padding-x);
|
|
|
|
right: var(--sm-padding-x);
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pollingTitle {
|
2018-10-26 01:48:23 +08:00
|
|
|
color: var(--color-text);
|
2018-04-14 02:52:18 +08:00
|
|
|
white-space: nowrap;
|
2018-10-26 01:44:03 +08:00
|
|
|
padding-bottom: var(--md-padding-y);
|
|
|
|
padding-top: var(--md-padding-y);
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
|
|
|
|
2018-04-14 02:52:18 +08:00
|
|
|
.pollingAnswers {
|
|
|
|
display: grid;
|
2018-10-15 22:36:26 +08:00
|
|
|
grid-template-columns: repeat($col-amount, 1fr);
|
2018-10-12 23:05:53 +08:00
|
|
|
|
|
|
|
> pollButtonWrapper:nth-child(odd) {
|
|
|
|
grid-column: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
> pollButtonWrapper:nth-child(even) {
|
2018-10-15 22:36:26 +08:00
|
|
|
grid-column: $col-amount;
|
2018-10-12 23:05:53 +08:00
|
|
|
}
|
|
|
|
|
2018-09-01 01:14:00 +08:00
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
:global(.browser-safari) & {
|
2018-09-09 13:23:33 +08:00
|
|
|
@include mq($ip5-portrait) {
|
2018-10-19 04:37:14 +08:00
|
|
|
bottom: 8.75em;
|
2018-09-01 01:14:00 +08:00
|
|
|
}
|
2018-09-09 13:23:33 +08:00
|
|
|
@include mq($ip678-portrait) {
|
2018-10-19 04:37:14 +08:00
|
|
|
bottom: 4.75em;
|
2018-09-09 13:23:33 +08:00
|
|
|
}
|
|
|
|
@include mq($ip5-landscape) {
|
2018-10-19 04:37:14 +08:00
|
|
|
bottom: 11.75em;
|
2018-09-09 13:23:33 +08:00
|
|
|
}
|
|
|
|
@include mq($ip678-landscape) {
|
2018-10-19 04:37:14 +08:00
|
|
|
bottom: 1.75em;
|
2018-09-01 01:14:00 +08:00
|
|
|
}
|
|
|
|
}
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pollButtonWrapper {
|
|
|
|
text-align: center;
|
2018-10-26 01:44:03 +08:00
|
|
|
padding: var(--sm-padding-y);
|
2018-04-14 02:52:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pollingButton {
|
|
|
|
width: 100%;
|
2018-10-16 03:05:50 +08:00
|
|
|
max-width: $max-btn-width;
|
2018-04-14 02:52:18 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
2016-07-28 05:50:35 +08:00
|
|
|
}
|