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