forgeplus-react/src/home/code.scss

80 lines
1.2 KiB
SCSS

.hadoopCode{
margin-left: 32px;
box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
border-radius: 10px;
padding:18px 20px;
flex: 1;
margin-top: 60px;
position: relative;
&>img{
position: absolute;
right: -50px;
bottom: -50px;
width: 805px;
border-radius: 4px;
opacity: 0;
z-index: 1;
}
li{
display: flex;
flex-wrap: wrap;
font-size: 14px;
font-weight: 500;
line-height: 30px;
color: #E1E1E1;
}
}
pre {
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
word-break: break-all;
overflow: initial ;
.codenum{
display: inline-block;
width: 15px;
text-align: left;
margin-right: 15px;
}
.code-green{
color: #00FA30;
}
.code-red{
color: #FF5058;
}
.code-blue{
color: #05CFC8;
}
}
.highCodes{
position: absolute;
top:0px;
right:0px;
width: 50%;
height: 100%;
padding:40px 30px;
color: #E1E1E1;
}
.activeCode{
.word-item{
animation: show .2s 1 forwards;
}
&>img.activeImg{
right: 0px;
bottom: -20px;
opacity: 1;
width: 705px;
transition: 1s;
transition-delay: 3s;
}
}
.word-item {
opacity: 0;
}
@keyframes show {
from {
opacity: 0;
}
to {
opacity: 1;
}
}