Mercurial > libervia-templates
annotate default/static/ticket.css @ 63:a9ecc765214c
ticket(view): use CSS grid to display metadata, and put data next to labels
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 11 Nov 2017 17:20:28 +0100 |
parents | f76ec90e0e1e |
children | 767509e8c272 |
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 { |
56 | 64 } |
65 | |
66 .view #wid_id { | |
67 margin: 0; | |
68 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
|
69 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
|
70 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
|
71 text-align: right; |
56 | 72 } |
73 | |
74 .view .xmlui_label { | |
75 font-weight: bold; | |
76 float: left; | |
77 color: #808080cc; | |
78 } | |
79 | |
80 .view #wid_title { | |
81 font-weight: bold; | |
82 display: block; | |
83 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
|
84 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
|
85 grid-column-end: 3; |
56 | 86 } |
61 | 87 .view #wid_title::first-letter { |
56 | 88 text-transform: uppercase; |
89 } | |
90 | |
91 .view #wid_labels span { | |
92 font-size: 0.8em; | |
93 background: #eae3e3; | |
94 font-variant: small-caps; | |
95 border: 1px solid black; | |
96 border-radius: 0.5em; | |
97 padding: 0 2px; | |
98 white-space: nowrap; | |
99 } | |
100 | |
101 .view #wid_labels span.value_work_in_progress { | |
102 background: yellow; | |
103 } | |
104 | |
105 .view #wid_type { | |
106 font-weight: bold; | |
107 } | |
108 | |
109 .view #wid_type span.value_bug::after { | |
110 content: ' 🐛'; | |
111 color: red; | |
112 } | |
113 | |
114 .view #wid_severity span.value_major { | |
115 font-weight: bold; | |
116 color: red; | |
117 } | |
118 | |
119 .view #wid_severity span.value_major::after { | |
120 content: '⚠ '; | |
121 } | |
122 | |
123 .view #wid_body { | |
124 white-space: pre-wrap; | |
125 max-height: 500px; | |
126 overflow: auto; | |
127 resize: both; | |
128 background-color: white; | |
129 padding: 5px; | |
130 text-align: justify; | |
131 border: 1px solid black; | |
132 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
|
133 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
|
134 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
|
135 display: block; |
56 | 136 } |
137 | |
138 .comment_post { | |
139 margin-top: 3em; | |
140 } |