mobile styles

This commit is contained in:
2021-04-12 13:40:36 +02:00
parent a1b87af931
commit 2daf1e2fa7
3 changed files with 36 additions and 15 deletions

View File

@@ -85,4 +85,9 @@
&:hover &:hover
background-color: var(--dark-bg3) background-color: var(--dark-bg3)
border: 4px solid var(--dark-bg2) border: 4px solid var(--dark-bg2)
@media only screen and (max-width: 872px)
.gractwoRoot
h1
display: none
</style> </style>

View File

@@ -48,4 +48,11 @@
&:focus,&:hover &:focus,&:hover
background-color: var(--dark-bg3) background-color: var(--dark-bg3)
transform: scale(1.05) transform: scale(1.05)
@media only screen and (max-width: 872px)
.card
font-size: .8em
width: 18rem
img
width: 64px
</style> </style>

View File

@@ -3,9 +3,10 @@
<div class="first"> <div class="first">
<h1>Witajcie w Gractwie!</h1> <h1>Witajcie w Gractwie!</h1>
<p> <p>
Jesteśmy społecznością - grupą ludzi - których kręcą gry. Proste, nie? <br> Jesteśmy społecznością - grupą ludzi - których kręcą gry. Proste, nie?
<br />
</p> </p>
<gractwosvg class="g"/> <gractwosvg class="g" />
</div> </div>
<div class="second"> <div class="second">
<h1>Spis Moderacji</h1> <h1>Spis Moderacji</h1>
@@ -52,17 +53,17 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import gractwosvg from '@/components/gractwosvg.vue'; // @ is an alias to /src import gractwosvg from '@/components/gractwosvg.vue'; // @ is an alias to /src
import card from '@/components/card.vue'; import card from '@/components/card.vue';
export default defineComponent({ export default defineComponent({
name: 'Home', name: 'Home',
components: { components: {
gractwosvg, gractwosvg,
card card,
}, },
}); });
</script> </script>
<style lang="sass"> <style lang="sass">
@@ -77,12 +78,12 @@ export default defineComponent({
animation-duration: 2s animation-duration: 2s
z-index: -10 z-index: -10
.second .second
margin-top: 18rem margin-top: 18rem
.cardContainer .cardContainer
display: inline-flex display: inline-flex
flex-wrap: wrap flex-wrap: wrap
margin-right: .1rem margin-right: .1rem
@keyframes logovibe @keyframes logovibe
0% 0%
transform: rotate(5deg) transform: rotate(5deg)
@@ -90,4 +91,12 @@ export default defineComponent({
transform: rotate(-9deg) scale(0.9) transform: rotate(-9deg) scale(0.9)
100% 100%
transform: rotate(5deg) transform: rotate(5deg)
</style>
@media only screen and (max-width: 872px)
main
padding: 3rem 1rem
.g
position: absolute
top: 8.5%
width: 184px
</style>