mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add icons for transitions btns - work in progress
This commit is contained in:
parent
2d57757682
commit
5d8b764057
12
Resources/public/sass/_task.scss
Normal file
12
Resources/public/sass/_task.scss
Normal 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);
|
||||
}
|
1
Resources/public/svg/play.svg
Normal file
1
Resources/public/svg/play.svg
Normal 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 |
1
Resources/public/svg/stop.svg
Normal file
1
Resources/public/svg/stop.svg
Normal 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 |
1
Resources/public/svg/times.svg
Normal file
1
Resources/public/svg/times.svg
Normal 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 |
@ -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
3
chill.webpack.config.js
Normal file
@ -0,0 +1,3 @@
|
||||
// this file loads all assets from the Chill task bundle
|
||||
|
||||
require('./Resources/public/sass/_task.scss');
|
Loading…
x
Reference in New Issue
Block a user