Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new formatting for tasks #9859

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
129 changes: 95 additions & 34 deletions client/styles/task-runner.css
Original file line number Diff line number Diff line change
@@ -1,58 +1,119 @@
/* This file is manually maintained, it is not generated from SCSS sources */

/**
* holder of tasks
*/
.task {
padding-top: 20px;
}

.task__panel {
padding: 0 15px 15px 15px;
}

@media (min-width:992px) {
.task__list {
columns: 2;
column-gap: 100px;
}
padding: 15px;
max-width: 900px;
margin: 0 auto;
}

/**
* one task item
*/
.task__item {
padding-bottom: 30px;
}

@media (min-width:992px) {
.task__item {
display: inline-block;
width: 100%;
}
padding: 7.5px 0;
}

.task__title {
color: #303b4d;
margin: 0 0 8px;
/**
* add transition
*/
.task__item * {
transition: all 0.3s ease;
}

.task__description {
color: #43536d;
margin-bottom: 12px;
/**
* task title
*/
.task__item > div:first-child h3 {
margin: 0;
padding: 0;
font-size: 1rem;
}

.task__button {
/**
* task button
*/
.task__item > div:last-child .task__button {
border: 1px solid #ced5e1;
border-radius: 5px;
background-color: #f6f7f8;
color: #43536d;
display: inline-block;
margin-right: 10px;
padding: 6px 10px;
text-decoration: none;
transition: background-color 0.2s;
}

.task__button:last-child {
margin-right: 0;
/**
* task button hover
*/
.task__item > div:last-child .task__button:hover {
background-color: #1a5a93;
color: #fff;
}

.task__button:focus,
.task__button:hover {
background-color: #ced5e1;
/**
* desktop view
*/
@media (min-width:992px) {


/**
* add grid
*/
.task__item {
padding: 0;
border-top: 1px solid #004e7f;

display: grid;
grid-gap: 10px;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

/**
* show current row
*/
.task__item:hover {
background-color: #eee;
}


/**
* add padding to make it work better with BG colour
*/
.task__item > div {
padding: 15px;
}

/**
* set first col
*/
.task__item > div:first-child {
grid-column: span 5;
}

/**
* hide description
*/
.task__item > div:first-child div.task__description {
color: #999;
font-size: 0.7rem;
}

/**
* show description on hover
*/
.task__item:hover > div:first-child div.task__description {
font-size: 1rem;
color: #000;
}

/**
* outline button to right
*/
.task__item > div:last-child{
text-align: right;
}

}