PHRAS-3341 change title color

This commit is contained in:
aina esokia
2021-02-11 18:00:43 +03:00
parent 5fa01a0438
commit f7ee9711ad
13 changed files with 42 additions and 22 deletions

View File

@@ -65747,13 +65747,13 @@ var previewRecordService = function previewRecordService(services) {
var basketIcon = '';
if (data.containerType !== null) {
if (data.containerType === 'feedback') {
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'push') {
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'regroup') {
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else {
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
}
}

View File

@@ -65747,13 +65747,13 @@ var previewRecordService = function previewRecordService(services) {
var basketIcon = '';
if (data.containerType !== null) {
if (data.containerType === 'feedback') {
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'push') {
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'regroup') {
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else {
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
}
}

View File

@@ -2048,6 +2048,10 @@ div#PREVIEWTITLEWRAPPER {
top: 10px;
}
div#PREVIEWTITLEWRAPPER span {
line-height: 25px;
}
.PNB10 {
position: absolute;
top: 10px;

File diff suppressed because one or more lines are too long

View File

@@ -2063,6 +2063,10 @@ div#PREVIEWTITLEWRAPPER {
top: 10px;
}
div#PREVIEWTITLEWRAPPER span {
line-height: 25px;
}
.PNB10 {
position: absolute;
top: 10px;

File diff suppressed because one or more lines are too long

View File

@@ -2065,6 +2065,10 @@ div#PREVIEWTITLEWRAPPER {
top: 10px;
}
div#PREVIEWTITLEWRAPPER span {
line-height: 25px;
}
.PNB10 {
position: absolute;
top: 10px;

File diff suppressed because one or more lines are too long

View File

@@ -384,13 +384,13 @@ const previewRecordService = services => {
let basketIcon = '';
if (data.containerType !== null ) {
if (data.containerType === 'feedback') {
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_validation.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'push') {
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket_push.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else if (data.containerType === 'regroup') {
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/story.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
} else {
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='20' class='btn-image' style='width:20px;height: 20px;'/>";
basketIcon = "<img src='/assets/common/images/icons/basket.png' title='' width='24' class='btn-image' style='width:24px;height: 24px;'/>";
}
}

View File

@@ -164,6 +164,9 @@ EM {
div#PREVIEWTITLEWRAPPER {
top: 10px;
span {
line-height: 25px;
}
}
.PNB10 {

View File

@@ -59,7 +59,7 @@ class PhraseanetExtension extends \Twig_Extension
{
return [
// change this version when you change JS file to force the navigation to reload js file
'jsFileVersion' => 4
'jsFileVersion' => 5
];
}

View File

@@ -273,15 +273,20 @@ class record_preview extends record_adapter
$this->title .= ' : </span> ' . parent::get_title($options);
break;
case "BASK":
$this->title .= $this->name . ' (' . $this->getNumber() . '/' . $this->total . ') - ' . parent::get_title($options);
$this->title = '<span style="color:#27bbe2;">';
$this->title .= $this->name . ' (' . $this->getNumber() . '/' . $this->total . ') : </span>' . parent::get_title($options);
break;
case "REG":
$this->title = '<span style="color:#27bbe2;">';
$this->title .= $this->name;
if ($this->getNumber() != 0) {
$this->title .= sprintf(
' (%s) - %s',$this->getNumber() . '/' . $this->total, parent::get_title($options)
' (%s) : </span> %s',$this->getNumber() . '/' . $this->total, parent::get_title($options)
);
} else {
$this->title .= '</span>';
}
break;

View File

@@ -916,9 +916,9 @@
</div>
<div id="PREVIEWBOX" class="PNB10 ui-dialog " style="overflow:hidden;">
<div id="PREVIEWTITLE" style="height:58px;bottom:auto;" class="PNB">
<div id="PREVIEWTITLE" style="height:70px;bottom:auto;" class="PNB">
<div class="PNB10 ui-corner-top" id='PREVIEWTITLEWRAPPER'>
<div style="padding-top: 0px; padding-left: 5px;">
<div style="padding-top: 6px; padding-left: 5px;">
<span id="SPANTITLE"> </span>
<br/>
<span id="PREVIEWTITLE_COLLNAME"> </span>
@@ -928,7 +928,7 @@
</div>
</div>
<div class="PNB" style="right:180px;">
<div class="PNB" style="top:58px;">
<div class="PNB" style="top:70px;">
<div id="PREVIEWLEFT" class="preview_col PNB" style="width:60%;right:auto;overflow:hidden;">
<div id="PREVIEWCURRENT" class="ui-corner-bottom PNB10" style="top:11px;height:116px;bottom:auto;">
<div id="PREVIEWCURRENTGLOB" style=""></div>
@@ -977,7 +977,7 @@
<span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span>
</button>
</div>
<div id="PREVIEWOTHERS" style="top:97px;" class="PNB10 ui-corner-all">
<div id="PREVIEWOTHERS" style="top:109px;" class="PNB10 ui-corner-all">
<div id="PREVIEWOTHERSINNER" style=""></div>
</div>
</div>