woodpecker/web/src/screens/repo/screens/build/logs/components/term.less
2019-11-12 14:27:39 +01:00

87 lines
1.3 KiB
Plaintext

@import '~shared/styles/colors';
@import '~shared/styles/ansi';
.term {
background: @gray-light;
border-radius: 2px;
padding: 20px;
.exitcode {
-moz-user-select: none;
-webkit-user-select: none;
color: rgba(0, 0, 0, 0.3);
font-family: 'Roboto Mono', monospace;
font-size: 13px;
margin-top: 10px;
min-width: 20px;
padding: 0px;
user-select: none;
}
}
.line {
color: @gray-dark;
display: flex;
line-height: 19px;
max-width: 100%;
a,
span,
div {
font-family: 'Roboto Mono', monospace;
font-size: 12px;
}
a {
text-decoration: none;
color: rgba(0, 0, 0, 0.3);
}
div:first-child {
-webkit-user-select: none;
color: rgba(0, 0, 0, 0.3);
min-width: 20px;
padding-right: 20px;
user-select: none;
}
div:nth-child(2) {
flex: 1 1 auto;
min-width: 0px;
white-space: pre-wrap;
word-wrap: break-word;
}
div:last-child {
-webkit-user-select: none;
color: rgba(0, 0, 0, 0.3);
padding-left: 20px;
user-select: none;
}
}
.highlight {
.line;
background-color: @yellow;
}
// log loading message
.loading {
background: @gray-light;
border-radius: 2px;
font-family: 'Roboto Mono', monospace;
font-size: 13px;
padding: 20px;
}
// log error message
.error {
background: @gray-light;
border-radius: 2px;
color: @red;
font-size: 14px;
margin-bottom: 10px;
padding: 20px;
}