Use 'div' instead of 'section' and 'article'
authorPrateek Saxena <prtksxna@gmail.com>
Thu, 31 Jul 2014 13:44:04 +0000 (19:14 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Thu, 4 Sep 2014 04:36:26 +0000 (10:06 +0530)
The user-agent stylesheet was making the size
of both the h1's and h2's 1.5em as it was inside
<article> and <section>

:-webkit-any(article,aside,nav,section)
h1 - 1.5em user agent stylesheet
~h1 - 2em~ user agent stylesheet

Change-Id: Ied1d03f63c132dc3904d05cd4e55f70aa3f80c3d

docs/kss/styleguide-template/index.html
docs/kss/styleguide-template/public/kss.less

index b6036b2..38f0dd1 100644 (file)
@@ -19,7 +19,7 @@
        </header>
 
        <div class="container">
-               <nav class="content">
+               <nav>
                        <ul>
                                <li><a href="index.html"><span>0.0</span> Overview</a></li>
                                {{#eachRoot}}
                        </ul>
                </nav>
 
-               <article>
+               <div class="content">
                        {{#if overview}}
                                {{html overview}}
                        {{else}}
                                {{#eachSection rootNumber}}
-                               <section>
+                               <div>
                                        {{#whenDepth 1}}
                                                <h1>{{ reference }}.0 {{ header }}</h1>
                                        {{else}}
                                                                {{html description}}
                                                        {{/if}}
                                        {{/ifAny}}
-                               </section>
+                               </div>
                                {{/eachSection}}
                        {{/if}}
-               </article>
+               </div>
        </div>
 </div></body>
 </html>
index f5ddff1..a1d62a3 100644 (file)
@@ -1,4 +1,3 @@
-
 .container {
        width: 100%;
 }
@@ -7,7 +6,7 @@ nav {
        display: none;
 }
 
-article {
+.content {
        .example {
                blockquote {
                        margin-top: 20px;
@@ -25,7 +24,8 @@ body {
        font-family: "Nimbus Sans L", "Liberation Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
 }
 
-.content.kss-no-margin {
+.kss-no-margin {
+       // FIXME: Is this being used anywhere? Remove if not.
        margin: 0;
 }
 
@@ -89,7 +89,7 @@ nav {
        }
 }
 
-article {
+.content {
        -webkit-flex: 1;
        flex: 1;
 
@@ -154,7 +154,7 @@ article {
                width: auto;
        }
 
-       article {
+       .content {
                margin-left: 30px;
        }