Commit e34dcc97 authored by Vincent Bechu's avatar Vincent Bechu

[erp5_web_renderjs_ui] Factorize erp5 css code

parent 6adee5ea
...@@ -813,8 +813,38 @@ div[data-gadget-scope='editor_panel'] { ...@@ -813,8 +813,38 @@ div[data-gadget-scope='editor_panel'] {
min-width: @sub-line-min-width-desktop; min-width: @sub-line-min-width-desktop;
} }
div[data-gadget-scope='header'] .ui-header { .renderTabletSubLink() {
padding-top: @half-margin-size;
padding-bottom: @half-margin-size;
white-space: nowrap;
overflow: hidden;
&::before {
font-size: 1.2em;
display: block;
}
}
.renderTabletSubListElement() {
flex: 1;
// XXX TODO Hardcoded color
border-left: 1px solid rgba(0, 0, 0, 0.55);
&:first-child {
border-left: none;
}
a {
display: block;
}
}
.renderTabletNotALinkTitle() {
padding-left: @headertitlespanleftmiddlepadding;
&::before {
margin-right:@headertitlespanleftlargemargin;
}
}
div[data-gadget-scope='header'] .ui-header {
position: fixed; position: fixed;
z-index: 1000; z-index: 1000;
text-align: center; text-align: center;
...@@ -938,17 +968,14 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -938,17 +968,14 @@ div[data-gadget-scope='header'] .ui-header {
} }
@media @tablet { @media @tablet {
padding-left: @headertitlespanleftmiddlepadding; .renderTabletNotALinkTitle();
&::before {
margin-right:@headertitlespanleftlargemargin;
}
} }
@media @smartphone { @media @smartphone {
padding-left: @headertitlespanleftsmallpadding; padding-left: @headertitlespanleftsmallpadding;
&::before { &::before {
margin-right:@headertitlespanleftsmallmargin; margin-right:@headertitlespanleftsmallmargin;
} }
} }
} }
// Clickable title // Clickable title
...@@ -999,28 +1026,12 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -999,28 +1026,12 @@ div[data-gadget-scope='header'] .ui-header {
li { li {
@media @tablet, @smartphone { @media @tablet, @smartphone {
flex: 1; .renderTabletSubListElement();
// XXX TODO Hardcoded color
border-left: 1px solid rgba(0, 0, 0, 0.55);
&:first-child {
border-left: none;
}
a {
display: block;
}
} }
@media @tablet { @media @tablet {
a { a {
padding-top: @half-margin-size; .renderTabletSubLink();
padding-bottom: @half-margin-size;
white-space: nowrap;
overflow: hidden;
&::before {
font-size: 1.2em;
display: block;
}
} }
} }
...@@ -1053,13 +1064,9 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1053,13 +1064,9 @@ div[data-gadget-scope='header'] .ui-header {
} }
} }
} }
} }
} }
} }
/********************************************** /**********************************************
* Gadget: main * Gadget: main
**********************************************/ **********************************************/
......
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