fix(theme): code not break in list

fix(theme): code not break in list

// Global variables
@base-font-size: 1.6vw;
@base-line-height: (20 / 14); // ~ 1.428571429
@link-color: #a212d1;
@background-color: #fff;
@text-color: #000;
@code-color: spin(@link-color, 180);
@sans-serif: "Helvetica Neue", Arial, "Hiragino Sans GB", sans-serif;
@serif: Georgia, "Hiragino Mincho ProN", serif;
@monospace: Menlo, monospace;
@breakpoint-lg: 1600px;
@breakpoint-md: 1000px;
@breakpoint-sm: 640px;
@breakpoint-xs: 400px;
@padding-lg: 22vw;
@padding-md: 8vw;
@padding-sm: 4vw;
@padding-xs: 0;

// Invert color switcher for images and videos
// :root { filter: invert(100%); }

// http://nicolasgallagher.com/micro-clearfix-hack/
.cf {

  &:before, &:after {
    display: table;
    content: "";
  }

  &:after {
    clear: both;
  }
}

// Basic reset
*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  padding: 0 @padding-lg;
  margin: 0 auto 0;
  font-family: @sans-serif;
  font-size: @base-font-size;
  line-height: @base-line-height;
  color: @text-color;
  text-rendering: optimizelegibility;
  background: @background-color;
  image-rendering: optimizequality;
  transition: all .3s ease .2s;

  @media (max-width: @breakpoint-md) {
    padding-left: @padding-md;
    padding-right: @padding-md;
    font-size: (@base-font-size * 1.4);
  }

  @media (max-width: @breakpoint-sm) {
    padding-left: @padding-sm;
    padding-right: @padding-sm;
    font-size: (@base-font-size * 2.4);
  }

  @media (max-width: @breakpoint-xs) {
    font-size: (@base-font-size * 3.2);
  }

  // All iOS devices, the easiest way
  @media (max-device-width: 480px), (max-device-width: 1024px) {
    -webkit-text-size-adjust: none;
  }

  // A semitranslucent bar at the top of the page
  &:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -9999;
    width: 100%;
    height: 1vmax;
    pointer-events: none;
    background: @link-color;
    content: "";
    opacity: .2;
  }
}

// Essential mixins
.heading {
  font-family: @sans-serif;
  font-size: 330%;
  -webkit-font-smoothing: antialiased;
  font-weight: bold;
  letter-spacing: -.06em;
}

.sub-heading {
  font-family: @sans-serif;
  font-size: 72%;
  font-weight: normal;
  letter-spacing: .08em;
  opacity: .5;
}

// Reset fonts for relevant elements
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

// Reset unusual Firefox-on-Android default style.
// See https://github.com/necolas/normalize.css/issues/214
button,
input,
select[multiple],
textarea {
  background-image: none;
}

// Reset common elements
a, button {
  color: @text-color;
  text-decoration: none;
  transition: color .5s ease, border-color .5s ease, background .5s ease, opacity 1.5s ease;

  &:hover,
  &:focus {
    border-bottom: .1em solid;
    transition: color .1s ease, border-color .1s ease, background .1s ease, opacity .1s ease;
  }

  &[disabled] {
    opacity: .4;
    cursor: not-allowed;
  }
}

img, hr {
  border: 0;
}

del {
  text-decoration: line-through;
}

::selection {
  color: @link-color;
  background: fade(@text-color, 2%);
}

::-webkit-input-placeholder {
  color: @text-color;
  opacity: .1;
}

// Site logo
.logo {
  display: block;
  height: 1vmax;
  margin: 0 0 1.4vmax;
  background: @link-color;
  opacity: 0;

  &:hover,
  &:focus {
    border-bottom: none !important;
    background: @text-color;
    opacity: 1;
  }

  h1 {
    height: 0;
    text-indent: -99999em;
  }
}

// Main navigation
.navigation {
  margin: 0 0 16vmin;
  margin-right: -1.1em;
  margin-left: -1.1em;
  font-size: 60%;
  font-weight: bold;
  letter-spacing: .45em;
  text-transform: uppercase;

  li {
    display: inline-block;
    line-height: 2;
    list-style: none;

    a {
      padding: .5em 1.2em;

      &:hover,
      &:focus {
        color: @link-color;
        border: none;
      }
    }
  }
}

// Currently activated page or category class
.current {

  a {
    color: @link-color;
  }
}

// Latest work link
body:hover .latest {
  color: @link-color !important;
}

// Pserson status
.content .status {
  margin: 1vmin 0 0;
  font-size: 75%;
  font-weight: bold;

  &:before {
    @size: .8em;
    display: inline-block;
    width: @size;
    height: @size;
    margin-right: .8vw;
    background: fade(@text-color, 20%);
    border-radius: 50%;
    content: "";
  }

  &.available {

    &:before {
      background: #0cf;
    }

    a {
      color: #0cf;
    }
  }

  &.unavailable {

    &:before {
      background: #ccc;
    }

    a {
      color: #ccc;
    }
  }
}

// Main content
.content {
  margin-bottom: 16vmin;

  // For some specified posts in work category
  .cf;

  // Remove extra space for the last paragraph in the container
  article {

    // article > p
    > *:last-child {
      margin-bottom: 0 !important;

      // article > ul > li, article > .footnotes > ol
      > *:last-child {
        margin-bottom: 0 !important;

        // article > ul > li > p, article > .footnotes > ol > li
        > *:last-child {
          margin-bottom: 0 !important;

          // article > .footnotes > ol > li > p
          > *:last-child {
            margin-bottom: 0 !important;
          }
        }
      }
    }
  }

  // Post / page content first element fix
  .post-content,
  .page-content {

    > *:first-child {
      margin-top: 0;

      > *:first-child {
        margin-top: 0;
      }
    }
  }

  a {
    font-weight: bold;
  }

  p {
    margin-bottom: 1.6rem;
    line-height: (@base-line-height * 1.2);
  }

  header {
    padding-bottom: 16vmin;

    h1 {
      margin: 0 0 .1em;
      .heading;
      hyphens: none;
      line-height: 1.1;

      @media (max-width: @breakpoint-sm) {
        // Override viewport units defined in post.html
        font-size: 280%;
      }

      svg {
        display: block;
        max-width: 100%;
      }

      // Override margin from article img
      svg,
      img {
        // avoid images inside .browser stretched by global img styles
        margin: 0;
        margin-bottom: .3em;

        @media (max-width: @breakpoint-sm) {
          width: 100% !important;
          height: 100% !important;
        }
      }
    }

    // Hide actual text if post title is image or SVG, the actual text helps Safari get the real post title in Reader mode.
    .image-title {
      text-indent: -999999px;
      line-height: 0;
    }

    .latest-post {
      margin-top: 16vmin;
      font-size: 80%;
      font-weight: normal;
      line-height: 1.2;

      a {
        font-weight: bold;
      }
    }

    small {
      display: block;
      margin-top: 2vmin;
      letter-spacing: .1em;
    }
  }

  h2, h3, h4, h5, h6 {
    margin: 10vmin 0 1rem;
    .sub-heading;
  }

  ul, ol {
    margin-bottom: 1.8rem;
    margin-left: 1.2em;

    li {
      line-height: (@base-line-height * 1.2);

      > ul, ol {
        margin-bottom: 0;
      }
    }
  }

  ol {
    margin-left: 1.75em;
  }

  img, video, iframe {
    display: block;
    max-width: 100%;
    margin: 0 0 1.8rem;

    @media (max-width: @breakpoint-md) {
      margin-left: -@padding-md;
      margin-right: -@padding-md;
      max-width: calc(100% + (@padding-md * 2));
      width: calc(100% + (@padding-md * 2));
    }

    @media (max-width: @breakpoint-sm) {
      margin-left: -@padding-sm;
      margin-right: -@padding-sm;
      max-width: calc(100% + (@padding-sm * 2));
      width: calc(100% + (@padding-sm * 2));
    }
  }

  blockquote {
    position: relative;
    margin-bottom: 2.8rem;
    margin-left: calc(-.8em - 2px);

    @media (max-width: @breakpoint-sm) {
      margin-left: 0;
    }

    > p {
      padding-left: .8em;
      border-left: 2px solid;

      @media (max-width: @breakpoint-sm) {
        padding-left: calc(4vw - 2px);
        padding-right: 4vw;
        margin-left: -4vw;
        margin-right: -4vw;
      }
    }

    footer {
      .cf;
    }

    cite {
      float: right;
      font-size: 90%;
      font-style: normal;

      &:before {
        // http://www.fileformat.info/info/unicode/char/2500/index.htm
        content: "\2500\2500\00a0"
      }
    }
  }

  hr {
    border-top: 1px solid fade(#ccc, 20%);
    margin-top: 2em;
    margin-bottom: 2em;
  }

  sup {
    font-size: 75%;
  }

  abbr {
    border-bottom: 1px dashed;
  }

  code, pre {
    font-family: @monospace;
    color: @code-color;
  }

  // Only apply word breaking rule for codes in paragraphs
  p code,
  li code {
    word-break: break-all;
  }

  pre {
    padding: 1em;
    margin: 0 0 1.8rem;
    overflow-x: scroll;
    font-size: 80%;
    line-height: (@base-line-height * 1.2);
    background: fade(#08f, 4%);
    // Bouncing scroll fix for iOS
    -webkit-overflow-scrolling: touch;

    @media (max-width: @breakpoint-md) {
      padding-left: 8vw;
      padding-right: 8vw;
      margin-left: -8vw;
      margin-right: -8vw;
    }

    @media (max-width: @breakpoint-sm) {
      padding-left: 4vw;
      padding-right: 4vw;
      margin-left: -4vw;
      margin-right: -4vw;
    }
  }

  // Newsletter subscription form in page "store"
  form {

    input {
      display: block;
      width: 100%;
      padding: 1vmin 0;
      margin: 0 0 1.8rem;
      border: none;
      border-bottom: 1px solid fade(@text-color, 20%);
      // Remove border-radius for iOS devices
      border-radius: 0;
      outline: none;
      transition: padding .2s ease;

      &:focus {
        padding: 1vmin;
        background: fade(@text-color, 2%);
        border-color: @text-color;
      }
    }
  }

  // Rest form validation styles, borrowed from Bootstrap
  input, textarea, select {

    &:focus:required:invalid {

      &:focus {
        background: fade(@link-color, 5%);
        border-color: @link-color;
        // Override Firefox default styles
        box-shadow: none;
      }
    }
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 90%;
    width: 100%;
    margin: 0 0 1.8rem;

    th,
    td {
      padding: .6em;
    }

    th {
      border-bottom: 2px solid fade(@text-color, 6%);
      // Override default user agent stylesheet
      text-align: left;
    }

    td {
      border-top: 1px solid fade(@text-color, 4%);
    }
  }
}

// Posts with Asian characters
[lang=zh],
[lang=ja] {
  text-align: justify;

  header {
    text-align: start;
  }
}

// Fix empty space when a paragraph starts with quote marks and some asian punctuation marks
.leading-indent-fix {
  text-indent: -.39em;
}

// Tweet button margin fix
.tweet {
  margin-top: 10vmin;
}

// Largetype styles (replaces button styles)
.largetype {
  .heading;
  font-size: 200%;
  margin-bottom: 1.8rem !important;
}

// Broser frame for images in category "work"
.browser {
  position: relative;
  padding-top: 24px;
  background: rgba(255, 255, 255, .1);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);

  &:before {
    position: absolute;
    top: 8px;
    left: 10px;
    display: block;
    width: 8px;
    height: 8px;
    background: lighten(#f24e59, 30%);
    border-radius: 50%;
    content: "";
    box-shadow:
        16px 0 0 0   fade(lighten(#fac536, 30%), 96%)
      , 32px 0 0 0   fade(lighten(#26e93d, 30%), 96%)
      ,    0 0 0 1px fade(darken(#f24e59, 30%), 30%)
      , 16px 0 0 1px fade(darken(#fac536, 30%), 30%)
      , 32px 0 0 1px fade(darken(#26e93d, 30%), 30%)
    ;
  }

  img {
    // avoid images inside .browser stretched by global img styles
    margin: 0;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, .05);

    // Reset borwser image width for small screens
    @media (max-width: @breakpoint-md), (max-width: @breakpoint-sm) {
      max-width: 100%;
      width: 100%;
    }
  }
}

// Special paragraph with border line
.note,
.store,
.download {
  padding-left: .8em;
  margin-left: calc(-.8em - 2px);
  border-left: 2px solid @link-color;

  @media (max-width: @breakpoint-sm) {
    padding-left: calc(4vw - 2px);
    padding-right: 4vw;
    margin-left: -4vw;
    margin-right: -4vw;
  }
}

// Reference notes and links in post
.footnotes {
  border-top: 1px solid fade(#ccc, 20%);
  padding-top: 2em;
  margin-top: 2em;
  font-size: 80%;
}

:target {

  // Redcarpet-style
  [rev=footnote],
  [rel=footnote],
  // Kramdown-style
  .reversefootnote,
  .footnote {
    color: @link-color;
  }
}

// Post list in "work" and "note"
.list {
  display: block;
  margin: 0 0 .4rem;

  h1 {
    .heading;
    font-size: 200%;
    line-height: 1.1;
    // Override heading defines in .content
    opacity: 1;
    margin: 0;

    @media (max-width: @breakpoint-sm) {
      // Hide external link for post list
      font-size: 180%;
    }
  }

  .external {

    &:hover,
    &:focus {
      border: none;
    }

    @media (max-width: @breakpoint-sm) {
      // Hide external link for post list
      display: none;
    }
  }
}

.external {

  span {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    margin: 0 .1em;
    vertical-align: middle;
    background: @text-color;
    border-radius: 50%;
    transition: transform .4s ease;
  }

  &:hover,
  &:focus {

    span {
      transform: scale(1.4);
    }
  }
}

.footer {
  padding: 0 0 16vmin;
  font-size: 75%;
  text-transform: lowercase;

  ul {

    li {
      display: inline;

      &:after {
        padding: 0 .6vw;
        content: " / ";
        opacity: .3;
      }

      &:last-child {

        &:after {
          content: none;
        }
      }
    }
  }
}

// Import theme modules
@import "module-loader";

// Import user custom styles
@import "../../../_less/custom";

// Global variables
@base-font-size: 1.6vw;
@base-line-height: (20 / 14); // ~ 1.428571429
@link-color: #a212d1;
@background-color: #fff;
@text-color: #000;
@code-color: spin(@link-color, 180);
@sans-serif: "Helvetica Neue", Arial, "Hiragino Sans GB", sans-serif;
@serif: Georgia, "Hiragino Mincho ProN", serif;
@monospace: Menlo, monospace;
@breakpoint-lg: 1600px;
@breakpoint-md: 1000px;
@breakpoint-sm: 640px;
@breakpoint-xs: 400px;
@padding-lg: 22vw;
@padding-md: 8vw;
@padding-sm: 4vw;
@padding-xs: 0;

// Invert color switcher for images and videos
// :root { filter: invert(100%); }

// http://nicolasgallagher.com/micro-clearfix-hack/
.cf {

  &:before, &:after {
    display: table;
    content: "";
  }

  &:after {
    clear: both;
  }
}

// Basic reset
*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  padding: 0 @padding-lg;
  margin: 0 auto 0;
  font-family: @sans-serif;
  font-size: @base-font-size;
  line-height: @base-line-height;
  color: @text-color;
  text-rendering: optimizelegibility;
  background: @background-color;
  image-rendering: optimizequality;
  transition: all .3s ease .2s;

  @media (max-width: @breakpoint-md) {
    padding-left: @padding-md;
    padding-right: @padding-md;
    font-size: (@base-font-size * 1.4);
  }

  @media (max-width: @breakpoint-sm) {
    padding-left: @padding-sm;
    padding-right: @padding-sm;
    font-size: (@base-font-size * 2.4);
  }

  @media (max-width: @breakpoint-xs) {
    font-size: (@base-font-size * 3.2);
  }

  // All iOS devices, the easiest way
  @media (max-device-width: 480px), (max-device-width: 1024px) {
    -webkit-text-size-adjust: none;
  }

  // A semitranslucent bar at the top of the page
  &:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -9999;
    width: 100%;
    height: 1vmax;
    pointer-events: none;
    background: @link-color;
    content: "";
    opacity: .2;
  }
}

// Essential mixins
.heading {
  font-family: @sans-serif;
  font-size: 330%;
  -webkit-font-smoothing: antialiased;
  font-weight: bold;
  letter-spacing: -.06em;
}

.sub-heading {
  font-family: @sans-serif;
  font-size: 72%;
  font-weight: normal;
  letter-spacing: .08em;
  opacity: .5;
}

// Reset fonts for relevant elements
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

// Reset unusual Firefox-on-Android default style.
// See https://github.com/necolas/normalize.css/issues/214
button,
input,
select[multiple],
textarea {
  background-image: none;
}

// Reset common elements
a, button {
  color: @text-color;
  text-decoration: none;
  transition: color .5s ease, border-color .5s ease, background .5s ease, opacity 1.5s ease;

  &:hover,
  &:focus {
    border-bottom: .1em solid;
    transition: color .1s ease, border-color .1s ease, background .1s ease, opacity .1s ease;
  }

  &[disabled] {
    opacity: .4;
    cursor: not-allowed;
  }
}

img, hr {
  border: 0;
}

del {
  text-decoration: line-through;
}

::selection {
  color: @link-color;
  background: fade(@text-color, 2%);
}

::-webkit-input-placeholder {
  color: @text-color;
  opacity: .1;
}

// Site logo
.logo {
  display: block;
  height: 1vmax;
  margin: 0 0 1.4vmax;
  background: @link-color;
  opacity: 0;

  &:hover,
  &:focus {
    border-bottom: none !important;
    background: @text-color;
    opacity: 1;
  }

  h1 {
    height: 0;
    text-indent: -99999em;
  }
}

// Main navigation
.navigation {
  margin: 0 0 16vmin;
  margin-right: -1.1em;
  margin-left: -1.1em;
  font-size: 60%;
  font-weight: bold;
  letter-spacing: .45em;
  text-transform: uppercase;

  li {
    display: inline-block;
    line-height: 2;
    list-style: none;

    a {
      padding: .5em 1.2em;

      &:hover,
      &:focus {
        color: @link-color;
        border: none;
      }
    }
  }
}

// Currently activated page or category class
.current {

  a {
    color: @link-color;
  }
}

// Latest work link
body:hover .latest {
  color: @link-color !important;
}

// Pserson status
.content .status {
  margin: 1vmin 0 0;
  font-size: 75%;
  font-weight: bold;

  &:before {
    @size: .8em;
    display: inline-block;
    width: @size;
    height: @size;
    margin-right: .8vw;
    background: fade(@text-color, 20%);
    border-radius: 50%;
    content: "";
  }

  &.available {

    &:before {
      background: #0cf;
    }

    a {
      color: #0cf;
    }
  }

  &.unavailable {

    &:before {
      background: #ccc;
    }

    a {
      color: #ccc;
    }
  }
}

// Main content
.content {
  margin-bottom: 16vmin;

  // For some specified posts in work category
  .cf;

  // Remove extra space for the last paragraph in the container
  article {

    // article > p
    > *:last-child {
      margin-bottom: 0 !important;

      // article > ul > li, article > .footnotes > ol
      > *:last-child {
        margin-bottom: 0 !important;

        // article > ul > li > p, article > .footnotes > ol > li
        > *:last-child {
          margin-bottom: 0 !important;

          // article > .footnotes > ol > li > p
          > *:last-child {
            margin-bottom: 0 !important;
          }
        }
      }
    }
  }

  // Post / page content first element fix
  .post-content,
  .page-content {

    > *:first-child {
      margin-top: 0;

      > *:first-child {
        margin-top: 0;
      }
    }
  }

  a {
    font-weight: bold;
  }

  p {
    margin-bottom: 1.6rem;
    line-height: (@base-line-height * 1.2);
  }

  header {
    padding-bottom: 16vmin;

    h1 {
      margin: 0 0 .1em;
      .heading;
      hyphens: none;
      line-height: 1.1;

      @media (max-width: @breakpoint-sm) {
        // Override viewport units defined in post.html
        font-size: 280%;
      }

      svg {
        display: block;
        max-width: 100%;
      }

      // Override margin from article img
      svg,
      img {
        // avoid images inside .browser stretched by global img styles
        margin: 0;
        margin-bottom: .3em;

        @media (max-width: @breakpoint-sm) {
          width: 100% !important;
          height: 100% !important;
        }
      }
    }

    // Hide actual text if post title is image or SVG, the actual text helps Safari get the real post title in Reader mode.
    .image-title {
      text-indent: -999999px;
      line-height: 0;
    }

    .latest-post {
      margin-top: 16vmin;
      font-size: 80%;
      font-weight: normal;
      line-height: 1.2;

      a {
        font-weight: bold;
      }
    }

    small {
      display: block;
      margin-top: 2vmin;
      letter-spacing: .1em;
    }
  }

  h2, h3, h4, h5, h6 {
    margin: 10vmin 0 1rem;
    .sub-heading;
  }

  ul, ol {
    margin-bottom: 1.8rem;
    margin-left: 1.2em;

    li {
      line-height: (@base-line-height * 1.2);

      > ul, ol {
        margin-bottom: 0;
      }
    }
  }

  ol {
    margin-left: 1.75em;
  }

  img, video, iframe {
    display: block;
    max-width: 100%;
    margin: 0 0 1.8rem;

    @media (max-width: @breakpoint-md) {
      margin-left: -@padding-md;
      margin-right: -@padding-md;
      max-width: calc(100% + (@padding-md * 2));
      width: calc(100% + (@padding-md * 2));
    }

    @media (max-width: @breakpoint-sm) {
      margin-left: -@padding-sm;
      margin-right: -@padding-sm;
      max-width: calc(100% + (@padding-sm * 2));
      width: calc(100% + (@padding-sm * 2));
    }
  }

  blockquote {
    position: relative;
    margin-bottom: 2.8rem;
    margin-left: calc(-.8em - 2px);

    @media (max-width: @breakpoint-sm) {
      margin-left: 0;
    }

    > p {
      padding-left: .8em;
      border-left: 2px solid;

      @media (max-width: @breakpoint-sm) {
        padding-left: calc(4vw - 2px);
        padding-right: 4vw;
        margin-left: -4vw;
        margin-right: -4vw;
      }
    }

    footer {
      .cf;
    }

    cite {
      float: right;
      font-size: 90%;
      font-style: normal;

      &:before {
        // http://www.fileformat.info/info/unicode/char/2500/index.htm
        content: "\2500\2500\00a0"
      }
    }
  }

  hr {
    border-top: 1px solid fade(#ccc, 20%);
    margin-top: 2em;
    margin-bottom: 2em;
  }

  sup {
    font-size: 75%;
  }

  abbr {
    border-bottom: 1px dashed;
  }

  code, pre {
    font-family: @monospace;
    color: @code-color;
  }

  // Only apply word breaking rule for codes in paragraphs
  p code {
    word-break: break-word;
    word-wrap: break-word;
  }

  pre {
    padding: 1em;
    margin: 0 0 1.8rem;
    overflow-x: scroll;
    font-size: 80%;
    line-height: (@base-line-height * 1.2);
    background: fade(#08f, 4%);
    // Bouncing scroll fix for iOS
    -webkit-overflow-scrolling: touch;

    @media (max-width: @breakpoint-md) {
      padding-left: 8vw;
      padding-right: 8vw;
      margin-left: -8vw;
      margin-right: -8vw;
    }

    @media (max-width: @breakpoint-sm) {
      padding-left: 4vw;
      padding-right: 4vw;
      margin-left: -4vw;
      margin-right: -4vw;
    }
  }

  // Newsletter subscription form in page "store"
  form {

    input {
      display: block;
      width: 100%;
      padding: 1vmin 0;
      margin: 0 0 1.8rem;
      border: none;
      border-bottom: 1px solid fade(@text-color, 20%);
      // Remove border-radius for iOS devices
      border-radius: 0;
      outline: none;
      transition: padding .2s ease;

      &:focus {
        padding: 1vmin;
        background: fade(@text-color, 2%);
        border-color: @text-color;
      }
    }
  }

  // Rest form validation styles, borrowed from Bootstrap
  input, textarea, select {

    &:focus:required:invalid {

      &:focus {
        background: fade(@link-color, 5%);
        border-color: @link-color;
        // Override Firefox default styles
        box-shadow: none;
      }
    }
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 90%;
    width: 100%;
    margin: 0 0 1.8rem;

    th,
    td {
      padding: .6em;
    }

    th {
      border-bottom: 2px solid fade(@text-color, 6%);
      // Override default user agent stylesheet
      text-align: left;
    }

    td {
      border-top: 1px solid fade(@text-color, 4%);
    }
  }
}

// Posts with Asian characters
[lang=zh],
[lang=ja] {
  text-align: justify;

  header {
    text-align: start;
  }
}

// Fix empty space when a paragraph starts with quote marks and some asian punctuation marks
.leading-indent-fix {
  text-indent: -.39em;
}

// Tweet button margin fix
.tweet {
  margin-top: 10vmin;
}

// Largetype styles (replaces button styles)
.largetype {
  .heading;
  font-size: 200%;
  margin-bottom: 1.8rem !important;
}

// Broser frame for images in category "work"
.browser {
  position: relative;
  padding-top: 24px;
  background: rgba(255, 255, 255, .1);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);

  &:before {
    position: absolute;
    top: 8px;
    left: 10px;
    display: block;
    width: 8px;
    height: 8px;
    background: lighten(#f24e59, 30%);
    border-radius: 50%;
    content: "";
    box-shadow:
        16px 0 0 0   fade(lighten(#fac536, 30%), 96%)
      , 32px 0 0 0   fade(lighten(#26e93d, 30%), 96%)
      ,    0 0 0 1px fade(darken(#f24e59, 30%), 30%)
      , 16px 0 0 1px fade(darken(#fac536, 30%), 30%)
      , 32px 0 0 1px fade(darken(#26e93d, 30%), 30%)
    ;
  }

  img {
    // avoid images inside .browser stretched by global img styles
    margin: 0;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, .05);

    // Reset borwser image width for small screens
    @media (max-width: @breakpoint-md), (max-width: @breakpoint-sm) {
      max-width: 100%;
      width: 100%;
    }
  }
}

// Special paragraph with border line
.note,
.store,
.download {
  padding-left: .8em;
  margin-left: calc(-.8em - 2px);
  border-left: 2px solid @link-color;

  @media (max-width: @breakpoint-sm) {
    padding-left: calc(4vw - 2px);
    padding-right: 4vw;
    margin-left: -4vw;
    margin-right: -4vw;
  }
}

// Reference notes and links in post
.footnotes {
  border-top: 1px solid fade(#ccc, 20%);
  padding-top: 2em;
  margin-top: 2em;
  font-size: 80%;
}

:target {

  // Redcarpet-style
  [rev=footnote],
  [rel=footnote],
  // Kramdown-style
  .reversefootnote,
  .footnote {
    color: @link-color;
  }
}

// Post list in "work" and "note"
.list {
  display: block;
  margin: 0 0 .4rem;

  h1 {
    .heading;
    font-size: 200%;
    line-height: 1.1;
    // Override heading defines in .content
    opacity: 1;
    margin: 0;

    @media (max-width: @breakpoint-sm) {
      // Hide external link for post list
      font-size: 180%;
    }
  }

  .external {

    &:hover,
    &:focus {
      border: none;
    }

    @media (max-width: @breakpoint-sm) {
      // Hide external link for post list
      display: none;
    }
  }
}

.external {

  span {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    margin: 0 .1em;
    vertical-align: middle;
    background: @text-color;
    border-radius: 50%;
    transition: transform .4s ease;
  }

  &:hover,
  &:focus {

    span {
      transform: scale(1.4);
    }
  }
}

.footer {
  padding: 0 0 16vmin;
  font-size: 75%;
  text-transform: lowercase;

  ul {

    li {
      display: inline;

      &:after {
        padding: 0 .6vw;
        content: " / ";
        opacity: .3;
      }

      &:last-child {

        &:after {
          content: none;
        }
      }
    }
  }
}

// Import theme modules
@import "module-loader";

// Import user custom styles
@import "../../../_less/custom";


site.less: whitespace changes

site.less: whitespace changes

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/MaryBoom/fatf-test.git/'


style(amounttable): always show download btn + fix floating "Name"

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bmesuere/uni-test.git/'


disable responsiveness

disable responsiveness


Fixed sidebar formSubmit issue

Fixed sidebar formSubmit issue

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/MenesesEvandro/WCF.git/'


editor sidebar

editor sidebar

body.editorSidebarOpen {
  .metabar-wrapper {
    padding-right: 300px;
  }
}

.editorSidebar {
  position: fixed;
  top: 70px;
  right: 340px;
  padding: 20px;
  width: 300px;
  border-left: 1px solid #000;
  border-left: 1px solid rgba(0,0,0,0.15);
  background-color: #333;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  z-index: 910;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transform: translate3d(300px, 0, 0);
  -moz-transform: translate3d(300px, 0, 0);
  -ms-transform: translate3d(300px, 0, 0);
  -o-transform: translate3d(300px, 0, 0);
  transform: translate3d(300px, 0, 0);
  border-radius: 8px;
  .options-arrow{
    content: " ";
    display: block;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent #000000 transparent;
    position: absolute;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    opacity:0.8;
  }
  .create{
  	background: green;
		color: #FFF;
		border: solid 1px green;
  }
  h3{
		font-family: "lato", sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    width: 100%;
    border-bottom: solid 1px;
    padding-bottom: 0;
    margin-top: 0;
    color: #fff;
  }
  span, label, p{
    font-family: "lato", sans-serif;
  }
  .btn {
		border: 2px solid #fff;
		color: #333;
		font-weight: bolder;
		background-color: #fff;
    font-family: "lato", sans-serif;
    &:hover{
      background-color: green;
      border: 2px solid green;
      color: #fff;
    }
  }
  .close{
    color: #fff;
    text-shadow: none;
    opacity: 1;
  }
  .autosave-status {
    font-size: 10px;
    font-weight: normal;
    margin: 5px;
  }
  .ng-binding{
    margin: 5px;
    font-weight: 300;
  }
	.sidebarModule{
		display: block;
		padding-bottom: 20px;
		label{
			width: 100px;
		}
    .btn-group{
      width: 100%;
  		.btn {
  			color: #333;
  			background-color: #fff;
  			border-color: #ccc;
  			border: 1px solid transparent;
        width: 50%
  		}
  		button.btn-public.active {
  			background: green;
  			color: #FFF;
  			border: solid 1px green;
  			opacity: 1;
  		}
      button.btn-private.active{
        background: #428bca;
  			color: #FFF;
  			border: solid 1px #428bca;
  			opacity: 1;
      }
    }
	}
	.btn-tooltip{
		float: right;
		display: block;
		border-radius: 50%;
		height: 18px;
		width: 18px;
		color: #333;
		border: none;
		border: solid 1px #b3b3b3;
		font-size: 11px;
		font-family: "lato", sans-serif;
		font-weight: 100;
		background-color: #fff;
		margin-top: 12px;
		padding-top: 0;
	}
	.btn-tooltip:hover {
    border-color: rgb(0,0,0);
		border-color: rgba(0,0,0,.3);
	}
	.popover {
		font-size: 0.6em;
		line-height: 1.8em;
		color: #000;
	}
	.form-group{
		input, .btn{
			color: #303030;
			margin-left: 15px;
			margin-top: 10px;
      width: auto;
		}
    .input-slug{
      width: 260px;
      font-family: "lato", sans-serif;
      font-size: 1.2em;
    }
	}
	.slug{
		span{
			font-size: 10px;
		}
	}
}

/*** ---- ACTIONS BAR ----------------------------- ***/
.actions-bar{
  position: absolute;
  top: 0;
  height: 60px;
  z-index: 900;
  padding: 20px;
  right: 0;
  ul {
    margin: 0;
    li {
      float: left;
      padding: 0;
      margin: 0;
    }
  }
}

error: pathspec 'client/assets/styles/components/editor-sidebar.less' did not match any file(s) known to git


removing line-height on placeholder to fix firefox alignment

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/pradeepmurugesan/incubator-freemarker-docgen.git/'


Fix a problem that the sidebar wasnt scrollable on mobiel devices with too much tags

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/howcani-project/howcani.git/'


Create core.less

Create core.less

// Base Class Definition
// -------------------------

.@{fa-css-prefix} {
  display: inline-block;
  font: normal normal normal @fa-font-size-base/1 FontAwesome; // shortening font declaration
  font-size: inherit; // can't have font-size inherit on line above, so need to override
  text-rendering: auto; // optimizelegibility throws things off #1094
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate(0, 0); // ensures no half-pixel rendering in firefox

}

error: pathspec 'font-awesome/less/core.less' did not match any file(s) known to git


reset box's padding

reset box's padding

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/notadd/administration.git/'


UI tweak

UI tweak

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/abailin/emojiwatch.git/'


OR-1730 Checkbox in primary color

OR-1730 Checkbox in primary color

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/heroandtn3/openpaas-esn.git/'


Delete stacked.less

Delete stacked.less

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/holly-luo/holly-luo.github.io.git/'


[NEW] forgot missing less file for r63452

git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@63453 b456876b-0849-0410-b77d-98878d47e9d5

error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403
fatal: the remote end hung up unexpectedly


Added uniform.less magic.

Added uniform.less magic.

@xs: ~"screen and (max-width:639px)";
@sm: ~"screen and (min-width:640px) and (max-width:959px)";
@md: ~"screen and (min-width:960px) and (max-width:1279px)";
@lg: ~"screen and (min-width:1280px) and (max-width:1919px)";
@xl: ~"screen and (min-width:1920px)";
* {
	box-sizing: border-box;
	font-size: 14rem;
}
html, body {
	min-height: 100% !important;
	height: 100%;
}
html {
    width: 100vw;
    overflow-x: hidden;

	@media @xs { font-size: 100vw/320; }
	@media @sm { font-size: 100vw/640; }
	@media @md { font-size: 100vw/960; }
	@media @lg { font-size: 100vw/1280; }
	@media @xl { font-size: 100vw/1920; }
}
body {
	text-size-adjust: 100%;
}

error: pathspec 'less/imports/uniform.less' did not match any file(s) known to git


Add backgroundorange in both spots its needed -- tooltip and arrow

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Thinkful/ui.git/'


chore: remove missing spaces

chore: remove missing spaces

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/hjiang/1byte.io.git/'


code review changes

code review changes

fatal: unable to access 'https://github.com/bac/juju-gui.git/': The requested URL returned error: 403


Abstract the charm panel border column.

Abstract the charm panel border column.

/* Processed with LESS from lib/views/stylesheet.less */
@font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;

/* Define common colors. */
@label-color: #292929;
@text-entry-color: #6d6e70;
@charm-panel-configure-title-color: #eee7d5;
@charm-panel-configure-name-color: #8f8f88;
@charm-panel-deploy-button-color: #dd4814;
@charm-panel-deploy-button-bottom-gradient: #e65c19;
@charm-panel-deploy-button-shadow: #8a2d0c;
@charm-panel-cancel-button-color: #b8b8b8;
@charm-panel-cancel-button-bottom-gradient: #a3a39f;
@charm-panel-cancel-button-shadow: #515050;
@charm-panel-separator-color: #aeaeae;
@charm-panel-background-color: #eeeeee;
@charm-panel-border-color: #C2C2C2;
@navbar-color: #2D2D2D!important;

body {
    margin-top: 87px;
    background-color: #302b28;
    font-family: @font-family;
}

input, button, select, textarea {
    font-family: @font-family;
}

.create-button(@gradient-start, @gradient-end, @shadow-color, @v-pos) {
    @blur: 2px;
    background-image: -ms-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@gradient-start), to(@gradient-end));
    background-image: -webkit-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -o-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -moz-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: linear-gradient(top, @gradient-start, @gradient-end);
    background-repeat: repeat-x;
    -moz-box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	                 2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    -webkit-box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	                    2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	            2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    -moz-border-radius: ~"4px / 7px";
    -webkit-border-radius: ~"4px / 7px";
    border-radius: ~"4px / 7px";
    border: none;
}

i.sprite {
    display: inline-block;
    vertical-align: middle;
}

#viewport-wrapper {
    position: relative;
    width: 85%;
    margin: 0 auto;
    padding: 0 12px;
    min-width: 960px;
}

#vp-left-border {
    position: absolute;
    top: 0;
    left: 0;
    background: url(/juju-ui/assets/images/left_shadow.png) repeat-y;
    margin-left: -12px;
    width: 12px;
}

#vp-right-border {
    position: absolute;
    top: 0;
    right: 0;
    background: url(/juju-ui/assets/images/right_shadow.png) repeat-y;
    margin-right: -12px;
    width: 12px;
}

.view-container {
  overflow: auto;
  padding: 10px;
}

.navbar {
    margin-top: -87px;
    margin-bottom: 0;
    height: 87px;
    min-width: 800px;
    background: url(/juju-ui/assets/images/top_bar.png) repeat-x;
    padding: 0;
    position: relative;
    color: @navbar-color;
    .brand {
        margin: 12px 26px 6px 10px;
        padding: 0;
    }
    > div {
        padding: 0;
        .nav-container {
            display: inline-block;
            height: 44px;
            margin: 2px 0 0 0;
            padding: 20px 0 4px;
            &#charm-search-trigger-container {
                width: 292px;
                white-space: nowrap;
                border-left: 1px solid transparent;
                &.active-border {
                    border-left-color: lightgray;
                }
            }
            .nav-section {
                border-left: 1px solid transparent;
                &.active-border {
                    border-left-color: lightgray;
                }
                display: inline-block;
                padding: 4px 10px;
                #charm-search-trigger {
                    cursor: pointer;
                }
                .btn {
                    margin: 0 5px;
                }
                input {
                    width: 128px;
                    background: url(/juju-ui/assets/images/searchbox_icon.png)
                                no-repeat 2px 1px whiteSmoke;
                    margin: 0 10px;
                    padding: 3px 3px 3px 26px;
                    font-style: italic;
                    font-size: 0.9em;
                    &:valid {
                        background: white;
                        padding: 3px;
                        width: 151px;
                        font-style: normal;
                        font-size: 1em;
                    }
                    &:focus {
                        border-color: rgba(82, 168, 236, 0.8);
                        outline: 0;
                        outline: thin dotted 9;
                        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
                                    0 0 8px rgba(82, 168, 236, 0.6);
                    }
                }

            }
        }
        span:first-child .nav-section {
            border-left: none;
            padding: 0 6px;
        }
        &#nav-alerts-charms {
            float: right;
            .nav-container:first-child .nav-section {
                position: relative;
            }
        }
        &#nav-brand-env .nav-container {
            float: left;
            .provider-type {
                font-size: 0.7em;
            }
        }
    }
}

.bottom-navbar {
    min-width: 800px;
}

#content {
    position: relative;
    background-color: #fff;
    width: 100%;
}

#main {

}

#overview {

}

.divider {
    padding: 5px;
}

svg {
    stroke-width: 0;
}

.crosshatch-background {
    background: url(/juju-ui/assets/images/pattern_tile.png) repeat;
}

#canvas {
    position: relative;
}

.environment-menu {
    @border_radius: 20px;
    @background_color: #282421;

    display: none;
    background-color: @background_color;
    color: #fdf6e3;

    border-radius: @border_radius;
    -moz-border-radius: @border_radius;
    -webkit-border-radius: @border_radius;

    box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);

    top: 0;
    left: 0;
    position: absolute;

    &.active {
        display: block;
    }

    .triangle {
        position: absolute;
        top: 62px;
        width: 12px;
        line-height: 21px;
        background-repeat: no-repeat;
    }
    &.left .triangle {
        right: -12px;
        background-image: url(/juju-ui/assets/images/icons/icon_shadow_triangle_right.png);
    }
    &.right .triangle {
        left: -12px;
        background-image: url(/juju-ui/assets/images/icons/icon_shadow_triangle.png);
    }

    .menu-title {
        margin: 10px;
    }

    .cancel {
        margin: 10px;
        float: right;
    }

    ul {
        margin: 10px;
        list-style-type: none;
        li {
            background-position: 5px center;
            background-repeat: no-repeat;
            border-bottom: 1px #5f594f solid;
            cursor: pointer;
            line-height: 32px;
            padding: 5px 5px 5px 5px;
            border-radius: @border_radius;
            -moz-border-radius: @border_radius;
            -webkit-border-radius: @border_radius;

            &.view-service {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_view.png);
            }
            &.add-relation {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_relation.png);
            }
            &.add-remove-units {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_relation.png);
                color: gray;
                cursor: default;
                &:hover {
                    background-color: inherit;
                }
            }
            &.destroy-service {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_destroy.png);
            }

            &:last-child {
                border-bottom: none;
            }
            &:hover {
                background-color: lighten(@background_color, 10%);
            }
        }

    }

    &#service-menu ul li {
        padding-left: 42px;
    }

}

charms.thumbnails.li { height:4em; }
.subordinate-rel-group {
    display: none;
    &.active {
        display: inline;
    }
}
.relation {
    stroke: #333333;
    stroke-width: 3px;
    &.error {
        stroke: #cc3333;
    }

    &.pending-relation {
        stroke: #faaf40;

        &.dragging {
            stroke: #fa6a40
        }
    }

    &.unused {
        visibility: hidden;
    }

    &.subordinate-relation {
        stroke: #3333cc;
    }
}
.rel-label {
    rect {
        stroke-width: 1px;
        stroke: #2c2c2c;
        fill: #eee;
    }

    tspan {
        text-anchor: middle;
        dominant-baseline: middle;
    }
}
.state-error { stroke: #FF0000; }
.state-started { stroke: #000000;}
.state-pending { stroke: #6597E8;}
div.state-error {
    @error-color: #c01c20;
    background-color: @error-color;
    color: #FFFFFF;
    &:hover {
        background-color: lighten(@error-color, 10%);
    }
}
div.state-started {
    @started-color: #d8d8d8;
    background-color: @started-color;
    &:hover {
        background-color: lighten(@started-color, 10%);
    }
}
div.state-pending {
    @pending-color: #fcd305;
    background-color: @pending-color;
    &:hover {
        background-color: lighten(@pending-color, 20%);
    }
}

.unit (@min_height: 20px, @border_radius:3px) {
    padding: 5px;
    -webkit-border-radius: @border_radius;
    -moz-border-radius: @border_radius;
    border-radius: @border_radius;
    margin-bottom: 0px;
    min-height: @min_height;
    cursor: pointer;
    .agent-state {
        display: none;
    }
}

ul#unit-large div.unit {
    .unit(40px);
}

ul#unit-medium div.unit {
    .unit;
}

ul#unit-small {
    margin-left: 0px;
    > li {
        margin-bottom: 5px;
        margin-left: 5px;
        > div.unit {
            .unit;
            width: 1.7em;
            text-align: center;
        }
    }
}

ul#unit-tiny {
    margin-left: 0px;
    > li {
        margin-bottom: 3px;
        margin-left: 3px;
        > div.unit {
            .unit(0px, 1px);
        }
    }
}

circle.mouse-down-indicator {
    stroke: #040404;
    stroke-width: 2px;
    fill: none;
}

g.service {
    fill: none;
    stroke: none;

    text {
        text-anchor: middle;
    }

    .charm-label {
        font-style: italic;
        fill: #4c4c4c;
    }
    .name {
        fill: #4c4c4c;
    }

   .unit-count {
        stroke-width: 0;
        text-anchor: middle;
        dominant-baseline: central;
        fill: rgba(0,0,0,0);

        &.show-count {
            fill: rgba(0,0,0,1);}
        &.hide-count {
            fill: rgba(0,0,0,0);}
    }

    .sub-rel-count {
        text-anchor: middle;
        dominant_baseline: central;
        fill: #4f4f4f;
        font-size: 1.2em;
    }

    .exposed-indicator {
        fill: #00F;

        &.off {
            visibility: hidden;
        }
        &.on {
            visibility: visible;
        }
    }

    .service-control-panel {
        visibility: hidden;

        &.active {
            visibility: visible;
        }

        image {
            cursor: pointer;
        }
    }
}
g.service-status {
    path {
        stroke-width: 0;
        fill: #fff;

        &.status-pending {
            fill: #fcd305;}
        &.status-good {
            fill: #b7b7b7;}
        &.status-error {
            fill: #c01c20;}
    }
}

g.unit {
    stroke-width: 0; font-weight: bold;
    font-size: 1.2em;
    fill: #1626cf;
    .address {
    fill: #ffffff; font-size: 0.8em;}
    .unit-border {
    stroke-width: 2px; fill: #a0a0a0;}
}

/*
 * Notification system
 */
.notice {
    border-top: 1px solid #D0D0D0;
    padding: 1em 4px;
    margin: 1em 0 0 2px;
    cursor: pointer;

    .seen {
        background-color: rgba(222, 222, 222, 0.33);
    }

    &:first-child {
        border: none;
        padding-top: 0;
    }

    small {
        margin-left: 1em;
        font-size: 0.7em;
        color: #d0d0d0;
    }

    .header {
        background-color: #c0c0c0;
        font-size: 0.9em;
        margin: 0;
        padding: 0;
    }

    .error {
        background-color: rgba(255, 0, 0, 0.1);
    }
}

#service-footer {
    text-align: center;
    .footer-right {
        float: right;
    }
    .footer-left {
        float: left;
    }
    input {
        width: 3em;
        margin-bottom: 0;
    }
}

/*
 * Overview Module
 */
#overview {
    margin: 0;
    padding: 0;
    width: 100%;
}
#overview-tasks {
    background: url(/juju-ui/assets/images/bottom_bar.png) repeat-x;
    height: 50px;
    position: relative;
    color: @navbar-color;

    .controls {
        position: absolute;
        top: 1px;
        left: 11px;
    }
    .destroy-control {
        position: absolute;
        top: 1px;
        right: 11px;
    }
}

.picker {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    height: 24px;
    &.graph-list-picker {
        width: 116px;
        .picker-body {
            width: 91px;
        }

        .picker-expanded {
            display: none;

            &.active {
                z-index: 100;
                display: block;
            }
            .picker-edge {
                display: block;
                top: auto;
                bottom: -10px;
                margin-left: -3px;
            }
            .picker-edge-right {
                left: auto;
                right: 0;
                margin-left: 0;
                margin-right: -3px;
            }
            .picker-list {
                position: absolute;
                bottom: -12px;
                left: 4px;
                height: 100%;
                background: url(/juju-ui/assets/images/view_1px.png) repeat-x;
                list-style-type: none;
                padding: 0;
                margin: 0;
                height: 54px;
                width: 108px;

                ul {
                    list-style-type: none;
                    padding: 0;
                    padding-top: 5px;
                    margin: 0;

                    li {
                        padding: 1px;

                        .activetick {
                            width: 12px;
                            height: 14px;
                            float: right;
                            background: url(/juju-ui/assets/images/selected_tick.png)
                                no-repeat
                                bottom left;
                        }
                    }
                }
            }
        }
    }
    &.zoom-picker {
        width: 56px;
        .picker-body {
            width: 36px;
        }
        /*#zoom-btn-up {
            position: absolute;
            top: 8px;
            right: 0px;
            opacity: 0;
            &.active {
                opacity: 1;
            }
        }
        #zoom-btn-down {
            position: absolute;
            bottom: -8px;
            right: 0px;
            opacity: 0;
            &.active {
                opacity: 1;
            }
        }*/
    }

    .picker-edge {
        position: absolute;
        top: 8px;
        left: 0;
    }
    .picker-body {
        position: absolute;
        top: 8px;
        left: 4px;
        background: url(/juju-ui/assets/images/picker_1px.png) repeat-x;
        height: 20px;
        padding: 3px 0 0 3px;
    }
    .picker-button {
        position: absolute;
        top: 8px;
        right: 0;
    }
    &.inactive {
        .picker-edge {
            display: none;
        }
        .picker-body {
            display: none;
        }
        .picker-button {
            display: none;
        }
    }
}

#unit-status {
    .running {
        color: green;
    }
    .pending {
        color: yellow;
    }
    .error {
        color: red;
    }
}

#relations {
    #unit-status;
    form {
        margin: 0;
    }
}

.yui3-panel {
    background: white;
    padding: 1.6em;
    border: solid black 2px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: none;
    font-weight: normal;
    .yui3-widget-bd {
        margin-bottom: 1em;
    }
    .yui3-widget-buttons {
        float: right;
        .btn-danger {
            margin-right: 1em;
        }
    }
}

.yui3-widget-mask {
    background: black;
    opacity: 0.4;
}

.controls {
    .read-only {
        padding-top: 5px;
    }
}

.unit-button-palette {
    float: right;
}

.hidden {
    visibility: hidden;
}

#service-relations {
    .btn {
        float: right;
    }
}

.customize-scrollbar {
    ::-webkit-scrollbar {
        width: 4px;
    }
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 1px 0 3px #989A9C;
    }
    ::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 4px 0 3px #D74613;
    }
}

#juju-search-charm-panel {
    .customize-scrollbar;
    display: block;
    z-index: 999;
    padding: 0;
    top: 70px;
    height: 100px;
    position: absolute;
    width: 292px;
    background-color: white;
    border-left: lightgray solid 1px;

    .charm-panel-configure .btn {
        float: right;
    }

    .btn.deploy {
        margin-top: 5px;
        margin-left: 5px;
        vertical-align: middle;
        background-position: 0 0;     /* Needed to defeat bootstrap btn:hover 0 -15px*/
        .create-button(@charm-panel-deploy-button-color, @charm-panel-deploy-button-bottom-gradient,
		       @charm-panel-deploy-button-shadow, 0px);
        &:active {
            .create-button(@charm-panel-deploy-button-color, @charm-panel-deploy-button-color,
			   @charm-panel-deploy-button-shadow, 1px);
        }
    }

    .charm-description btn.deploy {
       float: right;
    }
    .btn.cancel {
        color: white;
        text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.5);
        margin-top: 5px;
        background-repeat: no-repeat;
        background-color: transparent;
        vertical-align: middle;
        background-position: 0 0;     /* Needed to defeat bootstrap btn:hover 0 -15px*/
        background-image: url(/juju-ui/assets/images/cancel-button.png);
        .create-button(@charm-panel-cancel-button-color, @charm-panel-cancel-button-bottom-gradient,
		       @charm-panel-cancel-button-shadow, 0px);
        &:active {
            .create-button(@charm-panel-cancel-button-color, @charm-panel-cancel-button-color,
			   @charm-panel-cancel-button-shadow, 1px);
        }
    }
    .charm-panel-configure-buttons {
      background-color: #FFFFFF;
      border-bottom: 1px solid @charm-panel-separator-color;
      height: 52px;
      padding-left: 8px;
      .btn {
          margin-top: 12px;
      }
    }
    .search-charm-inner {
        width: 100%;
        height: 500px;
    }
    .charm-nav-back {
        border-top: 1px solid #DEDEDE;
        border-bottom: 1px solid @charm-panel-border-color;
        color: @charm-panel-deploy-button-color;
        cursor: pointer;
        font-size: 14px;
        padding: 10px 5px;
    }
    .charm-panel {
        background-color: @charm-panel-background-color;
        height: 432px;
        overflow-y: auto;
        overflow-x: hidden;
        h3 {
            color: @label-color;
            font-size: 22px;
            font-weight: normal;
            padding: 5px 0px 2px 0px;
        }
        h4 {
            padding: 12px 12px;
            cursor: pointer;
            border-top: 1px solid #FFFFFF;
            border-bottom: 1px solid @charm-panel-border-color;
            i {
                float: right;
            }
        }
        h5 {
            margin-top: 11px;
        }
        #charm-panel-head {
            border-top: 1px solid #FFFFFF;
            border-bottom: 2px solid @charm-panel-border-color;
            padding: 1ex 12px 10px 12px;
        }
        .collapsible {
            background-color: #E7E7E7;
            line-height: 17px;
            overflow: hidden;
            padding: 0px 12px;
            :last-child {
                margin-bottom: 11px;
            }
        }
        &.charm-description {
            color: #58595B;
            font-size: 12px;
            .charm-section {
                .commitmessage {
                    padding: 0.8ex 0 1ex 1em;
                    font-style: italic;
                    white-space: pre-wrap;
                }
            }
        }
        &.config-variant {
            font-size: 14px;

            .control-group {
                width: auto;
                margin-bottom: 0;
                margin-top: 1ex;
                padding: 0px 12px;
                clear: both;
            }
            .control-description {
                display: none;
            }
            .control-label {
                width: auto;
                margin-bottom: 1ex;
                float: left;
                color: @label-color;
                font-size: 14px;
            }
            .controls {
                margin-left: auto;
                margin-right: 0;
            }
            .config-field {
                font-size: 16px;
                color: text-entry-color;
            }
            .config-file-upload {
                position: relative;
                width: 252px;
                height: 25px;
            }
            .config-file-upload-widget {
                position: absolute;
                top: 0;
                left: 0;
                visibility: hidden;
                z-index: 0;
            }
            .config-file-upload-overlay {
                background: url(/juju-ui/assets/images/getfile_button.png) no-repeat;
                position: absolute;
                top: 0;
                left: 0;
                padding-left: 5px;
                padding-top: 2px;
                height: 25px;
                width: 149px;
                z-index: 2;
                cursor: pointer;
                &:active {
                  background: url(/juju-ui/assets/images/getfile_button-pressed.png) no-repeat;
                }
            }
            .config-file-name {
                position: absolute;
                top: 27px;
                left: 5px;
                width: auto;
                z-index: 2;
            }
            .controls.boolean {
                input {
                    margin-left: 1ex;
                    margin-top: 0.7ex;
                }
            }
            .btn {
                 margin-top: 5px;
            }
        }
    }
    .search-result-div {
        overflow-y:auto;
        overflow-x:hidden;
        .series-charms {
            border-top: 4px solid #D0D0D0;
            margin-top: 8px;
            margin-bottom: 4px;
            &:first-child {
                border: none;
                margin-top: 0;
            }
            h3 {
                font-weight: bold;
                text-transform: uppercase;
                font-size: 11px;
            }
            .charm-entry {
                border-top: 1px solid #D0D0D0;
                padding: 0.5em 4px;
                padding-bottom: 4px;
                margin: 0.2em 0 0 2px;
                &:first-child {
                    border: none;
                    padding-top: 0;
                }
                .charm-summary {
                    margin-bottom: 4px;
                }
                a.charm-detail {
                    font-weight: bold;
                }
                .btn {
                    float: right;
                    opacity: 0;
                }
            }
        }
    }
}

table tr.highlighted {
   background: pink;
}

#destroy-service {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.service-view {
    .juju-service-info-container-bottom-menu {
        background: url(/juju-ui/assets/images/bottom_bar.png) repeat-x;
        height: 50px;
        position: relative;
        color: @navbar-color;
        text-align: center;

        .filter-control {
            position: absolute;
            right: 430px;
            top: 13px;
            width: 300px;
            display: inline-block;

            .filter-label {
                position: absolute;
                right: 305px;
                top: 3px;
            }

            .control-separator {
                 padding-top: 0px;
                 padding-left: 5px;

                 img {
                    height: 30px;
                    padding-top: 0px;
                 }
            }

            .state-buttons {
                img {
                    padding-top: 0px;
                    height: 30px;
                }

                div {
                    padding-top: 3px;
                    width: 70px;
                    height: 21px;
                    background:url(/juju-ui/assets/images/toggles.png) -70px 0;

                    &.active {
                        background:url(/juju-ui/assets/images/on_middle.png) 0 0;
                        .white;
                    }

                    &:first-child {
                        background:url(/juju-ui/assets/images/toggles.png) 0 0px;

                        &.active {
                            background:url(/juju-ui/assets/images/on_left.png) 0 0;
                            .white;
                        }
                    }

                    &:last-child {
                        background:url(/juju-ui/assets/images/toggles.png) -210px 0;

                        &.active {
                            background:url(/juju-ui/assets/images/on_right.png) 0 0;
                            .white;
                        }
                    }
                }

                span:first-child {
                    padding-right: 5px;
                }

                .white {
                    a {color: white !important;}
                }

                a {
                    color: @navbar-color;
                    &:link, &:visited, &:active, &:hover {
                       text-decoration: none
                    }
                }
            }
        }

        .destroy-control {
            position: absolute;
            top: 1px;
            left: 10px;

            a {
                color: @navbar-color;
            }

            a:link, a:visited, a:active, a:hover {
                text-decoration: none
            }
        }
    }

    .service-header-partial {
      .name {
          padding-top: 38px;
          padding-left: 46px;
          height: 73px;

          div:nth-child(1) {
              font-style: normal;
              height: 28px;
              font-size: 24px;
              color: #292929;
          }

          div:nth-child(2) {
              font-style: italic;
              font-size: 16px;
              color: #6a737b;
          }
        }

        .menu-items {
            height: 26px;
            padding-top: 2px;
            padding-left: 38px;
            background: url(/juju-ui/assets/images/tab_div.png) repeat;

            .item {
                a {
                     font-size: 12px;
                     padding-left: 10px;
                     padding-right: 10px;
                     color: #292929;
                }
                a:link, a:visited, a:active, a:hover {
                     text-decoration: none
                }

                .link-active {
                    color: #dd4814 !important;
                }
                .active {
                     margin-top: 3px;
                     height: 4px;
                     background: url(/juju-ui/assets/images/tab_marker.png)
                       repeat;
                }
            }
        }
    }

    .service-common-controls {
        position: absolute;
        right: 10px;
        top: 10px;

        .control-unit-count {
            position: absolute;
            right: 120px;
            top: 0px;
            width: 305px;

            img {
                padding-top: 0px;
            }

            div {
                padding-left: 5px;
            }

            div:first-child {
                padding-top: 4px;
            }
        }

        .control-expose {
            position: absolute;
            right: 0px;
            top: 4px;
            width: 120px;

            div {
                padding-left: 5px;
            }

            .on {
                font-size: 12px; fill: #ffffff;
                position: absolute;
                right: 20px;
                top: 3px;
            }

            .off {
                font-size: 12px; fill: #292929;
                position: absolute;
                right: 40px;
                top: 3px;
            }
          }
    }
}

div.inline {
  float: left;
}

#tooltip {
    text-align: left;
    background-color: white;
    border: solid 1px black;
    padding: 0.2em 0.5em 0.3em;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    min-width: 20px;
    max-width: 400px;
}

.charm-panel-configure {
  background-image: url(/juju-ui/assets/images/configure-cog.png);
  background-repeat: no-repeat;
  background-position: 230px 42px;
  border-top: 2px solid #dd4814;
  background-color: #2F2A27;
  height: 93px;
  padding-left: 8px;
  .title {
    font-weight: lighter;
    font-size: 22px;
    color: @charm-panel-configure-title-color;
    margin-top: 35px;
  }
  .name {
    font-size: 12px;
    color: @charm-panel-configure-name-color;
    margin-top: 5px;
  }
}

/* Processed with LESS from lib/views/stylesheet.less */
@font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;

/* Define common colors. */
@label-color: #292929;
@text-entry-color: #6d6e70;
@charm-panel-configure-title-color: #eee7d5;
@charm-panel-configure-name-color: #8f8f88;
@charm-panel-deploy-button-color: #dd4814;
@charm-panel-deploy-button-bottom-gradient: #e65c19;
@charm-panel-deploy-button-shadow: #8a2d0c;
@charm-panel-cancel-button-color: #b8b8b8;
@charm-panel-cancel-button-bottom-gradient: #a3a39f;
@charm-panel-cancel-button-shadow: #515050;
@charm-panel-separator-color: #aeaeae;
@charm-panel-background-color: #eeeeee;
@navbar-color: #2D2D2D!important;

body {
    margin-top: 87px;
    background-color: #302b28;
    font-family: @font-family;
}

input, button, select, textarea {
    font-family: @font-family;
}

.create-button(@gradient-start, @gradient-end, @shadow-color, @v-pos) {
    @blur: 2px;
    background-image: -ms-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@gradient-start), to(@gradient-end));
    background-image: -webkit-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -o-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: -moz-linear-gradient(top, @gradient-start, @gradient-end);
    background-image: linear-gradient(top, @gradient-start, @gradient-end);
    background-repeat: repeat-x;
    -moz-box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	                 2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    -webkit-box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	                    2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    box-shadow: 0 (@v-pos + 3) @blur -@blur @shadow-color inset,
	            2px 0 3px -2px @shadow-color inset, -2px 0 3px -2px @shadow-color inset;
    -moz-border-radius: ~"4px / 7px";
    -webkit-border-radius: ~"4px / 7px";
    border-radius: ~"4px / 7px";
    border: none;
}

i.sprite {
    display: inline-block;
    vertical-align: middle;
}

#viewport-wrapper {
    position: relative;
    width: 85%;
    margin: 0 auto;
    padding: 0 12px;
    min-width: 960px;
}

#vp-left-border {
    position: absolute;
    top: 0;
    left: 0;
    background: url(/juju-ui/assets/images/left_shadow.png) repeat-y;
    margin-left: -12px;
    width: 12px;
}

#vp-right-border {
    position: absolute;
    top: 0;
    right: 0;
    background: url(/juju-ui/assets/images/right_shadow.png) repeat-y;
    margin-right: -12px;
    width: 12px;
}

.view-container {
  overflow: auto;
  padding: 10px;
}

.navbar {
    margin-top: -87px;
    margin-bottom: 0;
    height: 87px;
    min-width: 800px;
    background: url(/juju-ui/assets/images/top_bar.png) repeat-x;
    padding: 0;
    position: relative;
    color: @navbar-color;
    .brand {
        margin: 12px 26px 6px 10px;
        padding: 0;
    }
    > div {
        padding: 0;
        .nav-container {
            display: inline-block;
            height: 44px;
            margin: 2px 0 0 0;
            padding: 20px 0 4px;
            &#charm-search-trigger-container {
                width: 292px;
                white-space: nowrap;
                border-left: 1px solid transparent;
                &.active-border {
                    border-left-color: lightgray;
                }
            }
            .nav-section {
                border-left: 1px solid transparent;
                &.active-border {
                    border-left-color: lightgray;
                }
                display: inline-block;
                padding: 4px 10px;
                #charm-search-trigger {
                    cursor: pointer;
                }
                .btn {
                    margin: 0 5px;
                }
                input {
                    width: 128px;
                    background: url(/juju-ui/assets/images/searchbox_icon.png)
                                no-repeat 2px 1px whiteSmoke;
                    margin: 0 10px;
                    padding: 3px 3px 3px 26px;
                    font-style: italic;
                    font-size: 0.9em;
                    &:valid {
                        background: white;
                        padding: 3px;
                        width: 151px;
                        font-style: normal;
                        font-size: 1em;
                    }
                    &:focus {
                        border-color: rgba(82, 168, 236, 0.8);
                        outline: 0;
                        outline: thin dotted 9;
                        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
                                    0 0 8px rgba(82, 168, 236, 0.6);
                    }
                }

            }
        }
        span:first-child .nav-section {
            border-left: none;
            padding: 0 6px;
        }
        &#nav-alerts-charms {
            float: right;
            .nav-container:first-child .nav-section {
                position: relative;
            }
        }
        &#nav-brand-env .nav-container {
            float: left;
            .provider-type {
                font-size: 0.7em;
            }
        }
    }
}

.bottom-navbar {
    min-width: 800px;
}

#content {
    position: relative;
    background-color: #fff;
    width: 100%;
}

#main {

}

#overview {

}

.divider {
    padding: 5px;
}

svg {
    stroke-width: 0;
}

.crosshatch-background {
    background: url(/juju-ui/assets/images/pattern_tile.png) repeat;
}

#canvas {
    position: relative;
}

.environment-menu {
    @border_radius: 20px;
    @background_color: #282421;

    display: none;
    background-color: @background_color;
    color: #fdf6e3;

    border-radius: @border_radius;
    -moz-border-radius: @border_radius;
    -webkit-border-radius: @border_radius;

    box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);
    -moz-box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: -2px 4px 4px 0 rgba(0, 0, 0, 0.5);

    top: 0;
    left: 0;
    position: absolute;

    &.active {
        display: block;
    }

    .triangle {
        position: absolute;
        top: 62px;
        width: 12px;
        line-height: 21px;
        background-repeat: no-repeat;
    }
    &.left .triangle {
        right: -12px;
        background-image: url(/juju-ui/assets/images/icons/icon_shadow_triangle_right.png);
    }
    &.right .triangle {
        left: -12px;
        background-image: url(/juju-ui/assets/images/icons/icon_shadow_triangle.png);
    }

    .menu-title {
        margin: 10px;
    }

    .cancel {
        margin: 10px;
        float: right;
    }

    ul {
        margin: 10px;
        list-style-type: none;
        li {
            background-position: 5px center;
            background-repeat: no-repeat;
            border-bottom: 1px #5f594f solid;
            cursor: pointer;
            line-height: 32px;
            padding: 5px 5px 5px 5px;
            border-radius: @border_radius;
            -moz-border-radius: @border_radius;
            -webkit-border-radius: @border_radius;

            &.view-service {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_view.png);
            }
            &.add-relation {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_relation.png);
            }
            &.add-remove-units {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_relation.png);
                color: gray;
                cursor: default;
                &:hover {
                    background-color: inherit;
                }
            }
            &.destroy-service {
                background-image: url(/juju-ui/assets/images/icons/icon_noshadow_destroy.png);
            }

            &:last-child {
                border-bottom: none;
            }
            &:hover {
                background-color: lighten(@background_color, 10%);
            }
        }

    }

    &#service-menu ul li {
        padding-left: 42px;
    }

}

charms.thumbnails.li { height:4em; }
.subordinate-rel-group {
    display: none;
    &.active {
        display: inline;
    }
}
.relation {
    stroke: #333333;
    stroke-width: 3px;
    &.error {
        stroke: #cc3333;
    }

    &.pending-relation {
        stroke: #faaf40;

        &.dragging {
            stroke: #fa6a40
        }
    }

    &.unused {
        visibility: hidden;
    }

    &.subordinate-relation {
        stroke: #3333cc;
    }
}
.rel-label {
    rect {
        stroke-width: 1px;
        stroke: #2c2c2c;
        fill: #eee;
    }

    tspan {
        text-anchor: middle;
        dominant-baseline: middle;
    }
}
.state-error { stroke: #FF0000; }
.state-started { stroke: #000000;}
.state-pending { stroke: #6597E8;}
div.state-error {
    @error-color: #c01c20;
    background-color: @error-color;
    color: #FFFFFF;
    &:hover {
        background-color: lighten(@error-color, 10%);
    }
}
div.state-started {
    @started-color: #d8d8d8;
    background-color: @started-color;
    &:hover {
        background-color: lighten(@started-color, 10%);
    }
}
div.state-pending {
    @pending-color: #fcd305;
    background-color: @pending-color;
    &:hover {
        background-color: lighten(@pending-color, 20%);
    }
}

.unit (@min_height: 20px, @border_radius:3px) {
    padding: 5px;
    -webkit-border-radius: @border_radius;
    -moz-border-radius: @border_radius;
    border-radius: @border_radius;
    margin-bottom: 0px;
    min-height: @min_height;
    cursor: pointer;
    .agent-state {
        display: none;
    }
}

ul#unit-large div.unit {
    .unit(40px);
}

ul#unit-medium div.unit {
    .unit;
}

ul#unit-small {
    margin-left: 0px;
    > li {
        margin-bottom: 5px;
        margin-left: 5px;
        > div.unit {
            .unit;
            width: 1.7em;
            text-align: center;
        }
    }
}

ul#unit-tiny {
    margin-left: 0px;
    > li {
        margin-bottom: 3px;
        margin-left: 3px;
        > div.unit {
            .unit(0px, 1px);
        }
    }
}

circle.mouse-down-indicator {
    stroke: #040404;
    stroke-width: 2px;
    fill: none;
}

g.service {
    fill: none;
    stroke: none;

    text {
        text-anchor: middle;
    }

    .charm-label {
        font-style: italic;
        fill: #4c4c4c;
    }
    .name {
        fill: #4c4c4c;
    }

   .unit-count {
        stroke-width: 0;
        text-anchor: middle;
        dominant-baseline: central;
        fill: rgba(0,0,0,0);

        &.show-count {
            fill: rgba(0,0,0,1);}
        &.hide-count {
            fill: rgba(0,0,0,0);}
    }

    .sub-rel-count {
        text-anchor: middle;
        dominant_baseline: central;
        fill: #4f4f4f;
        font-size: 1.2em;
    }

    .exposed-indicator {
        fill: #00F;

        &.off {
            visibility: hidden;
        }
        &.on {
            visibility: visible;
        }
    }

    .service-control-panel {
        visibility: hidden;

        &.active {
            visibility: visible;
        }

        image {
            cursor: pointer;
        }
    }
}
g.service-status {
    path {
        stroke-width: 0;
        fill: #fff;

        &.status-pending {
            fill: #fcd305;}
        &.status-good {
            fill: #b7b7b7;}
        &.status-error {
            fill: #c01c20;}
    }
}

g.unit {
    stroke-width: 0; font-weight: bold;
    font-size: 1.2em;
    fill: #1626cf;
    .address {
    fill: #ffffff; font-size: 0.8em;}
    .unit-border {
    stroke-width: 2px; fill: #a0a0a0;}
}

/*
 * Notification system
 */
.notice {
    border-top: 1px solid #D0D0D0;
    padding: 1em 4px;
    margin: 1em 0 0 2px;
    cursor: pointer;

    .seen {
        background-color: rgba(222, 222, 222, 0.33);
    }

    &:first-child {
        border: none;
        padding-top: 0;
    }

    small {
        margin-left: 1em;
        font-size: 0.7em;
        color: #d0d0d0;
    }

    .header {
        background-color: #c0c0c0;
        font-size: 0.9em;
        margin: 0;
        padding: 0;
    }

    .error {
        background-color: rgba(255, 0, 0, 0.1);
    }
}

#service-footer {
    text-align: center;
    .footer-right {
        float: right;
    }
    .footer-left {
        float: left;
    }
    input {
        width: 3em;
        margin-bottom: 0;
    }
}

/*
 * Overview Module
 */
#overview {
    margin: 0;
    padding: 0;
    width: 100%;
}
#overview-tasks {
    background: url(/juju-ui/assets/images/bottom_bar.png) repeat-x;
    height: 50px;
    position: relative;
    color: @navbar-color;

    .controls {
        position: absolute;
        top: 1px;
        left: 11px;
    }
    .destroy-control {
        position: absolute;
        top: 1px;
        right: 11px;
    }
}

.picker {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0;
    height: 24px;
    &.graph-list-picker {
        width: 116px;
        .picker-body {
            width: 91px;
        }

        .picker-expanded {
            display: none;

            &.active {
                z-index: 100;
                display: block;
            }
            .picker-edge {
                display: block;
                top: auto;
                bottom: -10px;
                margin-left: -3px;
            }
            .picker-edge-right {
                left: auto;
                right: 0;
                margin-left: 0;
                margin-right: -3px;
            }
            .picker-list {
                position: absolute;
                bottom: -12px;
                left: 4px;
                height: 100%;
                background: url(/juju-ui/assets/images/view_1px.png) repeat-x;
                list-style-type: none;
                padding: 0;
                margin: 0;
                height: 54px;
                width: 108px;

                ul {
                    list-style-type: none;
                    padding: 0;
                    padding-top: 5px;
                    margin: 0;

                    li {
                        padding: 1px;

                        .activetick {
                            width: 12px;
                            height: 14px;
                            float: right;
                            background: url(/juju-ui/assets/images/selected_tick.png)
                                no-repeat
                                bottom left;
                        }
                    }
                }
            }
        }
    }
    &.zoom-picker {
        width: 56px;
        .picker-body {
            width: 36px;
        }
        /*#zoom-btn-up {
            position: absolute;
            top: 8px;
            right: 0px;
            opacity: 0;
            &.active {
                opacity: 1;
            }
        }
        #zoom-btn-down {
            position: absolute;
            bottom: -8px;
            right: 0px;
            opacity: 0;
            &.active {
                opacity: 1;
            }
        }*/
    }

    .picker-edge {
        position: absolute;
        top: 8px;
        left: 0;
    }
    .picker-body {
        position: absolute;
        top: 8px;
        left: 4px;
        background: url(/juju-ui/assets/images/picker_1px.png) repeat-x;
        height: 20px;
        padding: 3px 0 0 3px;
    }
    .picker-button {
        position: absolute;
        top: 8px;
        right: 0;
    }
    &.inactive {
        .picker-edge {
            display: none;
        }
        .picker-body {
            display: none;
        }
        .picker-button {
            display: none;
        }
    }
}

#unit-status {
    .running {
        color: green;
    }
    .pending {
        color: yellow;
    }
    .error {
        color: red;
    }
}

#relations {
    #unit-status;
    form {
        margin: 0;
    }
}

.yui3-panel {
    background: white;
    padding: 1.6em;
    border: solid black 2px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
    outline: none;
    font-weight: normal;
    .yui3-widget-bd {
        margin-bottom: 1em;
    }
    .yui3-widget-buttons {
        float: right;
        .btn-danger {
            margin-right: 1em;
        }
    }
}

.yui3-widget-mask {
    background: black;
    opacity: 0.4;
}

.controls {
    .read-only {
        padding-top: 5px;
    }
}

.unit-button-palette {
    float: right;
}

.hidden {
    visibility: hidden;
}

#service-relations {
    .btn {
        float: right;
    }
}

.customize-scrollbar {
    ::-webkit-scrollbar {
        width: 4px;
    }
    ::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 1px 0 3px #989A9C;
    }
    ::-webkit-scrollbar-thumb {
        -webkit-box-shadow: inset 4px 0 3px #D74613;
    }
}

#juju-search-charm-panel {
    .customize-scrollbar;
    display: block;
    z-index: 999;
    padding: 0;
    top: 70px;
    height: 100px;
    position: absolute;
    width: 292px;
    background-color: white;
    border-left: lightgray solid 1px;

    .charm-panel-configure .btn {
        float: right;
    }

    .btn.deploy {
        margin-top: 5px;
        margin-left: 5px;
        vertical-align: middle;
        background-position: 0 0;     /* Needed to defeat bootstrap btn:hover 0 -15px*/
        .create-button(@charm-panel-deploy-button-color, @charm-panel-deploy-button-bottom-gradient,
		       @charm-panel-deploy-button-shadow, 0px);
        &:active {
            .create-button(@charm-panel-deploy-button-color, @charm-panel-deploy-button-color,
			   @charm-panel-deploy-button-shadow, 1px);
        }
    }

    .charm-description btn.deploy {
       float: right;
    }
    .btn.cancel {
        color: white;
        text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.5);
        margin-top: 5px;
        background-repeat: no-repeat;
        background-color: transparent;
        vertical-align: middle;
        background-position: 0 0;     /* Needed to defeat bootstrap btn:hover 0 -15px*/
        background-image: url(/juju-ui/assets/images/cancel-button.png);
        .create-button(@charm-panel-cancel-button-color, @charm-panel-cancel-button-bottom-gradient,
		       @charm-panel-cancel-button-shadow, 0px);
        &:active {
            .create-button(@charm-panel-cancel-button-color, @charm-panel-cancel-button-color,
			   @charm-panel-cancel-button-shadow, 1px);
        }
    }
    .charm-panel-configure-buttons {
      background-color: #FFFFFF;
      border-bottom: 1px solid @charm-panel-separator-color;
      height: 52px;
      padding-left: 8px;
      .btn {
          margin-top: 12px;
      }
    }
    .search-charm-inner {
        width: 100%;
        height: 500px;
    }
    .charm-nav-back {
        border-top: 1px solid #DEDEDE;
        border-bottom: 1px solid #C2C2C2;
        color: @charm-panel-deploy-button-color;
        cursor: pointer;
        font-size: 14px;
        padding: 10px 5px;
    }
    .charm-panel {
        background-color: @charm-panel-background-color;
        height: 432px;
        overflow-y: auto;
        overflow-x: hidden;
        h3 {
            color: @label-color;
            font-size: 22px;
            font-weight: normal;
            padding: 5px 0px 2px 0px;
        }
        h4 {
            padding: 12px 12px;
            cursor: pointer;
            border-top: 1px solid #FFFFFF;
            border-bottom: 1px solid #C2C2C2;
            i {
                float: right;
            }
        }
        h5 {
            margin-top: 11px;
        }
        #charm-panel-head {
            border-top: 1px solid #FFFFFF;
            border-bottom: 2px solid #C2C2C2;
            padding: 1ex 12px 10px 12px;
        }
        .collapsible {
            background-color: #E7E7E7;
            line-height: 17px;
            overflow: hidden;
            padding: 0px 12px;
            :last-child {
                margin-bottom: 11px;
            }
        }
        &.charm-description {
            color: #58595B;
            font-size: 12px;
            .charm-section {
                .commitmessage {
                    padding: 0.8ex 0 1ex 1em;
                    font-style: italic;
                    white-space: pre-wrap;
                }
            }
        }
        &.config-variant {
            font-size: 14px;

            .control-group {
                width: auto;
                margin-bottom: 0;
                margin-top: 1ex;
                padding: 0px 12px;
                clear: both;
            }
            .control-description {
                display: none;
            }
            .control-label {
                width: auto;
                margin-bottom: 1ex;
                float: left;
                color: @label-color;
                font-size: 14px;
            }
            .controls {
                margin-left: auto;
                margin-right: 0;
            }
            .config-field {
                font-size: 16px;
                color: text-entry-color;
            }
            .config-file-upload {
                position: relative;
                width: 252px;
                height: 25px;
            }
            .config-file-upload-widget {
                position: absolute;
                top: 0;
                left: 0;
                visibility: hidden;
                z-index: 0;
            }
            .config-file-upload-overlay {
                background: url(/juju-ui/assets/images/getfile_button.png) no-repeat;
                position: absolute;
                top: 0;
                left: 0;
                padding-left: 5px;
                padding-top: 2px;
                height: 25px;
                width: 149px;
                z-index: 2;
                cursor: pointer;
                &:active {
                  background: url(/juju-ui/assets/images/getfile_button-pressed.png) no-repeat;
                }
            }
            .config-file-name {
                position: absolute;
                top: 27px;
                left: 5px;
                width: auto;
                z-index: 2;
            }
            .controls.boolean {
                input {
                    margin-left: 1ex;
                    margin-top: 0.7ex;
                }
            }
            .btn {
                 margin-top: 5px;
            }
        }
    }
    .search-result-div {
        overflow-y:auto;
        overflow-x:hidden;
        .series-charms {
            border-top: 4px solid #D0D0D0;
            margin-top: 8px;
            margin-bottom: 4px;
            &:first-child {
                border: none;
                margin-top: 0;
            }
            h3 {
                font-weight: bold;
                text-transform: uppercase;
                font-size: 11px;
            }
            .charm-entry {
                border-top: 1px solid #D0D0D0;
                padding: 0.5em 4px;
                padding-bottom: 4px;
                margin: 0.2em 0 0 2px;
                &:first-child {
                    border: none;
                    padding-top: 0;
                }
                .charm-summary {
                    margin-bottom: 4px;
                }
                a.charm-detail {
                    font-weight: bold;
                }
                .btn {
                    float: right;
                    opacity: 0;
                }
            }
        }
    }
}

table tr.highlighted {
   background: pink;
}

#destroy-service {
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.service-view {
    .juju-service-info-container-bottom-menu {
        background: url(/juju-ui/assets/images/bottom_bar.png) repeat-x;
        height: 50px;
        position: relative;
        color: @navbar-color;
        text-align: center;

        .filter-control {
            position: absolute;
            right: 430px;
            top: 13px;
            width: 300px;
            display: inline-block;

            .filter-label {
                position: absolute;
                right: 305px;
                top: 3px;
            }

            .control-separator {
                 padding-top: 0px;
                 padding-left: 5px;

                 img {
                    height: 30px;
                    padding-top: 0px;
                 }
            }

            .state-buttons {
                img {
                    padding-top: 0px;
                    height: 30px;
                }

                div {
                    padding-top: 3px;
                    width: 70px;
                    height: 21px;
                    background:url(/juju-ui/assets/images/toggles.png) -70px 0;

                    &.active {
                        background:url(/juju-ui/assets/images/on_middle.png) 0 0;
                        .white;
                    }

                    &:first-child {
                        background:url(/juju-ui/assets/images/toggles.png) 0 0px;

                        &.active {
                            background:url(/juju-ui/assets/images/on_left.png) 0 0;
                            .white;
                        }
                    }

                    &:last-child {
                        background:url(/juju-ui/assets/images/toggles.png) -210px 0;

                        &.active {
                            background:url(/juju-ui/assets/images/on_right.png) 0 0;
                            .white;
                        }
                    }
                }

                span:first-child {
                    padding-right: 5px;
                }

                .white {
                    a {color: white !important;}
                }

                a {
                    color: @navbar-color;
                    &:link, &:visited, &:active, &:hover {
                       text-decoration: none
                    }
                }
            }
        }

        .destroy-control {
            position: absolute;
            top: 1px;
            left: 10px;

            a {
                color: @navbar-color;
            }

            a:link, a:visited, a:active, a:hover {
                text-decoration: none
            }
        }
    }

    .service-header-partial {
      .name {
          padding-top: 38px;
          padding-left: 46px;
          height: 73px;

          div:nth-child(1) {
              font-style: normal;
              height: 28px;
              font-size: 24px;
              color: #292929;
          }

          div:nth-child(2) {
              font-style: italic;
              font-size: 16px;
              color: #6a737b;
          }
        }

        .menu-items {
            height: 26px;
            padding-top: 2px;
            padding-left: 38px;
            background: url(/juju-ui/assets/images/tab_div.png) repeat;

            .item {
                a {
                     font-size: 12px;
                     padding-left: 10px;
                     padding-right: 10px;
                     color: #292929;
                }
                a:link, a:visited, a:active, a:hover {
                     text-decoration: none
                }

                .link-active {
                    color: #dd4814 !important;
                }
                .active {
                     margin-top: 3px;
                     height: 4px;
                     background: url(/juju-ui/assets/images/tab_marker.png)
                       repeat;
                }
            }
        }
    }

    .service-common-controls {
        position: absolute;
        right: 10px;
        top: 10px;

        .control-unit-count {
            position: absolute;
            right: 120px;
            top: 0px;
            width: 305px;

            img {
                padding-top: 0px;
            }

            div {
                padding-left: 5px;
            }

            div:first-child {
                padding-top: 4px;
            }
        }

        .control-expose {
            position: absolute;
            right: 0px;
            top: 4px;
            width: 120px;

            div {
                padding-left: 5px;
            }

            .on {
                font-size: 12px; fill: #ffffff;
                position: absolute;
                right: 20px;
                top: 3px;
            }

            .off {
                font-size: 12px; fill: #292929;
                position: absolute;
                right: 40px;
                top: 3px;
            }
          }
    }
}

div.inline {
  float: left;
}

#tooltip {
    text-align: left;
    background-color: white;
    border: solid 1px black;
    padding: 0.2em 0.5em 0.3em;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    min-width: 20px;
    max-width: 400px;
}

.charm-panel-configure {
  background-image: url(/juju-ui/assets/images/configure-cog.png);
  background-repeat: no-repeat;
  background-position: 230px 42px;
  border-top: 2px solid #dd4814;
  background-color: #2F2A27;
  height: 93px;
  padding-left: 8px;
  .title {
    font-weight: lighter;
    font-size: 22px;
    color: @charm-panel-configure-title-color;
    margin-top: 35px;
  }
  .name {
    font-size: 12px;
    color: @charm-panel-configure-name-color;
    margin-top: 5px;
  }
}