Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
erp5
Commits
3033a256
Commit
3033a256
authored
Nov 29, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Factorise erp5 css code
parent
3c7716b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
41 deletions
+71
-41
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
...emplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
+19
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
...emplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
+3
-3
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
...teItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+49
-33
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
3033a256
...
@@ -816,30 +816,43 @@ div[data-gadget-scope='header'] .ui-header h1 > span::before {
...
@@ -816,30 +816,43 @@ div[data-gadget-scope='header'] .ui-header h1 > span::before {
margin-right
:
6pt
;
margin-right
:
6pt
;
}
}
}
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
{
height
:
100%
;
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
{
text-align
:
left
;
height
:
100%
;
width
:
100%
;
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
{
display
:
block
;
display
:
block
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
::before
{
display
:
inline-block
;
display
:
inline-block
;
width
:
42pt
;
width
:
42pt
;
}
}
@media
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
),
not
screen
and
(
min-width
:
45em
)
{
@media
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
),
not
screen
and
(
min-width
:
45em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
::before
{
text-align
:
center
;
text-align
:
center
;
}
}
}
}
@media
not
screen
and
(
max-width
:
85em
)
{
@media
not
screen
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
::before
{
width
:
12pt
;
width
:
12pt
;
margin-left
:
24pt
;
margin-left
:
24pt
;
margin-right
:
6pt
;
margin-right
:
6pt
;
}
}
}
}
@media
not
screen
and
(
min-width
:
45em
)
{
@media
not
screen
and
(
min-width
:
45em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
a
::before
,
div
[
data-gadget-scope
=
'header'
]
.ui-header
h1
form
button
::before
{
width
:
30pt
;
width
:
30pt
;
}
}
}
}
...
@@ -873,6 +886,7 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -873,6 +886,7 @@ div[data-gadget-scope='header'] .ui-header ul {
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
a
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
a
{
padding-top
:
3pt
;
padding-top
:
3pt
;
padding-bottom
:
3pt
;
padding-bottom
:
3pt
;
line-height
:
inherit
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
View file @
3033a256
...
@@ -228,7 +228,7 @@
...
@@ -228,7 +228,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
2.1204.63259.57958
</string>
</value>
<value>
<string>
96
3.50757.27093.23739
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
05133981.01
</float>
<float>
15
11952591.56
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
3033a256
...
@@ -813,8 +813,39 @@ div[data-gadget-scope='editor_panel'] {
...
@@ -813,8 +813,39 @@ 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;
line-height: inherit;
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,21 +969,26 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -938,21 +969,26 @@ 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 and button
a {
form {
height: 100%;
button {
text-align: left;
height: 100%;
width: 100%;
}
}
a, form button {
display: block;
display: block;
// Do not put link on multi line in case of small screen
// Do not put link on multi line in case of small screen
...
@@ -999,28 +1035,12 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -999,28 +1035,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 +1073,9 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -1053,13 +1073,9 @@ div[data-gadget-scope='header'] .ui-header {
}
}
}
}
}
}
}
}
}
}
}
}
/**********************************************
/**********************************************
* Gadget: main
* Gadget: main
**********************************************/
**********************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment