feat tour: Show new users around
This commit is contained in:
@ -28,7 +28,7 @@ header {
|
||||
border: none;
|
||||
|
||||
width: 8rem;
|
||||
height: 2rem;
|
||||
height: 4rem;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
|
@ -2,6 +2,7 @@
|
||||
@import 'shadows';
|
||||
@import 'buttons';
|
||||
@import 'forms';
|
||||
@import 'tour';
|
||||
|
||||
.coming-soon::after {
|
||||
content: 'soon...';
|
||||
|
88
src/less/styles/tour.less
Normal file
88
src/less/styles/tour.less
Normal file
@ -0,0 +1,88 @@
|
||||
#wrapper::after {
|
||||
content: '';
|
||||
|
||||
background: rgba(0, 0, 0, 0);
|
||||
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
pointer-events: none;
|
||||
|
||||
transition: background 0.5s ease;
|
||||
}
|
||||
|
||||
.tour {
|
||||
&::after {
|
||||
background: rgba(0, 0, 0, 0.55) !important;
|
||||
}
|
||||
|
||||
.tour-item {
|
||||
position: relative;
|
||||
|
||||
z-index: 1;
|
||||
}
|
||||
.tour-item::after {
|
||||
content: '';
|
||||
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
|
||||
margin-top: -0.5rem;
|
||||
margin-left: -0.5rem;
|
||||
|
||||
border-radius: 50%;
|
||||
|
||||
background: #50E3C2;
|
||||
|
||||
opacity: 1;
|
||||
|
||||
transform: scale(0);
|
||||
|
||||
animation: pulse 2s ease-out infinite;
|
||||
}
|
||||
|
||||
.tour-dialog {
|
||||
display: block;
|
||||
|
||||
box-sizing: border-box;
|
||||
|
||||
width: 90vw;
|
||||
|
||||
text-align: center;
|
||||
|
||||
padding: 1rem 2rem;
|
||||
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
|
||||
background: @light-gray;
|
||||
|
||||
border-radius: 2rem;
|
||||
|
||||
.shadow-16;
|
||||
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
z-index: 5;
|
||||
}
|
||||
}
|
||||
|
||||
.tour-dialog {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(5);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user