sync
This commit is contained in:
@@ -4,3 +4,4 @@
|
||||
@import 'navigation/navigation';
|
||||
@import 'messageList/messageList';
|
||||
@import 'userInfo/userInfo';
|
||||
@import 'voting/voting';
|
103
components/02_Molecules/voting/_voting.scss
Normal file
103
components/02_Molecules/voting/_voting.scss
Normal file
@@ -0,0 +1,103 @@
|
||||
.LP-Voting {
|
||||
$-block: &;
|
||||
|
||||
font-family: $-primary-sans-serif-font;
|
||||
gap: 16PX;
|
||||
font-size: 42px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.LP-Headline {
|
||||
margin-bottom: 0;
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
&__Left {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
&__Choices {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
justify-content: flex-end;
|
||||
margin-bottom: calc(1.5 * 18px);
|
||||
width: max-content;
|
||||
|
||||
--indication-color: #{$-light-brown};
|
||||
&:hover {
|
||||
--indication-color: #{$-beige};
|
||||
}
|
||||
}
|
||||
|
||||
&__Vote {
|
||||
color: $-beige;
|
||||
text-decoration: none;
|
||||
transition: color .4s;
|
||||
|
||||
&:hover,
|
||||
&:hover ~ &,
|
||||
&:focus,
|
||||
&focus ~ & {
|
||||
color: $-grey;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
#{$-block}__Label {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
&--overall {
|
||||
color: var(--indication-color);
|
||||
}
|
||||
}
|
||||
|
||||
&__Label {
|
||||
position: absolute;
|
||||
visibility: hidden;
|
||||
height: 1.5em;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
top: 83px;
|
||||
background-color: white;
|
||||
color: $-grey;
|
||||
}
|
||||
|
||||
&__Label, &__CurrentVote {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&__CurrentVote {
|
||||
margin-top: -29px;
|
||||
color: $-light-brown;
|
||||
}
|
||||
|
||||
&__Date, &__Vote {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&__UserVote {
|
||||
#{$-block}__Vote {
|
||||
&, &:hover {
|
||||
color: black;
|
||||
cursor: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__Info{
|
||||
font-size: 18px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
|
||||
&Label {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
1
components/02_Molecules/voting/voting.config.json
Normal file
1
components/02_Molecules/voting/voting.config.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
57
components/02_Molecules/voting/voting.hbs
Normal file
57
components/02_Molecules/voting/voting.hbs
Normal file
@@ -0,0 +1,57 @@
|
||||
<div class="LP-Voting">
|
||||
<div class="LP-Voting__Left">
|
||||
<h2 class="LP-Headline">
|
||||
Place level
|
||||
</h2>
|
||||
<div class="LP-Voting__Choices">
|
||||
<a href="#5" class="LP-Voting__Vote" title="Vote place as "Time Capsule"">
|
||||
<i class="mdi mdi-shield-home"></i>
|
||||
<span class="LP-Voting__Label">
|
||||
Time Capsule
|
||||
</span>
|
||||
</a>
|
||||
<a href="#5" class="LP-Voting__Vote" title="Vote place as "Lost in History"">
|
||||
<i class="mdi mdi-shield-home"></i>
|
||||
<span class="LP-Voting__Label">
|
||||
Lost in History
|
||||
</span>
|
||||
</a>
|
||||
<a href="#5" class="LP-Voting__Vote LP-Voting__Vote--overall" title="Vote place as "Natures Treasure"">
|
||||
<i class="mdi mdi-shield-home"></i>
|
||||
<span class="LP-Voting__Label">
|
||||
Natures Treasure
|
||||
</span>
|
||||
</a>
|
||||
<a href="#5" class="LP-Voting__Vote LP-Voting__Vote--overall" title="Vote place as "Vandalized"">
|
||||
<i class="mdi mdi-shield-home"></i>
|
||||
<span class="LP-Voting__Label">
|
||||
Vandalized
|
||||
</span>
|
||||
</a>
|
||||
<a href="#5" class="LP-Voting__Vote LP-Voting__Vote--overall" title="Vote place as "Ruin"">
|
||||
<i class="mdi mdi-shield-home"></i>
|
||||
<span class="LP-Voting__Label">
|
||||
Ruin
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="LP-Voting__CurrentVote">
|
||||
Natures Treasure
|
||||
</div>
|
||||
</div>
|
||||
<div class="LP-Voting__Right">
|
||||
<div class="LP-Voting__Info">
|
||||
<div class="LP-Voting__UserVote">
|
||||
<span class="LP-Voting__InfoLabel">You voted this place as</span>
|
||||
<span class="LP-Voting__Vote">Lost in History (4 / 5)</span>
|
||||
</div>
|
||||
|
||||
<div class="LP-Voting__Expiration">
|
||||
<span class="LP-Voting__InfoLabel">Your vote expires on</span>
|
||||
<span class="LP-Voting__Date">
|
||||
<time datetime="2022-01-24">24 of January 2022</time>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user