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
Branches
No related tags found
2 merge requests!607Pirati.cz,!575Feature/pirati cz
...@@ -152,8 +152,13 @@ ...@@ -152,8 +152,13 @@
Další osoby naleznete na stránce pirati.cz Další osoby naleznete na stránce pirati.cz
</p> </p>
</div> </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é Lidé
</span>
<span class="btn bg-blue-300 text-white w-32">
Lidé
</span>
</a> </a>
</div> </div>
</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 @@ ...@@ -24,6 +24,7 @@
@import "./molecules/box.pcss"; @import "./molecules/box.pcss";
@import "./molecules/sliding_button.pcss";
@import "./organisms/footer.pcss"; @import "./organisms/footer.pcss";
@import "./organisms/navbar.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