Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4690503
layout.less
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
7 KB
Referenced Files
None
Subscribers
None
layout.less
View Options
/**
* Roundcube webmail styles for the Elastic skin
*
* Copyright (c) 2017, The Roundcube Dev Team
*
* The contents are subject to the Creative Commons Attribution-ShareAlike
* License. It is allowed to copy, distribute, transmit and to adapt the work
* by keeping credits to the original authors in the README.md file.
* See http://creativecommons.org/licenses/by-sa/3.0/ for details.
*/
@
screen-width-large
:
1200px
;
@
screen-width-medium
:
1024px
;
@
screen-width-small
:
768px
;
@
screen-width-xs
:
480px
;
@
screen-width-mini
:
320px
;
@
screen-width-touch
:
@
screen-width-medium
;
@
page-font-size
:
14px
;
@
page-min-width
:
240px
;
@
layout-menu-width
:
5rem
;
@
layout-header-height
:
4
.
2rem
;
@
layout-header-font-size
:
1rem
;
@
layout-pagenav-height
:
2rem
;
@
layout-touch-header-height
:
@
layout-header-height
;
@
layout-touch-header-font-size
:
1
.
2rem
;
@
layout-touch-menu-record-height
:
3
.
6rem
;
@
layout-touch-menu-record-font-size
:
1
.
2rem
;
@
layout-touch-icon-width
:
2
.
2em
;
@
layout-contact-icon-width
:
112px
;
@
layout-contact-icon-height
:
135px
;
/*** Responsive design - Layout ***/
/*
- Large screen (width > 1200px)
-----------------------------------------------------------------------------------------------------
| menu | sidebar | list | content |
-----------------------------------------------------------------------------------------------------
- Normal screen (1200px => width => 768px) - typical: 768x1024 (iPad Mini/Air)
-------------------------------------------------------------------
|menu| sidebar/list | content |
-------------------------------------------------------------------
- Small (480px < width < 768px)
------------------------------------------
|menu| sidebar/list/content |
------------------------------------------
- Phone (width <= 480px) - typical: 320x480 (iPhone 5), 375x667 (iPhone 6-7), 360x564 (Galaxy S6)
------------------------
| sidebar/list/content |
------------------------
*/
html
{
height
:
100
%;
font-size
:
@
page-font-size
;
}
body
{
min-width
:
@
page-min-width
;
height
:
100
%;
overflow
:
hidden
;
color
:
@
color-font
;
}
body
>
#
layout
{
overflow
:
hidden
;
display
:
flex
;
height
:
100
%
;
width
:
100
%
;
&
>
div
{
&.sidebar,
&.list
{
display
:
flex
;
flex-direction
:
column
;
max-width
:
30
%
;
border-right
:
1
px
solid
@
color
-
layout-border
;
}
&
.
content
{
display
:
flex
;
flex
:
6
;
flex-direction
:
column
;
min-width
:
50
%
;
background-color
:
@
color
-
layout-content-background
;
&
>
.formcontent,
/* e.g. Help plugin */
&
>
iframe,
&
>
.content,
&
>
.content
>
iframe
{
height
:
100
%
;
width
:
100
%
;
overflow
:
auto
;
border
:
0
;
flex
:
1
;
}
}
&
.
sidebar
{
display
:
flex
;
min-width
:
220
px
;
background-color
:
@
color
-
layout-sidebar-background
;
flex
:
2
;
}
&
.
list
{
display
:
flex
;
flex
:
3
;
min-width
:
300
px
;
background-color
:
@
color
-
layout-list-background
;
}
&
.
menu
{
width
:
@
layout-menu-width
;
}
&
>
.
scroller
{
flex
:
1
;
}
&
>
.
content
.
only
>
.
scroller
{
overflow
:
auto
;
}
&
>
.
header
,
&
>
.
footer
{
background-color
:
@
color
-
layout-header-background
;
font-size
:
@
layout-header-font-size
;
font-weight
:
bold
;
line-height
:
@
layout-header-height
;
height
:
@
layout-header-height
;
min-height
:
@
layout-header-height
;
padding
:
0
.25
em
;
margin
:
0
;
position
:
relative
;
/* for absolute positioning of searchbar */
overflow
:
hidden
;
white-space
:
nowrap
;
display
:
flex
;
}
&
>
.
header
{
border-bottom
:
1
px
solid
#ddd
;
.header-title
{
flex
:
1
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-align
:
center
;
margin
:
0
-20
rem
;
}
}
&
>
.
footer
{
border-top
:
1
px
solid
#ddd
;
&:empty
{
display
:
none
;
}
}
}
}
html
.
iframe
body
{
overflow
:
auto
;
#layout
>
.content
{
height
:
100
%
;
}
}
@
media
screen
and
(
max-width
:
@
screen-width-large
)
{
body
>
#
layout
>
div
.
sidebar
,
body
>
#
layout
>
div
.
list
{
min-width
:
260
px
;
flex
:
3
;
}
}
@
media
screen
and
(
max-width
:
@
screen-width-medium
)
{
body
>
#
layout
>
div
.
menu
{
width
:
@
layout-menu-width
/
2
;
}
}
@
media
screen
and
(
max-width
:
@
screen-width-small
)
{
body
>
#
layout
>
div
>
.
header
>
.
toolbar
{
font-size
:
@
layout-touch-header-font-size
;
display
:
none
;
}
body
>
#
layout
>
div
.
sidebar
,
body
>
#
layout
>
div
.
list
{
max-width
:
none
;
}
body
>
#
layout
>
div
>
.
header
{
a.
button
:
before
{
font-size
:
1.75
rem
;
height
:
@
layout-touch-header-height
;
margin
:
0
;
width
:
1.4
em
;
}
}
body
>
#
layout
>
div
>
.
header
{
&
.
with-search
:
not
(
.
no-toolbar
)
{
.searchbar
{
right
:
@
layout-touch-icon-width
;
}
.
searchfilterbar
{
right
:
(
@
layout-touch-icon-width
*
2
);
}
}
}
}
@
media
screen
and
(
max-width
:
@
screen-width-xs
)
{
body
>
#
layout
>
div
.
menu
{
position
:
absolute
;
z-index
:
30001
;
/* because autocompletion popup uses z-index:30000 */
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
width
:
auto
;
text-align
:
center
;
}
}
@
media
screen
and
(
max-width
:
@
screen-width-mini
)
{
body
>
#
layout
>
div
.
sidebar
,
body
>
#
layout
>
div
.
list
{
min-width
:
@
page
-
min-width
;
}
}
@
media
screen
and
(
min-width
:
(
@
screen-width-large
+
1px
))
{
body
>
#
layout
>
div
>
.
header
>
a
.
back-list-button
,
body
>
#
layout
>
div
>
.
header
>
a
.
back-sidebar-button
{
display
:
none
;
}
body
>
#
layout
>
.
list
>
.
header
>
.
header-title
{
display
:
none
;
}
}
@
media
screen
and
(
min-width
:
(
@
screen-width-small
+
1px
))
{
body
>
#
layout
>
.
content
>
.
header
>
.
header-title
,
body
>
#
layout
>
div
>
.
header
>
.
buttons
,
body
>
#
layout
>
div
>
.
header
>
a
.
toolbar-menu-button
{
display
:
none
;
}
}
@
media
screen
and
(
min-width
:
(
@
screen-width-xs
+
1px
))
{
body
>
#
layout
>
div
>
.
header
>
a
.
menu-button
{
display
:
none
;
}
}
html
.
layout-phone
,
html
.
layout-small
{
.
hidden-small
{
display
:
none
!important
;
}
}
html
.
layout-large
,
html
.
layout-normal
{
.
hidden-big
{
display
:
none
!important
;
}
}
html
.
layout-large
{
.
hidden-large
{
display
:
none
!important
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 5:02 PM (1 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
662354
Default Alt Text
layout.less (7 KB)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment