summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-10 21:39:12 +0300
committerAndrew Dolgov <[email protected]>2018-12-10 21:39:12 +0300
commit93dfdb2fcd883db65304e2b410f4af44e916ed33 (patch)
tree408c7e0304396d2de803fe4c9ac718bee838ab5f /classes
parentad5a43bf6620b1161bd6db0e6c0768eea2b8e50b (diff)
exp: tweak headline label styles
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/article.php6
-rw-r--r--classes/pref/labels.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/classes/article.php b/classes/article.php
index 7253f2ead..4dbf2ca3a 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -629,9 +629,9 @@ class Article extends Handler_Protected {
$labels_str = "";
foreach ($labels as $l) {
- $labels_str .= sprintf("<span class='hlLabelRef'
- style='color : %s; background-color : %s'>%s</span>",
- $l[2], $l[3], $l[1]);
+ $labels_str .= sprintf("<div1 class='label'
+ style='color : %s; background-color : %s'><i class='material-icons' style='color : %s'>label</i><div>%s</div></div1>",
+ $l[2], $l[3], $l[2], $l[1]);
}
return $labels_str;
diff --git a/classes/pref/labels.php b/classes/pref/labels.php
index a58e33ac9..b4c4d425e 100644
--- a/classes/pref/labels.php
+++ b/classes/pref/labels.php
@@ -27,7 +27,7 @@ class Pref_Labels extends Handler_Protected {
print "<div class=\"dlgSecCont\">";
$fg_color = $line['fg_color'];
- $bg_color = $line['bg_color'];
+ $bg_color = $line['bg_color'] ? $line['bg_color'] : '#fff7d5';
print "<input style='font-size : 16px; color : $fg_color; background : $bg_color; transition : background 0.1s linear'
id='labelEdit_caption' name='caption' dojoType='dijit.form.ValidationTextBox'