| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- /**
- * Stylesheet
- *
- * @namespace LUNGO
- * @class Layout
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
- @import "mixins.less";
- @defaultTrasition : @easeOutSine;
- /* @group <section> */
- section{
- position: absolute;
- position: fixed;
- width: 100%;
- height: inherit;
- z-index: 0;
-
- .transform(translate3d(100%, 0, 0));
- //.transform(translate3d(320px, 0, 0));
- -webkit-backface-visibility: hidden;
- -webkit-transition: -webkit-transform 250ms @defaultTrasition;
- }
- section:first-child, section.show {
- z-index: 1;
- .transform(translate3d(0%, 0, 0));
- //.transform(translate3d(0px, 0, 0));
- }
- section.hide {
- z-index: 0;
- .transform(translate3d(-100%, 0, 0));
- //.transform(translate3d(-320px, 0, 0));
- }
- /* @end */
- /* @group <header> & <footer> */
- header, footer {
- position: absolute;
- left: 0px;
- width: 100%;
- height: 38px;
- display: block;
- z-index: 2;
- line-height: 38px;
- }
- header {
- top: 0px
- }
- footer {
- bottom:0px;
- }
- header .title, footer .title {
- float: left;
- margin: 0 8px;
- font-size: 1.15em;
- }
- header .title {
- position: absolute;
- left: 0px;
- width: 100%;
- margin:0px auto;
- z-index: -1;
- text-align: center;
- }
- section header a.button, section footer a.button {
- margin: 3px 3px auto 4px;
- }
- section header a.button.icon, section footer a.button.icon {
- width: 17px;
- }
- /* @end */
- /* @group <aside> */
- aside {
- position: absolute;
- top: 0px;
- bottom: 0px;
- height: auto;
- width: 256px;
- opacity: 0;
- }
- aside.show {
- opacity: 1;
- }
-
- header ~ aside { padding-top: 40px; }
-
- footer ~ aside { padding-bottom: 40px; }
-
- aside ~ article {
- .transform(translate3d(0px, 0, 0));
- -webkit-transition: -webkit-transform 250ms @defaultTrasition;
- }
- aside a {
- display: block;
- width: 244px;
- height: 40px;
- padding: 0 6px;
-
- font-size: 1.1em;
- font-weight: bold;
- line-height: 40px;
- }
- aside .icon {
- width: 28px;
- height: 28px;
- float: left;
- margin: 8px 6px 0 0;
-
- font-size: 1.9em;
- line-height: 1.0em;
- text-align: center;
- }
- aside .anchor {
- font-weight: bold;
- padding: 3px 10px 4px;
- }
- aside .bubble {
- float: right;
- margin: 12px 4px 0 0;
- }
-
- @media handheld, only screen and (min-width: 768px) {
- [data-target="aside"] {
- display: none !important;
- }
- aside { opacity: 1; }
- aside ~ article{
- width: auto !important;
- left: 256px;
- right: 0px !important;
- }
- }
- /* @end */
- /* @group <article> */
- article {
- position: absolute;
- width: inherit;
- height: inherit;
- top: 0px;
- bottom: 0px;
- display: block;
- z-index: 0;
- opacity: 0;
- }
-
- header ~ article { top: 40px; }
-
- footer ~ article { bottom: 40px; }
- article.current {
- z-index: 1;
- opacity: 1;
- }
-
- article.aside { .transform(translate3d(256px, 0, 0)); }
-
- @media handheld, only screen and (min-width: 768px) {
- article.aside { .transform(translate3d(0px, 0, 0)); }
- }
-
- article .title {
- font-size: 1.1em;
- margin: 0px 0 4px;
- }
-
- article .title .icon { margin-right: 4px; }
-
- article .text {
- margin: 4px 0 8px;
- display: block;
- font-size: 0.9em;
- font-weight: normal;
- line-height: 1.4em;
- }
- /* @end */
- /* @group <nav> */
-
- nav {
- height: inherit;
- text-align: center;
- }
- nav a {
- display: inline-block;
- padding: 0 6px;
- height: inherit;
- float: left;
- }
- nav .icon {
- font-size: 2.2em;
- line-height: 38px;
- }
- nav a abbr {
- position: relative;
- bottom: 5px;
- margin-left: 2px;
- display: none;
-
- font-size: 1.05em;
- }
- nav a.current abbr { display: inline; }
- .toolbar {
- height: 48px;
- display: block;
- }
- .toolbar a {
- float: left;
- padding: 0;
- }
- .toolbar .icon {
- display: block;
- font-size: 2.5em;
- line-height: 48px;
- }
- nav .bubble {
- position: relative;
- top: -14px;
- left: -10px;
- margin-right: -16px;
- }
- .toolbar .bubble {
- top: -58px;
- left: 12px;
- padding: 1px 4px;
- }
- /* @end */
|