discourse/plugins/poll/assets/stylesheets/desktop/poll.scss
Jarek Radosz 690a38bc9b
FIX: Show title on results of all poll types (#11041)
Previously, the title was shown only with pie chart results. Issue originally reported in https://meta.discourse.org/t/keep-the-heading-visible-when-showing-poll-results/167585

Also includes:
UX: Move the "Show breakdown" button (Display it with other poll buttons at the bottom)
FIX: Show the breakdown button only on any votes
2020-10-27 13:48:54 +01:00

93 lines
1.4 KiB
SCSS

div.poll {
display: table;
width: 100%;
box-sizing: border-box;
.poll-info {
min-width: 150px;
width: 100%;
display: table-cell;
text-align: center;
.info-number {
font-size: 3.5em;
}
p {
margin: 0.5em 0;
}
.info-label {
display: block;
}
}
.poll-container {
display: table-cell;
width: 100%;
border-right: 1px solid var(--primary-low);
}
.poll-title {
border-bottom: 1px solid var(--primary-low);
margin-bottom: 0.5em;
padding: 0.5em 0;
}
.poll-buttons {
border-top: 1px solid var(--primary-low);
padding: 1em;
.info-text {
line-height: 2em;
}
:not(:first-child):not(:last-child) {
margin-left: 1em;
}
.toggle-status {
float: right;
}
}
}
div.poll.pie {
.poll-container {
width: calc(100% - 190px);
}
.poll-info {
display: inline-block;
width: 150px;
}
}
.d-editor-preview {
.poll-buttons {
a:not(:first-child) {
margin-left: 0.25em;
}
}
.poll {
li[data-poll-option-id]:before {
position: relative;
vertical-align: baseline;
border: 2px solid var(--primary);
border-radius: 50%;
display: inline-block;
margin-right: 0.5em;
width: 12px;
height: 12px;
content: "";
}
&[data-poll-type="multiple"] {
li[data-poll-option-id]:before {
border-radius: 3px;
}
}
}
}