| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- /**
- * Stylesheet
- *
- * @namespace LUNGO
- * @class Layout
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
-
- @import "mixins.less";
- /* @group <section> */
- body {
- height: 100%;
- }
- section{
- position: absolute;
- position: fixed;
- width: 100%;
- height: inherit;
- z-index: 0;
- -webkit-backface-visibility: hidden;
- .transform(translate3d(100%, 0, 0));
- }
- section:first-child {
- z-index: 1;
- .transform(translate3d(0%, 0, 0));
- }
-
- section.hide {
- z-index: 0;
- .transform(translate3d(-100%, 0, 0));
- }
- section.show {
- z-index: 1;
- .transform(translate3d(0%, 0, 0));
- }
- section.static.hide {
- .transform(translate3d(0%, 0, 0));
- }
- section.popup {
- .transform(translate3d(0, 100%, 0));
- }
- section.popup.show {
- .transform(translate3d(0, 0%, 0));
- }
- section.popup.hide {
- .transform(translate3d(0, -100%, 0));
- }
- /* @end */
- /* @group <header> & <footer> */
- header, footer {
- position: absolute;
- left: 0px;
- width: 100%;
- height: 40px;
- display: block;
- z-index: 2;
- line-height: 40px;
- }
-
- header {
- top: 0px
- }
-
- footer {
- bottom:0px;
- }
-
- header .title, footer .title {
- float: left;
- margin: 0 8px;
- font-size: 1.3em;
- }
- header .title {
- position: absolute;
- left: 0px;
- width: 100%;
- margin:0px auto;
- text-align: center;
- z-index: -1;
- }
- section header a.button, section footer a.button {
- margin: 2px 2px auto;
- }
- section header a.button.icon, section footer a.button.icon {
- width: 17px;
- font-size: 1.5em;
- font-weight: normal;
- }
- /* @end */
- /* @group <nav> */
- nav {
- height: inherit;
- text-align: center;
- font-weight: normal;
- }
- nav a {
- display: inline-block;
- padding: 0 6px;
- height: inherit;
- float: left;
- font-size: 2.0em;
- }
- nav a abbr {
- position: relative;
- bottom: 3px;
- margin-left: 2px;
- display: none;
- font-size: 0.5em;
- font-weight: bold;
- }
- nav a.current abbr {
- display: inline;
- }
-
- nav a.current {
- .transition(all 0.3s ease-in-out);
- }
- /* @end */
- /* @group <article> */
- article {
- position: absolute;
- width: 100%;
- height: auto;
- top: 0px;
- bottom: 0px;
- display: block;
- z-index: 0;
- opacity: 0;
- }
- article.current {
- z-index: 1;
- opacity: 1;
- }
- .toolbar{
- height:48px;
- line-height:44px;
- display:block;
- }
- .toolbar a{
- float:left;
- padding:0;
- font-size:2.0em;
- }
- article.aside {
- left: 256px !important;
- }
- /* @end */
- /* @group <aside> */
- aside {
- position: absolute;
- top: 0px;
- bottom: 0px;
- width: 256px;
- height: auto;
- /* @ToDo */
- padding-top: 40px;
- }
- aside a{
- display: block;
- width: 242px;
- height: 40px;
- padding: 0 6px;
-
- font-size: 1.1em;
- font-weight: bold;
- line-height: 40px;
- }
- aside a .icon {
- width: 28px;
- height: 28px;
- float: left;
- margin: 8px 6px 0 0;
-
- font-size: 1.9em;
- line-height: 1.0em;
- text-align: center;
- }
- @media handheld, only screen and (max-width: 768px) {
- article {
- -webkit-transition: left 0.3s ease-in-out;
- }
-
- aside {
- width: 0px;
- }
- aside.show {
- width: 256px;
- }
- }
- /* @end */
|