Coverage for lobster/tools/core/html_report/html_report_css.py: 100%
1 statements
« prev ^ index » next coverage.py v7.10.7, created at 2026-09-22 04:43 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2026-09-22 04:43 +0000
1# LOBSTER - Lightweight Open BMW Software Traceability Evidence Report
2# Copyright (C) 2024-2025 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU Affero General Public License as
6# published by the Free Software Foundation, either version 3 of the
7# License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12# Affero General Public License for more details.
13#
14# You should have received a copy of the GNU Affero General Public
15# License along with this program. If not, see
16# <https://www.gnu.org/licenses/>.
18CSS = """
19.button {
20 background-color: #818589;
21 border: none;
22 border-radius: 5px;
23 color: white;
24 padding: 12px 25px;
25 text-align: center;
26 text-decoration: none;
27 display: inline-block;
28 font-size: 14px;
29 margin: 4px 2px;
30 cursor: pointer
31}
33.button active:before {
34 position: absolute;
35 left: 0;
36 top: 0;
37 display: inline-block;
38 width: 0;
39 height: 0;
40 border-style: solid;
41 border-width: 15px 15px 0 0;
42 border-color: #333 transparent transparent transparent
43}
45.buttonActive.button {
46 text-decoration: none;
47 border: 5px solid #000000
48}
50.buttonOK {
51 background-color: #04AA6D;
52 color: white;
53 border: 2px solid #04AA6D;
54 border-radius: 5px
55}
57.buttonOK:hover {
58 background-color: #026641;
59 color: white;
60 border: 2px solid #026641
61}
63.buttonActive.buttonOK {
64 text-decoration: none;
65 border: 5px solid #026641
66}
68.buttonPartial {
69 background-color: #17a2b8;
70 color: white;
71 border: 2px solid #17a2b8;
72 border-radius: 5px
73}
75.buttonPartial:hover {
76 background-color: #0e616e;
77 color: white;
78 border: 2px solid #0e616e
79}
81.buttonActive.buttonPartial {
82 text-decoration: none;
83 border: 5px solid #0e616e
84}
86.buttonMissing {
87 background-color: #f44336;
88 color: white;
89 border: 2px solid #f44336;
90 border-radius: 5px
91}
93.buttonMissing:hover {
94 background-color: #a91409;
95 color: white;
96 border: 2px solid #a91409
97}
99.buttonActive.buttonMissing {
100 text-decoration: none;
101 border: 5px solid #a91409
102}
104.buttonJustified {
105 background-color: #6c757d;
106 color: white;
107 border: 2px solid #6c757d;
108 border-radius: 5px
109}
111.buttonJustified:hover {
112 background-color: #41464b;
113 color: white;
114 border: 2px solid #41464b
115}
117.buttonActive.buttonJustified {
118 text-decoration: none;
119 border: 5px solid #41464b
120}
122.buttonWarning {
123 background-color: #ffbf00;
124 color: white;
125 border: 2px solid #ffbf00;
126 border-radius: 5px
127}
129.buttonWarning:hover {
130 background-color: #997300;
131 color: white;
132 border: 2px solid #997300
133}
135.buttonActive.buttonWarning {
136 text-decoration: none;
137 border: 5px solid #997300
138}
140.buttonBlue {
141 background-color: #0000ff;
142 color: white;
143 border: 2px solid #0000ff;
144 border-radius: 5px
145}
147.buttonBlue:hover {
148 background-color: #000099;
149 color: white;
150 border: 2px solid #000099
151}
153.buttonActive.buttonBlue {
154 text-decoration: none;
155 border: 5px solid #000099
156}
157"""