omegainteractive/comfypress

View on GitHub
app/assets/stylesheets/comfypress/bootstrap_overrides.css.sass

Summary

Maintainability
Test Coverage
$form_fields: "select, textarea, input[type='text'], input[type='password'], input[type='datetime'], input[type='datetime-local'], input[type='date'], input[type='month'], input[type='time'], input[type='week'], input[type='number'], input[type='email'], input[type='url'], input[type='search'], input[type='tel'], input[type='color'], .uneditable-input"

body#comfy
  
  h1, h2, h3, h4, h5, .page-header
    margin-top: 0
  
  table.table
    th, td
      white-space: nowrap
    th.main, td.main
      width: 100%
      white-space: normal
    td.action-links
      text-align: right
      
  [class^="icon-"], [class*=" icon-"]
    background-image: url("/assets/comfypress/bootstrap/glyphicons-halflings.png")
  .icon-white
    background-image: url("/assets/comfypress/bootstrap/glyphicons-halflings-white.png")
  
  // -- Setting up border-box sizing, letting fields size themselves --------
  *
    outline: none
    -moz-box-sizing: border-box
    -webkit-box-sizing: border-box
    box-sizing: border-box
  #{$form_fields}
    height: auto
    padding: 6px
  form.formatted.form-horizontal
    .control-group
      margin-bottom: 5px
      .controls
        #{$form_fields}
          width: 100%
        textarea
          height: 400px
        textarea.short
          height: 100px
  
  // -- Alerts --------------------------------------------------------------
  .alert
    margin-bottom: 0px
    text-align: center