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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
94c7cfad
Commit
94c7cfad
authored
Aug 06, 2014
by
Sven Franck
Committed by
Sebastien Robin
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS: add responsive grid layout allowing to force items per line
parent
bef620e9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
27 deletions
+47
-27
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
.../PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
+43
-23
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
+3
-3
bt5/erp5_web_renderjs_ui/bt/revision
bt5/erp5_web_renderjs_ui/bt/revision
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
View file @
94c7cfad
...
@@ -1083,6 +1083,23 @@ html .document-table tbody tr:nth-child(odd) th {\n
...
@@ -1083,6 +1083,23 @@ html .document-table tbody tr:nth-child(odd) th {\n
}\n
}\n
\n
\n
/* ------------------------ TABS/GRID ------------------------------------ */\n
/* ------------------------ TABS/GRID ------------------------------------ */\n
/* copy JQM grid CSS without width (set below) */\n
ul.grid-items, ul.grid-items li {\n
list-style: none outside none;\n
margin-left: 0;\n
margin-right: 0;\n
padding: 0;\n
}\n
ul.grid-items {\n
overflow: hidden;\n
}\n
/*\n
* Width:\n
* default all in one line (as for tabs)\n
* > add .line-[x] to .grid-container = force [x] items/line\n
* > add .ui-responsive to .grid-container = force ONE item/line on smartphone\n
*/\n
\n
/* thx: Lea Verou - http://bit.ly/1rAhqzm */\n
/* thx: Lea Verou - http://bit.ly/1rAhqzm */\n
.grid-container li a {\n
.grid-container li a {\n
border-top: 0px;\n
border-top: 0px;\n
...
@@ -1092,70 +1109,73 @@ html .document-table tbody tr:nth-child(odd) th {\n
...
@@ -1092,70 +1109,73 @@ html .document-table tbody tr:nth-child(odd) th {\n
clear: none;\n
clear: none;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(1),\n
.grid-container ul li:first-child:nth-last-child(1),\n
div.grid-container.line-1 ul.ui-grid li {\n
div.grid-container.line-1 ul.grid-items li,\n
div.grid-container.line-1 ul.grid-items li ~ li {\n
width: 100%;\n
width: 100%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(2),\n
.grid-container ul li:first-child:nth-last-child(2),\n
.grid-container ul li:first-child:nth-last-child(2) ~ li,\n
.grid-container ul li:first-child:nth-last-child(2) ~ li,\n
div.grid-container.line-2 ul.
ui-grid
li,\n
div.grid-container.line-2 ul.
grid-items
li,\n
div.grid-container.line-2 ul.
ui-grid
li ~ li {\n
div.grid-container.line-2 ul.
grid-items
li ~ li {\n
width: 50%;\n
width: 50%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(3),\n
.grid-container ul li:first-child:nth-last-child(3),\n
.grid-container ul li:first-child:nth-last-child(3) ~ li,\n
.grid-container ul li:first-child:nth-last-child(3) ~ li,\n
div.grid-container.line-3 ul.
ui-grid
li,\n
div.grid-container.line-3 ul.
grid-items
li,\n
div.grid-container.line-3 ul.
ui-grid
li ~ li {\n
div.grid-container.line-3 ul.
grid-items
li ~ li {\n
width: 33.3333%;\n
width: 33.3333%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(4),\n
.grid-container ul li:first-child:nth-last-child(4),\n
.grid-container ul li:first-child:nth-last-child(4) ~ li,\n
.grid-container ul li:first-child:nth-last-child(4) ~ li,\n
div.grid-container.line-4 ul.
ui-grid
li,\n
div.grid-container.line-4 ul.
grid-items
li,\n
div.grid-container.line-4 ul.
ui-grid
li ~ li {\n
div.grid-container.line-4 ul.
grid-items
li ~ li {\n
width: 25%;\n
width: 25%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(5),\n
.grid-container ul li:first-child:nth-last-child(5),\n
.grid-container ul li:first-child:nth-last-child(5) ~ li,\n
.grid-container ul li:first-child:nth-last-child(5) ~ li,\n
div.grid-container.line-5 ul.
ui-grid
li,\n
div.grid-container.line-5 ul.
grid-items
li,\n
div.grid-container.line-5 ul.
ui-grid
li ~ li {\n
div.grid-container.line-5 ul.
grid-items
li ~ li {\n
width: 20%;\n
width: 20%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(6),\n
.grid-container ul li:first-child:nth-last-child(6),\n
.grid-container ul li:first-child:nth-last-child(6) ~ li,\n
.grid-container ul li:first-child:nth-last-child(6) ~ li,\n
div.grid-container.line-6 ul.
ui-grid
li,\n
div.grid-container.line-6 ul.
grid-items
li,\n
div.grid-container.line-6 ul.
ui-grid
li ~ li {\n
div.grid-container.line-6 ul.
grid-items
li ~ li {\n
width: 16.667%;\n
width: 16.667%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(7),\n
.grid-container ul li:first-child:nth-last-child(7),\n
.grid-container ul li:first-child:nth-last-child(7) ~ li,\n
.grid-container ul li:first-child:nth-last-child(7) ~ li,\n
div.grid-container.line-7 ul.
ui-grid
li,\n
div.grid-container.line-7 ul.
grid-items
li,\n
div.grid-container.line-7 ul.
ui-grid
li ~ li {\n
div.grid-container.line-7 ul.
grid-items
li ~ li {\n
width: 14,285714286%;\n
width: 14,285714286%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(8),\n
.grid-container ul li:first-child:nth-last-child(8),\n
.grid-container ul li:first-child:nth-last-child(8) ~ li,\n
.grid-container ul li:first-child:nth-last-child(8) ~ li,\n
div.grid-container.line-8 ul.
ui-grid
li,\n
div.grid-container.line-8 ul.
grid-items
li,\n
div.grid-container.line-8 ul.
ui-grid
li ~ li {\n
div.grid-container.line-8 ul.
grid-items
li ~ li {\n
width: 12.5%;\n
width: 12.5%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(9),\n
.grid-container ul li:first-child:nth-last-child(9),\n
.grid-container ul li:first-child:nth-last-child(9) ~ li,\n
.grid-container ul li:first-child:nth-last-child(9) ~ li,\n
div.grid-container.line-9 ul.
ui-grid
li,\n
div.grid-container.line-9 ul.
grid-items
li,\n
div.grid-container.line-9 ul.
ui-grid
li ~ li {\n
div.grid-container.line-9 ul.
grid-items
li ~ li {\n
width: 11.112%;\n
width: 11.112%;\n
}\n
}\n
.grid-container ul li:first-child:nth-last-child(10),\n
.grid-container ul li:first-child:nth-last-child(10),\n
.grid-container ul li:first-child:nth-last-child(10) ~ li,\n
.grid-container ul li:first-child:nth-last-child(10) ~ li,\n
div.grid-container.line-10 ul.
ui-grid
li,\n
div.grid-container.line-10 ul.
grid-items
li,\n
div.grid-container.line-10 ul.
ui-grid
li ~ li {\n
div.grid-container.line-10 ul.
grid-items
li ~ li {\n
width: 10%;\n
width: 10%;\n
}\n
}\n
\n
\n
@media (max-width: 40em) {\n
@media (max-width: 40em) {\n
div.grid-container.ui-responsive ul.
ui-grid
li,\n
div.grid-container.ui-responsive ul.
grid-items
li,\n
div.grid-container.ui-responsive ul.
ui-grid
li ~ li {\n
div.grid-container.ui-responsive ul.
grid-items
li ~ li {\n
width: 100%;\n
width: 100%;\n
}\n
}\n
}\n
}\n
\n
\n
/* ----------------------------- FORM LAYOUT ------------------------------ */\n
/* ----------------------------- FORM LAYOUT ------------------------------ */\n
html .left, html .right, html .center, html .bottom {\n
html .left, html .right, html .center, html .bottom {\n
vertical-align: top;\n
vertical-align: top;\n
...
@@ -1440,7 +1460,7 @@ html.ui-mobile body nav.ui-title {\n
...
@@ -1440,7 +1460,7 @@ html.ui-mobile body nav.ui-title {\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
936.46
294.38547.13499
</string>
</value>
<value>
<string>
936.46
336.62391.44851
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -1458,7 +1478,7 @@ html.ui-mobile body nav.ui-title {\n
...
@@ -1458,7 +1478,7 @@ html.ui-mobile body nav.ui-title {\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
140733
0793.3
8
</float>
<float>
140733
5558.9
8
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
View file @
94c7cfad
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
erp5_document = options.erp5_document,\n
erp5_document = options.erp5_document,\n
view_list = erp5_document._links.action_object_view,\n
view_list = erp5_document._links.action_object_view,\n
i,\n
i,\n
nav_html = \'<nav data-role="navbar">
<ul
class=
"
ui-grid
"
>
\',\n
nav_html = \'<nav data-role="navbar">
<ul
class=
"
grid-items
"
>
\',\n
promise_list = []\n
promise_list = []\n
\n
\n
for (i = 0; i
< view_list.length
;
i
+=
1)
{\n
for (i = 0; i
< view_list.length
;
i
+=
1)
{\n
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
936.46
280.20106.5169
4
</string>
</value>
<value>
<string>
936.46
363.37694.5606
4
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -341,7 +341,7 @@
...
@@ -341,7 +341,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
140733
0147.68
</float>
<float>
140733
4850.3
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/bt/revision
View file @
94c7cfad
38
39
\ No newline at end of file
\ No newline at end of file
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