fonteva-design-guide
Version:
## Dev, Build and Test
67 lines (59 loc) • 1.31 kB
CSS
.code-toolbar {
background: #304048;
padding-top: 60px;
padding-bottom: 20px;
border-radius: 6px;
margin-top: 15px;
margin-bottom: 15px;
overflow: hidden;
box-shadow: 6px 5px 0px #6dd6cd, 6px 5px 0px #6dd6cd;
position: relative;
}
.code-toolbar:before {
content: '';
position: absolute;
top: 42px;
height: 1px;
background-color: #6dd6cd;
background-image: linear-gradient(141deg, #fff 20%, #1fc8db 70%, #6dd6cd 75%);
width: 100%;
}
.code-toolbar:after {
background: #f27860;
border-radius: 50%;
height: 10px;
width: 10px;
content: '';
position: absolute;
left: 15px;
top: 17px;
box-shadow: 16px 0 #ffcc37, 32px 0 #2cb492;
}
.pfm-snippet {
position: relative;
}
.pfm-snippet:hover .pfm-snippet_grab {
opacity: 1;
}
.pfm-snippet_grab {
position: absolute;
z-index: 1;
background-color: #ffcc37;
color: #304048;
opacity: 0;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
margin: 0.5rem;
right: 0;
bottom: 0;
transition: opacity 0.25s ease-in-out;
}
.pfm-snippet_grab:hover {
cursor: pointer;
}
.pfm-snippet_code {
opacity: 0;
z-index: 0;
position: absolute;
top: 0;
}