diff --git a/src/App.vue b/src/App.vue index a1da4eb..0b6fac6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -146,73 +146,7 @@ body { overflow: hidden; } -// Large devices (desktops, less than 1200px) -@media screen and (max-width: 1199.98px) { - html, - body { - font-size: 1.1em; - } - .night-order em { - width: 30px; - height: 30px; - } - .fabled .night-order.first span { - left: 30px; - } -} - -// Medium devices (tablets, less than 992px) -@media screen and (max-width: 991.98px) { - html, - body { - font-size: 1em; - } - #controls svg { - font-size: 20px; - } - .night-order em { - width: 20px; - height: 20px; - } - .fabled .night-order.first span { - left: 20px; - } - #townsquare { - padding: 10px; - } -} - -// Small devices (landscape phones, less than 768px) -@media screen and (max-width: 767.98px) { - html, - body { - font-size: 0.9em; - } - .player > .name { - top: 0; - } -} - -// Old phones -@media screen and (max-width: 575.98px) { - html, - body { - font-size: 0.8em; - } -} - -// odd aspect ratio -@media (max-aspect-ratio: 11/7) { - .bluffs, - .fabled { - h3 { - max-width: 14vh; - } - ul { - flex-direction: column; - } - } -} +@import "media"; * { box-sizing: border-box; diff --git a/src/assets/sounds/countdown.mp3 b/src/assets/sounds/countdown.mp3 index 4d65e25..a562984 100644 Binary files a/src/assets/sounds/countdown.mp3 and b/src/assets/sounds/countdown.mp3 differ diff --git a/src/components/TownSquare.vue b/src/components/TownSquare.vue index da3a4cb..684c386 100644 --- a/src/components/TownSquare.vue +++ b/src/components/TownSquare.vue @@ -281,9 +281,7 @@ export default { .fold-leave-to { transform: perspective(200px) rotateY(-90deg); } - } @else { - // second half of players - z-index: $i - 1; + // show ability tooltip on the left .ability { right: 120%; left: auto; @@ -294,7 +292,11 @@ export default { left: 100%; } } + } @else { + // second half of players + z-index: $i - 1; } + > * { transform: rotate($rot * -1deg); } diff --git a/src/media.scss b/src/media.scss new file mode 100644 index 0000000..85269dd --- /dev/null +++ b/src/media.scss @@ -0,0 +1,78 @@ +/*** Media queries ***/ +// Large devices (desktops, less than 1200px) +@media screen and (max-width: 1199.98px) { + html, + body { + font-size: 1.1em; + } + .night-order em { + width: 30px; + height: 30px; + } + .fabled .night-order.first span { + left: 30px; + } +} + +// Medium devices (tablets, less than 992px) +@media screen and (max-width: 991.98px) { + html, + body { + font-size: 1em; + } + #controls svg { + font-size: 20px; + } + .night-order em { + width: 20px; + height: 20px; + } + .fabled .night-order.first span { + left: 20px; + } + #townsquare { + padding: 10px; + } +} + +// Small devices (landscape phones, less than 768px) +@media screen and (max-width: 767.98px) { + html, + body { + font-size: 0.9em; + } + .player > .name { + top: 0; + } +} + +// Old phones +@media screen and (max-width: 575.98px) { + html, + body { + font-size: 0.8em; + } +} + +// odd aspect ratio +@media (max-aspect-ratio: 11/7) { + .bluffs, + .fabled { + h3 { + max-width: 14vh; + } + ul { + flex-direction: column; + } + } +} + +// touch devices +@media (hover: none) { + .circle li .reminder.add { + opacity: 1; + top: 0; + width: 35%; + padding-bottom: 35%; + } +}