discourse/plugins/poll/assets/stylesheets/desktop/poll.scss
Joe a342d2f150 UX: reduces white-space in polls (#6956)
* reduces white-space in polls and uses font-size variables
2019-02-05 10:47:22 +01:00

72 lines
1.1 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;
border-left: 1px solid $primary-low;
.info-number {
font-size: 3.5em;
}
p {
margin: 0.5em 0;
}
.info-label {
display: block;
}
}
.poll-container {
display: table-cell;
width: 100%;
}
.poll-buttons {
border-top: 1px solid $primary-low;
padding: 1em;
.info-text {
line-height: 2em;
}
.toggle-status {
float: right;
}
}
}
.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 $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;
}
}
}
}