Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4132 Lượt xem

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!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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">"
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 2 24
8704
1
thg 9 23
2754
1
thg 9 23
1278
1
thg 3 15
3837
0
thg 3 15
3548