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