|
1 | | -@import '~app/styles/variables.css'; |
2 | | - |
3 | | -.optionWrapper { |
4 | | - justify-content: center; |
5 | | - min-height: 120px; |
6 | | - cursor: pointer; |
7 | | - position: relative; |
8 | | -} |
9 | | - |
10 | | -.pollTable { |
| 1 | +.poll { |
| 2 | + background-color: var(--lego-placard-color); |
11 | 3 | width: 100%; |
12 | | - font-size: 14px; |
13 | | -} |
14 | | - |
15 | | -.pollTable td { |
16 | | - border: 0; |
17 | | - padding: 5px; |
| 4 | + min-width: 250px; |
| 5 | + max-width: 500px; |
| 6 | + overflow-y: hidden; |
| 7 | + border-radius: 15px; |
| 8 | + transition: 2s height; |
18 | 9 | } |
19 | 10 |
|
20 | | -.pollTable .textColumn { |
21 | | - border-right: 1px solid #c5c5c5; |
22 | | - text-align: right; |
23 | | - padding-right: 13px; |
24 | | - line-height: 16px; |
25 | | -} |
26 | | - |
27 | | -.pollTable .graphColumn { |
28 | | - width: auto; |
29 | | - min-width: 200px; |
30 | | - padding-left: 13px; |
| 11 | +.topBar { |
| 12 | + background-color: var(--lego-red); |
| 13 | + position: relative; |
| 14 | + width: 100%; |
| 15 | + height: 70px; |
| 16 | + box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); |
31 | 17 | } |
32 | 18 |
|
33 | | -.poll { |
34 | | - composes: withShadow from '~app/styles/utilities.css'; |
35 | | - background: var(--lego-card-color); |
36 | | - padding: 15px 20px 8px; |
| 19 | +.stats { |
| 20 | + color: var(--lego-placard-color); |
| 21 | + margin-top: 17px; |
| 22 | + transform: scale(150%); |
37 | 23 | } |
38 | 24 |
|
39 | | -.pollLight { |
40 | | - background: var(--lego-card-color); |
| 25 | +.notAnswered { |
| 26 | + color: var(--color-white); |
| 27 | + font-size: 30px; |
| 28 | + font-weight: 900; |
| 29 | + line-height: 45px; |
41 | 30 | } |
42 | 31 |
|
43 | | -.noVotes { |
44 | | - font-style: italic; |
| 32 | +.headerBar { |
| 33 | + color: var(--lego-font-color); |
| 34 | + background-color: var(--lego-placard-color); |
| 35 | + font-weight: 900; |
| 36 | + text-align: center; |
| 37 | + position: absolute; |
| 38 | + bottom: 0; |
| 39 | + left: 50%; |
| 40 | + width: 80%; |
| 41 | + height: 50px; |
| 42 | + border-radius: 10px; |
| 43 | + box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); |
| 44 | + transform: translate(-50%, 50%); |
45 | 45 | } |
46 | 46 |
|
47 | | -.pollGraph { |
48 | | - animation: graph 1.2s cubic-bezier(41%, 80%, 40%, 94%); |
49 | | - background-color: var(--lego-red-color); |
50 | | - padding-left: 8px; |
51 | | - border-radius: 0 2px 2px 0; |
52 | | - font-style: italic; |
53 | | - font-weight: 300; |
54 | | - color: var(--color-white); |
55 | | - height: 30px; |
| 47 | +.contentWrapper { |
| 48 | + overflow-y: hidden; |
| 49 | + width: 100%; |
| 50 | + transition: 0.5s height; |
56 | 51 | } |
57 | 52 |
|
58 | | -.fullGraph { |
59 | | - background-color: #e7e7e7; |
60 | | - width: 100%; |
| 53 | +.voteOptionsWrapper { |
61 | 54 | display: flex; |
| 55 | + flex-direction: column; |
| 56 | + align-items: center; |
| 57 | + width: 100%; |
| 58 | + height: fit-content; |
62 | 59 | } |
63 | 60 |
|
64 | | -html[data-theme='dark'] .fullGraph { |
| 61 | +.voteButton { |
65 | 62 | color: var(--color-white); |
66 | | - background-color: var(--color-mono-gray-5); |
67 | | -} |
68 | | - |
69 | | -html[data-theme='dark'] .pollGraph { |
70 | | - color: var(--color-black); |
71 | | -} |
72 | | - |
73 | | -.pollGraph span { |
74 | | - vertical-align: middle; |
75 | | -} |
76 | | - |
77 | | -@keyframes graph { |
78 | | - from { |
79 | | - width: 1px; |
80 | | - } |
| 63 | + background: var(--lego-red); |
| 64 | + font-weight: 500; |
| 65 | + width: 90%; |
| 66 | + height: 37px; |
| 67 | + padding: 5px; |
| 68 | + margin: 2px; |
81 | 69 |
|
82 | | - to { |
83 | | - width: 100%; |
| 70 | + /* Override default components/Button property */ |
| 71 | + + .voteButton { |
| 72 | + margin-left: 2px; |
84 | 73 | } |
85 | 74 | } |
86 | 75 |
|
87 | | -.pollHeader { |
88 | | - border-radius: 8px; |
89 | | - margin-bottom: 20px; |
90 | | - margin-left: 20px; |
91 | | - font-size: 16px; |
92 | | - color: var(--lego-font-color); |
93 | | -} |
94 | | - |
95 | | -.voteButton { |
96 | | - background: var(--lego-red-color); |
97 | | - color: var(--lego-color-gray-light); |
98 | | - border: 1px solid var(--border-gray); |
| 76 | +.voteOptions { |
99 | 77 | width: 100%; |
100 | | - margin: 0 !important; |
101 | | - font-size: 15px; |
102 | | - max-width: 400px; |
| 78 | + padding-top: 35px; |
103 | 79 | } |
104 | 80 |
|
105 | | -.voteButton:hover { |
106 | | - opacity: 0.8; |
| 81 | +.bottomInfoWrapper { |
| 82 | + display: flex; |
| 83 | + flex-direction: column; |
| 84 | + align-items: center; |
107 | 85 | } |
108 | 86 |
|
109 | | -html[data-theme='dark'] .voteButton { |
110 | | - color: var(--color-dark-gray-3); |
| 87 | +.totalVotesInfo { |
| 88 | + display: flex; |
111 | 89 | } |
112 | 90 |
|
113 | | -.moreOptionsLink { |
114 | | - justify-content: space-between; |
| 91 | +.resultsHiddenInfo { |
| 92 | + font-style: italic; |
115 | 93 | } |
116 | 94 |
|
117 | | -.arrow { |
118 | | - margin-top: 9px; |
119 | | - cursor: pointer; |
120 | | - |
121 | | - &:hover { |
122 | | - transform: scale(1.5); |
123 | | - color: var(--color-red-3); |
124 | | - transition: transform 0.2s; |
125 | | - } |
| 95 | +.pollTable { |
| 96 | + width: 100%; |
| 97 | + font-size: 14px; |
126 | 98 | } |
127 | 99 |
|
128 | | -.blurContainer { |
129 | | - display: none; |
130 | | - position: absolute; |
131 | | - justify-content: center; |
| 100 | +.pollTable tr { |
132 | 101 | width: 100%; |
133 | | - height: 100%; |
134 | 102 | } |
135 | 103 |
|
136 | | -.blurOverlay { |
137 | | - position: absolute; |
138 | | - z-index: 2; |
139 | | - color: var(--color-black); |
140 | | - margin-top: 25px; |
| 104 | +.pollTable td { |
| 105 | + border: 0; |
| 106 | + padding: 5px; |
141 | 107 | } |
142 | 108 |
|
143 | | -.optionWrapper:hover .blurContainer { |
144 | | - display: flex; |
| 109 | +.pollTable .textColumn { |
| 110 | + text-align: right; |
| 111 | + line-height: 16px; |
| 112 | + word-wrap: break-word; |
| 113 | + width: fit-content; |
| 114 | + max-width: 200px; |
| 115 | + padding-right: 13px; |
| 116 | + border-right: 3px solid #c5c5c5; |
145 | 117 | } |
146 | 118 |
|
147 | | -.optionWrapper:hover .blurEffect { |
148 | | - filter: blur(3px); |
149 | | - pointer-events: none; |
| 119 | +.pollTable .graphColumn { |
| 120 | + width: auto; |
| 121 | + min-width: 150px; |
| 122 | + padding-left: 13px; |
| 123 | + padding-right: 15px; |
150 | 124 | } |
151 | 125 |
|
152 | | -.blurArrow { |
153 | | - margin-top: 40px; |
| 126 | +.fullGraph { |
| 127 | + display: flex; |
| 128 | + background-color: #e7e7e7; |
| 129 | + word-wrap: break-word; |
| 130 | + width: 100%; |
154 | 131 | } |
155 | 132 |
|
156 | | -.alignItems { |
157 | | - display: flex; |
158 | | - justify-content: center; |
| 133 | +.pollGraph { |
| 134 | + background-color: var(--lego-red); |
| 135 | + font-style: italic; |
| 136 | + font-weight: 300; |
| 137 | + color: var(--color-white); |
| 138 | + height: 30px; |
| 139 | + padding-left: 8px; |
| 140 | + animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94); |
| 141 | + border-radius: 0 2px 2px 0; |
| 142 | + box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); |
159 | 143 | } |
160 | 144 |
|
161 | | -.answered { |
162 | | - margin: 15px 0; |
163 | | - text-align: center; |
164 | | - font-weight: bold; |
| 145 | +.bottomBar { |
| 146 | + width: 100%; |
| 147 | + height: 70px; |
| 148 | + background-color: var(--lego-red); |
165 | 149 | } |
166 | 150 |
|
167 | | -.bottomInfo { |
168 | | - display: flex; |
169 | | - justify-content: space-between; |
| 151 | +.arrowUp, |
| 152 | +.arrowDown { |
| 153 | + text-shadow: 0 2px 2px rgba(0, 0, 0, 25%); |
| 154 | + transform: scale(250%); |
| 155 | + color: var(--lego-placard-color); |
| 156 | + transition: 0.8s margin-bottom; |
170 | 157 | } |
171 | 158 |
|
172 | | -.resultsHidden { |
173 | | - font-style: italic; |
| 159 | +.arrowUp { |
| 160 | + margin-bottom: 25px; |
174 | 161 | } |
175 | 162 |
|
176 | | -@media (--mobile-device) { |
177 | | - .blurContainer { |
178 | | - display: flex; |
179 | | - } |
| 163 | +.arrowDown { |
| 164 | + margin-bottom: 10px; |
| 165 | +} |
180 | 166 |
|
181 | | - .blurEffect { |
182 | | - filter: blur(3px); |
183 | | - pointer-events: none; |
184 | | - } |
| 167 | +.arrow:hover { |
| 168 | + cursor: pointer; |
185 | 169 | } |
0 commit comments