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
940c8b1d
Commit
940c8b1d
authored
Nov 29, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] fixup
parent
3033a256
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
146 additions
and
44 deletions
+146
-44
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.js
...TemplateItem/web_page_module/rjs_gadget_erp5_header_js.js
+4
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
...mplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
+5
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
+2
-2
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
+70
-16
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
+2
-2
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
+61
-14
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.js
View file @
940c8b1d
...
...
@@ -235,12 +235,12 @@
promise_list
=
[];
if
(
modification_dict
.
hasOwnProperty
(
'
desktop
'
))
{
if
(
this
.
state
.
desktop
)
{
if
(
this
.
element
.
classList
.
contains
(
'
tablet-mode
'
))
{
this
.
element
.
classList
.
remove
(
'
tablet-mode
'
);
if
(
this
.
element
.
classList
.
contains
(
'
desktop-panel-closed
'
))
{
this
.
element
.
classList
.
remove
(
'
desktop-panel-closed
'
);
}
}
else
{
if
(
!
this
.
element
.
classList
.
contains
(
'
tablet-mode
'
))
{
this
.
element
.
classList
.
toggle
(
'
tablet-mode
'
);
if
(
!
this
.
element
.
classList
.
contains
(
'
desktop-panel-closed
'
))
{
this
.
element
.
classList
.
toggle
(
'
desktop-panel-closed
'
);
}
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
View file @
940c8b1d
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.4
3879.9730.43520
</string>
</value>
<value>
<string>
963.4
9577.25013.30532
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
1511
881522.84
</float>
<float>
1511
953841.11
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.js
View file @
940c8b1d
...
...
@@ -430,14 +430,15 @@
return
route
(
this
,
"
panel
"
,
"
toggle
"
);
})
.
allowPublicAcquisition
(
'
setDesktopMode
'
,
function
(
param_list
)
{
var
element
=
this
.
props
.
content_element
;
this
.
props
.
desktop_mode
=
param_list
[
0
];
if
(
param_list
[
0
])
{
if
(
this
.
props
.
content_element
.
classList
.
contains
(
'
tablet-mode
'
))
{
this
.
props
.
content_element
.
classList
.
remove
(
'
tablet-mode
'
);
if
(
element
.
classList
.
contains
(
'
desktop-panel-closed
'
))
{
element
.
classList
.
remove
(
'
desktop-panel-closed
'
);
}
}
else
{
if
(
!
this
.
props
.
content_element
.
classList
.
contains
(
'
tablet-mode
'
))
{
this
.
props
.
content_element
.
classList
.
toggle
(
'
tablet-mode
'
);
if
(
!
element
.
classList
.
contains
(
'
desktop-panel-closed
'
))
{
element
.
classList
.
toggle
(
'
desktop-panel-closed
'
);
}
}
return
route
(
this
,
"
header
"
,
"
setDesktopMode
"
,
[
param_list
[
0
]]);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_js.xml
View file @
940c8b1d
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.4958
3.4046.44697
</string>
</value>
<value>
<string>
963.4958
5.52761.29405
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
1511
882028.25
</float>
<float>
1511
954015.57
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
940c8b1d
...
...
@@ -433,24 +433,19 @@ div[data-gadget-scope='panel'] {
overflow-y
:
auto
;
position
:
fixed
;
top
:
0
;
left
:
0
;
left
:
-186pt
;
display
:
block
;
z-index
:
2000
;
transition
:
transform
200ms
ease-out
;
transform
:
translate3d
(
0
,
0
,
0
);
}
@media
not
screen
and
(
min-width
:
45em
),
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
'panel'
]
{
box-shadow
:
5px
0
5px
rgba
(
0
,
0
,
0
,
0.15
);
}
}
@media
not
screen
and
(
min-width
:
45em
),
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
'panel'
]
{
left
:
-186pt
;
transition
:
transform
200ms
ease-out
;
transform
:
translate3d
(
0
,
0
,
0
);
}
div
[
data-gadget-scope
=
'panel'
]
.visible
{
div
[
data-gadget-scope
=
'panel'
]
.visible
{
transform
:
translate3d
(
186pt
,
0
,
0
);
}
}
div
[
data-gadget-scope
=
'panel'
]
div
[
data-role
=
"header"
]
{
display
:
flex
;
...
...
@@ -478,12 +473,6 @@ div[data-gadget-scope='panel'] div[data-role="header"] a::before {
text-indent
:
0
;
margin-left
:
12pt
;
}
@media
not
screen
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
'panel'
]
div
[
data-role
=
"header"
]
button
[
data-i18n
=
"Close"
],
div
[
data-gadget-scope
=
'panel'
]
div
[
data-role
=
"header"
]
a
[
data-i18n
=
"Close"
]
{
display
:
none
;
}
}
div
[
data-gadget-scope
=
'panel'
]
div
[
data-gadget-scope
=
'erp5_searchfield'
]
{
padding
:
3pt
12pt
;
}
...
...
@@ -686,6 +675,8 @@ div[data-gadget-scope='header'] .ui-header {
}
@media
not
screen
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
{
transition
:
transform
200ms
ease-out
;
transform
:
translate3d
(
180pt
,
0
,
0
);
margin-left
:
180pt
;
}
}
...
...
@@ -926,6 +917,65 @@ div[data-gadget-scope='header'] .ui-header ul {
display
:
none
;
}
}
@media
not
screen
and
(
max-width
:
85em
)
{
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
{
margin-left
:
0
;
transform
:
translate3d
(
0
,
0
,
0
);
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
.ui-controlgroup-controls
button
,
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
.ui-controlgroup-controls
a
{
background-color
:
#085078
;
width
:
8em
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
.ui-controlgroup-controls
button
[
name
=
"panel"
],
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
.ui-controlgroup-controls
a
[
name
=
"panel"
]
{
display
:
block
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
>
.ui-btn-right
button
,
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
>
.ui-btn-right
a
{
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
0.55
);
padding-left
:
0
;
padding-right
:
0
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
h1
{
flex
:
1
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
h1
>
span
{
padding-left
:
16pt
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
h1
>
span
::before
{
margin-right
:
14pt
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
h1
a
::before
,
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
h1
form
button
::before
{
text-align
:
center
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
.ui-subheader
{
text-align
:
center
;
flex
:
1
100%
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
ul
>
li
{
flex
:
1
;
border-left
:
1px
solid
rgba
(
0
,
0
,
0
,
0.55
);
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
ul
>
li
:first-child
{
border-left
:
none
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
ul
>
li
a
{
display
:
block
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
ul
>
li
a
{
padding-top
:
3pt
;
padding-bottom
:
3pt
;
line-height
:
inherit
;
white-space
:
nowrap
;
overflow
:
hidden
;
}
div
[
data-gadget-scope
=
"header"
]
.desktop-panel-closed
.ui-header
ul
>
li
a
::before
{
font-size
:
1.2em
;
display
:
block
;
}
}
/**********************************************
* Gadget: main
**********************************************/
...
...
@@ -978,6 +1028,10 @@ div[data-gadget-scope='header'] .ui-header ul {
padding-top
:
7em
;
}
}
.gadget-content.desktop-panel-closed
{
margin-left
:
0
;
padding-top
:
7em
;
}
@media
not
screen
and
(
min-width
:
45em
)
{
.gadget-content
{
padding
:
6pt
;
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
View file @
940c8b1d
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.507
57.27093.23739
</string>
</value>
<value>
<string>
963.507
73.52088.34133
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
151195
2591.56
</float>
<float>
151195
3440.55
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
940c8b1d
...
...
@@ -541,18 +541,15 @@ div[data-gadget-scope='panel'] {
overflow-y: auto;
position: fixed;
top: 0;
left:
0
;
left:
-@panelwidth - @margin-size
;
display: block;
z-index: 2000;
@media @smartphone, @tablet {
left: -@panelwidth - @margin-size;
transition: transform 200ms ease-out;
transform: translate3d(0, 0, 0);
&.visible {
transform: translate3d(@panelwidth + @margin-size, 0, 0);
}
}
div[data-role="header"] {
display: flex;
...
...
@@ -574,12 +571,6 @@ div[data-gadget-scope='panel'] {
margin-left: @double-margin-size;
}
@media @desktop {
&[data-i18n="Close"] {
display: none;
}
}
display: block;
line-height: @headerheight;
...
...
@@ -856,6 +847,8 @@ div[data-gadget-scope='header'] .ui-header {
width: 100%;
@media @desktop {
transition: transform 200ms ease-out;
transform: translate3d(@panelwidth, 0, 0);
margin-left: @panelwidth;
}
...
...
@@ -1073,6 +1066,56 @@ div[data-gadget-scope='header'] .ui-header {
}
}
}
}
}
}
div[data-gadget-scope="header"].desktop-panel-closed .ui-header {
@media @desktop {
margin-left: 0;
transform: translate3d(0, 0, 0);
.ui-controlgroup-controls {
button, a {
background-color: @colorheaderbackground;
width: 8em;
&[name="panel"] {
display: block;
}
}
}
& > .ui-btn-right {
button, a {
border-left: 1px solid rgba(255, 255, 255, 0.55);
padding-left: 0;
padding-right: 0;
}
}
h1 {
flex: 1;
& > span {
.renderTabletNotALinkTitle();
}
a, form button {
&::before {
text-align: center;
}
}
}
.ui-subheader {
text-align: center;
flex: 1 100%;
}
ul > li {
.renderTabletSubListElement();
a {
.renderTabletSubLink();
}
}
}
}
...
...
@@ -1119,6 +1162,10 @@ div[data-gadget-scope='header'] .ui-header {
@media @tablet {
padding-top: 7em;
}
&.desktop-panel-closed {
margin-left: 0;
padding-top: 7em;
}
@media @smartphone {
padding: @main-margin-size-smartphone;
padding-top: 6em;
...
...
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