-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
307 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,185 +1,167 @@ | ||
@import '~app/styles/variables.css'; | ||
|
||
.optionWrapper { | ||
justify-content: center; | ||
min-height: 120px; | ||
cursor: pointer; | ||
position: relative; | ||
} | ||
|
||
.pollTable { | ||
.poll { | ||
margin: 0 auto; | ||
background-color: var(--lego-card-color); | ||
width: 100%; | ||
font-size: 14px; | ||
} | ||
|
||
.pollTable td { | ||
border: 0; | ||
padding: 5px; | ||
min-width: 250px; | ||
max-width: 500px; | ||
overflow-y: hidden; | ||
border-radius: 15px; | ||
transition: 2s height; | ||
} | ||
|
||
.pollTable .textColumn { | ||
border-right: 1px solid #c5c5c5; | ||
text-align: right; | ||
padding-right: 13px; | ||
line-height: 16px; | ||
} | ||
|
||
.pollTable .graphColumn { | ||
width: auto; | ||
min-width: 200px; | ||
padding-left: 13px; | ||
.topBar { | ||
background-color: var(--lego-red); | ||
position: relative; | ||
width: 100%; | ||
height: 70px; | ||
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); | ||
} | ||
|
||
.poll { | ||
composes: withShadow from '~app/styles/utilities.css'; | ||
background: var(--lego-card-color); | ||
padding: 15px 20px 8px; | ||
.stats { | ||
color: var(--lego-card-color); | ||
margin-top: 17px; | ||
transform: scale(150%); | ||
} | ||
|
||
.pollLight { | ||
background: var(--lego-card-color); | ||
.notAnswered { | ||
color: var(--color-white); | ||
font-size: 30px; | ||
font-weight: 900; | ||
line-height: 45px; | ||
} | ||
|
||
.noVotes { | ||
font-style: italic; | ||
.headerBar { | ||
color: var(--lego-font-color); | ||
background-color: var(--lego-card-color); | ||
font-weight: 900; | ||
text-align: center; | ||
position: absolute; | ||
bottom: 0; | ||
left: 50%; | ||
width: 80%; | ||
height: 50px; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); | ||
transform: translate(-50%, 50%); | ||
} | ||
|
||
.pollGraph { | ||
animation: graph 1.2s cubic-bezier(41%, 80%, 40%, 94%); | ||
background-color: var(--lego-red-color); | ||
padding-left: 8px; | ||
border-radius: 0 2px 2px 0; | ||
font-style: italic; | ||
font-weight: 300; | ||
color: var(--color-white); | ||
height: 30px; | ||
.contentWrapper { | ||
overflow-y: hidden; | ||
width: 100%; | ||
transition: 0.5s height; | ||
} | ||
|
||
.fullGraph { | ||
background-color: #e7e7e7; | ||
width: 100%; | ||
.voteOptionsWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
height: fit-content; | ||
} | ||
|
||
html[data-theme='dark'] .fullGraph { | ||
.voteButton { | ||
color: var(--color-white); | ||
background-color: var(--color-mono-gray-5); | ||
} | ||
|
||
html[data-theme='dark'] .pollGraph { | ||
color: var(--color-black); | ||
} | ||
|
||
.pollGraph span { | ||
vertical-align: middle; | ||
} | ||
|
||
@keyframes graph { | ||
from { | ||
width: 1px; | ||
} | ||
background: var(--lego-red); | ||
font-weight: 500; | ||
width: 90%; | ||
height: 37px; | ||
padding: 5px; | ||
margin: 2px; | ||
|
||
to { | ||
width: 100%; | ||
/* Override default components/Button property */ | ||
+ .voteButton { | ||
margin-left: 2px; | ||
} | ||
} | ||
|
||
.pollHeader { | ||
border-radius: 8px; | ||
margin-bottom: 20px; | ||
margin-left: 20px; | ||
font-size: 16px; | ||
color: var(--lego-font-color); | ||
} | ||
|
||
.voteButton { | ||
background: var(--lego-red-color); | ||
color: var(--lego-color-gray-light); | ||
border: 1px solid var(--border-gray); | ||
.voteOptions { | ||
width: 100%; | ||
margin: 0 !important; | ||
font-size: 15px; | ||
max-width: 400px; | ||
} | ||
|
||
.voteButton:hover { | ||
opacity: 0.8; | ||
padding-top: 35px; | ||
} | ||
|
||
html[data-theme='dark'] .voteButton { | ||
color: var(--color-dark-gray-3); | ||
.bottomInfoWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.moreOptionsLink { | ||
justify-content: space-between; | ||
.totalVotesInfo { | ||
display: flex; | ||
} | ||
|
||
.arrow { | ||
margin-top: 9px; | ||
cursor: pointer; | ||
|
||
&:hover { | ||
transform: scale(1.5); | ||
color: var(--color-red-3); | ||
transition: transform 0.2s; | ||
} | ||
.resultsHiddenInfo { | ||
font-style: italic; | ||
} | ||
|
||
.blurContainer { | ||
display: none; | ||
position: absolute; | ||
justify-content: center; | ||
.pollTable { | ||
width: 100%; | ||
height: 100%; | ||
font-size: 14px; | ||
} | ||
|
||
.blurOverlay { | ||
position: absolute; | ||
z-index: 2; | ||
color: var(--color-black); | ||
margin-top: 25px; | ||
.pollTable tr { | ||
width: 100%; | ||
} | ||
|
||
.optionWrapper:hover .blurContainer { | ||
display: flex; | ||
.pollTable td { | ||
border: 0; | ||
padding: 5px; | ||
} | ||
|
||
.optionWrapper:hover .blurEffect { | ||
filter: blur(3px); | ||
pointer-events: none; | ||
.pollTable .textColumn { | ||
text-align: right; | ||
line-height: 16px; | ||
word-wrap: break-word; | ||
width: fit-content; | ||
max-width: 200px; | ||
padding-right: 13px; | ||
border-right: 3px solid #c5c5c5; | ||
} | ||
|
||
.blurArrow { | ||
margin-top: 40px; | ||
.pollTable .graphColumn { | ||
width: auto; | ||
min-width: 150px; | ||
padding-left: 13px; | ||
padding-right: 15px; | ||
} | ||
|
||
.alignItems { | ||
.fullGraph { | ||
display: flex; | ||
justify-content: center; | ||
background-color: var(--color-mono-gray-5); | ||
color: #000; | ||
word-wrap: break-word; | ||
width: 100%; | ||
} | ||
|
||
.answered { | ||
margin: 15px 0; | ||
text-align: center; | ||
font-weight: bold; | ||
.pollGraph { | ||
background-color: var(--lego-red); | ||
font-style: italic; | ||
font-weight: 300; | ||
color: var(--color-white); | ||
height: 30px; | ||
padding-left: 8px; | ||
animation: graph 1.2s cubic-bezier(0.41, 0.8, 0.4, 0.94); | ||
border-radius: 0 2px 2px 0; | ||
box-shadow: 0 4px 4px rgba(0, 0, 0, 25%); | ||
} | ||
|
||
.bottomInfo { | ||
display: flex; | ||
justify-content: space-between; | ||
.bottomBar { | ||
width: 100%; | ||
height: 70px; | ||
background-color: var(--lego-red); | ||
} | ||
|
||
.resultsHidden { | ||
font-style: italic; | ||
.arrowUp, | ||
.arrowDown { | ||
text-shadow: 0 2px 2px rgba(0, 0, 0, 25%); | ||
transform: scale(250%); | ||
color: var(--lego-card-color); | ||
transition: 0.8s margin-bottom; | ||
} | ||
|
||
@media (--mobile-device) { | ||
.blurContainer { | ||
display: flex; | ||
} | ||
.arrowUp { | ||
margin-bottom: 25px; | ||
} | ||
|
||
.blurEffect { | ||
filter: blur(3px); | ||
pointer-events: none; | ||
} | ||
.arrowDown { | ||
margin-bottom: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.