Sfoglia il codice sorgente

Remove _actions.less (#22885)

Fix #22883.

Revert commit 59beb2dba6.
tags/v1.19.0-rc0
Jason Song 1 anno fa
parent
commit
00b18ab42f
Nessun account collegato all'indirizzo email del committer

+ 53
- 2
web_src/js/components/RepoActionView.vue Vedi File

@@ -280,8 +280,6 @@ export function initRepositoryActionView() {

<style scoped lang="less">

// some elements are not managed by vue, so we need to use _actions.less in addition.

.action-view-body {
display: flex;
height: calc(100vh - 266px); // fine tune this value to make the main view has full height
@@ -411,3 +409,56 @@ export function initRepositoryActionView() {
}
</style>

<style lang="less">
// some elements are not managed by vue, so we need to use global style

// TODO: the parent element's full height doesn't work well now
body > div.full.height {
padding-bottom: 0;
}

.job-status-rotate {
animation: job-status-rotate-keyframes 1s linear infinite;
}
@keyframes job-status-rotate-keyframes {
100% {
transform: rotate(360deg);
}
}

.job-step-section {
margin: 10px;
.job-step-logs {
font-family: monospace, monospace;
.job-log-line {
display: flex;
.line-num {
width: 48px;
color: var(--color-grey-light);
text-align: right;
}
.log-time {
color: var(--color-grey-light);
margin-left: 10px;
white-space: nowrap;
}
.log-msg {
flex: 1;
word-break: break-all;
white-space: break-spaces;
margin-left: 10px;
}
}

// TODO: group support
.job-log-group {
}

.job-log-group-summary {
}

.job-log-list {
}
}
}
</style>

+ 0
- 43
web_src/less/_actions.less Vedi File

@@ -1,43 +0,0 @@
@import "variables.less";

// TODO: the parent element's full height doesn't work well now
body > div.full.height {
padding-bottom: 0;
}

.job-status-rotate {
animation: job-status-rotate-keyframes 1s linear infinite;
}
@keyframes job-status-rotate-keyframes {
100% {
transform: rotate(360deg);
}
}

.job-step-section {
margin: 10px;
.job-step-logs {
font-family: monospace;
.job-log-line {
display: flex;
.line-num {
width: 48px;
color: var(--color-grey-light);
text-align: right;
}
.log-time {
color: var(--color-grey-light);
margin-left: 10px;
white-space: nowrap;
}
.log-msg {
flex: 1;
word-break: break-all;
white-space: break-spaces;
margin-left: 10px;
}
}

// TODO: group support
}
}

+ 0
- 1
web_src/less/index.less Vedi File

@@ -38,6 +38,5 @@
@import "_review";
@import "_package";
@import "_runner";
@import "_actions";

@import "./helpers.less";

Loading…
Annulla
Salva