2018-09-24 06:20:20 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/focus";
|
2019-04-08 22:22:22 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/_indicators";
|
2020-09-02 02:46:13 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/placeholders";
|
2018-09-24 06:57:03 +08:00
|
|
|
|
2018-10-26 09:40:15 +08:00
|
|
|
:root {
|
2018-10-30 21:17:40 +08:00
|
|
|
--poll-column-amount: 2;
|
2018-10-26 09:40:15 +08:00
|
|
|
--poll-blue: #1A73D4;
|
2018-10-30 21:17:40 +08:00
|
|
|
--poll-header-offset: -0.875rem;
|
2021-04-24 00:33:54 +08:00
|
|
|
--poll-addItem-width: 100%;
|
2020-09-21 20:07:36 +08:00
|
|
|
--poll-input-height: 2.5rem;
|
2018-10-26 09:40:15 +08:00
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
|
2018-10-24 22:17:13 +08:00
|
|
|
.closeBtn {
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2018-10-24 22:17:13 +08:00
|
|
|
position: relative;
|
2018-10-30 00:14:05 +08:00
|
|
|
> i {
|
2019-05-14 21:15:54 +08:00
|
|
|
color: var(--color-text);
|
2018-10-30 00:14:05 +08:00
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
2018-09-25 06:43:54 +08:00
|
|
|
.btn {
|
2018-10-26 01:44:03 +08:00
|
|
|
margin-top: var(--sm-padding-y);
|
|
|
|
margin-bottom: var(--sm-padding-y);
|
2018-10-26 02:23:43 +08:00
|
|
|
}
|
|
|
|
|
2018-10-18 22:31:17 +08:00
|
|
|
.hideBtn {
|
|
|
|
position: relative;
|
2018-10-26 09:40:15 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-18 22:31:17 +08:00
|
|
|
display: block;
|
2018-10-26 09:40:15 +08:00
|
|
|
margin: var(--border-size-large);
|
|
|
|
margin-bottom: var(--border-size);
|
2019-05-14 21:15:54 +08:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: inherit;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
padding-left: inherit;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2018-10-26 00:07:24 +08:00
|
|
|
|
2018-10-18 22:31:17 +08:00
|
|
|
> i {
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--color-gray-dark);
|
|
|
|
font-size: smaller;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
-webkit-transform: scale(-1, 1);
|
|
|
|
-moz-transform: scale(-1, 1);
|
|
|
|
-ms-transform: scale(-1, 1);
|
|
|
|
-o-transform: scale(-1, 1);
|
|
|
|
transform: scale(-1, 1);
|
|
|
|
}
|
2018-10-18 22:31:17 +08:00
|
|
|
}
|
2018-10-26 00:07:24 +08:00
|
|
|
|
2018-10-18 22:31:17 +08:00
|
|
|
&:hover {
|
2018-10-26 09:40:15 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-18 22:31:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-24 06:57:03 +08:00
|
|
|
.customInputWrapper {
|
2019-02-02 11:56:15 +08:00
|
|
|
width: 100%;
|
|
|
|
margin-top: var(--md-padding-y);
|
|
|
|
|
|
|
|
> Button {
|
2018-09-24 06:57:03 +08:00
|
|
|
width: 100%;
|
2019-02-02 11:56:15 +08:00
|
|
|
margin-top: var(--sm-padding-y);
|
|
|
|
margin-bottom: var(--sm-padding-y);
|
|
|
|
}
|
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
|
2019-02-02 11:56:15 +08:00
|
|
|
.pollInput {
|
|
|
|
> input {
|
|
|
|
width: 100%;
|
|
|
|
margin-top: var(--sm-padding-y);
|
|
|
|
margin-bottom: var(--sm-padding-y);
|
|
|
|
}
|
2019-06-26 11:03:08 +08:00
|
|
|
|
|
|
|
> input::placeholder {
|
|
|
|
color: var(--color-text);
|
|
|
|
opacity: 1; /* Firefox */
|
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
2018-10-26 09:40:15 +08:00
|
|
|
position: relative;
|
2018-10-30 21:17:40 +08:00
|
|
|
top: var(--poll-header-offset);
|
2018-09-24 06:57:03 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2018-10-26 00:07:24 +08:00
|
|
|
justify-content: space-between;
|
2018-10-26 01:44:03 +08:00
|
|
|
margin-bottom: var(--md-padding-y);
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.instructions {
|
2018-10-26 01:44:03 +08:00
|
|
|
margin-bottom: var(--lg-padding-x);
|
|
|
|
color: var(--color-text);
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pollBtn:nth-child(even) {
|
2019-05-14 21:15:54 +08:00
|
|
|
margin-right: inherit;
|
2018-10-26 01:44:03 +08:00
|
|
|
margin-left: var(--sm-padding-y);
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: var(--sm-padding-y);
|
|
|
|
margin-left: inherit;
|
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.pollBtn:nth-child(odd) {
|
2020-09-21 20:07:36 +08:00
|
|
|
margin-right: 1rem;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin-left: inherit;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: inherit;
|
|
|
|
margin-left: var(--sm-padding-y);
|
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
|
|
|
|
2018-10-03 07:08:32 +08:00
|
|
|
.pollBtn:hover {
|
2018-10-26 09:40:15 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--poll-blue);
|
2018-10-26 01:44:03 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
|
|
|
|
> span {
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-24 06:57:03 +08:00
|
|
|
.pollBtn {
|
2018-10-26 01:44:03 +08:00
|
|
|
margin-top: var(--sm-padding-y);
|
|
|
|
margin-bottom: var(--sm-padding-y);
|
|
|
|
background-color: var(--color-white);
|
2019-05-01 21:51:49 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--color-gray);
|
|
|
|
color: var(--color-gray);
|
2018-10-03 07:08:32 +08:00
|
|
|
|
|
|
|
> span {
|
2019-05-01 21:51:49 +08:00
|
|
|
color: var(--color-gray);
|
2018-10-03 07:08:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
> span:hover {
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollBtn:active {
|
|
|
|
&:focus {
|
2018-10-26 09:40:15 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
}
|
|
|
|
|
2018-10-26 01:44:03 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-26 09:40:15 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
|
|
|
|
> span {
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollBtn:focus {
|
2018-10-26 01:44:03 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-26 09:40:15 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
|
|
|
|
> span {
|
2018-10-26 09:40:15 +08:00
|
|
|
color: var(--poll-blue);
|
2018-10-03 07:08:32 +08:00
|
|
|
}
|
2018-09-24 06:57:03 +08:00
|
|
|
}
|
2018-09-24 06:20:20 +08:00
|
|
|
|
2020-09-22 06:52:38 +08:00
|
|
|
.inputError {
|
|
|
|
color: var(--color-danger);
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.inputError,
|
|
|
|
.errorSpacer {
|
|
|
|
position: relative;
|
|
|
|
height: 1.25rem;
|
|
|
|
}
|
|
|
|
|
2018-09-24 06:20:20 +08:00
|
|
|
.input {
|
2018-10-26 01:44:03 +08:00
|
|
|
@include inputFocus(var(--color-blue-light));
|
2019-04-08 22:22:22 +08:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2020-09-02 02:46:13 +08:00
|
|
|
@extend %highContrastOutline;
|
2019-04-08 22:22:22 +08:00
|
|
|
}
|
2018-09-24 06:20:20 +08:00
|
|
|
|
2019-04-08 22:22:22 +08:00
|
|
|
&:focus {
|
|
|
|
outline-style: solid !important;
|
|
|
|
}
|
|
|
|
|
2018-09-24 06:20:20 +08:00
|
|
|
margin: 0;
|
2018-10-26 01:44:03 +08:00
|
|
|
color: var(--color-text);
|
|
|
|
background: var(--color-white);
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
border: 1px solid var(--color-gray-lighter);
|
|
|
|
border-radius: var(--border-radius);
|
2018-09-24 06:20:20 +08:00
|
|
|
}
|
2019-03-09 04:46:25 +08:00
|
|
|
|
|
|
|
.noSlidePanelContainer {
|
|
|
|
color: var(--color-gray-drak);
|
|
|
|
text-align: center;
|
2020-09-21 20:07:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.responseType {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: var(--poll-input-height);
|
|
|
|
margin-bottom: var(--lg-padding-x);
|
|
|
|
|
|
|
|
button {
|
|
|
|
position: relative;
|
2021-04-24 00:33:54 +08:00
|
|
|
width: 100%;
|
2020-09-21 20:07:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fullWidth {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollQuestion {
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollOption {
|
|
|
|
margin-right: 1rem;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pollQuestion,
|
|
|
|
.pollOption {
|
|
|
|
@include inputFocus(var(--color-blue-light));
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
color: var(--color-text);
|
|
|
|
-webkit-appearance: none;
|
|
|
|
padding: calc(var(--sm-padding-y) * 2) calc(var(--sm-padding-x) * 1);
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
.exampleTitle {
|
|
|
|
background-color: var(--color-gray-lightest);
|
|
|
|
height: var(--sm-padding-x);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.exampleResponse {
|
|
|
|
border: var(--color-gray-light) solid 1px;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
padding: 1rem;
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
|
|
|
.responseInput {
|
|
|
|
border: var(--color-gray-light) solid 1px;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
margin-top: 1rem;
|
|
|
|
height: var(--poll-input-height);
|
|
|
|
padding-top: var(--sm-padding-x);
|
|
|
|
padding-left: var(--sm-padding-x);
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.rInput {
|
|
|
|
background-color: var(--color-gray-lightest);
|
|
|
|
height: var(--lg-padding-y);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
width: 75%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.addItemBtn {
|
|
|
|
top: 1px;
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
width: var(--poll-addItem-width);
|
|
|
|
padding-left: var(--md-padding-y);
|
|
|
|
padding-right: var(--md-padding-y);
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2020-09-21 20:07:36 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
span {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.startPollBtn {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: var(--poll-input-height);
|
|
|
|
margin-top: 1rem;
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2020-09-21 20:07:36 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
span {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pBtn {
|
|
|
|
border: solid var(--color-gray-light) 1px;
|
|
|
|
height: var(--poll-input-height);
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2020-09-21 20:07:36 +08:00
|
|
|
span {
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-24 00:33:54 +08:00
|
|
|
.btnML {
|
|
|
|
margin-left: 3%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btnMR {
|
|
|
|
margin-right: 3%;
|
|
|
|
}
|
|
|
|
|
2020-09-21 20:07:36 +08:00
|
|
|
.deleteBtn {
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2020-09-21 20:07:36 +08:00
|
|
|
position: relative;
|
|
|
|
i {
|
|
|
|
font-size: 150%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-19 00:06:21 +08:00
|
|
|
.yna {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2021-03-31 00:52:14 +08:00
|
|
|
.selectedBtnBlue {
|
2020-09-21 20:07:36 +08:00
|
|
|
background-color: var(--poll-blue);
|
|
|
|
color: var(--color-white);
|
2020-09-22 06:52:38 +08:00
|
|
|
font-size: var(--font-size-base);
|
2020-09-21 20:07:36 +08:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: var(--poll-blue) !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
color: var(--color-white) !important;
|
|
|
|
}
|
|
|
|
}
|
2021-02-08 20:06:15 +08:00
|
|
|
|
2021-03-31 00:52:14 +08:00
|
|
|
.selectedBtnWhite {
|
|
|
|
background-color: var(--color-white);
|
|
|
|
color: var(--poll-blue);
|
|
|
|
font-size: var(--font-size-base);
|
|
|
|
border-color: var(--poll-blue);
|
|
|
|
border-width: medium;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: var(--color-white) !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
color: var(--poll-blue) !important;
|
|
|
|
border-width: medium;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-08 20:06:15 +08:00
|
|
|
.dragAndDropPollContainer {
|
|
|
|
width: 200px !important;
|
|
|
|
height: 200px !important;
|
|
|
|
}
|