pedf
/
spolky
Archived
1
0
Fork 0

cosmetic changes

master
Lukáš Hozda 4 years ago
parent 23c9dd69f0
commit 44109e0811

@ -11,8 +11,22 @@
.logo:hover { .logo:hover {
transform: scale(1.15); transform: scale(1.15);
} }
.keep {
display: block;
}
@media screen and (max-width: 800px) {
.logo {
display: none;
}
.keep {
display: block !important;
}
}
</style> </style>
<script>
export let keep = false;
</script>
<div class="logo"> <div class="logo" class:keep>
<a href="https://pedf.cuni.cz/PEDF-1.html"><img src="/img/logo.png" alt="logo"></a> <a href="https://pedf.cuni.cz/PEDF-1.html"><img src="/img/logo.png" alt="logo"></a>
</div> </div>

@ -25,6 +25,11 @@
align-items: center; align-items: center;
justify-items: center; justify-items: center;
} }
@media screen and (max-width: 800px) {
.panel {
background: none;
}
}
</style> </style>
<script> <script>

@ -169,6 +169,9 @@
opacity: 0; opacity: 0;
} }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
#plusko {
display: none
}
#cinnosti { #cinnosti {
left: auto; left: auto;
right: auto; right: auto;
@ -176,24 +179,39 @@
} }
#predseda { #predseda {
top: 10vh; top: 10vh;
left: 50%; width: 100%;
transform: translate(-50%, 0); } left: 0;
padding: 0;
padding-left: 20px;
}
#prebiram { #prebiram {
top: 20vh; top: 20vh;
left: 50%; width: 100%;
transform: translate(-50%, 0); } left: 0;
padding: 0;
padding-left: 20px;
}
#zapojit { #zapojit {
top: 30vh; top: 30vh;
left: 50%; width: 100%;
transform: translate(-50%, 0); } left: 0;
padding: 0;
padding-left: 20px;
}
#zalozit { #zalozit {
top: 60vh; top: 60vh;
left: 50%; width: 100%;
transform: translate(-50%, 0); } left: 0;
padding: 0;
padding-left: 20px;
}
#oborovky { #oborovky {
top: 70vh; top: 70vh;
left: 50%; width: 100%;
transform: translate(-50%, 0); } left: 0;
padding: 0;
padding-left: 20px;
}
.cross { .cross {
display: none; display: none;
width: 0 !important; width: 0 !important;
@ -350,13 +368,18 @@ left: 50%;
var result = (y*value) / 100; var result = (y*value) / 100;
return result; return result;
} }
onMount(() => {
if (window.innerWidth <= 800)
clicked = true;
})
</script> </script>
<svelte:head> <svelte:head>
<title>Spolky a SORky PedF UK | Chci se zapojit</title> <title>Spolky a SORky PedF UK | Chci se zapojit</title>
</svelte:head> </svelte:head>
<Logo/> <Logo keep={true}/>
<main id="container"> <main id="container">
<div id="plusko" on:mouseover="{spin}" on:mouseout="{unspin}" class:active="{clicked}" on:click="{clicked_fun}"> <div id="plusko" on:mouseover="{spin}" on:mouseout="{unspin}" class:active="{clicked}" on:click="{clicked_fun}">
@ -370,14 +393,14 @@ left: 50%;
{/if} {/if}
</div> </div>
{#if clicked} {#if clicked }
<div class="labels"> <div class="labels">
<div class="label label2" id="predseda"> <div class="label label2" id="predseda">
<span><a href="/predseda">Předseda spolku</a></span> <span><a href="/predseda">Předseda spolku</a></span>
<div class="cross bottom-right"></div> <div class="cross bottom-right"></div>
</div> </div>
<div class="label label2" id="prebiram"> <div class="label label2" id="prebiram">
<span style="padding-left: 0.5em; padding-right: 0.5em"><a href="/prebiram">Přebírám spolek</a></span> <span style="padding-right: 0.5em"><a href="/prebiram">Přebírám spolek</a></span>
<div class="cross bottom-left"></div> <div class="cross bottom-left"></div>
</div> </div>
<div class="label label2" id="zapojit"> <div class="label label2" id="zapojit">
@ -385,11 +408,11 @@ left: 50%;
<div class="cross top-right"></div> <div class="cross top-right"></div>
</div> </div>
<div class="label label2" id="zalozit"> <div class="label label2" id="zalozit">
<span style="padding-left: 0.5em; padding-right: 0.5em"><a href="/zalozit-spolek">Chci založit spolek</a></span> <span style="padding-right: 0.5em"><a href="/zalozit-spolek">Chci založit spolek</a></span>
<div class="cross top-left"></div> <div class="cross top-left"></div>
</div> </div>
<div class="label label2" id="oborovky"> <div class="label label2" id="oborovky">
<span style="padding-left: 0.5em; padding-right: 0.5em"><a href="/oborovky">Chci vědět víc o oborovkách</a></span> <span style="padding-right: 0.5em"><a href="/oborovky">Chci vědět víc o oborovkách</a></span>
<div class="cross top-right"></div> <div class="cross top-right"></div>
</div> </div>
</div> </div>