/** * 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. */ /*** 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%; color: @color-font; overflow: hidden; } body > #layout { overflow: hidden; display: flex; height: 100%; width: 100%; & > div { &.sidebar, &.list { display: flex; flex-direction: column; max-width: 30%; border-right: 1px 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 & > .content { height: 100%; width: 100%; overflow: auto; flex: 1; } .iframe-wrapper { width: 100%; height: 100%; flex: 1; iframe { width: 100%; height: 100%; border: 0; } } } &.sidebar { display: flex; min-width: 220px; background-color: @color-layout-sidebar-background; flex: 2; } &.list { display: flex; flex: 3; min-width: 300px; background-color: @color-layout-list-background; } &.menu { width: @layout-menu-width; // FIXME: we set background color here not in taskmenu.less, because // otherwise background is partially white on Android/iOS background-color: @color-taskmenu-background; } & > .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 .25em; margin: 0; position: relative; // for absolute positioning of searchbar overflow: hidden; white-space: nowrap; display: flex; justify-content: center; } & > .header { border-bottom: 1px solid @color-layout-border; .header-title { .overflow-ellipsis; flex: 1; text-align: center; margin: 0 -20rem; } } & > .footer { border-top: 1px solid @color-layout-border; &: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: 260px; 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.75rem; height: @layout-touch-header-height; margin: 0; width: 1.4em; } } 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; } } @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; } }