Feat/personal highscore #44
@@ -29,7 +29,7 @@
|
|||||||
<div class="won-wine">
|
<div class="won-wine">
|
||||||
<img :src="smallerWineImage(win.wine.image)">
|
<img :src="smallerWineImage(win.wine.image)">
|
||||||
|
|
||||||
<div class="wine-details">
|
<div class="won-wine-details">
|
||||||
<h3>{{ win.wine.name }}</h3>
|
<h3>{{ win.wine.name }}</h3>
|
||||||
<a :href="win.wine.vivinoLink" class="vin-link no-margin">
|
<a :href="win.wine.vivinoLink" class="vin-link no-margin">
|
||||||
Les mer på vinmonopolet.no
|
Les mer på vinmonopolet.no
|
||||||
@@ -128,25 +128,24 @@ export default {
|
|||||||
@import "./src/styles/variables";
|
@import "./src/styles/variables";
|
||||||
@import "./src/styles/media-queries";
|
@import "./src/styles/media-queries";
|
||||||
|
|
||||||
|
$elementSpacing: 3rem;
|
||||||
$elementSpacing: 4rem;
|
|
||||||
|
|
||||||
.el-spacing {
|
.el-spacing {
|
||||||
margin-bottom: $elementSpacing;
|
margin-bottom: $elementSpacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
.go-back {
|
.navigate-back {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 1.1rem;
|
font-size: 1.2rem;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
|
border-color: gray;
|
||||||
&:not(:hover) {
|
|
||||||
border-color: $matte-text-color;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 90vw;
|
width: 90vw;
|
||||||
margin: 0 auto;
|
margin: 3rem auto;
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 3rem;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
|
|
||||||
@include desktop {
|
@include desktop {
|
||||||
@@ -155,24 +154,27 @@ $elementSpacing: 4rem;
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.8rem;
|
font-size: 3rem;
|
||||||
font-family: "knowit";
|
font-family: "knowit";
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
font-size: 2.2rem;
|
font-size: 3.5rem;
|
||||||
font-family: "knowit";
|
font-family: "knowit";
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
margin: 2rem 0 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.win-count {
|
.win-count {
|
||||||
font-size: 1.2rem;
|
font-size: 1.5rem;
|
||||||
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.raffle-container {
|
.raffle-container {
|
||||||
@@ -180,18 +182,17 @@ h3 {
|
|||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
||||||
div:not(:last-of-type) {
|
div:not(:last-of-type) {
|
||||||
margin-right: 1rem;
|
margin-right: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.raffle-element {
|
.raffle-element {
|
||||||
width: 80px;
|
width: 5rem;
|
||||||
height: 60px;
|
height: 4rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 1.2rem;
|
font-size: 1.5rem;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
|
||||||
|
|
||||||
&.small {
|
&.small {
|
||||||
height: 40px;
|
height: 40px;
|
||||||
@@ -199,10 +200,19 @@ h3 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.days-ago {
|
||||||
|
color: $matte-text-color;
|
||||||
|
border-bottom: 2px solid transparent;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: $link-color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.won-wine {
|
.won-wine {
|
||||||
--spacing: 1rem;
|
--spacing: 1rem;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
margin: var(--spacing) 0 4rem 0;
|
margin: var(--spacing) 0 3rem 0;
|
||||||
padding: var(--spacing);
|
padding: var(--spacing);
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -212,12 +222,11 @@ h3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
// width: 60px;
|
|
||||||
margin: 0 3rem;
|
margin: 0 3rem;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wine-details {
|
&-details {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
@@ -244,8 +253,8 @@ h3 {
|
|||||||
|
|
||||||
.raffle-element {
|
.raffle-element {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: var(--spacing);
|
top: calc(var(--spacing) * 2);
|
||||||
right: var(--spacing);
|
right: calc(var(--spacing) * 2);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -254,14 +263,11 @@ h3 {
|
|||||||
.backdrop {
|
.backdrop {
|
||||||
$background: rgb(244,244,244);
|
$background: rgb(244,244,244);
|
||||||
|
|
||||||
--horizontal-padding: 2rem;
|
--padding: 2rem;
|
||||||
@include desktop {
|
@include desktop {
|
||||||
$horizontal-padding: 5rem;
|
--padding: 5rem;
|
||||||
}
|
}
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
height: 100%;
|
padding: var(--padding);
|
||||||
width: calc(100% - calc(var(--horizontal-padding) * 2);
|
|
||||||
|
|
||||||
padding: 2rem var(--horizontal-padding);
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user