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

For the website I'm trying to build I have to create custom button styles (unless there's a way to customize the default button styles).


This is easy enough when you edit the custom CSS/SCSS through the editor provided by the platform. But when I update the button styles and go back to the content editor, the "Save" button has fallen off the screen.


I'm editing the following button class using SCSS:


.btn {
    &.btn-outline-secondary {
        // style
    }
}

When I check the classes of the "Save" button in the browsers HTML editor it uses:

.btn.btn-primary


Which shouldn't mingle at all.


Does anyone else have this problem?
How can I fix this?


Thank you in advance!

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

I've solved this issue by using the main container ID: #wrapwrap as parent in de custom SCSS file.
The Odoo UI is outside of this ID'd wrapper, so your custom styles won't interfere with it.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 23
10308
2
thg 3 23
2585
2
thg 5 22
4643
0
thg 3 22
1727
1
thg 5 21
4546