|
| 1 | +body { |
| 2 | + font-family: 'Open Sans', sans-serif; |
| 3 | + background-color: #673AB7; |
| 4 | + color: white; |
| 5 | +} |
| 6 | + |
| 7 | +/* Voting Screen */ |
| 8 | + |
| 9 | +.voting { |
| 10 | + position: fixed; |
| 11 | + top: 0; |
| 12 | + left: 0; |
| 13 | + right: 0; |
| 14 | + bottom: 0; |
| 15 | + |
| 16 | + display: flex; |
| 17 | + flex-direction: column; |
| 18 | + |
| 19 | + user-select: none; |
| 20 | +} |
| 21 | + |
| 22 | +.voting button { |
| 23 | + flex: 1 0 0; |
| 24 | + |
| 25 | + background-color: #673AB7; |
| 26 | + border-width: 0; |
| 27 | +} |
| 28 | +.voting button:first-child { |
| 29 | + border-bottom: 1px solid white; |
| 30 | +} |
| 31 | +.voting button:active { |
| 32 | + background-color: white; |
| 33 | + color: #311B92; |
| 34 | +} |
| 35 | +.voting button.voted { |
| 36 | + background-color: #311B92; |
| 37 | +} |
| 38 | +.voting button:not(.voted) .label { |
| 39 | + visibility: hidden; |
| 40 | +} |
| 41 | +.voting button .label { |
| 42 | + opacity: 0.87; |
| 43 | +} |
| 44 | +.voting button.votedAgainst * { |
| 45 | + opacity: 0.3; |
| 46 | +} |
| 47 | + |
| 48 | +@media only screen and (min-device-width: 500px) { |
| 49 | + .voting { |
| 50 | + flex-direction: row; |
| 51 | + } |
| 52 | + .voting button:first-child { |
| 53 | + border-bottom-width: 0; |
| 54 | + border-right: 1px solid white; |
| 55 | + } |
| 56 | +} |
| 57 | + |
| 58 | +/* Results Screen */ |
| 59 | + |
| 60 | +.results { |
| 61 | + position: fixed; |
| 62 | + top: 0; |
| 63 | + left: 0; |
| 64 | + right: 0; |
| 65 | + bottom: 0; |
| 66 | + |
| 67 | + display: flex; |
| 68 | + flex-direction: column; |
| 69 | +} |
| 70 | +.results .tally { |
| 71 | + flex: 1; |
| 72 | + |
| 73 | + display: flex; |
| 74 | + flex-direction: column; |
| 75 | + justify-content: center; |
| 76 | +} |
| 77 | +.results .tally .entry { |
| 78 | + display: flex; |
| 79 | + justify-content: space-around; |
| 80 | + align-items: center; |
| 81 | +} |
| 82 | + |
| 83 | +.results .tally h1 { |
| 84 | + width: 25%; |
| 85 | +} |
| 86 | +.results .tally .voteVisualization { |
| 87 | + height: 50px; |
| 88 | + width: 50%; |
| 89 | + display: flex; |
| 90 | + justify-content: flex-start; |
| 91 | + |
| 92 | + background-color: #7E57C2; |
| 93 | +} |
| 94 | +.results .tally .votesBlock { |
| 95 | + background-color: white; |
| 96 | + transition: width 0.5s; |
| 97 | +} |
| 98 | +.results .tally .voteCount { |
| 99 | + font-size: 2rem; |
| 100 | +} |
| 101 | + |
| 102 | +.results .management { |
| 103 | + display: flex; |
| 104 | + |
| 105 | + height: 2em; |
| 106 | + border-top: 1px solid #aaa; |
| 107 | +} |
| 108 | + |
| 109 | +.results .management button { |
| 110 | + border: 0; |
| 111 | + background-color: black; |
| 112 | + color: #aaa; |
| 113 | +} |
| 114 | +.results .management .next { |
| 115 | + flex: 1; |
| 116 | +} |
| 117 | + |
| 118 | +/* Winner View */ |
| 119 | + |
| 120 | +.winner { |
| 121 | + font-size: 4rem; |
| 122 | + text-align: center; |
| 123 | +} |
0 commit comments