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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
b0506dfe
Commit
b0506dfe
authored
Jul 19, 2016
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Only display subheader icon on smartphone
parent
df2af71f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
10 deletions
+73
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.css
.../PathTemplateItem/web_page_module/rjs_gadget_erp5_css.css
+27
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
.../PathTemplateItem/web_page_module/rjs_gadget_erp5_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
+44
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.css
View file @
b0506dfe
...
@@ -754,7 +754,7 @@ div[data-gadget-scope='header'] .ui-header ul a {
...
@@ -754,7 +754,7 @@ div[data-gadget-scope='header'] .ui-header ul a {
display
:
none
;
display
:
none
;
}
}
}
}
@media
only
screen
and
(
m
ax-width
:
28em
),
only
screen
and
(
m
in-width
:
28em
)
and
(
max-width
:
62em
)
{
@media
only
screen
and
(
min-width
:
28em
)
and
(
max-width
:
62em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
{
display
:
table-cell
;
display
:
table-cell
;
border-left
:
1px
solid
rgba
(
0
,
0
,
0
,
0.55
);
border-left
:
1px
solid
rgba
(
0
,
0
,
0
,
0.55
);
...
@@ -775,6 +775,32 @@ div[data-gadget-scope='header'] .ui-header ul a {
...
@@ -775,6 +775,32 @@ div[data-gadget-scope='header'] .ui-header ul a {
display
:
block
;
display
:
block
;
}
}
}
}
@media
only
screen
and
(
max-width
:
28em
)
{
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
{
line-height
:
2.6em
;
display
:
table-cell
;
border-left
:
1px
solid
rgba
(
0
,
0
,
0
,
0.55
);
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
:first-child
{
border-left
:
none
;
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
a
{
display
:
block
;
text-align
:
center
;
vertical-align
:
middle
;
font-size
:
1.5em
;
padding-top
:
0.4em
;
padding-bottom
:
0.4em
;
overflow
:
hidden
;
text-indent
:
-9999px
;
white-space
:
nowrap
;
}
div
[
data-gadget-scope
=
'header'
]
.ui-header
ul
li
a
::before
{
float
:
left
;
text-indent
:
0
;
width
:
100%
;
}
}
/**********************************************
/**********************************************
* Gadget: main
* Gadget: main
**********************************************/
**********************************************/
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_css.xml
View file @
b0506dfe
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
952.4
2944.22072.22442
</string>
</value>
<value>
<string>
952.4
3131.61056.30890
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14689
21365.19
</float>
<float>
14689
32538.95
</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 @
b0506dfe
...
@@ -80,7 +80,9 @@
...
@@ -80,7 +80,9 @@
.hide_text(@width: 3em) {
.hide_text(@width: 3em) {
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
// https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/
width: @width;
& when (@width > 0) {
width: @width;
}
overflow: hidden;
overflow: hidden;
text-indent: -9999px;
text-indent: -9999px;
white-space: nowrap;
white-space: nowrap;
...
@@ -853,8 +855,38 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -853,8 +855,38 @@ div[data-gadget-scope='header'] .ui-header {
}
}
}
}
@media @smartphone, @tablet {
@media @tablet {
li {
display: table-cell;
border-left: 1px solid rgba(0, 0, 0, 0.55);
&:first-child {
border-left: none;
}
a {
display: block;
padding-top: 0.4em;
padding-bottom: 0.4em;
white-space: nowrap;
overflow: hidden;
&::before {
font-size: 1.2em;
padding-bottom: 0.3em;
display: block;
}
}
}
}
@media @smartphone {
li {
li {
line-height: @headerheight;
display: table-cell;
display: table-cell;
border-left: 1px solid rgba(0, 0, 0, 0.55);
border-left: 1px solid rgba(0, 0, 0, 0.55);
...
@@ -864,20 +896,25 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -864,20 +896,25 @@ div[data-gadget-scope='header'] .ui-header {
a {
a {
display: block;
display: block;
text-align: center;
vertical-align: middle;
font-size: 1.5em;
padding-top: 0.4em;
padding-top: 0.4em;
padding-bottom: 0.4em;
padding-bottom: 0.4em;
white-space: nowrap;
.hide_text(@width: false);
overflow: hidden;
&::before {
&::before {
f
ont-size: 1.2em
;
f
loat: left
;
padding-bottom: 0.3em
;
text-indent: 0
;
display: block
;
width: 100%
;
}
}
}
}
}
}
}
}
}
}
}
}
...
...
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