Javi Jimenez Villar пре 13 година
родитељ
комит
8d7189c0a5

+ 3 - 3
example/app/sections/form.html

@@ -2,9 +2,9 @@
     <header data-title="Form Elements" data-back="home"></header>
 
     <nav data-control="groupbar">
-        <a href="#" data-view-article="form-normal" data-label="Profile" class="active"></a>
-        <a href="#" data-view-article="form-indented" data-label="Inbox"></a>
-        <a href="#" data-view-article="form-special" data-label="Map"></a>
+        <a href="#" data-view-article="form-normal" data-label="Normal" class="active"></a>
+        <a href="#" data-view-article="form-indented" data-label="Indented"></a>
+        <a href="#" data-view-article="form-special" data-label="Specials"></a>
     </nav>
 
     <article id="form-normal" class="scroll">

+ 13 - 8
example/app/sections/splash.html

@@ -1,11 +1,16 @@
 <section id="splash" data-transition="slide">
-    <article class="active indented splash">
-        <img src="http://cdn.tapquo.com/lungo/logo.png"/>
-        <form class="roundeds">
-            <input type="text" placeholder="Your username" id="txt-signup-name" value="">
-            <input type="password" placeholder="Your password" id="txt-signup-password" value="">
-            <a href="#" class="button theme anchor large" data-icon="lock" data-icon="user">Login</a>
-            <a href="#" data-view-section="back" class="button secondary anchor" data-icon="home">Return to Kichensink</a>
-        </form>
+    <article class="active splash">
+        <img src="http://cdn.tapquo.com/lungo/logo.png" class="logo"/>
+        <div class="form">
+            <fieldset>
+                <input type="text" class="large" placeholder="Your username" id="txt-signup-name" value="">
+            </fieldset>
+            <fieldset>
+                <input type="password" class="large" placeholder="Your password" id="txt-signup-password" value="">
+            </fieldset>
+            <a href="#" class="button large anchor" data-icon="lock" data-icon="user" data-label="Login"></a>
+            <a href="#" data-view-section="back" class="button large secondary anchor" data-icon="home" data-label="Return to kitchensink"></a>
+        </div>
+        <span class="copyright text thin">Copyright (C) 2011-2013 - <span class="text bold">Tapquo S.L.</span></span>
     </article>
 </section>

+ 3 - 1
example/index.html

@@ -57,6 +57,8 @@
 </head>
 
 <body class="app">
+
+
     <section id="main" data-transition="" data-aside="features" class="drag">
         <header>
             <nav>
@@ -111,7 +113,7 @@
                     Each new line of code in Lungo is welcome, we hope that Developers and restless minds help us to improve day by day this humble project.
                 </li>
                 <li>
-                    <a href="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flungo.tapquo.com%2F&text=@lungojs a framework for developers who want to design, build and share cross device apps" data-icon="brand twitter" target="_blank" class="button anchor theme" data-label="Tweet me"></a>
+                    <a href="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flungo.tapquo.com%2F&text=@lungojs a framework for developers who want to design, build and share cross device apps" target="_blank" class="button anchor theme" data-label="Tweet me"></a>
                 </li>
             </ul>
         </article>

+ 2 - 0
src/stylesheets/constants.styl

@@ -13,6 +13,8 @@ TRANSITION_TIME        = 400ms
 FONT_SIZE_TINY         = 11px
 FONT_SIZE_SMALL        = 0.9em
 FONT_SIZE_BIG          = 1.2em
+FONT_SIZE_LARGE        = 1.4em
+
 
 LIST_PADDING           = 14px
 LIST_PADDING_HORIZONTAL= (LIST_PADDING / 1.25)

+ 0 - 1
src/stylesheets/lungo.layout.list.styl

@@ -16,7 +16,6 @@
     padding: LIST_PADDING LIST_PADDING_HORIZONTAL (LIST_PADDING - 1) LIST_PADDING_HORIZONTAL
     position: relative
 
-
     &, & a, & small, & .right
       font-weight: 300
 

+ 2 - 2
src/stylesheets/lungo.widgets.button.styl

@@ -14,7 +14,7 @@
   border: none
   cursor: pointer
   font-family: inherit
-  font-size: 1.15em
+  font-size: FONT_SIZE_BIG
   text-align: center
   text-decoration: none
   outline: none
@@ -54,7 +54,7 @@
     &.large
       height: H = 52px
       padding: 0 20px
-      font-size: 1.4em
+      font-size: FONT_SIZE_LARGE
       line-height: (H - 2)
       & .icon + abbr
         margin-left: 10px

+ 1 - 1
src/stylesheets/lungo.widgets.form.styl

@@ -20,7 +20,7 @@ form, .form
     margin-bottom: 8px
     font-size: FONT_SIZE_BIG
     &.large
-      font-size: (FONT_SIZE_BIG * 1.2)
+      font-size: FONT_SIZE_LARGE
 
   & input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], select, textarea, label.select
     display: block

+ 7 - 13
src/stylesheets/lungo.widgets.splash.styl

@@ -11,27 +11,21 @@
 
 .splash
   text-align: center
+  padding: (INDENT * 2)
 
-  & > form
-    margin: 24px 32px
-
-  & img
-    max-width: 206px
-    margin: 20% auto 0%
-
-  & h1
-    margin-top: 20%
+  & .logo
+    width: 60%
+    margin: 20% 0 10% 0
     font-size: 2.2em
-    font-weight: bold
 
   & .button
-    margin-top: 10px
+    margin-top: INDENT
+    margin-bottom: INDENT
 
   & .copyright
     position: absolute
     width: 100%
     bottom: 8px
     left: 0px
-    font-size: 0.8em
-    font-style: normal
+    font-size: FONT_SIZE_TINY
     padding: 0px

+ 24 - 24
src/stylesheets/theme.lungo.styl

@@ -22,7 +22,6 @@ DARK            = #222
 DARK_light      = lighten(DARK, 25%)
 DARK_dark       = darken(DARK, 15%)
 DARK_darkest    = darken(DARK, 30%)
-FORM_radius     = 1px
 LIST_color      = lighten(COLOR, 5%)
 LIST_color_2nd  = lighten(COLOR, 35%)
 LIST_border     = lighten(COLOR, 90%)
@@ -32,6 +31,8 @@ THEME           = #0093D5
 THEME_light     = lighten(THEME, 15%)
 THEME_dark      = darken(THEME, 15%)
 
+FORM_color      = #e5e5e5
+BORDER_radius   = 2px
 /* -------------------------- DEFAULTS -------------------------- */
 body
   background-color: #000
@@ -55,7 +56,7 @@ section
     background-color: THEME
     box-shadow 0 2px 0 rgba(0,0,0,0.15), inset 0 1px 0 THEME_light, inset 0 -1px 0 THEME_dark
     color: #fff
-    border-radius 4px 4px 0 0
+    border-radius (BORDER_radius * 2) (BORDER_radius * 2) 0 0
 
   & > footer, & nav[data-control=groupbar]
     background-color: DARK
@@ -63,7 +64,7 @@ section
   & > article, & > [data-control="pull"]
     background-color: CONTENT
     &.splash
-      background: DARK
+      background: THEME
       color: #fff
   &.aside
     box-shadow -1px 0 2px rgba(0,0,0,0.2)
@@ -113,7 +114,6 @@ nav
     COLOR = DARK
     background: COLOR
     box-shadow 0 2px 0 rgba(0,0,0,0.15)
-
     &.icons
       background: rgba(0,0,0,0.8)
       & > a
@@ -200,7 +200,7 @@ nav
 /* -------------------------- TAG -------------------------- */
 .tag:not(.icon)
   color: #fff
-  border-radius 2px
+  border-radius BORDER_radius
   font-weight: 700 !important
   &.count
     background-color: THEME
@@ -245,14 +245,14 @@ header
     color: #fff
     background-color: THEME_dark
     box-shadow 0 1px 0 lighten(THEME, 15%), inset 0 1px 0 darken(THEME, 35%)
-    border-radius 4px
+    border-radius (BORDER_radius * 2)
     &:active
       background-color: darken(THEME, 40%)
 
 article
   & .button, button
     color: #fff !important
-    border-radius 2px
+    border-radius BORDER_radius
     box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
     border: solid 1px rgba(0,0,0,0.1)
     &:active
@@ -282,7 +282,11 @@ article
 
 
 /* -------------------------- FORMS -------------------------- */
-FORM_border_color = #e5e5e5
+.splash fieldset
+  &:first-child
+    border-radius BORDER_radius BORDER_radius 0px 0px
+  &:last-child
+    border-radius 0px 0px BORDER_radius BORDER_radius
 
 form, .form
   & label
@@ -303,21 +307,19 @@ form, .form
       background-color: lighten(COLOR_cancel, 75%)
       font-weight: 700
     &:focus, &:active, &:hover
-      background: lighten(THEME, 95%)
-      color: rgba(0, 0, 0, 0.75)
+      color: THEME_dark
     &[disabled]
-      background: darken(FORM_border_color, 10%)
+      background: darken(FORM_color, 10%)
       color: #999
     &.large
       font-weight: 700
 
-
   & .select:after
-    background: darken(FORM_border_color, 10%)
+    background: darken(FORM_color, 10%)
     color: #fff
 
   & input[type=range]
-    border-radius: 0px
+    border-radius 0px
     &:not(.checkbox)
       background-color: #ddd
       &:active
@@ -331,15 +333,13 @@ form, .form
         background-color: THEME_light
 
     &::-webkit-slider-thumb
-      border-radius: 2px
-      background-color: lighten(FORM_border_color, 50%)
-      border: solid 1px FORM_border_color
+      border-radius BORDER_radius
+      background-color: lighten(FORM_color, 50%)
+      border: solid 1px FORM_color
     &::-webkit-slider-thumb::after
-      background: FORM_border_color
-
-  & .progress
-    & .bar
-      background-color: #ddd
-      & .value
-        background-color: THEME_light
+      background: FORM_color
 
+  & .progress .bar
+    background-color: #ddd
+    & .value
+      background-color: THEME_light