podemos-info/census

View on GitHub
app/assets/stylesheets/common/_fixes.scss

Summary

Maintainability
Test Coverage
input[type=radio] {
  vertical-align: middle;
  margin-right: 0.5rem;
}

body.logged_in {
  .inputs {
    .field_with_errors {
      display: inline;
    }
    .input li.choice {
      display: inline-block;
      margin: 0 1rem 0 0;
    }
  }
}

body.logged_in.edit.review_orders .input .label {
  padding-top: 2px
}

.flash a {
  text-decoration: underline;
  color: white;
}

.panel_link {
  float:right;
  margin-top: -1.5rem;
}

table.index {
  tr.odd {
    background-color: rgba(0, 0, 0, 0.02);
  }
  th, td {
    text-align: center;
  }

  td.right {
    text-align: right;
  }

  td.left {
    text-align: left;
  }
}

body.index #sidebar {
  -webkit-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);

  &::before {
    -webkit-box-shadow: -3px 0 4px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: -3px 0 4px 0 rgba(0, 0, 0, 0.1);
    box-shadow: -3px 0 4px 0 rgba(0, 0, 0, 0.1);
  }
}

body.index.with_filters #sidebar::before {
  color: $success-color;
}

.scopes {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
  .table_tools_segmented_control {
    display: flex;
    flex-wrap: wrap;
    li a {
      margin-top: 10px;
    }
    li:first-child a {
      margin-left: 10px;
    }
  }
}

h1, h2, h3, h4, h5, h6 {
    margin: 1em 0 0.5em;
}

#main_content > .panel:first-child {
  margin-top: -20px;
}

.empty {
  color: #cbb;
  text-transform: lowercase;
}

body.show {
  table {
    table-layout: fixed;
  }
}