poll.scss 912 Bytes
Newer Older
1
.poll-form {
2
  border-bottom: 1px solid $border-grey;
Steffen van Bergerem's avatar
Steffen van Bergerem committed
3 4 5
  border-top: 1px solid $border-grey;
  margin: 10px 0;
  padding: 10px 0 5px;
6

Steffen van Bergerem's avatar
Steffen van Bergerem committed
7
  .toggle-result-wrapper {
8 9 10
    display: inline-block;
    margin-top: 10px;
  }
Steffen van Bergerem's avatar
Steffen van Bergerem committed
11

12
  form {
Steffen van Bergerem's avatar
Steffen van Bergerem committed
13
    margin-bottom: 0;
14 15 16
  }

  .progress {
Steffen van Bergerem's avatar
Steffen van Bergerem committed
17
    height: 10px;
18
    margin-bottom: 5px;
19
    clear: both;
20

21 22
    .progress-bar { background-color: $border-dark-grey; }
    .users-vote { background-color: $brand-primary; }
23
  }
Steffen van Bergerem's avatar
Steffen van Bergerem committed
24

Petru Hincu's avatar
Petru Hincu committed
25
  .submit[disabled] {
26
    color: $text-grey;
Steffen van Bergerem's avatar
Steffen van Bergerem committed
27
    cursor: default;
Petru Hincu's avatar
Petru Hincu committed
28
  }
29
}
30 31 32 33

.poll-content {
  margin-top: 5px;

34 35 36 37
  .result-head {
    margin-bottom: 5px;
  }

38 39 40 41 42
  [type=radio],
  label {
    font-weight: normal;
    margin-bottom: 5px;
    vertical-align: middle;
43
    display: inline;
44 45 46 47 48 49 50 51 52 53 54 55
  }

  [type=radio],
  form .poll-result,
  form .progress {
    display: none; // Hide the result by default when the vote is possible
  }

  form [type=radio] {
    display: inline;
  }
}