mishina2228/oanda-api-rails

View on GitHub
app/assets/stylesheets/scaffolds.scss

Summary

Maintainability
Test Coverage
html {
  font-size: 14px;
}

caption {
  caption-side: top;
}

body {
  background-color: #fff;
  color: #333;
  margin: 33px;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;

  &.dark_mode {
    background: #21252c;
    color: whitesmoke;

    nav {
      &.navbar-default {
        background: #464646;
      }
    }

    td, th {
      a {
        color: #44b9d6;
      }
      color: whitesmoke;
    }

    span:not([class^='flatpickr-']), table {
      color: whitesmoke;
    }

    pre {
      color: #f5f5f5;
      background: #333;
    }

    .table-striped {
      tbody {
        tr {
          &:nth-of-type(odd) {
            background: #404040;

            &:hover {
              background: #585858;
            }
          }

          &:nth-of-type(even) {
            background: #10171f;

            &:hover {
              background: #313131;
            }
          }
        }
      }
    }

    .box_radius {
      background: #21252c;
    }

    .pagination {
      li {
        a {
          background: #000000;
          color: #44b9d6;
        }
      }

      .active {
        a {
          background: #337ab7;
          color: #fff;

          &:hover {
            background: #337ab7;
            color: #fff;
          }
        }
      }

      .disabled {
        a {
          background: #000000;

          &:hover {
            background: #000000;
          }
        }
      }
    }

    div.ui-columns-table {
      color: #333;
    }
  }
}

.dark-mode-toggle {
  width: 3rem;
  height: 3rem;
  position: fixed;
  border-radius: 50%;
  border: none;
  right: 32px;
  bottom: 32px;
  left: unset;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}

td a {
  color: #337ab7;

  &:visited {
    color: #337ab7;
  }

  &:hover {
    color: #fff;
    background-color: #337ab7;
  }
}

th {
  padding-bottom: 5px;
}

td {
  padding: 0 5px 7px;
}

td a {
  color: #337ab7;

  &:visited {
    color: #337ab7;
  }

  &:hover {
    color: #fff;
    background-color: #337ab7;
  }
}

.header a {
  color: #fff;

  &:visited {
    color: #fff;
  }

  &:hover {
    color: #337ab7;
    background-color: #fff;
  }
}

div {
  &.field, &.actions {
    margin-bottom: 10px;
  }
}

.notice {
  color: green;
}

.alert {
  color: red;
}

.field_with_errors {
  padding: 2px;
}

#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px 7px 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;

  h2 {
    text-align: left;
    font-weight: bold;
    padding: 5px 5px 5px 15px;
    font-size: 12px;
    margin: -7px -7px 0;
    background-color: #c00;
    color: #fff;
  }

  ul li {
    font-size: 12px;
    list-style: square;
  }
}

label {
  display: block;
}

button {
  .show-when-enabled {
    display: initial;
  }

  .show-when-disabled {
    display: none;
  }

  &[disabled] {
    .show-when-enabled {
      display: none;
    }

    .show-when-disabled {
      display: initial;
    }
  }
}

@for $size from 1 to 100 {
  .w-#{$size} {
    width: #{$size * 1%} !important;
  }
}