Some improvements for phones layout

pull/5742/merge
Aleksander Machniak 7 years ago
parent 188e75f775
commit 9533d25a15

@ -18,9 +18,16 @@
@page-font-size: 14px; @page-font-size: 14px;
@page-min-width: 240px; @page-min-width: 240px;
@taskmenu-width: 70px; @layout-taskmenu-width: 70px;
@layout-header-height: 2.5rem;
@layout-header-font-size: 1rem;
@layout-small-header-height: 3.6rem;
@layout-small-header-font-size: 1.2rem;
@layout-small-menu-record-height: 3.6rem;
@layout-small-menu-record-font-size: 1.2rem;
@layout-header-height-mobile: 2.5rem;
/*** Responsive design - Layout ***/ /*** Responsive design - Layout ***/
@ -106,13 +113,13 @@ body > #layout {
} }
&.menu { &.menu {
width: @taskmenu-width; width: @layout-taskmenu-width;
background-color: @color-taskmenu-background; background-color: @color-taskmenu-background;
a, a,
a:before { a:before {
display: block; display: block;
width: @taskmenu-width; width: @layout-taskmenu-width;
} }
} }
@ -127,10 +134,10 @@ body > #layout {
& > .header, & > .header,
& > .footer { & > .footer {
background-color: @color-layout-header-background; background-color: @color-layout-header-background;
font-size: 1rem; font-size: @layout-header-font-size;
font-weight: bold; font-weight: bold;
line-height: 2.5rem; line-height: @layout-header-height;
height: 2.5rem; height: @layout-header-height;
padding: 0 .25em; padding: 0 .25em;
margin: 0; margin: 0;
position: relative; /* for absolute positioning of searchbar */ position: relative; /* for absolute positioning of searchbar */
@ -186,10 +193,6 @@ html.iframe body {
} }
@media screen and (max-width: @screen-width-medium) { @media screen and (max-width: @screen-width-medium) {
html:not(.iframe) {
font-size: 120%;
}
body > #layout > div.menu a, body > #layout > div.menu a,
body > #layout > div.menu a:before, body > #layout > div.menu a:before,
body > #layout > div.menu { body > #layout > div.menu {
@ -212,6 +215,20 @@ html.iframe body {
body > #layout > div.list { body > #layout > div.list {
max-width: none; max-width: none;
} }
body > #layout > div > .header,
body > #layout > div > .footer {
line-height: @layout-small-header-height;
height: @layout-small-header-height;
font-size: @layout-small-header-font-size;
a.button.icon:before {
font-size: 1.5em;
height: @layout-small-header-height;
margin: 0;
width: 1.4em;
}
}
.hidden-small { .hidden-small {
display: none !important; display: none !important;
} }

@ -127,3 +127,9 @@ a.rcmaddcontact:before {
margin-left: 5px; margin-left: 5px;
font-size: inherit; font-size: inherit;
} }
@media screen and (max-width: @screen-width-small) {
.btn:focus {
box-shadow: none;
}
}

@ -37,6 +37,7 @@ div.popover-body {
body.layout-mode-phone .popover { body.layout-mode-phone .popover {
margin: 0 !important; margin: 0 !important;
padding: 0;
left: initial !important; left: initial !important;
right: 0; right: 0;
bottom: 0; bottom: 0;
@ -55,8 +56,9 @@ body.layout-mode-phone .popover {
display: block; display: block;
border-radius: 0; border-radius: 0;
padding: 0 .5em; padding: 0 .5em;
height: 2.5rem; /* TODO: layout var */ height: @layout-small-header-height;
line-height: 2.5rem; /* TODO: layout var */ line-height: @layout-small-header-height;
font-size: @layout-small-header-font-size;
color: #888; /* TODO: color */ color: #888; /* TODO: color */
} }
@ -67,8 +69,8 @@ body.layout-mode-phone .popover {
.toolbarmenu.listing, .toolbarmenu.listing,
.popupmenu.toolbar.listing { .popupmenu.toolbar.listing {
li a { li a {
line-height: 2.5rem; /* TODO: layout var */ line-height: @layout-small-menu-record-height;
font-size: 1rem; font-size: @layout-small-menu-record-font-size;
padding: 0 .5em; padding: 0 .5em;
&:before { &:before {

@ -77,12 +77,12 @@
} }
.ui-dialog-titlebar { .ui-dialog-titlebar {
height: @layout-header-height-mobile; height: @layout-small-header-height;
} }
.ui-dialog-title { .ui-dialog-title {
line-height: @layout-header-height-mobile; line-height: @layout-small-header-height;
font-size: 1rem; font-size: @layout-small-header-font-size;
} }
.ui-dialog-content { .ui-dialog-content {

@ -11,7 +11,8 @@
/*** List and treelist widgets ***/ /*** List and treelist widgets ***/
@var-listing-line-height: 2.4em; @listing-line-height: 2.5rem;
@listing-small-line-height: 3.6rem;
.listing { .listing {
tbody td, tbody td,
@ -20,7 +21,11 @@
border-bottom: 1px solid #f4f4f4; border-bottom: 1px solid #f4f4f4;
cursor: default; cursor: default;
font-weight: normal; font-weight: normal;
line-height: @var-listing-line-height; line-height: @listing-line-height;
@media screen and (max-width: @screen-width-small) {
line-height: @listing-small-line-height;
}
} }
tbody td, tbody td,
@ -31,7 +36,9 @@
padding: 0 .5em; padding: 0 .5em;
white-space: nowrap; white-space: nowrap;
vertical-align: middle; vertical-align: middle;
line-height: @var-listing-line-height; /*
line-height: @listing-line-height;
*/
color: @color-list; color: @color-list;
} }
@ -108,9 +115,13 @@ ul.listing {
input[type=checkbox] { input[type=checkbox] {
position: absolute; position: absolute;
top: 0; top: 0;
right: .2em; right: .5em;
height: @var-listing-line-height; height: @listing-line-height;
vertical-align: middle; vertical-align: middle;
@media screen and (max-width: @screen-width-small) {
height: @listing-small-line-height;
}
} }
} }
} }
@ -227,8 +238,8 @@ ul.listing {
ul.treelist li { ul.treelist li {
div.treetoggle { div.treetoggle {
position: absolute; position: absolute;
top: 1.2em; top: 1.2rem;
left: 1.3em; left: 1.2em;
width: .8em; width: .8em;
height: .8em; height: .8em;
line-height: .8em; line-height: .8em;

Loading…
Cancel
Save