| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /**
- * Stylesheet
- *
- * @namespace LUNGO
- * @class Layout
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
- @import "constants.less";
- @import "mixins.less";
- /* @group <section> */
- section {
- position: absolute; /* position: fixed on iOS5 & Android 4 */
- left: 0px;
- top: 0px;
- width: 100%;
- height: 100%;
- z-index: 0;
-
- display: block;
- visibility: hidden;
- -webkit-backface-visibility: hidden;
-
- &:first-child, &.show {
- z-index: 1;
- //display: block;
- visibility: visible;
- }
- &.hide {
- z-index: 0;
- //display: none;
- visibility: hidden;
- }
-
- &.slide {
- .transform(translate(100%, 0));
- //display: block;
- visibility: visible !important;
-
- -webkit-transition: -webkit-transform 250ms @defaultTrasition;
- /*
- -moz-transition: @keyframe @defaultTrasition;
- -o-transition: @keyframe @defaultTrasition;
- transition: @keyframe @defaultTrasition;
- */
-
- &:first-child, &.show { .transform(translate(0%, 0)); }
- &.hide { .transform(translate(-100%, 0)); }
- }
-
-
- &.pop {
- opacity: 0;
- -webkit-transition: all 250ms @defaultTrasition;
- .transform(scale(1.15));
-
- &:first-child, &.show {
- .transform(scale(1));
- opacity: 1;
- }
- &.hide {
- .transform(scale(0.9));
- opacity: 0;
- }
- }
- }
- /* @end */
- /* @group <header> & <footer> */
- header, footer {
- position: absolute;
- left: 0px;
- width: 100%;
- height: @header-height;
- display: block;
- z-index: 2;
- line-height: @header-height;
- overflow: hidden;
- }
- header {
- top: 0px;
- /*& .onleft { margin-left: 4px !important;}
- & .onright {margin-right: 4px !important;}*/
- }
- footer { bottom: 0px; }
- header .title, footer .title {
- //margin: 0 4px;
- z-index: -1;
- font-size: 15px;
- font-weight: bold;
- display:block;
-
- &.centered {
- position: absolute;
- left: 0px;
- right: 0px;
- text-align: center;
- display: inline-block;
- }
- &.with-subtitle {
- line-height: 20px;
- padding-top: 4px;
- }
- }
- .subtitle {
- display:block;
- font-size: 11px;
- line-height: 11px;
- }
- /* @end */
|