Explorar el Código

Merge common elements in .layout

soyjavi hace 13 años
padre
commit
9a4f143dfa

+ 0 - 48
src/stylesheets/lungo.layout.aside.styl

@@ -1,48 +0,0 @@
-/**
- * Stylesheet
- *
- * @namespace Lungo.Layout
- * @class Aside
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
-
-@import "constants.styl"
-
-aside
-  min-width: ASIDE_WIDTH
-  display: none
-  z-index: -1
-
-  &.active
-    display-box()
-
-  &.show
-    z-index: 0
-
-  &.right
-    right: 0px
-
-  &.small
-    width: ASIDE_WIDTH_SMALL
-    & nav
-      width: ASIDE_WIDTH_SMALL
-      text-align: center
-      & a
-        display: block
-        padding: 0px
-        width: ASIDE_WIDTH_SMALL
-        height: ASIDE_WIDTH_SMALL
-        & .icon
-          position: absolute
-          width: inherit
-          font-size: ASIDE_SMALL_ICON
-          line-height: (ASIDE_WIDTH_SMALL - 8)
-
-        & .tag
-          position: relative
-          top: -(ASIDE_WIDTH_SMALL)
-          right: -(ASIDE_WIDTH_SMALL / 3.4)
-
-        &:first-child
-          margin-top: 8px

+ 0 - 58
src/stylesheets/lungo.layout.elements.styl

@@ -1,58 +0,0 @@
-/**
- * Stylesheet
- *
- * @namespace Lungo.Layout
- * @class Article
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
-
-@import "constants.styl"
-
-
-/* ========================================================================= */
-/* ============================= HEADER/FOOTER ============================= */
-/* ========================================================================= */
-header, footer
-  height: HEADER_HEIGHT
-  line-height: HEADER_HEIGHT
-
-  & > nav
-    box-flex(0)
-
-  & > .title
-    margin: 0 4px
-    float: left
-    z-index: -1
-    font-size: (FONT_SIZE_BIG * 1.2)
-    z-index: 0
-    box-flex(1)
-
-    &.centered
-      position: absolute
-      left: 32px
-      right: 32px
-      text-align: center
-      display: inline-block
-
-  & img.title
-    PAD = 18px
-    height: (HEADER_HEIGHT - PAD)
-    margin: (PAD / 2) auto
-
-
-/* ========================================================================= */
-/* ================================ ARTICLE ================================ */
-/* ========================================================================= */
-article
-  visibility: hidden
-  display: none
-
-  .show > &.active, .hide > &.active, .hiding > &.active
-    visibility: visible
-    display: block
-    z-index: 1
-
-    &.pull
-      transition-property(transform)
-      transition-duration(TRANSITION_TIME)

+ 92 - 0
src/stylesheets/lungo.layout.styl

@@ -28,8 +28,100 @@ aside, section
     box-flex(1)
     z-index: 0
 
+
+/* ========================================================================= */
+/* ================================ SECTION ================================ */
+/* ========================================================================= */
 section
   z-index: 2
   width: inherit
   &:not(.show)
     z-index: 1
+
+
+/* ========================================================================= */
+/* ================================= ASIDE ================================= */
+/* ========================================================================= */
+aside
+  min-width: ASIDE_WIDTH
+  display: none
+  z-index: -1
+
+  &.active
+    display-box()
+  &.show
+    z-index: 0
+  &.right
+    right: 0px
+
+  // &.small
+  //   width: ASIDE_WIDTH_SMALL
+  //   & nav
+  //     width: ASIDE_WIDTH_SMALL
+  //     text-align: center
+  //     & a
+  //       display: block
+  //       padding: 0px
+  //       width: ASIDE_WIDTH_SMALL
+  //       height: ASIDE_WIDTH_SMALL
+  //       & .icon
+  //         position: absolute
+  //         width: inherit
+  //         font-size: ASIDE_SMALL_ICON
+  //         line-height: (ASIDE_WIDTH_SMALL - 8)
+
+  //       & .tag
+  //         position: relative
+  //         top: -(ASIDE_WIDTH_SMALL)
+  //         right: -(ASIDE_WIDTH_SMALL / 3.4)
+
+  //       &:first-child
+  //         margin-top: 8px
+
+/* ========================================================================= */
+/* ============================= HEADER/FOOTER ============================= */
+/* ========================================================================= */
+header, footer
+  height: HEADER_HEIGHT
+  line-height: HEADER_HEIGHT
+
+  & > nav
+    box-flex(0)
+
+  & > .title
+    margin: 0 4px
+    float: left
+    z-index: -1
+    font-size: (FONT_SIZE_BIG * 1.2)
+    z-index: 0
+    box-flex(1)
+
+    &.centered
+      position: absolute
+      left: 32px
+      right: 32px
+      text-align: center
+      display: inline-block
+
+  & > img.title
+    PAD = 18px
+    height: (HEADER_HEIGHT - PAD)
+    margin: (PAD / 2) auto
+
+
+/* ========================================================================= */
+/* ================================ ARTICLE ================================ */
+/* ========================================================================= */
+article
+  visibility: hidden
+  display: none
+
+  .show > &.active, .hide > &.active, .hiding > &.active
+    visibility: visible
+    display: block
+    z-index: 1
+
+    &.pull
+      transition-property transform
+      transition-duration TRANSITION_TIME
+