Skip to content

Commit dedaf45

Browse files
committed
Update styles.css
1 parent 9dbcfd3 commit dedaf45

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Website/styles.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,57 @@ button#toggle-languages:hover {
598598
animation: fadeIn 1s ease-in-out;
599599
}
600600

601+
.floating {
602+
animation: floating 3s ease-in-out infinite;
603+
}
604+
605+
@keyframes floating {
606+
0% {
607+
transform: translateY(0);
608+
}
609+
50% {
610+
transform: translateY(-7px);
611+
}
612+
100% {
613+
transform: translateY(0);
614+
}
615+
}
616+
617+
.tooltip {
618+
visibility: hidden;
619+
background-color: #0D6EFD;
620+
color: white;
621+
text-align: center;
622+
border-radius: 10px;
623+
padding: 9px;
624+
font-size: 15px;
625+
position: absolute;
626+
bottom: 70px;
627+
right: -130px;
628+
transform: translateX(-50%);
629+
width: 270px;
630+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
631+
z-index: 1;
632+
opacity: 0;
633+
transition: opacity 0.3s;
634+
}
635+
636+
.chatbot-button:hover .tooltip {
637+
visibility: visible;
638+
opacity: 1;
639+
}
640+
641+
/* Hided tooltip on touch devices */
642+
@media (hover: none) and (pointer: coarse), (max-width: 767px) {
643+
.tooltip {
644+
display: none;
645+
}
646+
}
647+
601648
.chatbot.active {
602649
display: flex;
650+
margin-right: -18px;
651+
margin-bottom: 60px;
603652
}
604653

605654
.chatbot-header {

0 commit comments

Comments
 (0)