[IMP] mass_mailing: enable font-family customisation for buttons and links.

Before this commit:

The font-family style of buttons and links could not be changed.

After this commit:

The fonts of a buttons and links can be changed.

Task - 2841732

closes odoo/odoo#121926

Signed-off-by: Antoine Guenet (age) <age@odoo.com>
This commit is contained in:
Deependra Solanki
2023-06-26 20:00:50 +02:00
parent 16c4debe1e
commit 3157b8e50a
3 changed files with 25 additions and 1 deletions
@@ -91,7 +91,6 @@ div.col:not([align]) {
}
a:not(.btn), .btn.btn-link {
font-weight: bold;
padding-left: 0 !important;
padding-right: 0 !important;
border: none!important;
@@ -671,11 +671,27 @@
</we-row>
<!-- LINKS -->
<we-row string="Links" class="o_design_tab_title">
<we-input data-customize-css-property=""
data-css-property="font-size"
data-selector-text="a:not(.btn), a.btn.btn-link"
data-unit="px"/>
<we-colorpicker data-customize-css-property=""
data-css-property="color"
data-selector-text="a:not(.btn), a.btn.btn-link"
data-no-transparency="true"
data-color-prefix="text-"/>
</we-row>
<we-row string="" class="o_we_sublevel_1 o_short_title">
<we-fontfamilypicker data-selector-text="a:not(.btn), a.btn.btn-link"/>
<span></span> <!--Separate the select from the buttons (styling)-->
<we-button title="Bold" class="fa fa-fw fa-bold" data-no-preview="true" data-toggle="true"
data-customize-css-property="bolder"
data-selector-text="a:not(.btn), a.btn.btn-link"
data-css-property="font-weight"/>
<we-button title="Italic" class="fa fa-fw fa-italic" data-no-preview="true" data-toggle="true"
data-customize-css-property="italic"
data-selector-text="a:not(.btn), a.btn.btn-link"
data-css-property="font-style"/>
<we-button title="Underline" class="fa fa-fw fa-underline" data-no-preview="true" data-toggle="true"
data-customize-css-property="underline"
data-selector-text="a:not(.btn), a.btn.btn-link"
@@ -703,6 +719,9 @@
<we-button data-apply-button-size="btn-md">Medium</we-button>
<we-button data-apply-button-size="btn-lg">Large</we-button>
</we-select>
<we-row string="Font Family" class="o_we_sublevel_1">
<we-fontfamilypicker data-selector-text="a.btn.btn-primary, a.btn.btn-outline-primary, a.btn.btn-fill-primary"/>
</we-row>
<we-row string="Border" class="o_we_sublevel_1">
<we-input data-customize-css-property=""
data-css-property="border-width"
@@ -750,6 +769,9 @@
<we-button data-apply-button-size="btn-md">Medium</we-button>
<we-button data-apply-button-size="btn-lg">Large</we-button>
</we-select>
<we-row string="Font Family" class="o_we_sublevel_1">
<we-fontfamilypicker data-selector-text="a.btn.btn-secondary, a.btn.btn-outline-secondary, a.btn.btn-fill-secondary"/>
</we-row>
<we-row string="Border" class="o_we_sublevel_1">
<we-input data-customize-css-property=""
data-css-property="border-width"
@@ -24,6 +24,9 @@
p, p > *, li, li > * {
color: #6c757d;
}
a:not(.btn), a.btn.btn-link {
font-weight: bolder;
}
hr {
border-top-color: #ced4da !important;
}