Projet

Général

Profil

0001-style-add-an-icon-to-the-journal-items-9903.patch

Frédéric Péters, 08 février 2016 09:22

Télécharger (1,95 ko)

Voir les différences:

Subject: [PATCH] style: add an icon to the journal items (#9903)

 wcs/forms/common.py              |  5 +++++
 wcs/qommon/static/css/qommon.css | 29 +++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
wcs/forms/common.py
324 324
            if evo.status:
325 325
                previous_status = evo.status
326 326

  
327
            status_colour = self.filled.get_status(previous_status).colour
328
            fg_colour = misc.get_foreground_colour(status_colour)
329

  
327 330
            r += htmltext('<li class="%s">' % klass)
331
            r += htmltext('<span class="item" style="background: #%s; color: %s;"></span>' %
332
                    (status_colour, fg_colour))
328 333
            r += htmltext('<div>')
329 334
            r += status_block.getvalue()
330 335

  
wcs/qommon/static/css/qommon.css
525 525
	margin-bottom: 30px;
526 526
}
527 527

  
528
ul#evolutions li span.item {
529
	/* left circle icon */
530
	position: absolute;
531
	text-align: center;
532
	line-height: 40px;
533
	color: #666;
534
	font-family: FontAwesome;
535
	width: 40px;
536
	height: 40px;
537
	display: block;
538
	left:  10px;
539
	border-radius: 20px;
540
	border: 1px solid #aaa;
541
	top: 20px;
542
	color: #666 !important;
543
}
544

  
545
ul#evolutions li:first-child span.item:before {
546
	content: "\f067"; /* plus */
547
}
548

  
549
ul#evolutions li.msg-system span.item:before {
550
	content: "\f141"; /* ellipsis-h */
551
}
552

  
553
ul#evolutions li span.item:before {
554
	content: "\f075"; /* comment */
555
}
556

  
528 557
div.halfwidth {
529 558
	width: 45%;
530 559
	float: left;
531
-