Mercurial > libervia-templates
annotate default/static/ticket.css @ 64:767509e8c272
ticket/item: added padding to label
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Nov 2017 18:41:13 +0100 |
parents | a9ecc765214c |
children | 9834106678da |
rev | line source |
---|---|
56 | 1 @import 'blog.css'; /* needed as blog/articles.html is included */ |
2 | |
3 .instructions { | |
4 font-style: italic; | |
5 text-align: center; | |
6 } | |
7 | |
8 .instructions span { | |
9 padding: 0.3em; | |
10 } | |
11 | |
12 .tickets table { | |
13 margin: 0 auto; | |
14 } | |
15 | |
16 .tickets tr:nth-child(even) { | |
17 background: #CCC9; | |
18 } | |
19 | |
20 .tickets tr:nth-child(odd) { | |
21 background: #FFF; | |
22 } | |
23 | |
24 .tickets tbody tr:hover { | |
25 background: yellow; | |
26 } | |
27 | |
28 .tickets tbody tr.severity_major .td_title a::before { | |
29 content: '⚠ '; | |
30 color: red; | |
31 } | |
32 | |
33 .tickets tbody tr.status_closed { | |
34 text-decoration: line-through; | |
35 color: grey; | |
36 } | |
37 | |
38 /* single ticket */ | |
39 | |
40 .ticket { | |
41 padding: 20px; | |
42 max-width: 500px; | |
43 margin: 0 auto; | |
44 } | |
45 | |
46 .view .xmlui_widget { | |
47 width: auto; | |
48 } | |
49 | |
63
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
50 .view div.xmlui_cont div.xmlui_cont { |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
51 display: grid; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
52 grid-template-columns: min-content 1fr; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
53 } |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
54 |
56 | 55 .view #label_wid_title, |
56 .view #label_wid_body, | |
57 .view #label_wid_id, | |
58 .view #label_wid_comments_uri, | |
59 .view #wid_comments_uri { | |
60 display: none | |
61 } | |
62 | |
63
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
63 .view .xmlui_label { |
64 | 64 padding-right: 2em; |
56 | 65 } |
66 | |
67 .view #wid_id { | |
68 margin: 0; | |
69 font-style: italic; | |
63
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
70 grid-column-start: 1; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
71 grid-column-end: 3; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
72 text-align: right; |
56 | 73 } |
74 | |
75 .view .xmlui_label { | |
76 font-weight: bold; | |
77 float: left; | |
78 color: #808080cc; | |
79 } | |
80 | |
81 .view #wid_title { | |
82 font-weight: bold; | |
83 display: block; | |
84 text-align: center; | |
63
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
85 grid-column-start: 1; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
86 grid-column-end: 3; |
56 | 87 } |
61 | 88 .view #wid_title::first-letter { |
56 | 89 text-transform: uppercase; |
90 } | |
91 | |
92 .view #wid_labels span { | |
93 font-size: 0.8em; | |
94 background: #eae3e3; | |
95 font-variant: small-caps; | |
96 border: 1px solid black; | |
97 border-radius: 0.5em; | |
98 padding: 0 2px; | |
99 white-space: nowrap; | |
100 } | |
101 | |
102 .view #wid_labels span.value_work_in_progress { | |
103 background: yellow; | |
104 } | |
105 | |
106 .view #wid_type { | |
107 font-weight: bold; | |
108 } | |
109 | |
110 .view #wid_type span.value_bug::after { | |
111 content: ' 🐛'; | |
112 color: red; | |
113 } | |
114 | |
115 .view #wid_severity span.value_major { | |
116 font-weight: bold; | |
117 color: red; | |
118 } | |
119 | |
120 .view #wid_severity span.value_major::after { | |
121 content: '⚠ '; | |
122 } | |
123 | |
124 .view #wid_body { | |
125 white-space: pre-wrap; | |
126 max-height: 500px; | |
127 overflow: auto; | |
128 resize: both; | |
129 background-color: white; | |
130 padding: 5px; | |
131 text-align: justify; | |
132 border: 1px solid black; | |
133 border-radius: 5px; | |
63
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
134 grid-column-start: 1; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
135 grid-column-end: 3; |
a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
Goffi <goffi@goffi.org>
parents:
61
diff
changeset
|
136 display: block; |
56 | 137 } |
138 | |
139 .comment_post { | |
140 margin-top: 3em; | |
141 } |