Ver código fonte

List stylesheets (beta)

soyjavi 13 anos atrás
pai
commit
bc82819812

+ 105 - 5
examples/kitchen-sink/test.html

@@ -55,14 +55,116 @@
 
         <footer>
             <nav class="with-labelss">
-                <a href="#layout-art1" data-router="article" data-label="Home" data-icon="home" ></a>
-                <a href="#layout-art2" data-router="article" data-label="Inbox" data-icon="inbox"  data-count="2" class="current" ></a>
+                <a href="#layout-art1" class="current"  data-router="article" data-label="Home" data-icon="home" ></a>
+                <a href="#layout-art2" data-router="article" data-label="Inbox" data-icon="inbox"  data-count="2" ></a>
                 <a href="#layout-art3" data-router="article" data-label="Profile" data-icon="user"></a>
                 <a href="#layout-art4" id="bb"  data-router="article" data-label="Settings" data-icon="settings"></a>
             </nav>
         </footer>
 
-        <article id="layout-art1" class="padding scroll">
+         <article id="layout-art1" class="list scroll">
+            <ul>
+                <li class="anchor">With right elements</li>
+
+                <li>
+                    <strong>&lt;li&gt; + &lt;strong&gt; </strong>
+                </li>
+
+                <li class="selectable">
+                    <strong>&lt;li .selectable&gt; + &lt;strong&gt; </strong>
+                </li>
+
+                <li>
+                    <a href="#">
+                        <strong>&lt;li&gt; + &lt;a&gt; + &lt;strong&gt; </strong>
+                    </a>
+                </li>
+
+                <li>
+                    <strong>&lt;li&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+
+                <li class="anchor">.arrow class</li>
+
+                <li class="arrow">
+                    <strong>&lt;li .arrow&gt; + &lt;strong&gt; </strong>
+                </li>
+
+                <li class="arrow disabled">
+                    <strong>&lt;li .arrow&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+
+                <li class="arrow">
+                    <strong>&lt;li .arrow&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                    <small>&lt;small&gt;</small>
+                </li>
+
+
+                <li class="anchor">.right element</li>
+
+                <li>
+                    <a href="#">
+                        <div class="right">.right</div>
+                        <strong>&lt;strong&gt; element</strong>
+                        <small>with &lt;small&gt; element</small>
+                    </a>
+                </li>
+
+                <li>
+                    <a href="#">
+                        <div class="right bubble blue">.right.bubble</div>
+                        <strong>&lt;strong&gt; element</strong>
+                        <small>with &lt;small&gt; element</small>
+                    </a>
+                </li>
+
+                <li>
+                    <a href="#">
+                        <div class="right bubble blue" data-icon="clock">.right data-icon</div>
+                        <strong>&lt;strong&gt; element</strong>
+                        <small>with &lt;small&gt; element</small>
+                    </a>
+                </li>
+
+                <li class="anchor">With data-icon or data-image attribute</li>
+                <li data-image="http://lungo.tapquo.com/resources/icon@2x.png">
+                    <strong>&lt;li data-image&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+                <li class=" thumb" data-image="http://lungo.tapquo.com/resources/icon@2x.png">
+                    <strong>&lt;li .thumb data-image&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+                <li data-icon="user">
+                    <strong>&lt;li data-icon&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+                <li class="thumb" data-icon="user">
+                    <strong>&lt;li .thumb data-icon&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+
+                <li class="anchor">With colours</li>
+                <li class="blue">
+                    <strong>&lt;li .blue&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+                <li class="green">
+                    <strong>&lt;li .green&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+                <li class="yellow">
+                    <strong>&lt;li .yellow&gt; + &lt;strong&gt; </strong>
+                    <small>&lt;small&gt;</small>
+                </li>
+            </ul>
+
+        </article>
+
+        <article id="layout-art2" class="padding scroll">
 
             <form>
                 <input type="search" placeholder="type your search" />
@@ -85,9 +187,7 @@
                     </div>
             </form>
         </article>
-        <article id="layout-art2">
 
-        </article>
         <article id="layout-art3"></article>
         <article id="layout-art4"></article>
     </section>

+ 1 - 5
src/stylesheets/Lungo.layout.list.less

@@ -13,11 +13,7 @@
     & li {
         list-style-type: none;
         padding: 8px;
-        position: relative;
-
-        /*
-        position: relative;
-        */
+        // position: relative;
 
         &.arrow::after{
             position: absolute;

+ 6 - 0
src/stylesheets/Lungo.theme.default.less

@@ -156,6 +156,12 @@ footer > nav > a, nav.groupbar > a{
             color: #fff;
         }
 
+        &.disabled {
+            background: #EEEEEE;
+            &, & a { color: #666; }
+
+        }
+
         &.highlight { background: @list-border; }
         &.anchor {
             background: @theme-dark;

+ 0 - 5
src/stylesheets/css/Lungo.layout.list.css

@@ -11,11 +11,6 @@
 .list li {
   list-style-type: none;
   padding: 8px;
-  position: relative;
-  /*
-        position: relative;
-        */
-
 }
 .list li.arrow::after {
   position: absolute;

+ 7 - 0
src/stylesheets/css/Lungo.theme.default.css

@@ -167,6 +167,13 @@ nav.groupbar > a.current {
   background: #222222;
   color: #fff;
 }
+.list li.disabled {
+  background: #EEEEEE;
+}
+.list li.disabled,
+.list li.disabled a {
+  color: #666;
+}
 .list li.highlight {
   background: #dddddd;
 }