vuepress-playground
Version:
114 lines (98 loc) • 2.4 kB
text/less
.vuepress-playground-code-box {
height: 0;
padding: 0 ;
overflow: hidden;
background-color: #282c34;
border-radius: 0 ;
transition: height .5s;
pre {
margin: 0 ;
}
}
.vuepress-playground-wrapper {
border: 1px solid #ebebeb;
border-radius: 4px;
transition: all .2s;
margin-top: 10px;
&:hover {
box-shadow: 0 0 11px rgba(33,33,33,.2);
}
.vuepress-playground-display-box {
padding: 20px;
border-bottom: 1px solid #ebebeb;
}
.vuepress-playground-control-box {
text-align: center;
padding: 10px 0;
position: relative;
form:nth-last-child(2) {
right: 80px;
}
form:last-child {
right: 10px;
}
.vuepress-playground-jsfiddle,
.vuepress-playground-codepen {
position: absolute;
top: 10px;
opacity: 0;
transform: translateX(10px);
transition: all .5s;
}
.vuepress-playground-expand-btn {
position: relative;
transform: translateX(24px);
transition: all .5s;
&::before {
content: '';
position: absolute;
left: -10px;
top: 9px;
width: 0;
height: 0;
border-top: 6px solid #ccc;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
}
span {
opacity: 0;
transition: all .5s;
}
}
.vuepress-playground-btn-text {
border-color: transparent;
background-color: transparent;
font-size: 14px;
color: #3eaf7c;
cursor: pointer;
outline: none;
margin: 0;
}
&:hover {
.vuepress-playground-jsfiddle,
.vuepress-playground-codepen,
.vuepress-playground-expand-btn span,
.vuepress-playground-expand-btn {
opacity: 1;
transform: translateX(0);
}
.vuepress-playground-expand-btn::before {
border-top-color: #3eaf7c;
border-bottom-color: #3eaf7c;
}
}
&.vuepress-playground-control-box-show-link {
.vuepress-playground-jsfiddle,
.vuepress-playground-codepen {
opacity: 1;
transform: translateX(0);
}
.vuepress-playground-expand-btn::before {
border-bottom: 6px solid #ccc;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: none;
}
}
}
}