nci/static/css/sources/components/terminal.less

64 lines
951 B
Plaintext
Raw Normal View History

2015-05-10 17:18:02 +00:00
.terminal {
2015-06-14 15:24:03 +00:00
box-sizing: border-box;
2015-11-18 20:14:46 +00:00
position: relative;
&_header {
}
2015-07-08 20:37:31 +00:00
2015-05-10 17:18:02 +00:00
&_code {
display: table;
width: 100%;
padding: 10px 0;
color: #f1f1f1;
2015-11-18 20:14:46 +00:00
font-family: monospace;
font-size: 12px;
line-height: 18px;
2015-11-18 20:14:46 +00:00
white-space: pre-wrap;
word-wrap: break-word;
background-color: #2a2a2a;
counter-reset: line-numbering;
}
&_footer {
}
}
.code-line {
display: table-row;
2015-11-18 20:14:46 +00:00
&_counter {
display: table-cell;
width: 1px;
vertical-align: top;
2015-11-18 20:14:46 +00:00
text-align: right;
cursor: pointer;
text-decoration: none;
color: darken(@gray-lighter, 15%);
padding: 0 10px;
border-right: 1px solid rgba(255, 255, 255, 0.1);
white-space: nowrap;
2015-11-18 20:14:46 +00:00
&:before {
content: counter(line-numbering);
counter-increment: line-numbering;
2015-07-08 20:37:31 +00:00
}
2015-11-18 20:14:46 +00:00
&:hover {
text-decoration: none;
color: @gray-lighter;
}
}
&_body {
display: table-cell;
vertical-align: top;
padding: 0 10px;
2015-11-18 20:14:46 +00:00
}
&:hover {
background-color: #444;
2015-05-10 17:18:02 +00:00
}
}