Skip to content

Commit

Permalink
feat: add _actions.less
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed Jan 11, 2023
1 parent 1e45c2c commit 59beb2d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 55 deletions.
57 changes: 2 additions & 55 deletions web_src/js/components/RepoActionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ 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
Expand Down Expand Up @@ -336,8 +338,6 @@ export function initRepositoryActionView() {
}
}
// ================
// action view right
Expand Down Expand Up @@ -385,56 +385,3 @@ 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>
51 changes: 51 additions & 0 deletions web_src/less/_actions.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
@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, 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 {
}
}
}
1 change: 1 addition & 0 deletions web_src/less/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
@import "_review";
@import "_package";
@import "_runner";
@import "_actions";

@import "./helpers.less";

0 comments on commit 59beb2d

Please sign in to comment.