1 /**
2 Copyright: Copyright (c) 2018, Joakim Brännström. All rights reserved.
3 License: MPL-2
4 Author: Joakim Brännström (joakim.brannstrom@gmx.com)
5 
6 This Source Code Form is subject to the terms of the Mozilla Public License,
7 v.2.0. If a copy of the MPL was not distributed with this file, You can obtain
8 one at http://mozilla.org/MPL/2.0/.
9 */
10 module dextool.plugin.mutate.backend.report.html.constants;
11 
12 import arsd.dom : Element;
13 
14 struct Html {
15     static immutable ext = ".html";
16     static immutable dir = "html";
17     static immutable fileDir = "files";
18 }
19 
20 // CSS style
21 
22 struct TableStat {
23     static immutable style = "stat_tbl";
24 }
25 
26 struct Table {
27     static immutable hdrStyle = "tg-g59y";
28     static immutable rowStyle = "tg-0lax";
29     static immutable rowDarkStyle = "tg-0lax_dark";
30 }
31 
32 struct MatrixTable {
33     static immutable style = "vertical_tbl";
34     static immutable hdrStyle = "tg";
35 }
36 
37 struct DashboardCss {
38     static Element h2(Element root, string txt) @trusted {
39         return root.addChild("h2", txt).addClass("sub-header");
40     }
41 
42     static Element defaultTable(Element root) @trusted {
43         return root.addClass("table table-striped");
44     }
45 
46     static Element sortableTableDiv(Element root) @trusted {
47         return root.addClass("table-sortable-div");
48     }
49 
50     static Element sortableTable(Element root) @trusted {
51         return root.addClass("table-sortable");
52     }
53 
54     static Element sortableTableCol(Element root) @trusted {
55         return root.addClass("table-col-sortable");
56     }
57 }