mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 10:23:45 +08:00
7e37e3e824
In the vast majority of cases, people want poll voters to be public. Previously, the checkbox for this was hidden behind the 'show advanced' settings in the poll builder UI. This commit makes three changes to improve the experience: 1. Add `public=true|false` to poll markup (previously it would only be added when true 2. Bring the 'public' switch outside the 'show advanced' section for improved visibility 3. Change the default to 'true'
102 lines
1.5 KiB
SCSS
102 lines
1.5 KiB
SCSS
.poll-ui-builder-modal {
|
|
.show-advanced {
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.poll-ui-builder {
|
|
label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.input-group {
|
|
margin-bottom: 15px;
|
|
|
|
input[type="number"],
|
|
input[type="text"],
|
|
input[type="time"],
|
|
.combo-box,
|
|
.multi-select,
|
|
.select-kit-header,
|
|
.date-picker-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.date-picker-wrapper {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.poll-public .d-toggle-switch--label {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.radio-group {
|
|
display: inline-block;
|
|
margin-right: 30px;
|
|
|
|
input {
|
|
vertical-align: top;
|
|
}
|
|
|
|
label {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
|
|
.poll-type {
|
|
display: block;
|
|
|
|
.poll-type-value {
|
|
border: none;
|
|
color: var(--primary);
|
|
display: inline-block;
|
|
padding: 6px 12px 3px;
|
|
|
|
&.active {
|
|
background-color: var(--quaternary);
|
|
color: var(--secondary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.poll-options {
|
|
margin-bottom: 15px;
|
|
|
|
.poll-option-value {
|
|
align-items: flex-start;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 0;
|
|
|
|
button {
|
|
margin-left: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.poll-option-controls {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.tip {
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
}
|
|
}
|
|
|
|
.tip {
|
|
display: block;
|
|
font-size: var(--font-down-1);
|
|
margin: -0.5em 0 0.5em;
|
|
}
|
|
|
|
.d-editor-preview {
|
|
width: 100%;
|
|
}
|
|
}
|