Replaced all mobile media queries with scss mixin.

This commit is contained in:
2020-01-22 17:35:34 +01:00
parent 16317a72d3
commit 8a3fe730d2
4 changed files with 11 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ h1 {
border-right: 1px solid #333; border-right: 1px solid #333;
} }
@media only screen and (max-width: 768px) { @include mobile {
.purchase, .purchase,
.win { .win {
width: 100vw; width: 100vw;

View File

@@ -111,6 +111,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../styles/media-queries.scss";
.chartjsLegend li span { .chartjsLegend li span {
display: inline-block; display: inline-block;
width: 12px; width: 12px;
@@ -119,7 +121,7 @@ export default {
border-radius: 25px; border-radius: 25px;
} }
@media only screen and (max-width: 768px) { @include mobile {
canvas { canvas {
height: 50vh; height: 50vh;
} }

View File

@@ -98,6 +98,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../styles/media-queries.scss";
.inner-bought-container { .inner-bought-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -158,7 +160,8 @@ export default {
.blue { .blue {
color: #57d2fb; color: #57d2fb;
} }
@media only screen and (max-width: 768px) {
@include mobile {
.bought-container { .bought-container {
flex-wrap: wrap; flex-wrap: wrap;
flex-direction: column; flex-direction: column;

View File

@@ -92,7 +92,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@media only screen and (max-width: 768px) { @import "../styles/media-queries.scss";
@include mobile {
canvas { canvas {
height: 50vh; height: 50vh;
} }