2017-01-09 22:11:49 +00:00
|
|
|
//default
|
2016-09-23 23:14:01 +00:00
|
|
|
|
2017-01-07 04:53:01 +00:00
|
|
|
code {
|
2017-01-18 04:59:40 +00:00
|
|
|
color : $color_link;
|
2017-01-09 05:29:00 +00:00
|
|
|
border-radius : 7px;
|
2017-01-18 04:59:40 +00:00
|
|
|
background : $color_lt_blue;
|
|
|
|
border-color: $color_lt_blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
background : $color_lt_blue;
|
|
|
|
border: 1px solid rgba(65,151,181,0.3);
|
|
|
|
color: $color_link
|
2017-01-07 04:53:01 +00:00
|
|
|
}
|
|
|
|
|
2017-01-09 22:11:49 +00:00
|
|
|
// Container for code example
|
|
|
|
|
|
|
|
.code-example {
|
|
|
|
padding : $percent_sm;
|
|
|
|
border-radius : 7px;
|
|
|
|
background : $color_heading;
|
|
|
|
}
|
|
|
|
|
2017-01-23 02:50:12 +00:00
|
|
|
// Container for pop-up code example
|
|
|
|
|
|
|
|
.code-pop {
|
|
|
|
padding : $percent_sm/1.5;
|
|
|
|
background : $color_heading;
|
|
|
|
display:none; //Hide until click trigger
|
|
|
|
}
|
|
|
|
|
2017-01-09 22:11:49 +00:00
|
|
|
|
2016-12-13 03:13:38 +00:00
|
|
|
// Code Font Colors
|
|
|
|
|
|
|
|
.code-demo {
|
2017-01-09 05:29:00 +00:00
|
|
|
color : $color_white;
|
|
|
|
border : 0;
|
|
|
|
background-color : initial;
|
2016-12-13 03:13:38 +00:00
|
|
|
}
|
2017-01-09 05:29:00 +00:00
|
|
|
|
2016-12-13 03:13:38 +00:00
|
|
|
.code-attribute {
|
2017-01-09 05:29:00 +00:00
|
|
|
color : $color_purple;
|
2016-12-13 03:13:38 +00:00
|
|
|
}
|
2017-01-09 05:29:00 +00:00
|
|
|
|
2016-12-13 03:13:38 +00:00
|
|
|
.code-token {
|
2017-01-09 05:29:00 +00:00
|
|
|
color : $color_code_token;
|
2016-12-13 03:13:38 +00:00
|
|
|
}
|
2017-01-09 05:29:00 +00:00
|
|
|
|
2016-12-13 03:13:38 +00:00
|
|
|
.code-comment {
|
2017-01-09 05:29:00 +00:00
|
|
|
opacity : 0.6;
|
2016-09-23 23:14:01 +00:00
|
|
|
}
|
2017-01-07 04:53:01 +00:00
|
|
|
|
2017-01-09 05:29:00 +00:00
|
|
|
// Indentation
|
|
|
|
|
2017-01-06 08:06:40 +00:00
|
|
|
.indent {
|
2017-01-09 05:29:00 +00:00
|
|
|
padding-left : 1em;
|
|
|
|
word-wrap : normal;
|
2017-01-06 08:06:40 +00:00
|
|
|
}
|
2017-01-23 02:50:12 +00:00
|
|
|
|
|
|
|
//Animation for type ahead animation
|
|
|
|
|
|
|
|
.code-pop-animate { //Target
|
|
|
|
font-family: Consolas,Liberation Mono,Courier,monospace;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
margin: 0 auto;
|
|
|
|
-webkit-animation-delay: 6s;
|
|
|
|
animation-delay: 6;
|
|
|
|
-moz-animation-delay: 6s;
|
|
|
|
animation: type 6s steps(41, end);
|
|
|
|
-moz-animation: type 6s steps(41, end);
|
|
|
|
-webkit-animation: type 6s steps(41, end);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Click event trigger {
|
|
|
|
.code-trigger{
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.code-animate { //typing animation for fode
|
|
|
|
animation: type 6s steps(41, end);
|
|
|
|
-moz-animation: type 6s steps(41, end);
|
|
|
|
-webkit-animation: type 6s steps(41, end);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes type {
|
|
|
|
from { width: 0; }
|
|
|
|
to {width:100%;}
|
|
|
|
}
|
|
|
|
|
|
|
|
@-webkit-keyframes type {
|
|
|
|
from { width: 0; }
|
|
|
|
to {width:100%;}
|
|
|
|
}
|