afimb/chouette2

View on GitHub
app/assets/stylesheets/main/lines.scss

Summary

Maintainability
Test Coverage
// Place all the styles related to the lines controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

#workspace.lines.index
{
  input[type="checkbox"].multiple_selection{
      vertical-align: middle;    
  }

  #search {

      label{
          margin-bottom: 0px;
      }

      input[type="checkbox"]{
          margin-left: 3px;
      }
      
  }
}

#workspace.lines.edit, #workspace.lines.new, #workspace.lines.create, #workspace.lines.update
{
    #line_color_old{ width: 100px;
                 color: white;
                 font-weight: bold;}

    .nested-fields.footnote, .add_footnote{
        @extend .col-md-offset-3;
    }

    .footnotes_block{
        margin-bottom: 30px;
    }    
}

#workspace.lines.show
{
    .summary p 
    {
      label {
        font-weight: bold;
      }
      .color
      {
        padding: 3px 15px 3px 15px;
      }
    }

    .group_of_line {   

        .position {
            width: 25px;
            height: 20px;
            float: left;
            background-color: #61970B;
            font-weight: bold;
            color: white;
            margin-right: 10px;
            padding-left: 4px;
        }
        .color {
            background-color: white;
            width: 64px;
            height: 64px;
            float: left;
            margin-right: 10px;
            border: 1px solid #999;

            a {
                text-decoration: none;                   
            }
        }

        .name a {
            display: inline;
        }
    }
}

.ce-LineBlock-header-list {
  display: table;
  width: 100%;
  margin: 0;
  padding: 0;
  > li {
    display: table-cell;
    vertical-align: middle;
    > input {
      margin-top: 0;
    }
    &:first-child {
      width: 37px;
    }
    &:last-child {
      text-align: right;
      width: 73px;
    }
  }
}
.ce-LineBlock-header-title {
  padding: 0 !important;
  line-height: 12px;
  font-size: 13px;
}