@essetwide/material-walkthrough
Version:
A material tour (eg Inbox from Google) for your site, enhancing the UX.
119 lines (107 loc) • 2.67 kB
CSS
/**
* Copyright 2017 Esset Software LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* FIX FROM ISSUE #30 */
body {
position: relative;
}
#walk-bounds {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100%;
z-index: 1000;
overflow: hidden;
pointer-events: none;
}
/* END */
#walk-wrapper {
pointer-events: all;
transform: translateZ(0);
position: absolute;
color: white;
z-index: 1000;
display: none;
}
#walk-wrapper.opened {
transition: 0.25s;
}
#walk-wrapper.closed {
height: 1000px ;
width: 1000px ;
opacity: 0;
}
#walk-wrapper.closed #walk-content-wrapper {
display: none;
}
#walk-wrapper:before {
content: '';
display: block;
position: absolute;
background: transparent;
border: solid 0vw;
border-radius: 50%;
border-color: inherit;
width: inherit;
height: inherit;
margin-top: 0vw;
margin-left: 0vw;
opacity: .9;
box-sizing: content-box ;
transition: border-width 0.25s ease-in, margin 0.25s ease-in;
}
#walk-wrapper.opened:before{
border-width: 300vw;
margin-left: -300vw;
margin-top: -300vw;
}
#walk-wrapper:after {
content: ' ';
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
border: 1px solid white;
border-radius: 50%;
box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
}
#walk-wrapper #walk-content-wrapper {
position: relative;
min-width: 200px;
width: 33vw;
font-family: 'Roboto', sans-serif;
font-size: 24px;
/* DEFAULT POSITION */
top: 100%;
left: 100%;
}
#walk-wrapper #walk-action {
height: 36px;
padding: 0 2rem;
margin-top: 10px;
background-color: rgba(255, 255, 255, 0.2);
border: 0;
border-radius: 2px;
letter-spacing: 1px;
font-size: 15px;
font-weight: bold;
text-transform: uppercase;
color: white;
}
#walk-wrapper #walk-action:hover {
background-color: rgba(255, 255, 255, 0.25);
}