跳至内容
菜单
此问题已终结
1 回复
4122 查看

Dear all,

I have created a module to add an additional style sheet to all reports. The goal is to define a global styling for all reports.

Have created a styleshet and inherited as followed:

<template id="assets_common" name="report_design" inherit_id="web.report_assets_common">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss" href="/report_design/static/src/scss/report_design.scss"/>
</xpath></template>

report_design.scss

.h2 {
  color: red;
}

​Unfortunately my h2 are not changing to read in my reports.

Could you please help me how to apply central changes to reports?
Thanks in advance!


形象
丢弃
最佳答案

If you want to change a h2 label "<h2>red text</h2>"

the correct css would be 
h2{
color: red;
}
The . selector match the class elements, example "<div class="h2">"
形象
丢弃
相关帖文 回复 查看 活动
3
2月 24
8693
1
9月 23
2741
1
9月 23
1264
1
3月 15
3830
0
3月 15
3541