Commit 55e072c8 authored by Tristan Cavelier's avatar Tristan Cavelier

[erp5_web_renderjs_ui] Add icons to header action bar buttons

parent fba2f021
...@@ -786,9 +786,9 @@ div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls a:active { ...@@ -786,9 +786,9 @@ div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls a:active {
@media only screen and (min-width: 45em) and (max-width: 85em), not screen and (max-width: 85em) { @media only screen and (min-width: 45em) and (max-width: 85em), not screen and (max-width: 85em) {
div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls button::before, div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls button::before,
div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls a::before { div[data-gadget-scope='header'] .ui-header .ui-controlgroup-controls a::before {
width: 1em;
margin-right: 6pt; margin-right: 6pt;
text-align: center; text-align: center;
width: 1em;
} }
} }
@media not screen and (min-width: 45em) { @media not screen and (min-width: 45em) {
...@@ -973,7 +973,9 @@ div[data-gadget-scope='header'] .ui-header ul { ...@@ -973,7 +973,9 @@ div[data-gadget-scope='header'] .ui-header ul {
min-width: 5em; min-width: 5em;
} }
div[data-gadget-scope='header'] .ui-header ul li a::before { div[data-gadget-scope='header'] .ui-header ul li a::before {
display: none; margin-right: 6pt;
text-align: center;
width: 1em;
} }
} }
/********************************************** /**********************************************
......
...@@ -371,6 +371,11 @@ a { ...@@ -371,6 +371,11 @@ a {
background-color: @colorblocklinkbackground; background-color: @colorblocklinkbackground;
} }
} }
.beforeHeaderButton() {
margin-right: @margin-size;
text-align: center;
width: 1em;
}
/********************************************** /**********************************************
* Preformatted * Preformatted
...@@ -960,9 +965,7 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -960,9 +965,7 @@ div[data-gadget-scope='header'] .ui-header {
&::before { &::before {
@media @tablet, @desktop { @media @tablet, @desktop {
width: 1em; .beforeHeaderButton()
margin-right: @margin-size;
text-align: center;
} }
@media @smartphone { @media @smartphone {
...@@ -1135,7 +1138,7 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1135,7 +1138,7 @@ div[data-gadget-scope='header'] .ui-header {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
&::before { &::before {
display: none; .beforeHeaderButton()
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment