Skip to content
Snippets Groups Projects
Commit c1725ec5 authored by Ondrej Rehounek's avatar Ondrej Rehounek
Browse files

main: contact box with sliding btn

parent b82bb153
No related branches found
No related tags found
2 merge requests!607Pirati.cz,!575Feature/pirati cz
......@@ -152,8 +152,13 @@
Další osoby naleznete na stránce pirati.cz
</p>
</div>
<a href="" class="block bg-black text-white">
<a href="" class="btn btn__slide__wrap">
<span class="btn bg-black text-white w-32">
Lidé
</span>
<span class="btn bg-blue-300 text-white w-32">
Lidé
</span>
</a>
</div>
</div>
......
.btn {
@apply font-alt inline-block h-11 leading-9 py-1;
}
.btn__slide__wrap {
overflow: hidden;
position: relative;
:first-child {
position: relative;
transition: all linear 0.25s;
}
:last-child {
left: -100%;
position: absolute;
transition: all linear 0.25s;
}
&:hover {
:first-child {
transform: translateX(100%);
}
:last-child {
left: 0
}
}
}
......@@ -24,6 +24,7 @@
@import "./molecules/box.pcss";
@import "./molecules/sliding_button.pcss";
@import "./organisms/footer.pcss";
@import "./organisms/navbar.pcss";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment