Sha256: 6c19dd4ac3d44ea96054830f995cce067d5400239f40e9a12dfeba8eb313c27e

Contents?: true

Size: 1006 Bytes

Versions: 40

Compression:

Stored size: 1006 Bytes

Contents

<div class="card style-guide-partial" id="code_style">
  <h2 class="style-guide-partial-title">CSS Code Style Guide</h2>
  <div class="style-guide-partial-description">
    <h4>Formatting Rules</h4>
    <ul>
      <li>Indent with 2 spaces.</li>
      <li>Open curly bracket on the definition line, no newline between rules, and use spaces after property names.</li>
      <li>Always use semicolons, even on the last rule where it's not required.</li>
    </ul>
<pre class="style-guide-partial-source prettyprint linenums show">
body {
  padding-top: 70px;
  font-family: "Helvetica Neue", Helvetica Neue, Helvetica, Arial, sans-serif;
}
.brand {
  float: left;
  padding-right: 8px;
}
</pre>
    <h4>Declaration Ordering</h4>
    <p>Order properties loosely based on:</p>
    <ol>
      <li>Positioning (e.g. position: absolute, float: left, clear: both)</li>
      <li>Sizing (width, height)</li>
      <li>Margin and Padding</li>
      <li>Decoration (color, border, font)</li>
    </ol>
  </div>
</div>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
forever_style_guide-3.0.7 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.6 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.5 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.4 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.3 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.2 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.1 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-3.0.0 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-2.0.3 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-2.0.2 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-2.0.1 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-2.0.0 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.11 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.10 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.9 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.8 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.7 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.5 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.4 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb
forever_style_guide-1.2.3 app/views/forever_style_guide/sections/css_guide/_code_style.html.erb