Update questions.less

Update questions.less

add padding to the right of renamed quote button so it fits in with the quote button at replies

@import 'variables.less';
@import 'includes/editor-tools.less';
@import 'includes/search-result.less';
@import 'includes/mixins.less';
@import 'includes/topic-list.less';

h1 {
  font-size: 46px;
  margin-top: 0;
}

h2 {
  font-size: 28px;
}

.product-list {
  a,
  a:visited {
    color: @textGrey;
    display: block;
    min-height: 96px;
  }

  .product {
    background: #fff;
    margin: 0 30px 30px 0;
    padding: 20px 30px;
  }

  .logo-sprite {
    background-position: 50% 50%;
    float: left;
  }

  .title {
    display: block;
    font-family: @OpenSansLight;
    font-size: 22px;
    letter-spacing: -1px;
    line-height: 22px;
    margin: 0 0 12px 99px;
  }

  .description {
    display: block;
    margin: 0 0 0 99px;
  }

  .no-image {
    .title,
    .description {
      margin-left: 0;
    }
  }
}

.answers {
  .attachments-title {
    border-bottom: 1px solid @textDarkGrey;
    font-weight: bold;
    margin: 20px 0 10px;
    padding: 10px 0;
  }

  .question-attachments {
    .attachment {
      display: inline-block;
      position: relative;

      .overlay {
        background: #ccc url('../img/wait-trans.gif') no-repeat center;
        bottom: 5px;
        left: 5px;
        opacity: .5;
        position: absolute;
        right: 5px;
        top: 5px;
      }

      img {
        background: url('../img/wait-trans.gif') no-repeat center;
        border: 1px solid #ccc;
        margin: 5px;
        text-align: center;
        vertical-align: top;
      }

      input.delete {
        background: #000;
        border: 2px solid #fff;
        border-radius: 1em;
        color: #fff;
        cursor: pointer;
        display: none;
        font-family: Verdana;
        font-weight: bold;
        opacity: .5;
        padding: 0 .2em;
        position: absolute;
        right: 10px;
        top: 10px;

        &:hover {
          opacity: 1;
        }
      }

      &:hover input.delete {
        display: block;
      }
    }

    img {
      max-height: 120px;
      max-width: 120px;
    }
  }

  .answer {
    &.marked-as-spam {
      .main-content {
        color: @textOrange;
      }
    }
  }

  .answer-tools {
    margin: 0 0 20px 130px;
    padding: 0 20px;

    > a {
      float: right;
      margin: 1px 0;
    }

    > form {
      float: left;
      text-transform: uppercase;

      .btn {
        text-transform: none;
      }
    }
  }

  .avatar {
    margin-bottom: 10px;

    img {
      border: 6px solid #fff;
    }
  }

  .helpful-count {
    &:before {
      content: '\2665';
      font-size: 20px;
      margin-right: 2px;
    }
  }

  .is-helpful,
  .is-spam {
    color: @textOrange;
  }

  .is-owner {
    color: @textBlue;
  }

  .is-solution {
    color: @textGreen;
  }

  .spam-form,
  .screen-share-form {
    .btn {
      float: right;
      margin-bottom: 10px;
    }
  }

  .taken-notice {
    background: #fff;
    border-left: 3px @textDarkOrange solid;
    line-height: 40px;
    margin: -15px 0 30px 0;
    padding: 0 10px;
  }

  .main-content {
    background: #fff;
    margin: 0 0 20px 130px;
    padding: 20px 30px;
    position: relative;

    &:before {
      border-color: transparent #fff;
      border-style: solid;
      border-width: 11px 11px 11px 0;
      height: 0;
      content: '';
      left: -11px;
      position: absolute;
      top: 20px;
      width: 0;
    }

    h3 {
      margin-top: 0;
    }

    > label {
      display: block;
      margin-top: 12px;
    }

    .content {
      > p {
        white-space: pre-wrap;
      }

      blockquote {
        background: rgba(180, 192, 200, 0.4);
        border-radius: 0.3em;
        margin: 1.5em 0em;
        padding: 1em;
      }
    }

    .read-more {
      margin-right: 30px;
    }

    .solution {
      border-top: 1px dotted @borderLightGrey;
      margin-top: 30px;
      padding-top: 30px;
    }

    .solution {
      h3 {
        color: @textGreen;
        display: inline;
      }
    }
  }

  .notice {
    background: url('../img/warning-stripes.png') top left repeat-x #ffe;
    border: 1px solid #fffbe7;
    margin: 0 0 20px 0;
    padding: 20px 30px;
  }

  .question-meta {
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        float: left;
        margin-right: 20px;
      }
    }

    span.last-answer-date {
      margin-left: 10px;
    }

    .marked-as-spam {
      color: @textOrange;
    }
  }

  .summary {
    margin: 0 0 10px 0;
  }

  .user-meta {
    float: left;
    font-size: 12px;
    margin: 0 20px 20px 0;
    width: 110px;

    .asked-by {
      margin-bottom: 25px;

      .answers,
      .solutions {
        display: block;
      }

      .solutions {
        font-weight: bold;
      }

      .karma-titles {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
          background: #fff;
          text-transform: uppercase;
          margin: 10px 0;
          padding: 5px;
        }
      }
    }
  }

  .question-tools {
    margin: 0 0 20px 130px;
    padding: 0 20px;
    text-align: right;

    .btn {
      margin: 10px 0;
    }

    .me-too {
      float: left;

      .btn {
        margin: 0;
      }
    }

    p {
      text-align: left;
    }
  }

  .report {
    margin-bottom: 20px;

    input,
    select {
      display: none;
    }

    .link-btn,
    .link-btn:visited,
    .link-btn:hover {
      color: @textLightGrey;
      display: block;
      float: right;
      font-size: 12px;
      text-transform: uppercase;
    }
  }

  .sidebar-nav {
    margin-bottom: 20px;

    &.condensed {
      margin-bottom: 0;
    }
  }

  .sidebox {
    margin-bottom: 20px;

    &.condensed {
      margin-bottom: 0;
    }
  }

  #details-submit {
    display: none;
  }

  #question-details {
    select {
      box-sizing: border-box;
      display: none;
      width: 100%;
    }

    &.editing {
      select {
        display: block;
      }

      .detail {
        display: none;
      }

      #details-submit {
        display: block;
      }

      #details-edit {
        display: none;
      }
    }
  }

  #question-reply {
    &:before {
      display: none;
    }

    textarea {
      margin-top: 10px;
      width: 510px;
    }

    .editor-tools {
      background: transparent;
    }
  }

  .system-details {
    text-transform: uppercase;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        margin-bottom: 2px;
      }
    }
  }

  #tags {
    text-transform: uppercase;

    button {
      background: transparent;
      border: 0;
      color: @textDarkOrange;
      cursor: pointer;
      margin: 0 0 0 5px;
      outline: none;
      padding: 0;
    }

    ul {
      list-style: none;
      margin: 0 0 12px 0;
      padding: 0;

      li {
        float: left;
        margin-right: 12px;

        a,
        a:visited,
        a:hover {
          color: @textGrey;
        }
      }

      &.immutable {
        button {
          display: none;
        }
      }
    }

    .btn {
      float: right;
    }

    .searchbox {
      display: block;
      margin-bottom: 12px;
      width: 140px;
    }
  }

  #related-content {
    li {
      text-transform: none;

      &.related-question,
      &.related-document {
        > a {
          padding-left: 58px;
          position: relative;

          &:before {
            background: url('../img/search-icons-sprite.png') no-repeat -23px -23px;
            background-size: 74px 148px;
            content: '';
            height: 28px;
            left: 20px;
            position: absolute;
            top: 12px;
            width: 28px;
          }
        }
      }

      &.related-question {
        > a {
          &:before {
            background-position: -23px -97px;
          }
        }
      }
    }
  }

  #vote-thanks-kbox {
    text-align: left;

    input#id_email {
      width: 230px;
    }
  }

  #more-system-details-kbox {
    margin-left: -115px;
    width: 720px;

    h1 {
      display: none;
    }

    h2 {
      font-size: 20px;
      font-weight: normal;
      margin: 15px 0 5px;
    }

    p,
    li {
      color: @textGrey;
      list-style: none;
      margin: 0;
    }

    div.about-support {
      ul {
        padding-left: 60px;
        li {
          list-style: disc;

          &.inactive {
            opacity: 0.5;
          }

          .key {
            font-weight: bold;
          }
        }
      }
    }

    div.plugins {
      li {
        background: transparent url(../img/questions/icon.plugin.gif) no-repeat 0 4px;
        padding: 2px 0 2px 25px;
      }
    }

    .bottom-close {
      margin: 10px 0 0;
      text-align: right;
    }
  }

  #email-subscribe-kbox {
    left: -150px;
    text-transform: none;
    top: 20px;
    width: 330px;

    ul.errorlist {
      margin: 0;
      padding: 0;

      li {
        margin: 0;
        padding: 0;
      }
    }

    a {
      padding: 0;
    }

    input#id_email {
      width: 270px;
    }

    form {
      ul {
        list-style: none;
        margin: 0;
        padding: 10px 0;
      }
    }
  }

  #report-abuse {
    margin-bottom: 20px;
  }
}

.highlight-box {
  h2 {
    margin: 0 0 20px;
  }

  .select-one {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      font-family: @OpenSansLight;
      font-size: 20px;
      margin: 10px 0;
    }
  }
}

.logo-sprite {
  background: url('../img/logos.large.sprite.png?v=2') -100px -100px no-repeat;
  height: 96px;
  width: 96px;

  &.logo-firefox {
    background-position: -100px -100px;
  }

  &.logo-firefox-os {
    background-position: -100px -988px;
  }

  &.logo-mobile {
    background-position: -100px -692px;
  }

  &.logo-webmaker {
    background-position: -100px -1284px;
  }

  &.logo-thunderbird {
    background-position: -100px -396px;
  }

  &.logo-other {
    background-position: -100px -1580px;
  }
}

.logo-sprite-tiny {
  background: url('../img/logos.large.sprite.png?v=3') -12px -12px no-repeat;
  background-size: 42px;
  height: 16px;
  width: 16px;

  &.logo-firefox {
    background-position: -12px -11px;
  }

  &.logo-thunderbird {
    background-position: -12px -53px;
  }

  &.logo-mobile {
    background-position: -12px -95px;
  }

  &.logo-firefox-os {
    background-position: -12px -137px;
  }

  &.logo-webmaker {
    background-position: -12px -179px;
  }

  &.logo-firefox-windows-8-touch {
    background-position: -12px -221px;
  }
}

.questions {
  list-style: none;
  margin: 0;
  padding: 0;

  > section {
    background: #fff;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    position: relative;

    h2 {
      font-size: 22px;
      margin: 4px 0 0;
    }

    h3 {
      font-size: 13px;
      margin: 0 0 4px;
      font-weight: bold;

      a:visited {
        color: #0095DD
      }
    }

    .content {
      border-left: 0px dotted @borderLightGrey;
      margin: 0 0 0 90px;
      min-height: 130px;
      padding: 0;

      .tag-list {
        display: inline-block;
        font-size: 0;
        list-style: none;
        margin: 0;
        padding: 0 280px 0 0;

        > li {
          font-size: 14px;
          display: inline-block;
          margin: 0 3px 3px 0;

          &:last-of-type {
            margin: 0;
          }

          > a,
          > a:visited {
            background: #EAEFF2;
            color: @textDarkGrey;
            display: inline-block;
            padding: 2px 5px;

            &:hover {
              color: #000;
            }
          }
        }
      }

      .short-text,
      .long-text {
        margin-bottom: 32px;
        min-height: 60px;
      }

      .user-meta {
        bottom: 23px;
        display: inline-block;
        font-size: 12px;
        position: absolute;
        right: 20px;
        text-align: right;
        width: 250px;
      }

    }

    .thread-meta {
      background: #fff;
      left: 0;
      overflow: hidden;
      padding: 0 6px;
      position: absolute;
      top: 0;
      width: 18px;

      &:hover {
        border-bottom: 1px solid @borderLightGrey;
        border-right: 1px solid @borderLightGrey;
        width: auto;
      }

      > div {
        background: @iconsSprite 0 0 no-repeat;
        color: #ccc;
        font-size: 11px;
        height: 18px;
        line-height: 18px;
        margin: 6px 0;
        padding: 0 0 0 24px;
        text-transform: uppercase;

        &.highlighted {
          color: @textGrey;
        }

        &.thread-contributed {
          background-position: -48px -977px;

          &.highlighted {
            background-position: -48px -1093px;
          }
        }

        &.thread-locked {
          background-position: -49px -2253px;
        }

        &.thread-archived {
          background-position: -49px -2369px;
        }

        &.thread-solved {
          background-position: -49px -746px;

          &.highlighted {
            background-position: -49px -862px;
          }
        }
      }
    }

    .question-meta {
      float: left;
      font-size: 11px;
      padding: 0 20px 0 0;
      text-align: center;
      text-transform: uppercase;
      width: 70px;

      > div {
        margin-bottom: 5px;
        width: 70px;

        &.views {
          margin-top: 12px;
        }
      }

      h4 {
        font-size: 30px;
        margin: 0;
      }

      &.urgent {
        h4 {
          color: #fe9300;
        }
      }
    }
  }

  #filters {
    margin-bottom: 20px;
    padding: 20px 34px;

    #more-filters {
      border-right: 1px dotted @borderLightGrey;
      float: left;
      width: 78.5%;

      .cf {
        margin-bottom: 10px;

        &:last-of-type {
          margin-bottom: 0;
        }

        > span {
          float: left;
          font-weight: bold;
        }

        > ul {
          float: left;
          list-style: none;
          margin: 0;
          padding: 0;

          > li {
            border-left: 1px solid @textGrey;
            float: left;
            margin-right: 10px;
            padding-left: 10px;

            &:first-of-type {
              border: none;
            }

            a,
            a:hover {
              color: @textGrey;

              &.selected {
                color: #000;
                font-weight: bold;
                text-decoration: none;
              }
            }

            label {
              cursor: pointer;
            }
          }
        }
      }
    }

    #flag-filter {
      box-sizing: border-box;
      float: right;
      padding-left: 25px;
      width: 21%;
    }
  }

  #filter-section {
    background: transparent;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.01));
    height: 60px;
  }

  #owner-tabs {
    padding: 0 8px;

    a,
    a:hover {
      border-radius: 6px 6px 0 0;
      float: left;
      font-size: 16px;
      height: 52px;
      line-height: 52px;
      margin-left: 6px;
      padding: 0 24px;
      text-decoration: none;

      &.selected {
        background: #fff;
        color: #000;
        font-weight: bold;
      }
    }
  }

  #top-contributors {
    position: relative;
    text-align: center;
    z-index: 20;

    ol {
      display: inline-block;
      width: 35%;

      li {
        margin: 5px 0;
      }
    }

    .inner-wrap {
      border: 1px solid #eee;
      display: none;
      text-align: left;
    }

    &:hover {
      .inner-wrap {
        background: #fff;
        display:block;
        position: absolute;
        right: -1px;
        top: 100%;
        width: 360px;
      }

      .feature-box {
        background: #fff;
      }
    }
  }

  .escalated,
  .offtopic {
    display: none;
  }
}

.show-escalated {
  .escalated {
    display: block;
  }
}

.show-offtopic {
  .offtopic {
    display: block;
  }
}

#aaq_progress {
  margin: 0 78px;

  .legend {
    color: @textGrey;
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    list-style: none;
    margin: 5px -78px;
    padding: 0;
    position: relative;
    z-index: 0;

    li {
      float: left;
      margin: 0 10px;
      position: relative;
      text-align: center;
      width: 136px;

      &.current {
        font-weight: bold;
      }

      &:before {
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        content: '';
        height: 24px;
        left: 50%;
        margin-left: -1px;
        position: absolute;
        top: -34px;
        width: 0;
      }

      &:first-of-type,
      &:last-of-type {
        &:before {
          display: none;
        }
      }
    }
  }

  .progress-bar {
    height: 8px;

    > div {
      height: 8px;
      min-width: 12px;
      padding-right: 12px;
    }

    .legend {
      li:before {
        height: 8px;
        top: -13px;
      }
    }
  }
}

#ask-search-form {
  .btn {
    float: right;
  }

  .searchbox {
    float: left;
    font-size: 24px;
    height: 36px;
    margin: 0 0 0 12px;
    padding: 4px 20px 8px 20px;
    padding-bottom: 8px;
    padding-top: 4px;
    width: 746px;
  }

  &.has-searched {
    .searchbox {
      width: 876px;
    }

    .btn {
      display: none;
    }
  }
}

#recent-stats {
  font-size: 13px;
  margin: 0 0 40px 0;

  .no_reply {
    margin: 0 6px;
  }

  .progress-bar {
    margin-top: 10px;
  }

  .complete {
    > div {
      background: #489615;
      background: linear-gradient(to bottom, #84C63C, #489615);
    }
  }

  .total {
    float: right;
    margin: 0 6px;
  }
}

#aaq_progress + #register-form {
  margin-top: 40px;
}

#register-form,
#login-form {
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 60px;
  padding: 0 60px 30px;

  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
  }

  h2 {
    margin-bottom: 0;

    + h4 {
      margin-bottom: 10px;
      margin-top: 5px;
    }
  }

  label {
    font-size: 12px;
    font-weight: bold;
  }

  form {
    ul {
      list-style: none;
      margin: 10px 0;
      padding: 0;

      > li {
        min-height: 100px;
      }

      input {
        box-sizing: border-box;
        padding: 10px;
        width: 45%;
      }

      label {
        display: block;
        margin: 10px 0;
      }
    }
  }

  h2 {
    font-size: 26px;
  }

  .submit {
    .btn {
      box-sizing: border-box;
      height: 45px;
      margin-top: 20px;
      width: 45%;
    }
  }

  .validation-label {
    box-sizing: border-box;
    color: #c00;
    display: none;
    float: right;
    margin-top: 10px;
    padding-left: 16px;
    width: 55%;

    &:before {
      content: '\2718'; /* X mark */
      margin-right: 10px;
    }

    &.valid {
      color: #090;

      &:before {
        content: '\2713'; /* Check mark */
      }
    }

    a.ignore-email {
      margin-left: 10px;
    }
  }
}

#show-login {
  text-align: center;
}

#login-form {
  display: none;
}

#login-help {
  margin-top: 10px;
}

#username-rules,
#password-rules {
  font-size: 12px;
  width: 45%;
}

#product-picker {
  > li {
    > a,
    > a:visited,
    > a:hover {
      color: @textGrey;

      > img {
        float: left;
      }

      > span {
        display: block;
        margin-left: 130px;

        &.title {
          font-family: @OpenSansLight;
          font-size: 18px;
        }
      }
    }
  }
}

#question-form {
  h2 {
    margin-bottom: 0;

    + p {
      font-family: @OpenSans;
      margin-top: 5px;
    }
  }

  .info {
    background: #f1f1f1;
    border-left: 2px solid @textBlue;
    font-size: 13px;
    padding: 16px;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    input {
      width: 700px;
    }

    label {
      display: block;
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 5px;

      &[for="id_troubleshooting"] {
        float: left;
        margin-right: 10px;
        margin-top: 6px;
      }
    }

    input[type="text"],
    textarea {
      box-sizing: border-box;
      width: 100%;
    }

    li {
      .cf();
      padding: 10px 0;

      &.details {
        display: none;

        input {
          width: auto;
        }
      }

      &.hide {
        .show {
          display: none;
        }
      }

      &.show {
        .hide {
          display: none;
        }
      }
    }

    &.show-details {
      li {
        &.details {
          display: block;
        }
      }
    }

    .editor-tools {
      display: none;
    }

    .submit {
      .btn {
        margin-left: 140px;
      }
    }

    #troubleshooting-manual,
    #troubleshooting-explanation {
      clear: both;
      font-size: 13px;
      margin: 10px 0;
    }
  }

  button {
    margin-top: 30px;
  }

  ol#troubleshooting-help {
    display: none;
    font-size: 13px;
    list-style: decimal;
    margin: 0;

    li {
      padding: 5px 0;

      &:before {
        display: block;
      }

      ul {
        margin: 0 0 0 10px;
        padding: 0px;
      }
    }
  }

  #troubleshooting-explanation {
    display: none;
  }

  #troubleshooting-field {
    display: none;
  }
}

#selected-category,
#selected-product {
  font-size: 14px;
  margin-bottom: 10px;

  a {
    font-size: 12px;
  }

  label {
    font-family: @OpenSansLight;
  }

  span {
    font-weight: bold;
  }
}

#selected-category {
  float: right;
}

#selected-product {
  float: left;
}

#product-topic-changer {
  margin-top: 25px;
}

.answers {
  .attachments-upload {
    margin: 1.5em 0 1.5em 128px;
  }
}
.attachments-upload {
  label {
    display: block;
    margin: .5em 0;
  }

  .adding-attachment {
    display: none;
    line-height: 4em;
  }

  .empty,
  .upload-progress {
    display: none;
  }

  .attachments {
    a:hover {
      img {
        border: 1px solid #eee;
      }
    }
  }

  .attachment {
    display: inline-block;
    position: relative;

    .overlay {
      background: #ccc url('../img/wait-trans.gif') no-repeat center;
      bottom: 5px;
      left: 5px;
      opacity: .5;
      position: absolute;
      right: 5px;
      top: 5px;
    }

    img {
      background: url('../img/wait-trans.gif') no-repeat center;
      border: 1px solid #ccc;
      margin: 5px;
      text-align: center;
      vertical-align: top;
    }

    input.delete {
      background: #000;
      border: 2px solid #fff;
      border-radius: 1em;
      color: #fff;
      cursor: pointer;
      display: none;
      font-family: Verdana;
      font-weight: bold;
      opacity: .5;
      padding: 0 .2em;
      position: absolute;
      right: 10px;
      top: 10px;

      &:hover {
        opacity: 1;
      }
    }

    &:hover input.delete {
      display: block;
    }
  }

  .upload-progress {
    background: url('../img/wait-trans.gif') no-repeat center;
    border: 1px solid #ccc;
    margin: 5px;
    text-align: center;
    vertical-align: top;

    &.show {
      display: inline-block;
    }
  }

  .add-attachment {
    noscript {
      input {
        margin-left: 1em;
      }
    }
  }

  input.image-delete {
    margin-top: 1em;
  }

  img {
    max-height: 120px;
    max-width: 120px;
  }
}

div.ans-attachments {
  padding: 10px 15px 0 10px;

  a:hover {
    img {
      border: 1px solid #eee;
    }
  }

  .attachment {
    display: inline-block;
    position: relative;

    .overlay {
      background: #ccc url('../img/wait-trans.gif') no-repeat center;
      bottom: 5px;
      left: 5px;
      opacity: .5;
      position: absolute;
      right: 5px;
      top: 5px;
    }

    img {
      background: url('../img/wait-trans.gif') no-repeat center;
      border: 1px solid #ccc;
      margin: 5px;
      text-align: center;
      vertical-align: top;
    }

    input.delete {
      background: #000;
      border: 2px solid #fff;
      border-radius: 1em;
      color: #fff;
      cursor: pointer;
      display: none;
      font-family: Verdana;
      font-weight: bold;
      opacity: .5;
      padding: 0 .2em;
      position: absolute;
      right: 10px;
      top: 10px;

      &:hover {
        opacity: 1;
      }
    }

    &:hover input.delete {
      display: block;
    }
  }

  img {
    max-height: 120px;
    max-width: 120px;
  }
}

#image-attachment-kbox {
  img {
    max-width: 100%;

    &.loading {
      background: transparent url(../img/wait-trans.gif) no-repeat center center;
      display: block;
      height: 32px;
      margin: auto;
      width: 32px;
    }
  }
}

.feature-box {
  margin: 0;
  padding: 13px 30px 15px;

  h2 {
    font-size: 21px;
  }
}

.edit-answer {
  .form-widget {
    width: 600px;
  }

  .form-widget,
  .info,
  .submit {
    margin: 20px 0 20px 128px;
  }

  textarea {
    width: 592px;
  }
}

#product-selector,
#topic-selector {
  float: right;
  font-size: 12px;
  margin-left: 10px;

  > select {
    padding: 2px;
    width:  300px;
  }
}

.edit-question {
  #add-troubleshooting-info,
  #troubleshooting-manual {
    display: none;
  }

  li.system-details-info {
    display: none;
  }

  #question-form {
    li.details {
      display: block;
    }
  }
}

#tagged {
  ul {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;

    > li {
      display: inline;
      margin-right: 10px;
    }
  }
}

.questions-sidebar {
  position: relative;

  .toggler {
    > span {
      border-radius: 2px;
      cursor: pointer;
      display: block;
      height: 28px;
      position: absolute;
      right: 0;
      top: 13px;
      width: 28px;
      z-index: 10;

      &:after {
        border-top: 2px solid #999;
        border-right: 2px solid #999;
        content: '';
        display: block;
        height: 6px;
        left: 50%;
        margin: -4px 0 0 -5px;
        position: absolute;
        top: 50%;
        transform: rotate(45deg);
        width: 6px;
      }

      &.expand {
        background: @textBlue;
        display: none;

        &:after {
          border-color: #fff;
          margin-left: -2.5px;
          transform: rotate(-135deg);
        }
      }
    }
  }
}

#questions-list {
  &.collapsed {
    .grid_9 {
      width: 894px;
    }

    .grid_3 {
      width: 26px;

      .sidebar-header,
      .sidebar-nav {
        display: none;
      }
    }

    .questions-sidebar {
      .toggler {
        > span {
          &.expand {
            display: block;
          }

          &.collapse {
            display: none;
          }
        }
      }
    }
  }
}

.content-raw {
  display: none;
}

.help-text {
  clear: both;
}

@import 'variables.less';
@import 'includes/editor-tools.less';
@import 'includes/search-result.less';
@import 'includes/mixins.less';
@import 'includes/topic-list.less';

h1 {
  font-size: 46px;
  margin-top: 0;
}

h2 {
  font-size: 28px;
}

.product-list {
  a,
  a:visited {
    color: @textGrey;
    display: block;
    min-height: 96px;
  }

  .product {
    background: #fff;
    margin: 0 30px 30px 0;
    padding: 20px 30px;
  }

  .logo-sprite {
    background-position: 50% 50%;
    float: left;
  }

  .title {
    display: block;
    font-family: @OpenSansLight;
    font-size: 22px;
    letter-spacing: -1px;
    line-height: 22px;
    margin: 0 0 12px 99px;
  }

  .description {
    display: block;
    margin: 0 0 0 99px;
  }

  .no-image {
    .title,
    .description {
      margin-left: 0;
    }
  }
}

.answers {
  .attachments-title {
    border-bottom: 1px solid @textDarkGrey;
    font-weight: bold;
    margin: 20px 0 10px;
    padding: 10px 0;
  }

  .question-attachments {
    .attachment {
      display: inline-block;
      position: relative;

      .overlay {
        background: #ccc url('../img/wait-trans.gif') no-repeat center;
        bottom: 5px;
        left: 5px;
        opacity: .5;
        position: absolute;
        right: 5px;
        top: 5px;
      }

      img {
        background: url('../img/wait-trans.gif') no-repeat center;
        border: 1px solid #ccc;
        margin: 5px;
        text-align: center;
        vertical-align: top;
      }

      input.delete {
        background: #000;
        border: 2px solid #fff;
        border-radius: 1em;
        color: #fff;
        cursor: pointer;
        display: none;
        font-family: Verdana;
        font-weight: bold;
        opacity: .5;
        padding: 0 .2em;
        position: absolute;
        right: 10px;
        top: 10px;

        &:hover {
          opacity: 1;
        }
      }

      &:hover input.delete {
        display: block;
      }
    }

    img {
      max-height: 120px;
      max-width: 120px;
    }
  }

  .answer {
    &.marked-as-spam {
      .main-content {
        color: @textOrange;
      }
    }
  }

  .answer-tools {
    margin: 0 0 20px 130px;
    padding: 0 20px;

    > a {
      float: right;
      margin: 1px 0;
    }

    > form {
      float: left;
      text-transform: uppercase;

      .btn {
        text-transform: none;
      }
    }
  }

  .avatar {
    margin-bottom: 10px;

    img {
      border: 6px solid #fff;
    }
  }

  .helpful-count {
    &:before {
      content: '\2665';
      font-size: 20px;
      margin-right: 2px;
    }
  }

  .is-helpful,
  .is-spam {
    color: @textOrange;
  }

  .is-owner {
    color: @textBlue;
  }

  .is-solution {
    color: @textGreen;
  }

  .spam-form,
  .screen-share-form {
    .btn {
      float: right;
      margin-bottom: 10px;
    }
  }

  .taken-notice {
    background: #fff;
    border-left: 3px @textDarkOrange solid;
    line-height: 40px;
    margin: -15px 0 30px 0;
    padding: 0 10px;
  }

  .main-content {
    background: #fff;
    margin: 0 0 20px 130px;
    padding: 20px 30px;
    position: relative;

    &:before {
      border-color: transparent #fff;
      border-style: solid;
      border-width: 11px 11px 11px 0;
      height: 0;
      content: '';
      left: -11px;
      position: absolute;
      top: 20px;
      width: 0;
    }

    h3 {
      margin-top: 0;
    }

    > label {
      display: block;
      margin-top: 12px;
    }

    .content {
      > p {
        white-space: pre-wrap;
      }

      blockquote {
        background: rgba(180, 192, 200, 0.4);
        border-radius: 0.3em;
        margin: 1.5em 0em;
        padding: 1em;
      }
    }

    .read-more {
      margin-right: 30px;
    }

    .solution {
      border-top: 1px dotted @borderLightGrey;
      margin-top: 30px;
      padding-top: 30px;
    }

    .solution {
      h3 {
        color: @textGreen;
        display: inline;
      }
    }
  }

  .notice {
    background: url('../img/warning-stripes.png') top left repeat-x #ffe;
    border: 1px solid #fffbe7;
    margin: 0 0 20px 0;
    padding: 20px 30px;
  }

  .question-meta {
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        float: left;
        margin-right: 20px;
      }
    }

    span.last-answer-date {
      margin-left: 10px;
    }

    .marked-as-spam {
      color: @textOrange;
    }
  }

  .summary {
    margin: 0 0 10px 0;
  }

  .user-meta {
    float: left;
    font-size: 12px;
    margin: 0 20px 20px 0;
    width: 110px;

    .asked-by {
      margin-bottom: 25px;

      .answers,
      .solutions {
        display: block;
      }

      .solutions {
        font-weight: bold;
      }

      .karma-titles {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
          background: #fff;
          text-transform: uppercase;
          margin: 10px 0;
          padding: 5px;
        }
      }
    }
  }

  .question-tools {
    margin: 0 0 20px 130px;
    text-align: right;

    .btn {
      margin: 10px 0;
    }

    .me-too {
      float: left;

      .btn {
        margin: 0;
      }
    }

    p {
      text-align: left;
    }
  }

  .report {
    margin-bottom: 20px;

    input,
    select {
      display: none;
    }

    .link-btn,
    .link-btn:visited,
    .link-btn:hover {
      color: @textLightGrey;
      display: block;
      float: right;
      font-size: 12px;
      text-transform: uppercase;
    }
  }

  .sidebar-nav {
    margin-bottom: 20px;

    &.condensed {
      margin-bottom: 0;
    }
  }

  .sidebox {
    margin-bottom: 20px;

    &.condensed {
      margin-bottom: 0;
    }
  }

  #details-submit {
    display: none;
  }

  #question-details {
    select {
      box-sizing: border-box;
      display: none;
      width: 100%;
    }

    &.editing {
      select {
        display: block;
      }

      .detail {
        display: none;
      }

      #details-submit {
        display: block;
      }

      #details-edit {
        display: none;
      }
    }
  }

  #question-reply {
    &:before {
      display: none;
    }

    textarea {
      margin-top: 10px;
      width: 510px;
    }

    .editor-tools {
      background: transparent;
    }
  }

  .system-details {
    text-transform: uppercase;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        margin-bottom: 2px;
      }
    }
  }

  #tags {
    text-transform: uppercase;

    button {
      background: transparent;
      border: 0;
      color: @textDarkOrange;
      cursor: pointer;
      margin: 0 0 0 5px;
      outline: none;
      padding: 0;
    }

    ul {
      list-style: none;
      margin: 0 0 12px 0;
      padding: 0;

      li {
        float: left;
        margin-right: 12px;

        a,
        a:visited,
        a:hover {
          color: @textGrey;
        }
      }

      &.immutable {
        button {
          display: none;
        }
      }
    }

    .btn {
      float: right;
    }

    .searchbox {
      display: block;
      margin-bottom: 12px;
      width: 140px;
    }
  }

  #related-content {
    li {
      text-transform: none;

      &.related-question,
      &.related-document {
        > a {
          padding-left: 58px;
          position: relative;

          &:before {
            background: url('../img/search-icons-sprite.png') no-repeat -23px -23px;
            background-size: 74px 148px;
            content: '';
            height: 28px;
            left: 20px;
            position: absolute;
            top: 12px;
            width: 28px;
          }
        }
      }

      &.related-question {
        > a {
          &:before {
            background-position: -23px -97px;
          }
        }
      }
    }
  }

  #vote-thanks-kbox {
    text-align: left;

    input#id_email {
      width: 230px;
    }
  }

  #more-system-details-kbox {
    margin-left: -115px;
    width: 720px;

    h1 {
      display: none;
    }

    h2 {
      font-size: 20px;
      font-weight: normal;
      margin: 15px 0 5px;
    }

    p,
    li {
      color: @textGrey;
      list-style: none;
      margin: 0;
    }

    div.about-support {
      ul {
        padding-left: 60px;
        li {
          list-style: disc;

          &.inactive {
            opacity: 0.5;
          }

          .key {
            font-weight: bold;
          }
        }
      }
    }

    div.plugins {
      li {
        background: transparent url(../img/questions/icon.plugin.gif) no-repeat 0 4px;
        padding: 2px 0 2px 25px;
      }
    }

    .bottom-close {
      margin: 10px 0 0;
      text-align: right;
    }
  }

  #email-subscribe-kbox {
    left: -150px;
    text-transform: none;
    top: 20px;
    width: 330px;

    ul.errorlist {
      margin: 0;
      padding: 0;

      li {
        margin: 0;
        padding: 0;
      }
    }

    a {
      padding: 0;
    }

    input#id_email {
      width: 270px;
    }

    form {
      ul {
        list-style: none;
        margin: 0;
        padding: 10px 0;
      }
    }
  }

  #report-abuse {
    margin-bottom: 20px;
  }
}

.highlight-box {
  h2 {
    margin: 0 0 20px;
  }

  .select-one {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      font-family: @OpenSansLight;
      font-size: 20px;
      margin: 10px 0;
    }
  }
}

.logo-sprite {
  background: url('../img/logos.large.sprite.png?v=2') -100px -100px no-repeat;
  height: 96px;
  width: 96px;

  &.logo-firefox {
    background-position: -100px -100px;
  }

  &.logo-firefox-os {
    background-position: -100px -988px;
  }

  &.logo-mobile {
    background-position: -100px -692px;
  }

  &.logo-webmaker {
    background-position: -100px -1284px;
  }

  &.logo-thunderbird {
    background-position: -100px -396px;
  }

  &.logo-other {
    background-position: -100px -1580px;
  }
}

.logo-sprite-tiny {
  background: url('../img/logos.large.sprite.png?v=3') -12px -12px no-repeat;
  background-size: 42px;
  height: 16px;
  width: 16px;

  &.logo-firefox {
    background-position: -12px -11px;
  }

  &.logo-thunderbird {
    background-position: -12px -53px;
  }

  &.logo-mobile {
    background-position: -12px -95px;
  }

  &.logo-firefox-os {
    background-position: -12px -137px;
  }

  &.logo-webmaker {
    background-position: -12px -179px;
  }

  &.logo-firefox-windows-8-touch {
    background-position: -12px -221px;
  }
}

.questions {
  list-style: none;
  margin: 0;
  padding: 0;

  > section {
    background: #fff;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    position: relative;

    h2 {
      font-size: 22px;
      margin: 4px 0 0;
    }

    h3 {
      font-size: 13px;
      margin: 0 0 4px;
      font-weight: bold;

      a:visited {
        color: #0095DD
      }
    }

    .content {
      border-left: 0px dotted @borderLightGrey;
      margin: 0 0 0 90px;
      min-height: 130px;
      padding: 0;

      .tag-list {
        display: inline-block;
        font-size: 0;
        list-style: none;
        margin: 0;
        padding: 0 280px 0 0;

        > li {
          font-size: 14px;
          display: inline-block;
          margin: 0 3px 3px 0;

          &:last-of-type {
            margin: 0;
          }

          > a,
          > a:visited {
            background: #EAEFF2;
            color: @textDarkGrey;
            display: inline-block;
            padding: 2px 5px;

            &:hover {
              color: #000;
            }
          }
        }
      }

      .short-text,
      .long-text {
        margin-bottom: 32px;
        min-height: 60px;
      }

      .user-meta {
        bottom: 23px;
        display: inline-block;
        font-size: 12px;
        position: absolute;
        right: 20px;
        text-align: right;
        width: 250px;
      }

    }

    .thread-meta {
      background: #fff;
      left: 0;
      overflow: hidden;
      padding: 0 6px;
      position: absolute;
      top: 0;
      width: 18px;

      &:hover {
        border-bottom: 1px solid @borderLightGrey;
        border-right: 1px solid @borderLightGrey;
        width: auto;
      }

      > div {
        background: @iconsSprite 0 0 no-repeat;
        color: #ccc;
        font-size: 11px;
        height: 18px;
        line-height: 18px;
        margin: 6px 0;
        padding: 0 0 0 24px;
        text-transform: uppercase;

        &.highlighted {
          color: @textGrey;
        }

        &.thread-contributed {
          background-position: -48px -977px;

          &.highlighted {
            background-position: -48px -1093px;
          }
        }

        &.thread-locked {
          background-position: -49px -2253px;
        }

        &.thread-archived {
          background-position: -49px -2369px;
        }

        &.thread-solved {
          background-position: -49px -746px;

          &.highlighted {
            background-position: -49px -862px;
          }
        }
      }
    }

    .question-meta {
      float: left;
      font-size: 11px;
      padding: 0 20px 0 0;
      text-align: center;
      text-transform: uppercase;
      width: 70px;

      > div {
        margin-bottom: 5px;
        width: 70px;

        &.views {
          margin-top: 12px;
        }
      }

      h4 {
        font-size: 30px;
        margin: 0;
      }

      &.urgent {
        h4 {
          color: #fe9300;
        }
      }
    }
  }

  #filters {
    margin-bottom: 20px;
    padding: 20px 34px;

    #more-filters {
      border-right: 1px dotted @borderLightGrey;
      float: left;
      width: 78.5%;

      .cf {
        margin-bottom: 10px;

        &:last-of-type {
          margin-bottom: 0;
        }

        > span {
          float: left;
          font-weight: bold;
        }

        > ul {
          float: left;
          list-style: none;
          margin: 0;
          padding: 0;

          > li {
            border-left: 1px solid @textGrey;
            float: left;
            margin-right: 10px;
            padding-left: 10px;

            &:first-of-type {
              border: none;
            }

            a,
            a:hover {
              color: @textGrey;

              &.selected {
                color: #000;
                font-weight: bold;
                text-decoration: none;
              }
            }

            label {
              cursor: pointer;
            }
          }
        }
      }
    }

    #flag-filter {
      box-sizing: border-box;
      float: right;
      padding-left: 25px;
      width: 21%;
    }
  }

  #filter-section {
    background: transparent;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.01));
    height: 60px;
  }

  #owner-tabs {
    padding: 0 8px;

    a,
    a:hover {
      border-radius: 6px 6px 0 0;
      float: left;
      font-size: 16px;
      height: 52px;
      line-height: 52px;
      margin-left: 6px;
      padding: 0 24px;
      text-decoration: none;

      &.selected {
        background: #fff;
        color: #000;
        font-weight: bold;
      }
    }
  }

  #top-contributors {
    position: relative;
    text-align: center;
    z-index: 20;

    ol {
      display: inline-block;
      width: 35%;

      li {
        margin: 5px 0;
      }
    }

    .inner-wrap {
      border: 1px solid #eee;
      display: none;
      text-align: left;
    }

    &:hover {
      .inner-wrap {
        background: #fff;
        display:block;
        position: absolute;
        right: -1px;
        top: 100%;
        width: 360px;
      }

      .feature-box {
        background: #fff;
      }
    }
  }

  .escalated,
  .offtopic {
    display: none;
  }
}

.show-escalated {
  .escalated {
    display: block;
  }
}

.show-offtopic {
  .offtopic {
    display: block;
  }
}

#aaq_progress {
  margin: 0 78px;

  .legend {
    color: @textGrey;
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    list-style: none;
    margin: 5px -78px;
    padding: 0;
    position: relative;
    z-index: 0;

    li {
      float: left;
      margin: 0 10px;
      position: relative;
      text-align: center;
      width: 136px;

      &.current {
        font-weight: bold;
      }

      &:before {
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.5);
        content: '';
        height: 24px;
        left: 50%;
        margin-left: -1px;
        position: absolute;
        top: -34px;
        width: 0;
      }

      &:first-of-type,
      &:last-of-type {
        &:before {
          display: none;
        }
      }
    }
  }

  .progress-bar {
    height: 8px;

    > div {
      height: 8px;
      min-width: 12px;
      padding-right: 12px;
    }

    .legend {
      li:before {
        height: 8px;
        top: -13px;
      }
    }
  }
}

#ask-search-form {
  .btn {
    float: right;
  }

  .searchbox {
    float: left;
    font-size: 24px;
    height: 36px;
    margin: 0 0 0 12px;
    padding: 4px 20px 8px 20px;
    padding-bottom: 8px;
    padding-top: 4px;
    width: 746px;
  }

  &.has-searched {
    .searchbox {
      width: 876px;
    }

    .btn {
      display: none;
    }
  }
}

#recent-stats {
  font-size: 13px;
  margin: 0 0 40px 0;

  .no_reply {
    margin: 0 6px;
  }

  .progress-bar {
    margin-top: 10px;
  }

  .complete {
    > div {
      background: #489615;
      background: linear-gradient(to bottom, #84C63C, #489615);
    }
  }

  .total {
    float: right;
    margin: 0 6px;
  }
}

#aaq_progress + #register-form {
  margin-top: 40px;
}

#register-form,
#login-form {
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 60px;
  padding: 0 60px 30px;

  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
  }

  h2 {
    margin-bottom: 0;

    + h4 {
      margin-bottom: 10px;
      margin-top: 5px;
    }
  }

  label {
    font-size: 12px;
    font-weight: bold;
  }

  form {
    ul {
      list-style: none;
      margin: 10px 0;
      padding: 0;

      > li {
        min-height: 100px;
      }

      input {
        box-sizing: border-box;
        padding: 10px;
        width: 45%;
      }

      label {
        display: block;
        margin: 10px 0;
      }
    }
  }

  h2 {
    font-size: 26px;
  }

  .submit {
    .btn {
      box-sizing: border-box;
      height: 45px;
      margin-top: 20px;
      width: 45%;
    }
  }

  .validation-label {
    box-sizing: border-box;
    color: #c00;
    display: none;
    float: right;
    margin-top: 10px;
    padding-left: 16px;
    width: 55%;

    &:before {
      content: '\2718'; /* X mark */
      margin-right: 10px;
    }

    &.valid {
      color: #090;

      &:before {
        content: '\2713'; /* Check mark */
      }
    }

    a.ignore-email {
      margin-left: 10px;
    }
  }
}

#show-login {
  text-align: center;
}

#login-form {
  display: none;
}

#login-help {
  margin-top: 10px;
}

#username-rules,
#password-rules {
  font-size: 12px;
  width: 45%;
}

#product-picker {
  > li {
    > a,
    > a:visited,
    > a:hover {
      color: @textGrey;

      > img {
        float: left;
      }

      > span {
        display: block;
        margin-left: 130px;

        &.title {
          font-family: @OpenSansLight;
          font-size: 18px;
        }
      }
    }
  }
}

#question-form {
  h2 {
    margin-bottom: 0;

    + p {
      font-family: @OpenSans;
      margin-top: 5px;
    }
  }

  .info {
    background: #f1f1f1;
    border-left: 2px solid @textBlue;
    font-size: 13px;
    padding: 16px;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;

    input {
      width: 700px;
    }

    label {
      display: block;
      font-size: 12px;
      font-weight: bold;
      margin-bottom: 5px;

      &[for="id_troubleshooting"] {
        float: left;
        margin-right: 10px;
        margin-top: 6px;
      }
    }

    input[type="text"],
    textarea {
      box-sizing: border-box;
      width: 100%;
    }

    li {
      .cf();
      padding: 10px 0;

      &.details {
        display: none;

        input {
          width: auto;
        }
      }

      &.hide {
        .show {
          display: none;
        }
      }

      &.show {
        .hide {
          display: none;
        }
      }
    }

    &.show-details {
      li {
        &.details {
          display: block;
        }
      }
    }

    .editor-tools {
      display: none;
    }

    .submit {
      .btn {
        margin-left: 140px;
      }
    }

    #troubleshooting-manual,
    #troubleshooting-explanation {
      clear: both;
      font-size: 13px;
      margin: 10px 0;
    }
  }

  button {
    margin-top: 30px;
  }

  ol#troubleshooting-help {
    display: none;
    font-size: 13px;
    list-style: decimal;
    margin: 0;

    li {
      padding: 5px 0;

      &:before {
        display: block;
      }

      ul {
        margin: 0 0 0 10px;
        padding: 0px;
      }
    }
  }

  #troubleshooting-explanation {
    display: none;
  }

  #troubleshooting-field {
    display: none;
  }
}

#selected-category,
#selected-product {
  font-size: 14px;
  margin-bottom: 10px;

  a {
    font-size: 12px;
  }

  label {
    font-family: @OpenSansLight;
  }

  span {
    font-weight: bold;
  }
}

#selected-category {
  float: right;
}

#selected-product {
  float: left;
}

#product-topic-changer {
  margin-top: 25px;
}

.answers {
  .attachments-upload {
    margin: 1.5em 0 1.5em 128px;
  }
}
.attachments-upload {
  label {
    display: block;
    margin: .5em 0;
  }

  .adding-attachment {
    display: none;
    line-height: 4em;
  }

  .empty,
  .upload-progress {
    display: none;
  }

  .attachments {
    a:hover {
      img {
        border: 1px solid #eee;
      }
    }
  }

  .attachment {
    display: inline-block;
    position: relative;

    .overlay {
      background: #ccc url('../img/wait-trans.gif') no-repeat center;
      bottom: 5px;
      left: 5px;
      opacity: .5;
      position: absolute;
      right: 5px;
      top: 5px;
    }

    img {
      background: url('../img/wait-trans.gif') no-repeat center;
      border: 1px solid #ccc;
      margin: 5px;
      text-align: center;
      vertical-align: top;
    }

    input.delete {
      background: #000;
      border: 2px solid #fff;
      border-radius: 1em;
      color: #fff;
      cursor: pointer;
      display: none;
      font-family: Verdana;
      font-weight: bold;
      opacity: .5;
      padding: 0 .2em;
      position: absolute;
      right: 10px;
      top: 10px;

      &:hover {
        opacity: 1;
      }
    }

    &:hover input.delete {
      display: block;
    }
  }

  .upload-progress {
    background: url('../img/wait-trans.gif') no-repeat center;
    border: 1px solid #ccc;
    margin: 5px;
    text-align: center;
    vertical-align: top;

    &.show {
      display: inline-block;
    }
  }

  .add-attachment {
    noscript {
      input {
        margin-left: 1em;
      }
    }
  }

  input.image-delete {
    margin-top: 1em;
  }

  img {
    max-height: 120px;
    max-width: 120px;
  }
}

div.ans-attachments {
  padding: 10px 15px 0 10px;

  a:hover {
    img {
      border: 1px solid #eee;
    }
  }

  .attachment {
    display: inline-block;
    position: relative;

    .overlay {
      background: #ccc url('../img/wait-trans.gif') no-repeat center;
      bottom: 5px;
      left: 5px;
      opacity: .5;
      position: absolute;
      right: 5px;
      top: 5px;
    }

    img {
      background: url('../img/wait-trans.gif') no-repeat center;
      border: 1px solid #ccc;
      margin: 5px;
      text-align: center;
      vertical-align: top;
    }

    input.delete {
      background: #000;
      border: 2px solid #fff;
      border-radius: 1em;
      color: #fff;
      cursor: pointer;
      display: none;
      font-family: Verdana;
      font-weight: bold;
      opacity: .5;
      padding: 0 .2em;
      position: absolute;
      right: 10px;
      top: 10px;

      &:hover {
        opacity: 1;
      }
    }

    &:hover input.delete {
      display: block;
    }
  }

  img {
    max-height: 120px;
    max-width: 120px;
  }
}

#image-attachment-kbox {
  img {
    max-width: 100%;

    &.loading {
      background: transparent url(../img/wait-trans.gif) no-repeat center center;
      display: block;
      height: 32px;
      margin: auto;
      width: 32px;
    }
  }
}

.feature-box {
  margin: 0;
  padding: 13px 30px 15px;

  h2 {
    font-size: 21px;
  }
}

.edit-answer {
  .form-widget {
    width: 600px;
  }

  .form-widget,
  .info,
  .submit {
    margin: 20px 0 20px 128px;
  }

  textarea {
    width: 592px;
  }
}

#product-selector,
#topic-selector {
  float: right;
  font-size: 12px;
  margin-left: 10px;

  > select {
    padding: 2px;
    width:  300px;
  }
}

.edit-question {
  #add-troubleshooting-info,
  #troubleshooting-manual {
    display: none;
  }

  li.system-details-info {
    display: none;
  }

  #question-form {
    li.details {
      display: block;
    }
  }
}

#tagged {
  ul {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;

    > li {
      display: inline;
      margin-right: 10px;
    }
  }
}

.questions-sidebar {
  position: relative;

  .toggler {
    > span {
      border-radius: 2px;
      cursor: pointer;
      display: block;
      height: 28px;
      position: absolute;
      right: 0;
      top: 13px;
      width: 28px;
      z-index: 10;

      &:after {
        border-top: 2px solid #999;
        border-right: 2px solid #999;
        content: '';
        display: block;
        height: 6px;
        left: 50%;
        margin: -4px 0 0 -5px;
        position: absolute;
        top: 50%;
        transform: rotate(45deg);
        width: 6px;
      }

      &.expand {
        background: @textBlue;
        display: none;

        &:after {
          border-color: #fff;
          margin-left: -2.5px;
          transform: rotate(-135deg);
        }
      }
    }
  }
}

#questions-list {
  &.collapsed {
    .grid_9 {
      width: 894px;
    }

    .grid_3 {
      width: 26px;

      .sidebar-header,
      .sidebar-nav {
        display: none;
      }
    }

    .questions-sidebar {
      .toggler {
        > span {
          &.expand {
            display: block;
          }

          &.collapse {
            display: none;
          }
        }
      }
    }
  }
}

.content-raw {
  display: none;
}

.help-text {
  clear: both;
}


Fix user-select in elements

Fix user-select in elements

@import "normalize.less";
@import "variables.less";

@import "fonts.less";

@import "ui/dialogs.less";
@import "ui/form.less";
@import "ui/list.less";
@import "ui/buttons.less";
@import "ui/grid.less";
@import "ui/auth.less";
@import "ui/menu.less";

* {
    .box-sizing(border-box);
}

a {
    color: inherit;
}

body, html {
    font-family: 'Source Code Pro', sans-serif;
    font-size: @font-size-normal;
    width: 100%;
    height: 100%;
    background: @color-1;
    color: @color-7;
    .user-select(none);
}

@import "normalize.less";
@import "variables.less";

@import "fonts.less";

@import "ui/dialogs.less";
@import "ui/form.less";
@import "ui/list.less";
@import "ui/buttons.less";
@import "ui/grid.less";
@import "ui/auth.less";
@import "ui/menu.less";

* {
    .box-sizing(border-box);
    .user-select(none);
}

a {
    color: inherit;
}

body, html {
    font-family: 'Source Code Pro', sans-serif;
    font-size: @font-size-normal;
    width: 100%;
    height: 100%;
    background: @color-1;
    color: @color-7;
}


Adjust styling

Adjust styling

input[type=checkbox] {
@sizeSwitch = @sizeCheckbox + 4 px;

  + label {
    margin-left: 0;

    .handle {
      position: relative;
      display: inline-block;
      width: 2 * @sizeSwitch + 5px;
      height: @sizeSwitch;
      margin-right: 5px;
      vertical-align: middle;
      border: 1px solid @colorFgBorderEmphasize3;
      border-radius: .5 * @sizeSwitch;
      background-color: @colorBgEmphasize1;
      box-shadow: 0 .1em .1em rgba(0, 0, 0, 0.02) inset;

      &:before, &:after {
        position: absolute;
        top: 0;
      }

      &:before {
        right: 0;
        margin: 0 5px;
        content: 'OFF';
        font-weight: bold;
        line-height: @sizeSwitch - 2px;
        font-size: @sizeSwitch * 0.4;
        text-transform: uppercase;
        color: lighten(@colorFgSubtle, 10);
      }

      &:after {
        left: 0;
        content: '';
        width: @sizeSwitch - 6px;
        height: @sizeSwitch - 6px;
        margin: 2px;
        border: 1px solid @colorBg;
        border-radius: 50%;
        background-color: lighten(@colorFgSubtle, 10);
        .transform(translateX(0));
        .transition(200ms);
      }
    }

    &:before {
      display: none;
    }
  }

  &:checked + label .handle {
    background-color: lighten(@colorNotice, 15);
    border-color: lighten(@colorNotice, 5);

    &:before {
      right: 0;
      left: 0;
      content: 'ON';
      color: @colorFgTheme;
    }

    &:after {
      .transform(translateX(@sizeSwitch + 4px));
      background-color: lighten(@colorNotice, 30);
    }
  }
}

input[type=checkbox] {
@sizeSwitch = @sizeCheckbox + 4px;

  + label {
    margin-left: 0;

	  .handle {
		  position: relative;
		  display: inline-block;
      width: 2 * @sizeSwitch + 5px;
      height: @sizeSwitch;
      margin-right: 5px;
      vertical-align: middle;
      border: 1px solid @colorFgBorderEmphasize3;
      border-radius: .5 * @sizeSwitch;
      background-color: @colorBgEmphasize1;
      box-shadow: 0 .1em .1em rgba(0, 0, 0, 0.02) inset;

      &:before, &:after {
        position: absolute;
        top: 0;
      }

      &:before {
        right: 0;
        margin: 0 5px;
        content: 'OFF';
        font-weight: bold;
        line-height: @sizeSwitch - 2px;
        font-size: @sizeSwitch * 0.4;
        text-transform: uppercase;
        color: lighten(@colorFgSubtle, 10);
      }

      &:after {
        left: 0;
        content: '';
        width: @sizeSwitch - 6px;
        height: @sizeSwitch - 6px;
        margin: 2px;
        border: 1px solid @colorBg;
        border-radius: 50%;
        background-color: lighten(@colorFgSubtle, 10);
        .transform(translateX(0));
        .transition(200ms);
      }
    }

    &:before {
      display: none;
    }
  }

	&:checked + label .handle {
		background-color: lighten(@colorNotice, 15);
		border-color: lighten(@colorNotice, 5);

    &:before {
      right: 0;
      left: 0;
      content: 'ON';
      color: @colorFgTheme;
    }

    &:after {
      .transform(translateX(@sizeSwitch + 4px));
      background-color: lighten(@colorNotice, 30);
    }
  }
}


Muck with styling for editing interface

Muck with styling for editing interface

What a mess. Should be cleaned up when things settle down a bit. It'd be
good to clean up enought to the point that a designer could sit down and
work with the junk I've put in.

// Our layouts

#main {
  margin-bottom: 18px;
}

// Navbars
//---------
.navbar-inner {
  .border-radius(0);
  .box-shadow(0 3px 4px rgba(0,0,0,.065));
  border: none;
  border-bottom: none;
}

.navbar .container {
  width: 940px;
}

.navbar .nav > li {
  > a {
    padding-left: 11px;
    padding-right: 11px;
    text-shadow: none;
  }

  > a:hover,
  &.dropdown.open > a.dropdown-toggle {
    background-color: @linkColor;
    color: white;
    b.caret {
      border-top-color: #fff !important;
      border-bottom-color: #fff !important;
    }
  }
}

.navbar .nav > li > .btn-group {
  margin-left: 12px;
  .dropdown-menu {
    right: 0;
    left: auto;
  }
  b.caret {
    border-top-color: @gray !important;
    border-bottom-color: @gray !important;
  }
}

.navbar-search .search-query {
  border-radius: 14px;
}

// Tabs
// -----
.nav-tabs a {
  color: @textColor;
}

// Lists of models
// ----------------
.model-list > h4 {
  margin-bottom: 1px;
}
.model-list {
  a {
    color: @textColor;
  }
  li.show-all-link {
    margin-top: 4px;
  }
}

// Document page
// --------------
td.zotero-key {
  width: 125px;
  text-align: right;
  span {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
  }
}

#document-header {
  font-size: @fontSizeLarge;
  line-height: 22px;
}

// Facets
//--------
#facets.loaded .facet-header img {
  display: none;
}

#facets {
  .makeRow();
  margin-top: .75em;

  .facet-header {
    .makeColumn(12);
    cursor: hand;
    cursor: pointer;
    h3 { display: inline-block; }
    i { vertical-align: baseline; }
  }

  .facets-available {
    .makeColumn(2);
    ul {
      margin-left: 0;
      li {
        .btn;
        display: block;
        text-align: left;
        margin: 0 0 6px;
        padding-left: 8px;
        padding-right: 8px;
        i { opacity: .7; }
      }
      li.facet-selected {
        .btn-primary;
      }
    }
  }

  .facet-form {
    .makeColumn(10);

    .facet-selection {
      .makeRow();

      div[class^="select-facets-"] {
        .makeColumn(10);
        display: none;
        margin-bottom: 10px;

        h5 {
          font-size: 14px;
          margin: 0 0 3px 0;
          padding: 0 0 1px 3px;
          border-bottom: 1px dashed @grayLight;
        }
        // If there's only one column of facets, make it take up the entire row
        .facet-list {
          .makeColumn(5);
        }
        .facet-list:only-of-type {
          .makeColumn(10)
        }

        .facet-list {
          margin: 0 !important;
          padding-right: 8px !important;
          list-style-type: none;
          li {
            margin-bottom: 2px;
          }
          input {
            margin: 0 2px 1px 0;
          }
          label {
            display: inline;
            margin: 0;
          }
        }

      }

    }

  }

}

// Admin
//-------

/********************************************************************
 * Citation formsets
 ********************************************************************/

.content-separation-border {
  border-top: 1px dotted #c0c0c0;
  margin-top: 6px;
  padding-top: 6px;
}

.thing-icon {
  margin: 2px 2px 0;
  color: #444;
  font-size: 20px;
  position: relative;
  top: 1px;
}

.citation-document {
  * { display: inline; }
  a { color: @textColor; }
  .icon-file { .thing-icon; }
}

.note-reference-note {
  * { display: inline; }
  .icon-pencil { .thing-icon; }
}

.citation, .note-section, .footnote-edit {
  margin-bottom: 4px;
  border-radius: 2px;
  .btn-toolbar { .content-separation-border; }
}

.note-section-text .btn-toolbar {
  border: none;
  margin-top: 0;
  padding-top: 0 !important;
}

// For editing & viewing citations (and editing footnotes)
.citation .citation-notes,
.note-section .note-section-content,
.footnote-edit .footnote-content {
  border: 1px solid darken(@grayLighter, 7%);
  padding : 3px 10px 6px;
  margin-top: 2px;

  &:empty {
    border: none;
    padding-bottom: 0px;
    margin-bottom: -5px;
  }
  > :last-child,
  > div > :last-child {
    margin-bottom: 0px;
  }
}

.citation:not(.citation-edit):not(:last-of-type) {
  margin-bottom: 1.25em;
  &:after {
    text-align: center;
  }
}

// For editing citations and editing footnotes
.citation-edit,
.note-section-edit,
.footnote-edit,
#note-sections-container > .note-section
{
  padding: 10px;
  margin-bottom: 0;

  // Space at the bottom of editing citations & footnotes
  &:last-child {
    margin-bottom: 50px;
  }

  &:not([class*="active"]):hover {
    padding: 9px;
    cursor: pointer;
  }

  &:hover, &-active {
    border-width: 2px;
    border: 1px solid #999;
  }

  [class$="-fields"] {
    input, textarea {
      display: none;
    }
  }

  .btn-toolbar {
    padding-top: 8px;
  }

}

// Specific to editing citations
#citation-items, #note-sections-container {
  .citation div, .citation p {
    display: block;
  }
  &.sort-active .citation-edit {
    max-height: 100px;
    overflow: hidden;
  }
  .citation-placeholder {
    height: 50px;
    border-radius: 2px;
    border: 1px dashed black;
    margin: 8px 0;
    text-align: center;
    opacity: .5;

    &:after {
      position: relative;
      top: 16px;
      content: '(reposition here)';
    }
  }

  .citation-document a.add-new-document,
  .citation-document a.add-new-object,
  .note-reference-note a.add-new-object {
    color: black;
    &:hover { text-decoration: none; }
    i.icon-plus-sign {
      font-size: 18px;
      position: relative;
      top: 3px;
      left: 6px;
    }
  }
}

#citation-edit-bar {
  margin: 1.75em 0 1em 0;
  padding: .75em;
  border: 1px solid #999;

  h4 {
    display: inline-block;
    margin: 0 3px 0 0;
  }
  a.add-section {
    .btn;
    margin-left: 10px;
  }
}

.add-document-zotero-data {
  .zotero-entry {
    margin-bottom: 0 !important;

    label, div { display: inline-block; }
    label { width: 150px; }

  }
}

#note-sections-edit-blah {
  .ui-autocomplete-input { margin-bottom: 0; }
  .ui-autocomplete {
    max-width: 750px;
    max-height: 300px;
    border-radius: none;
    left: 0;
  }
  .ui-menu-item p { margin-bottom: 0; }
  .ui-menu-item { padding: 4px 0; }
  .ui-menu-item:not(:last-of-type) { border-bottom: 1px solid #f0f0f0; }
}

// Our layouts

#main {
  margin-bottom: 18px;
}

// Navbars
//---------
.navbar-inner {
  .border-radius(0);
  .box-shadow(0 3px 4px rgba(0,0,0,.065));
  border: none;
  border-bottom: none;
}

.navbar .container {
  width: 940px;
}

.navbar .nav > li {
  > a {
    padding-left: 11px;
    padding-right: 11px;
    text-shadow: none;
  }

  > a:hover,
  &.dropdown.open > a.dropdown-toggle {
    background-color: @linkColor;
    color: white;
    b.caret {
      border-top-color: #fff !important;
      border-bottom-color: #fff !important;
    }
  }
}

.navbar .nav > li > .btn-group {
  margin-left: 12px;
  .dropdown-menu {
    right: 0;
    left: auto;
  }
  b.caret {
    border-top-color: @gray !important;
    border-bottom-color: @gray !important;
  }
}

.navbar-search .search-query {
  border-radius: 14px;
}

// Tabs
// -----
.nav-tabs a {
  color: @textColor;
}

// Lists of models
// ----------------
.model-list > h4 {
  margin-bottom: 1px;
}
.model-list {
  a {
    color: @textColor;
  }
  li.show-all-link {
    margin-top: 4px;
  }
}

// Document page
// --------------
td.zotero-key {
  width: 125px;
  text-align: right;
  span {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: bold;
  }
}

#document-header {
  font-size: @fontSizeLarge;
  line-height: 22px;
}

// Facets
//--------
#facets.loaded .facet-header img {
  display: none;
}

#facets {
  .makeRow();
  margin-top: .75em;

  .facet-header {
    .makeColumn(12);
    cursor: hand;
    cursor: pointer;
    h3 { display: inline-block; }
    i { vertical-align: baseline; }
  }

  .facets-available {
    .makeColumn(2);
    ul {
      margin-left: 0;
      li {
        .btn;
        display: block;
        text-align: left;
        margin: 0 0 6px;
        padding-left: 8px;
        padding-right: 8px;
        i { opacity: .7; }
      }
      li.facet-selected {
        .btn-primary;
      }
    }
  }

  .facet-form {
    .makeColumn(10);

    .facet-selection {
      .makeRow();

      div[class^="select-facets-"] {
        .makeColumn(10);
        display: none;
        margin-bottom: 10px;

        h5 {
          font-size: 14px;
          margin: 0 0 3px 0;
          padding: 0 0 1px 3px;
          border-bottom: 1px dashed @grayLight;
        }
        // If there's only one column of facets, make it take up the entire row
        .facet-list {
          .makeColumn(5);
        }
        .facet-list:only-of-type {
          .makeColumn(10)
        }

        .facet-list {
          margin: 0 !important;
          padding-right: 8px !important;
          list-style-type: none;
          li {
            margin-bottom: 2px;
          }
          input {
            margin: 0 2px 1px 0;
          }
          label {
            display: inline;
            margin: 0;
          }
        }

      }

    }

  }

}

// Admin
//-------

/********************************************************************
 * Citation formsets
 ********************************************************************/

.content-separation-border {
  border-top: 1px dotted #c0c0c0;
  margin-top: 6px;
  padding-top: 6px;
}

.thing-icon {
  margin: 2px 2px 0;
  color: #444;
  font-size: 20px;
  position: relative;
  top: 1px;
}

.citation-document {
  * { display: inline; }
  a { color: @textColor; }
  .icon-file { .thing-icon; }
}

.note-reference-note {
  * { display: inline; }
  .icon-pencil { .thing-icon; }
}

.citation, .note-section, .footnote-edit {
  margin-bottom: 4px;
  border-radius: 2px;
  .btn-toolbar { .content-separation-border; }
}

// For editing & viewing citations (and editing footnotes)
.citation .citation-notes,
.note-section .note-section-content,
.footnote-edit .footnote-content {
  border: 1px solid darken(@grayLighter, 7%);
  padding : 3px 10px 6px;
  margin-top: 2px;

  &:empty {
    border: none;
    padding-bottom: 0px;
    margin-bottom: -5px;
  }
  > last-child,
  > div > :last-child {
    margin-bottom: 0px;
  }
}

.citation:not(.citation-edit):not(:last-of-type) {
  margin-bottom: 1.25em;
  &:after {
    text-align: center;
  }
}

// For editing citations and editing footnotes
.citation-edit,
.note-section-edit,
.footnote-edit,
#note-sections-container > .note-section
{
  padding: 10px;
  margin-bottom: 0;

  // Space at the bottom of editing citations & footnotes
  &:last-child {
    margin-bottom: 50px;
  }

  &:not([class*="active"]):hover {
    padding: 9px;
    cursor: pointer;
  }

  &:hover, &-active {
    border-width: 2px;
    border: 1px solid #999;
  }

  [class$="-fields"] {
    input, textarea {
      display: none;
    }
  }

  .btn-toolbar {
    padding-top: 8px;
  }

}

// Specific to editing citations
#citation-items, #note-sections-container {
  .citation div, .citation p {
    display: block;
  }
  &.sort-active .citation-edit {
    max-height: 100px;
    overflow: hidden;
  }
  .citation-placeholder {
    height: 50px;
    border-radius: 2px;
    border: 1px dashed black;
    margin: 8px 0;
    text-align: center;
    opacity: .5;

    &:after {
      position: relative;
      top: 16px;
      content: '(reposition here)';
    }
  }

  .citation-document a.add-new-document {
    color: black;
    &:hover {
      text-decoration: none;
    }
    i.icon-plus-sign {
      font-size: 18px;
      position: relative;
      top: 2px;
      left: 2px;
    }
  }
}

#citation-edit-bar {
  margin: 1.75em 0 1em 0;
  padding: .75em;
  border: 1px solid #999;

  h4 {
    display: inline-block;
    margin: 0 3px 0 0;
  }
  a.add-section {
    .btn;
    margin-left: 10px;
  }
}


修复 页面过渡动画结束时，home页闪现bug

修复 页面过渡动画结束时，home页闪现bug

html, body, .container {
    height: 100%;
}

body {
    background-color: #FBF9FE;
    overflow-x: hidden;
}

.container{
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #FBF9FE;
    .hd {
        padding: 2em 0;
        .title {
            text-align: center;
            font-size: 34px;
            color: #3CC51F;
            font-weight: 400;
            margin: 0 15%;
        }
        .sub_title {
            text-align: center;
            color: #888;
            font-size: 14px;
        }
    }
    .bd {
        &.spacing {
            padding: 0 15px;
        }
    }

    &.cell {
        .bd {
            padding-bottom: 30px;
        }
    }

    &.home {
        &.page-enter {
            z-index: 0;
            opacity: 1;
            transform: translate3d(0, 0, 0);
            &.page-enter-active {

            }
        }
        &.page-leave {
            &.page-leave-active {
                opacity: 0;
                transform: translate3d(0, 0, 0);
            }
        }
    }

    &.panel {
        .bd{
            padding-bottom:20px;
        }
    }
}

.page-enter {
    z-index: 1024;
    opacity: 0.01;
    transform: translate3d(100%, 0, 0);
    transition: all .2s ease;
    &.page-enter-active {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.page-leave {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: all .2s ease;
    &.page-leave-active {
        opacity: 0.01;
        transform: translate3d(100%, 0, 0);
    }
}

html, body, .container {
    height: 100%;
}

body {
    background-color: #FBF9FE;
    overflow-x: hidden;
}

.container{
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #FBF9FE;
    .hd {
        padding: 2em 0;
        .title {
            text-align: center;
            font-size: 34px;
            color: #3CC51F;
            font-weight: 400;
            margin: 0 15%;
        }
        .sub_title {
            text-align: center;
            color: #888;
            font-size: 14px;
        }
    }
    .bd {
        &.spacing {
            padding: 0 15px;
        }
    }

    &.cell {
        .bd {
            padding-bottom: 30px;
        }
    }

    &.home {
        &.page-enter {
            z-index: 0;
            opacity: 1;
            transform: translate3d(0, 0, 0);
            &.page-enter-active {

            }
        }
        &.page-leave {
            &.page-leave-active {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }
    }

    &.panel {
        .bd{
            padding-bottom:20px;
        }
    }
}

.page-enter {
    z-index: 1024;
    opacity: 0.01;
    transform: translate3d(100%, 0, 0);
    transition: all .2s ease;
    &.page-enter-active {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.page-leave {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: all .2s ease;
    &.page-leave-active {
        opacity: 0.01;
        transform: translate3d(100%, 0, 0);
    }
}


port locals editor from smartedit

port locals editor from smartedit

// Locals Editor
//
// Markup:
//
 Locals editor - active tab; mandatory tabs

//

//

//

//
 EN

//
 BG

//
 DE

//
 FR

//
 PL

//

//

//

//

//                <input name="lastName" type="text" class="form-control input-lg">
//

//

//

//
// Markup:
//
 Locals editor - active tab; mandatory tab; error tab

//

//

//

//
 EN

//
 BG

//
 DE

//
 FR

//
 PL

//

//

//

//

//            <input name="lastName" type="text" class="form-control input-lg">
//

//

//

//
// Markup:
//
 Locals editor - active tab; mandatory tab; error tab

//

//

//

//
 EN

//
 BG

//
 DE

//

//                MORE
//
//
//

//

//                        IT
//

//

//                        PL
//

//

//

//

//

//

//

//            <input name="lastName" type="text" class="form-control input-lg">
//

//

//

//
// Styleguide 11.1

.locals-tabs .active{
    background-color: #0486E0;
    border-color: #0486E0;
}
.locals-editor .locals-tabs .active a,
.locals-editor .locals-tabs .active a:hover,
.locals-editor .locals-tabs .active a:focus{
    color: #FFFFFF;
}

.locals-editor .locals-tabs a,
.locals-editor .locals-tabs a:hover,
.locals-editor .locals-tabs a:focus{
    font-weight: bold;
}

.locals-editor .locals-tabs li:not(.active){
    border-color: #a1aebd;
}

.locals-editor .locals-tabs li:last-of-type {
    border-right: 1px solid #a1aebd;
}

.locals-editor .locals-tabs > li{
    border-top: 1px solid #a1aebd;
    border-left: 1px solid #a1aebd;
    border-bottom: 1px solid #a1aebd;
}

.locals-header .locals-tabs{
    margin-bottom: 0;
}

.locals-tabs .has-error,
.locals-editor .locals-tabs .active a.has-error,
.locals-editor .locals-tabs .active a:hover .has-error,
.locals-editor .locals-tabs .active a:focus .has-error,
.locals-tabs__more-tabs a.locals-tabs__more-tab.has-error{
    color: #ff3830;
}

.locals-tabs .has-error:before{
    content: "! "
}

.locals-tabs .is-required:after{
    content: "*";
}

.locals-tabs__more-tabs a.locals-tabs__more-tab {
    color: #0486E0;
    font-weight: normal;
}

// Locals Editor
//
// Soon To Be Deprecated

// The Localization component should be used when content or currency being configured needs to be localized.

// This component will be replaced in 2016 to improve usability and scalability for additional localizations.
//
// Markup:
//

//

//

//

//
//
//

//
//
//
//
//

//         Label
//

//

//

//               <input name="lastName" type="text" class="form-control input-lg">
//                EN
//

//

//

//
// Styleguide 11.1

.locals-editor{
	.input-group-addon{
		min-width: 49px;
	}
}

.locals-header{
  min-height: 26px;
    .control-label{
    margin-top: 7px;
  }
}

.y-locale-label {
  display: none;
  margin: 15px 0 3px;
}

.baas-editor-expanded {
  .y-locale-label {
    display: block;
  }
  .tab-pane {
    display: block;
    opacity: 1;
  }
  .scrollable-tabs-container {
    display: none;
  }
}

.validation-status{
	font-size: 16px;
  padding: 6px 0;
  line-height: @line-height-base;
  display: inline-block;
  color: @dark-grey;
  vertical-align: middle;

	&.has-success {
    color: @state-success-bg;
  }
  &.has-warning {
    color:  @state-warning-bg;
  }
  &.has-error {
    color:  @state-danger-bg;
  }
}

// Special Skinning for the navpills within
// the panes when the multi version is expanded

.tab-pane{
  &.has-warning{
    .y-locale-label{
      .nav-pill{
        .nav-pill.has-warning();
      }
    }
  }
  &.has-error{
    .y-locale-label{
      .nav-pill{
        .nav-pill.has-error();
      }
    }

  }
  &.has-success{
    .y-locale-label{
      .nav-pill{
        .nav-pill.has-success();
      }
    }

  }

}


style update

style update

mor-textinput{
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    vertical-align: middle;

    .setup-form();

    input{
        box-sizing: border-box;
        z-index: 2;
        width: 100%;
        background: @colorFormBackground;
        border: 1px @colorFormBorder solid;
        border-radius: @borderRadius;
        color: @colorFormText !important;
        outline: none;
        -webkit-appearance: none;
        padding: 0 1em;

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

        &.align-center{
            text-align: center;
        }

        &.align-right{
            text-align: right;
        }

        &::placeholder{
            color: @colorFormText;
        }

        &:hover{
            border-color: @colorFormBorderHover;
            color: @colorFormTextHover !important;
        }

        &:focus{
            border-color: @colorFormBorderFocus;
            color: @colorFormTextFocus !important;
        }
    }

    &.input-group {
        .textinput-wrap{
            display: flex;
            vertical-align: middle;
        }

        .input-group-addon {
            color: @colorBlue;
            text-align: center;
            background-color: @colorLightGray;
            border: 1px solid @colorFormBorder;
            white-space: nowrap;
            border-radius: @borderRadius;
            display: flex;
            align-items: center;
            justify-content: center;

            &:first-child {
                border-right: 0;
            }
        }

        .input-group-addon,
        input {
            vertical-align: middle;
            margin: 0;
        }

        .input-group-addon:first-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        input + .input-group-addon {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-left: 0;
        }

        .input-group-addon + input.has-append {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .input-group-addon + input.has-prepend {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        &.inline-prepend{
            .input-group-addon:first-child{
                background: @colorWhite;
                padding-right: 0;
            }

            .input-group-addon + input{
                border-left: 0;
            }

            &.input-focus{
                .input-group-addon:first-child{
                    border-color: @colorFormBorderFocus;
                }
            }
        }

        &.inline-append{
            .input-group-addon:nth-child(3){
                background: @colorWhite;
                padding-left: 0;
            }

            input.has-append {
                border-right: 0;
            }

            &.input-focus{
                .input-group-addon:nth-child(3){
                    border-color: @colorFormBorderFocus;
                }
            }
        }
    }

    &.si-xs{
        > .form-name{
            font-size: @fontSize*0.8125;
        }

        input{
            font-size: @fontSize*0.75;
            height: @formHeight*0.7;
            line-height: @formHeight*0.7;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.3125 @fontSize*0.625;
                font-size: @fontSize*0.75;
                height: @formHeight*0.7;

                > .mo-icon,
                > .iconfont
                > i{
                    font-size: @fontSize*0.75;
                }
            }
        }
    }

    &.si-s{
        > .form-name{
            font-size: @fontSize*0.875;
        }

        input{
            font-size: @fontSize*0.8125;
            height: @formHeight*0.85;
            line-height: @formHeight*0.85;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.375 @fontSize*0.75;
                font-size: @fontSize*0.8125;
                height: @formHeight*0.85;

                > .mo-icon,
                > .iconfont
                > i{
                    font-size: @fontSize*0.8125;
                }
            }
        }
    }

    &.si-m{
        > .form-name{
            font-size: @fontSize;
        }

        input{
            font-size: @fontSize*0.875;
            height: @formHeight;
            line-height: @formHeight;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.375 @fontSize*0.75;
                font-size: @fontSize*0.875;
                height: @formHeight;

                > .mo-icon,
                > .iconfont
                > i{
                    font-size: @fontSize*0.875;
                }
            }
        }
    }

    &.si-l{
        > .form-name{
            font-size: @fontSize*1.2;
        }

        input{
            font-size: @fontSize;
            height: @formHeight*1.2;
            line-height: @formHeight*1.2;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.5 @fontSize*0.8125;
                font-size: @fontSize;
                height: @formHeight*1.2;

                > .mo-icon,
                > .iconfont
                > i{
                    font-size: @fontSize;
                }
            }
        }
    }

    &.si-xl{
        > .form-name{
            font-size: @fontSize*1.5;
        }

        input{
            font-size: @fontSize*1.25;
            height: @formHeight*1.5;
            line-height: @formHeight*1.5;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.75 @fontSize;
                font-size: @fontSize*1.2;
                height: @formHeight*1.5;

                > .mo-icon,
                > .iconfont
                > i{
                    font-size: @fontSize*1.2;
                }
            }
        }
    }

    &.st-normal{}

    &.st-disabled,
    &.st-readonly{
        input[disabled] {
            border-color: @colorFormBorderDisable;
            background-color: @colorFormBackgroundDisable;
            -webkit-user-select: none;
            cursor: not-allowed !important;
            color: @colorFormTextDisable !important;
        }

        &.inline-prepend .input-group-addon:first-child,
        &.inline-append .input-group-addon:nth-child(3){
            border-color: @colorFormBorderDisable;
            background-color: @colorFormBackgroundDisable;
            -webkit-user-select: none;
            cursor: not-allowed !important;
        }
    }

    // default status
    &{
        .st-normal;
        .si-m;
    }
}

mor-textinput{
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    vertical-align: middle;

    .setup-form();

    input{
        box-sizing: border-box;
        z-index: 2;
        width: 100%;
        background: @colorFormBackground;
        border: 1px @colorFormBorder solid;
        border-radius: @borderRadius;
        color: @colorFormText !important;
        outline: none;
        -webkit-appearance: none;
        padding: 0 1em;

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

        &.align-center{
            text-align: center;
        }

        &.align-right{
            text-align: right;
        }

        &::placeholder{
            color: @colorFormText;
        }

        &:hover{
            border-color: @colorFormBorderHover;
            color: @colorFormTextHover !important;
        }

        &:focus{
            border-color: @colorFormBorderFocus;
            color: @colorFormTextFocus !important;
        }
    }

    &.input-group {
        .textinput-wrap{
            display: flex;
            vertical-align: middle;
        }

        .input-group-addon {
            color: @colorBlue;
            text-align: center;
            background-color: @colorLightGray;
            border: 1px solid @colorFormBorder;
            white-space: nowrap;
            border-radius: @borderRadius;
            display: flex;
            align-items: center;
            justify-content: center;

            &:first-child {
                border-right: 0;
            }
        }

        .input-group-addon,
        input {
            vertical-align: middle;
            margin: 0;
        }

        .input-group-addon:first-child {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        input + .input-group-addon {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            border-left: 0;
        }

        .input-group-addon + input.has-append {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .input-group-addon + input.has-prepend {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        &.inline-prepend{
            .input-group-addon:first-child{
                background: @colorWhite;
                padding-right: 0;
            }

            .input-group-addon + input{
                border-left: 0;
            }

            &.input-focus{
                .input-group-addon:first-child{
                    border-color: @colorFormBorderFocus;
                }
            }
        }

        &.inline-append{
            .input-group-addon:nth-child(3){
                background: @colorWhite;
                padding-left: 0;
            }

            input.has-append {
                border-right: 0;
            }

            &.input-focus{
                .input-group-addon:nth-child(3){
                    border-color: @colorFormBorderFocus;
                }
            }
        }
    }

    &.si-xs{
        > .form-name{
            font-size: @fontSize*0.8125;
        }

        input{
            font-size: @fontSize*0.75;
            height: @formHeight*0.7;
            line-height: @formHeight*0.7;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.3125 @fontSize*0.625;
                font-size: @fontSize*0.75;
            }
        }
    }

    &.si-s{
        > .form-name{
            font-size: @fontSize*0.875;
        }

        input{
            font-size: @fontSize*0.8125;
            height: @formHeight*0.85;
            line-height: @formHeight*0.85;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.375 @fontSize*0.75;
                font-size: @fontSize*0.75;
            }
        }
    }

    &.si-m{
        > .form-name{
            font-size: @fontSize;
        }

        input{
            font-size: @fontSize*0.875;
            height: @formHeight;
            line-height: @formHeight;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.375 @fontSize*0.75;
                font-size: @fontSize*0.75;
            }
        }
    }

    &.si-l{
        > .form-name{
            font-size: @fontSize*1.2;
        }

        input{
            font-size: @fontSize;
            height: @formHeight*1.2;
            line-height: @formHeight*1.2;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.5 @fontSize*0.8125;
                font-size: @fontSize*0.8125;
            }
        }
    }

    &.si-xl{
        > .form-name{
            font-size: @fontSize*1.5;
        }

        input{
            font-size: @fontSize*1.25;
            height: @formHeight*1.5;
            line-height: @formHeight*1.5;
        }

        &.input-group {
            .input-group-addon {
                padding: @fontSize*0.75 @fontSize;
                font-size: @fontSize;
            }
        }
    }

    &.st-normal{}

    &.st-disabled,
    &.st-readonly{
        input[disabled] {
            border-color: @colorFormBorderDisable;
            background-color: @colorFormBackgroundDisable;
            -webkit-user-select: none;
            cursor: not-allowed !important;
            color: @colorFormTextDisable !important;
        }

        &.inline-prepend .input-group-addon:first-child,
        &.inline-append .input-group-addon:nth-child(3){
            border-color: @colorFormBorderDisable;
            background-color: @colorFormBackgroundDisable;
            -webkit-user-select: none;
            cursor: not-allowed !important;
        }
    }

    // default status
    &{
        .st-normal;
        .si-m;
    }
}


Add semi-transparent placeholder default colour

/**
 *    Copyright (c) ppy Pty Ltd <contact@ppy.sh>.
 *
 *    This file is part of osu!web. osu!web is distributed with the hope of
 *    attracting more community contributions to the core ecosystem of osu!.
 *
 *    osu!web is free software: you can redistribute it and/or modify
 *    it under the terms of the Affero GNU General Public License version 3
 *    as published by the Free Software Foundation.
 *
 *    osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
 *    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *    See the GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
 */

// main: compiled.less
@import "app";

*, ::before, ::after {
  position: relative;
  box-sizing: border-box;
}

::selection {
  color: #fff;
  background-color: @osu-colour-h2;
}

::placeholder {
  color: inherit;
  opacity: 0.54; // stolen from firefox
}

:root {
  --font-default: @font-default;
  --font-default-torus: @font-default-torus;
  --font-default-vi: @font-default-vi;
  --font-default-zh: @font-default-zh;
  --font-default-zh-tw: @font-default-zh-tw;
  --font-content: @font-content;
  --font-content-inter: @font-content-inter;
}

html, body {
  height: 100%;
}

body {
  .default-font();
  // no overlap between rightmost side and scrollbar
  -ms-overflow-style: scrollbar;
  // prevent moving navbar
  overflow-y: scroll;
  // fix tooltip positioning on edge when combined with overflow-y scroll above
  position: static;
}

.content {
  &--forum-topic-preview {
    width: 100%;
    padding: 0;
    margin-bottom: 5px;

    @media @desktop {
      margin-bottom: 0;
    }
  }
}

.content-extra {
  box-shadow: inset 0 2px 4px #333;
  margin-top: 10px;
  margin-bottom: -30px;
  width: 100%;
  padding-top: 20px;
  background-color: fade(#000, 75%);
}

.header-row {
  background-size: cover;
  background-position: center;
}

#popup-container {
  backface-visibility: hidden;
  position: fixed;
  width: 100%;
  top: 155px;
  z-index: 9999;

  .alert {
    border: none;
    .default-box-shadow();
  }

  .popup-text {
    vertical-align: middle;
    font-weight: 700;
  }
}

.alert-inline {
  margin: 20px;
  border: none;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  .default-box-shadow();
}

/**
 *    Copyright (c) ppy Pty Ltd <contact@ppy.sh>.
 *
 *    This file is part of osu!web. osu!web is distributed with the hope of
 *    attracting more community contributions to the core ecosystem of osu!.
 *
 *    osu!web is free software: you can redistribute it and/or modify
 *    it under the terms of the Affero GNU General Public License version 3
 *    as published by the Free Software Foundation.
 *
 *    osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
 *    warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *    See the GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with osu!web.  If not, see <http://www.gnu.org/licenses/>.
 */

// main: compiled.less
@import "app";

*, ::before, ::after {
  position: relative;
  box-sizing: border-box;
}

::selection {
  color: #fff;
  background-color: @osu-colour-h2;
}

:root {
  --font-default: @font-default;
  --font-default-torus: @font-default-torus;
  --font-default-vi: @font-default-vi;
  --font-default-zh: @font-default-zh;
  --font-default-zh-tw: @font-default-zh-tw;
  --font-content: @font-content;
  --font-content-inter: @font-content-inter;
}

html, body {
  height: 100%;
}

body {
  .default-font();
  // no overlap between rightmost side and scrollbar
  -ms-overflow-style: scrollbar;
  // prevent moving navbar
  overflow-y: scroll;
  // fix tooltip positioning on edge when combined with overflow-y scroll above
  position: static;
}

.content {
  &--forum-topic-preview {
    width: 100%;
    padding: 0;
    margin-bottom: 5px;

    @media @desktop {
      margin-bottom: 0;
    }
  }
}

.content-extra {
  box-shadow: inset 0 2px 4px #333;
  margin-top: 10px;
  margin-bottom: -30px;
  width: 100%;
  padding-top: 20px;
  background-color: fade(#000, 75%);
}

.header-row {
  background-size: cover;
  background-position: center;
}

#popup-container {
  backface-visibility: hidden;
  position: fixed;
  width: 100%;
  top: 155px;
  z-index: 9999;

  .alert {
    border: none;
    .default-box-shadow();
  }

  .popup-text {
    vertical-align: middle;
    font-weight: 700;
  }
}

.alert-inline {
  margin: 20px;
  border: none;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  .default-box-shadow();
}


Fix schema browser items height (#5024)

Fix schema browser items height (#5024)

div.table-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 22px 2px 10px;
  border-radius: @redash-radius;
  position: relative;
  height: 22px;

  .copy-to-editor {
    display: none;
  }

  &:hover {
    background: fade(@redash-gray, 10%);

    .copy-to-editor {
      display: flex;
    }
  }
}

.schema-container {
  height: 100%;
  z-index: 10;
  background-color: white;
}

.schema-browser {
  overflow: hidden;
  border: none;
  padding-top: 10px;
  position: relative;
  height: 100%;

  .schema-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .collapse.in {
    background: transparent;
  }

  .copy-to-editor {
    color: fade(@redash-gray, 90%);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .table-open {
    padding: 0 22px 0 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    height: 18px;

    .copy-to-editor {
      display: none;
    }

    &:hover {
      background: fade(@redash-gray, 10%);

      .copy-to-editor {
        display: flex;
      }
    }
  }
}

.schema-control {
  display: flex;
  flex-wrap: nowrap;
  padding: 0;

  .ant-btn {
    height: auto;
  }
}

.parameter-label {
  display: block;
}

div.table-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 22px 2px 10px;
  border-radius: @redash-radius;
  position: relative;

  .copy-to-editor {
    display: none;
  }

  &:hover {
    background: fade(@redash-gray, 10%);

    .copy-to-editor {
      display: flex;
    }
  }
}

.schema-container {
  height: 100%;
  z-index: 10;
  background-color: white;
}

.schema-browser {
  overflow: hidden;
  border: none;
  padding-top: 10px;
  position: relative;
  height: 100%;

  .schema-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .collapse.in {
    background: transparent;
  }

  .copy-to-editor {
    color: fade(@redash-gray, 90%);
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .table-open {
    padding: 0 22px 0 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;

    .copy-to-editor {
      display: none;
    }

    &:hover {
      background: fade(@redash-gray, 10%);

      .copy-to-editor {
        display: flex;
      }
    }
  }
}

.schema-control {
  display: flex;
  flex-wrap: nowrap;
  padding: 0;

  .ant-btn {
    height: auto;
  }
}

.parameter-label {
  display: block;
}


[ci skip] fix one more calc statement

[ci skip] fix one more calc statement

@import "app";
.chartView {
  .shadow;
  .bg-white;
  .mx-auto;
  .float-unset;
  .p-3;
  .rounded-border;
  max-height: ~"calc(100vh - 170px)";
  overflow: auto;
}

.mapView {
  .shadow;
  .bg-white;
  .mx-auto;
  .float-unset;
  .p-3;
  .rounded-border;
  height: ~"calc(100vh - 170px)";
  overflow: auto;
}

.location-names {
  .font-montserrat;
  .font-weight-600;
  .font-16;
  .mb-3;
  color: #0047CC;
}

a:active, a:hover, a:focus {
  .font-montserrat;
  .font-weight-600;
  .font-16;
  // .mb-3;  // removed to prevent back button jumping - need to see where this is actually needed
  color: #0047CC;
  text-decoration: none;
}

.modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: ~"calc(100% - (.5rem * 2))";
}

@import "app";
.chartView {
  .shadow;
  .bg-white;
  .mx-auto;
  .float-unset;
  .p-3;
  .rounded-border;
  max-height: ~"calc(100vh - 170px)";
  overflow: auto;
}

.mapView {
  .shadow;
  .bg-white;
  .mx-auto;
  .float-unset;
  .p-3;
  .rounded-border;
  height: ~"calc(100vh - 170px)";
  overflow: auto;
}

.location-names {
  .font-montserrat;
  .font-weight-600;
  .font-16;
  .mb-3;
  color: #0047CC;
}

a:active, a:hover, a:focus {
  .font-montserrat;
  .font-weight-600;
  .font-16;
  // .mb-3;  // removed to prevent back button jumping - need to see where this is actually needed
  color: #0047CC;
  text-decoration: none;
}

.modal-dialog-centered {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-height: calc(100% - (.5rem * 2));
}