add icons for transitions btns - work in progress

This commit is contained in:
nobohan 2018-04-28 16:05:03 +02:00
parent 2d57757682
commit 5d8b764057
6 changed files with 21 additions and 3 deletions

View File

@ -0,0 +1,12 @@
.bt-task-start::before {
content: url(../svg/play.svg);
}
.bt-task-cancel::before {
content: url(../svg/times.svg);
}
.bt-task-close::before {
content: url(../svg/stop.svg);
}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"/></svg>

After

Width:  |  Height:  |  Size: 191 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"/></svg>

After

Width:  |  Height:  |  Size: 185 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M323.1 441l53.9-53.9c9.4-9.4 9.4-24.5 0-33.9L279.8 256l97.2-97.2c9.4-9.4 9.4-24.5 0-33.9L323.1 71c-9.4-9.4-24.5-9.4-33.9 0L192 168.2 94.8 71c-9.4-9.4-24.5-9.4-33.9 0L7 124.9c-9.4 9.4-9.4 24.5 0 33.9l97.2 97.2L7 353.2c-9.4 9.4-9.4 24.5 0 33.9L60.9 441c9.4 9.4 24.5 9.4 33.9 0l97.2-97.2 97.2 97.2c9.3 9.3 24.5 9.3 33.9 0z"/></svg>

After

Width:  |  Height:  |  Size: 399 B

View File

@ -31,15 +31,15 @@ class DefaultTaskDefinition implements \Chill\TaskBundle\Workflow\TaskWorkflowDe
const TRANSITION_METADATA = [
'close' => [
'verb' => 'close',
'class' => 'sc-button task-close'
'class' => 'sc-button bt-task-close'
],
'cancel' => [
'verb' => 'cancel',
'class' => 'sc-button bt-delete task-cancel'
'class' => 'sc-button bt-task-cancel'
],
'start' => [
'verb' => 'start',
'class' => 'sc-button bt-update task-start'
'class' => 'sc-button bt-task-start'
]
];

3
chill.webpack.config.js Normal file
View File

@ -0,0 +1,3 @@
// this file loads all assets from the Chill task bundle
require('./Resources/public/sass/_task.scss');