2019-03-03 22:18:23 +01:00
|
|
|
.poll {
|
|
|
|
margin-top: 16px;
|
|
|
|
font-size: 14px;
|
|
|
|
|
2019-06-16 20:41:03 +02:00
|
|
|
ul,
|
|
|
|
.e-content & ul {
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
2019-03-03 22:18:23 +01:00
|
|
|
li {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__chart {
|
|
|
|
border-radius: 4px;
|
2020-04-02 17:10:55 +02:00
|
|
|
display: block;
|
|
|
|
background: darken($ui-primary-color, 5%);
|
|
|
|
height: 5px;
|
|
|
|
min-width: 1%;
|
2019-03-03 22:18:23 +01:00
|
|
|
|
|
|
|
&.leading {
|
|
|
|
background: $ui-highlight-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-28 10:16:55 +02:00
|
|
|
progress {
|
|
|
|
border: 0;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 5px;
|
|
|
|
appearance: none;
|
|
|
|
background: transparent;
|
|
|
|
|
|
|
|
&::-webkit-progress-bar {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Those rules need to be entirely separate or they won't work, hence the
|
|
|
|
// duplication
|
|
|
|
&::-moz-progress-bar {
|
|
|
|
border-radius: 4px;
|
|
|
|
background: darken($ui-primary-color, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-ms-fill {
|
|
|
|
border-radius: 4px;
|
|
|
|
background: darken($ui-primary-color, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-webkit-progress-value {
|
|
|
|
border-radius: 4px;
|
|
|
|
background: darken($ui-primary-color, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-02 17:10:55 +02:00
|
|
|
&__option {
|
2019-03-03 22:18:23 +01:00
|
|
|
position: relative;
|
2019-09-13 16:04:09 +02:00
|
|
|
display: flex;
|
2019-03-03 22:18:23 +01:00
|
|
|
padding: 6px 0;
|
|
|
|
line-height: 18px;
|
|
|
|
cursor: default;
|
2019-03-06 04:54:32 +01:00
|
|
|
overflow: hidden;
|
2019-03-03 22:18:23 +01:00
|
|
|
|
2020-04-02 17:10:55 +02:00
|
|
|
&__text {
|
|
|
|
display: inline-block;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
max-width: calc(100% - 45px - 25px);
|
|
|
|
}
|
|
|
|
|
2023-02-13 04:57:03 +01:00
|
|
|
input[type='radio'],
|
|
|
|
input[type='checkbox'] {
|
2019-03-03 22:18:23 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-03-06 22:51:40 +01:00
|
|
|
.autosuggest-input {
|
2019-04-11 18:14:28 +02:00
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
|
|
|
|
2023-02-13 04:57:03 +01:00
|
|
|
input[type='text'] {
|
2019-03-06 12:30:11 +01:00
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
2019-04-11 18:14:28 +02:00
|
|
|
width: 100%;
|
2019-03-06 12:30:11 +01:00
|
|
|
font-size: 14px;
|
|
|
|
color: $inverted-text-color;
|
|
|
|
outline: 0;
|
|
|
|
font-family: inherit;
|
|
|
|
background: $simple-background-color;
|
|
|
|
border: 1px solid darken($simple-background-color, 14%);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 6px 10px;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $highlight-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-03 22:18:23 +01:00
|
|
|
&.selectable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-03-06 12:30:11 +01:00
|
|
|
|
|
|
|
&.editable {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-04-11 18:14:28 +02:00
|
|
|
overflow: visible;
|
2019-03-06 12:30:11 +01:00
|
|
|
}
|
2019-03-03 22:18:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__input {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid $ui-primary-color;
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
2023-01-19 15:51:14 +01:00
|
|
|
margin-inline-end: 10px;
|
2019-03-03 22:18:23 +01:00
|
|
|
top: -1px;
|
2019-03-04 01:54:14 +01:00
|
|
|
border-radius: 50%;
|
2019-03-03 22:18:23 +01:00
|
|
|
vertical-align: middle;
|
2019-09-16 16:12:18 +02:00
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
flex: 0 0 18px;
|
2019-03-03 22:18:23 +01:00
|
|
|
|
2019-03-04 01:54:14 +01:00
|
|
|
&.checkbox {
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2019-03-03 22:18:23 +01:00
|
|
|
&.active {
|
|
|
|
border-color: $valid-value-color;
|
|
|
|
background: $valid-value-color;
|
|
|
|
}
|
2019-12-03 19:53:16 +01:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2020-03-25 22:39:18 +01:00
|
|
|
border-color: lighten($valid-value-color, 15%);
|
2019-12-03 19:53:16 +01:00
|
|
|
border-width: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::-moz-focus-inner {
|
|
|
|
outline: 0 !important;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
outline: 0 !important;
|
|
|
|
}
|
2022-01-17 09:41:33 +01:00
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
border-color: $dark-text-color;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: $dark-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border-color: $dark-text-color;
|
|
|
|
border-width: 1px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-03 22:18:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__number {
|
|
|
|
display: inline-block;
|
2020-04-02 17:10:55 +02:00
|
|
|
width: 45px;
|
2019-03-03 22:18:23 +01:00
|
|
|
font-weight: 700;
|
2020-04-02 17:10:55 +02:00
|
|
|
flex: 0 0 45px;
|
2019-09-22 14:15:18 +02:00
|
|
|
}
|
|
|
|
|
2020-04-02 17:10:55 +02:00
|
|
|
&__voted {
|
|
|
|
padding: 0 5px;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&__mark {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
2019-03-03 22:18:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__footer {
|
|
|
|
padding-top: 6px;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
color: $dark-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__link {
|
|
|
|
display: inline;
|
|
|
|
background: transparent;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
color: $dark-text-color;
|
|
|
|
text-decoration: underline;
|
2019-03-05 03:51:18 +01:00
|
|
|
font-size: inherit;
|
2019-03-03 22:18:23 +01:00
|
|
|
|
2019-05-09 22:03:32 +02:00
|
|
|
&:hover {
|
2019-03-03 22:18:23 +01:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-05-09 22:03:32 +02:00
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
2023-02-13 04:57:03 +01:00
|
|
|
background-color: rgba($dark-text-color, 0.1);
|
2019-05-09 22:03:32 +02:00
|
|
|
}
|
2019-03-03 22:18:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
height: 36px;
|
|
|
|
padding: 0 16px;
|
2023-01-19 15:51:14 +01:00
|
|
|
margin-inline-end: 10px;
|
2019-03-03 22:18:23 +01:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
2019-03-06 12:30:11 +01:00
|
|
|
|
|
|
|
.compose-form__poll-wrapper {
|
|
|
|
border-top: 1px solid darken($simple-background-color, 8%);
|
2020-02-03 11:40:41 +01:00
|
|
|
overflow-x: hidden;
|
2019-03-06 12:30:11 +01:00
|
|
|
|
|
|
|
ul {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.poll__footer {
|
|
|
|
border-top: 1px solid darken($simple-background-color, 8%);
|
|
|
|
padding: 10px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
button,
|
|
|
|
select {
|
2019-03-11 07:57:00 +01:00
|
|
|
width: 100%;
|
2019-03-06 12:30:11 +01:00
|
|
|
flex: 1 1 50%;
|
2019-12-05 00:51:07 +01:00
|
|
|
|
|
|
|
&:focus {
|
|
|
|
border-color: $highlight-text-color;
|
|
|
|
}
|
2019-03-06 12:30:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button.button-secondary {
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 400;
|
|
|
|
padding: 6px 10px;
|
|
|
|
height: auto;
|
|
|
|
line-height: inherit;
|
|
|
|
color: $action-button-color;
|
|
|
|
border-color: $action-button-color;
|
2023-01-19 15:51:14 +01:00
|
|
|
margin-inline-end: 5px;
|
2019-03-06 12:30:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-04-02 17:10:55 +02:00
|
|
|
.poll__option {
|
2019-03-06 12:30:11 +01:00
|
|
|
flex: 0 0 auto;
|
|
|
|
width: calc(100% - (23px + 6px));
|
2023-01-19 15:51:14 +01:00
|
|
|
margin-inline-end: 6px;
|
2019-03-06 12:30:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
select {
|
|
|
|
appearance: none;
|
|
|
|
box-sizing: border-box;
|
|
|
|
font-size: 14px;
|
|
|
|
color: $inverted-text-color;
|
|
|
|
display: inline-block;
|
|
|
|
width: auto;
|
|
|
|
outline: 0;
|
|
|
|
font-family: inherit;
|
2023-02-13 04:57:03 +01:00
|
|
|
background: $simple-background-color
|
|
|
|
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.933 18.467' height='19.698' width='15.929'><path d='M3.467 14.967l-3.393-3.5H14.86l-3.392 3.5c-1.866 1.925-3.666 3.5-4 3.5-.335 0-2.135-1.575-4-3.5zm.266-11.234L7.467 0 11.2 3.733l3.733 3.734H0l3.733-3.734z' fill='#{hex-color(darken($simple-background-color, 14%))}'/></svg>")
|
|
|
|
no-repeat right 8px center / auto 16px;
|
2019-03-06 12:30:11 +01:00
|
|
|
border: 1px solid darken($simple-background-color, 14%);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 6px 10px;
|
2023-04-16 17:45:18 +02:00
|
|
|
padding-inline-end: 30px;
|
2019-03-06 12:30:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon-button.disabled {
|
|
|
|
color: darken($simple-background-color, 14%);
|
|
|
|
}
|
|
|
|
}
|
2019-03-12 22:08:18 +01:00
|
|
|
|
|
|
|
.muted .poll {
|
|
|
|
color: $dark-text-color;
|
|
|
|
|
|
|
|
&__chart {
|
2023-01-05 13:34:10 +01:00
|
|
|
background: rgba(darken($ui-primary-color, 14%), 0.7);
|
2019-03-12 22:08:18 +01:00
|
|
|
|
|
|
|
&.leading {
|
2023-01-05 13:34:10 +01:00
|
|
|
background: rgba($ui-highlight-color, 0.5);
|
2019-03-12 22:08:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|