Sha256: b8cec784b12bcca7215a26b328936444b3abfa1c769e376b4139fea02230852f

Contents?: true

Size: 1.44 KB

Versions: 40

Compression:

Stored size: 1.44 KB

Contents

<div class="card style-guide-partial" id="shame">
  <h2 class="style-guide-partial-title">_shame.scss is where bad CSS goes to die</h2>
  <div class="style-guide-partial-description">
    <p>Sometimes we just have to write bad CSS... its not even our fault sometimes!  We have other libraries we have to depend on and override with <code>!important</code>.  We have deeply nested selectors for legacy components we haven't gotten around to refactoring.  We have poorly named global variables expected by external services.  If you find yourself in this situation please follow the prescribed emergency procedures:</p>

    <h4>Step 1: Find a grown up</h4>
    <p>Ask a team member or post in hipchat a notice of the incoming aggravation.  If no suitable alternative is presented proceed to step 2 with your foul deed.</p>

    <h4>Step 2: Banish it to _shame.scss</h4>
    <p>This keeps the abomination isolated with other grotesque kin so that eventually refactoring them out and keeping track of them among all our other pristine and modular CSS isn't a problem.</p>
    <p class="text-danger"><strong>NOTE:</strong> if the _shame.scss file becomes cumbersome due to how many hideous creature lurk within it, now may be a great time to review the file and see which of them could possibly be resolved in some more modular and appropriate solution.  Otherwise something truly terrible has happened and is beyond the scope of this guide to help you with.</p>
  </div>
</div>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
forever_style_guide-3.0.27 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.26 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.25 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.24 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.23 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.22 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.21 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.20 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.19 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.18 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.17 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.16 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.15 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.14 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.13 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.12 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.11 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.10 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.9 app/views/forever_style_guide/sections/css_guide/_shame.html.erb
forever_style_guide-3.0.8 app/views/forever_style_guide/sections/css_guide/_shame.html.erb