// Do not edit this file. Create a custom theme instead.

.unit(@units:1) {
  width: (@unitNarrowWidth + ((@units - 1) * (@unitNarrowWidth + @gridUnitGutter)));
}

.max-unit(@units:1) {
  max-width: (@unitNarrowWidth + ((@units - 1) * (@unitNarrowWidth + @gridUnitGutter)));
}

// Overrides branding.css.less
#site-logo {
  float: left;
  margin-right: @size2; /* LTR */
}

#site-name,
#site-slogan {
  text-align: left; /* LTR */
}

// Overrides blocks.css.less
.block {
  .column();
}

.block-solo {
  .region-header-annex & {
    margin-bottom: 0;
    }
}

.block-region-header-annex,
.block-region-content,
.block-region-sidebar-first,
.block-region-sidebar-second,
.block-region-highlighted {
  margin-left: 0;
  margin-right: 0;
}

.block-region-topbar,
.block-region-navigation,
.block-region-billboard,
.block-region-placard,
.block-region-supplement,
.block-region-appendix,
.block-region-rider,
.block-region-footer {
  .unit(@gridTotalUnits);
}

// Overrides navigation.css.less
ul.menu {
  #main-menu &,
  #secondary-menu &,
  #navigation & {
    margin-left: @size2;
    margin-right: @size2;
  }
}

// Overrides nodes.css.less
.node-article .field-name-field-image img {
  float: left;
  margin: 0 @size2 0 0;
  body.two-sidebars #main & {
    .max-unit(@gridTwoSidebarsMain - @gridNodeAside);
  }
   body.sidebar-first #main  & {
    .max-unit(@gridSidebarFirstMain - @gridNodeAside);
  }
  body.sidebar-second #main  & {
    .max-unit(@gridSidebarSecondMain - @gridNodeAside);
  }
}

.node .field-name-field-tags {
  clear: both;
  margin: 0 0 @size1;
  .field-item {
    margin: 0 @size2 0 0;
  }
    div {
      display: inline;
    }
}

// Overrides  misc.css.less
body.page-admin-structure-block-demo {
  .block-region {
    margin-left: @size2;
    margin-right: @size2;
    margin-bottom: @size1;
  }
  .region-header-annex, #main, .region-sidebar-first, .region-sidebar-second, .region-highlighted {
    .block-region {
      margin-left: 0;
      margin-right: 0;
    }
  }
}

a.block-demo-backlink, a.block-demo-backlink:link, a.block-demo-backlink:visited {
  left: auto;
  right:  @size1; /* LTR */
}
