Updated emphasis layout page
This commit is contained in:
parent
75885d2716
commit
a3c17f4973
|
@ -245,10 +245,10 @@
|
|||
|
||||
footer {
|
||||
position: fixed;
|
||||
z-index: 2;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 0 $small-gap $small-gap $small-gap;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
position: static;
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
|
||||
<ol class="thesis-list">
|
||||
<li v-for="thesis of theses">
|
||||
<label :for="`thesis-${thesis.id}`">
|
||||
{{ getThesisTitle(thesis.thesis) }}
|
||||
</label>
|
||||
<input
|
||||
:name="`thesis-${thesis.id}`"
|
||||
:id="`thesis-${thesis.id}`"
|
||||
type="checkbox"
|
||||
@click.self="addThesisEmphasis(thesis, $event)"/>
|
||||
<label :for="`thesis-${thesis.id}`">
|
||||
{{ getThesisTitle(thesis.thesis) }}
|
||||
</label>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
|
@ -67,9 +67,12 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "~styles/animations";
|
||||
@import "~styles/colors";
|
||||
@import "~styles/layout";
|
||||
|
||||
$input-size: 40px;
|
||||
|
||||
h1,
|
||||
p {
|
||||
margin-bottom: $base-gap;
|
||||
|
@ -78,21 +81,85 @@
|
|||
.thesis-list {
|
||||
margin-top: $base-gap;
|
||||
list-style: decimal;
|
||||
counter-reset: emphasis;
|
||||
|
||||
li {
|
||||
padding-bottom: $base-gap / 2;
|
||||
padding-bottom: $base-gap;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
counter-increment: emphasis;
|
||||
content: counter(emphasis) ".";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-85%);
|
||||
color: $text-color-secondary;
|
||||
font-size: $font-size-large;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
li:not(:last-child) {
|
||||
margin-bottom: $base-gap / 2;
|
||||
border-bottom: 4px solid $dark-blue;
|
||||
margin-bottom: $base-gap;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 100vw;
|
||||
height: 4px;
|
||||
background: linear-gradient(90deg, $transparent-white);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
opacity: 0;
|
||||
width: $input-size;
|
||||
height: $input-size;
|
||||
margin-right: $base-gap;
|
||||
margin-left: $base-gap * 2;
|
||||
|
||||
&:checked + label::after {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
transition:
|
||||
transform 150ms $easeInOutQuint,
|
||||
opacity 200ms $easeInOutQuint;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
flex: 1;
|
||||
|
||||
&::after,
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: $base-gap * 2;
|
||||
top: 0;
|
||||
border-radius: 100%;
|
||||
width: $input-size;
|
||||
height: $input-size;
|
||||
}
|
||||
|
||||
label {
|
||||
cursor: pointer;
|
||||
flex: 0 0 90%;
|
||||
&::after {
|
||||
opacity: 0;
|
||||
background: $button-background-primary;
|
||||
box-shadow: $button-shadow;
|
||||
transform: translateY(4px);
|
||||
transition:
|
||||
transform 150ms $easeInOutQuint,
|
||||
opacity 200ms $easeInOutQuint;
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: $dark-blue;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
}
|
||||
|
||||
button {
|
||||
margin-top: $base-gap;
|
||||
margin-top: $base-gap + 5;
|
||||
|
||||
@media (max-width: $breakpoint) {
|
||||
margin-top: 0;
|
||||
|
|
|
@ -2,7 +2,7 @@ export default {
|
|||
de: {
|
||||
euromat: {
|
||||
options: {
|
||||
positive: 'Ich stimme zu',
|
||||
positive: 'Ich bin dafür',
|
||||
neutral: 'Neutral',
|
||||
negative: 'Ich bin dagegen',
|
||||
skipped: 'These überspringen'
|
||||
|
|
|
@ -23,13 +23,20 @@
|
|||
@import "~styles/layout";
|
||||
|
||||
.footer-menu {
|
||||
background: transparentize($background-primary, 0.5);
|
||||
list-style: none;
|
||||
display: flex;
|
||||
font-size: $font-size-small;
|
||||
padding: $small-gap;
|
||||
border-radius: $border-radius;
|
||||
|
||||
a {
|
||||
color: $text-color-secondary;
|
||||
font-weight: 600;
|
||||
|
||||
&:hover {
|
||||
color: $text-color-special;
|
||||
}
|
||||
}
|
||||
|
||||
li:not(:first-child) {
|
||||
|
|
Loading…
Reference in a new issue