blob: 4551f1ffd51bd377be0d52ebf71e97b17c5d362d [file] [log] [blame]
Adrià Vilanova Martínez54964a52022-10-26 23:53:29 +02001import {css} from 'lit';
2
3// TODO: remove this and substitute it with proper localization.
4export const kActionHeadings = {
5 0: 'Unknown action',
6 1: 'Reply',
7 2: 'Move to a forum',
8 3: 'Mark as duplicate of a thread',
9 4: 'Unmark duplicate',
10 5: 'Change thread attributes',
11 6: 'Reply with canned response',
12 16: 'Star/unstar thread',
13 17: 'Subscribe/unsubscribe to thread',
14 18: 'Vote thread',
15 19: 'Report thread',
16};
17
18export const kSupportedActions = new Set([6]);
19
20export const kActionStyles = css`
21 .action {
22 margin-bottom: 20px;
23 }
24
25 .header {
26 display: flex;
27 align-items: center;
28 margin-bottom: 8px;
29 }
30
31 .step {
32 display: flex;
33 position: relative;
34 align-items: center;
35 justify-content: center;
36
37 min-height: 30px;
38 min-width: 30px;
39 margin-inline-end: 8px;
40
41 font-weight: 500;
42 font-size: 18px;
43
44 border-radius: 50%;
45 color: white;
46 background-color: #018786;
47 }
48
49 :is(.action--idle, .action--running) .step {
50 color: black;
51 background-color: #d1d1d1;
52 }
53
54 .action--error .step {
55 background-color: #c30000;
56 }
57
58 .step mwc-circular-progress {
59 position: absolute;
60 --mdc-theme-primary: #018786;
61 }
62
63 .title {
64 font-weight: 500;
65 margin: 0;
66 flex-grow: 1;
67 }
68
69 .header .select {
70 flex-grow: 1;
71 width: 300px;
72 padding: 4px;
73 margin-inline-end: 8px;
74 font-size: 16px;
75 }
76`;