Skip to content
Snippets Groups Projects
main.css 3.36 KiB
Newer Older
  • Learn to ignore specific revisions
  • /* Custom styles for LibreTranslate page */
    
    
    html,
    body,
    select {
      font-size: 16px;
      font-family: Arial, Helvetica, sans-serif !important;
    }
    
    
    Dominik's avatar
    Dominik committed
    #app {
      min-height: 80vh;
    }
    
    
    h3.header {
      margin-bottom: 2.5rem;
    }
    
    .mb-0 {
      margin-bottom: 0 !important;
    }
    
    .mt-0 {
      margin-top: 0 !important;
    }
    
    
    .mb-1 {
        margin-bottom: 1rem;
    }
    
    
    .position-relative {
      position: relative;
    }
    
    .language-select {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
    }
    
    .language-select select {
      border: none;
      width: auto;
      cursor: pointer;
      font-weight: 600;
      text-decoration: underline;
      -webkit-appearance: none;
      appearance: none;
    
    Piero Toffanin's avatar
    Piero Toffanin committed
      padding: 0;
    
      text-overflow: "";
    
    Piero Toffanin's avatar
    Piero Toffanin committed
      margin-left: 6px;
    
      height: 2rem;
    
      line-height: inherit;
      outline: none;
      position: relative;
    }
    @-moz-document url-prefix() {
      .language-select select {
        -moz-appearance: none;
        text-indent: -2px;
        margin-right: -8px;
      }
    
    .language-select:after {
      content: "";
      width: 0.5em;
      height: 0.5em;
      margin: 0 0 0.25rem -0.75rem;
      border: solid black;
      border-width: 0 2px 2px 0;
      display: inline-block;
      padding: 3px;
      transform: rotate(45deg);
      z-index: -1;
    }
    
    
    .btn-switch-language {
      color: black;
      margin-left: -1.5rem;
      margin-right: 1rem;
    }
    
    .textarea-container {
      margin-top: 0;
      position: relative;
    }
    
    .btn-delete-text {
      position: absolute;
      right: 1.5rem;
      top: 0.75rem;
      border: 0;
      background: none;
      padding: 0;
      cursor: pointer;
    
    }
    
    .btn-delete-text:focus,
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .btn-action:focus {
    
      background: none !important;
    }
    
    .characters-limit-container {
      position: absolute;
      right: 2rem;
      bottom: 1rem;
    
      pointer-events: none;
    }
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .actions {
    
      position: absolute;
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
      right: 1.25rem;
    
      bottom: 1rem;
      display: flex;
    
    .btn-switch-type {
        background-color: #fff;
        color: #42A5F5;
    }
    
    .btn-switch-type:hover {
        background-color: #eee;
        color: #42A5F5;
    }
    
    .btn-switch-type.active {
        background-color: #42A5F5;
        color: #fff;
    }
    
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .btn-action {
      display: flex;
    
      align-items: center;
    
      font-size: 0.85rem;
      background: none;
      border: none;
      cursor: pointer;
    }
    
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .btn-blue {
      color: #42A5F5;
    }
    .btn-action:disabled {
        color: #777;
    }
    
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .btn-action span {
    
      padding-right: 0.5rem;
    }
    
    
    Sébastien Thuret's avatar
    Sébastien Thuret committed
    .btn-action .material-icons {
    
      font-size: 1.35rem;
    }
    
    .progress {
    
    }
    
    .progress.translate {
      position: absolute;
    }
    
    .progress .indeterminate {
      background-color: steelblue;
    }
    
    .textarea-container textarea {
      font-size: 1.25rem;
      resize: none;
      border: 1px solid #ccc;
    
      padding: 1rem 2rem 1rem 1.5rem;
      overflow-y: hidden;
    }
    
    
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
    
    .code {
      font-size: 90%;
      padding: 1rem 1.5rem;
    
      border: 1px solid #ccc;
    
      background: #fbfbfb;
      overflow: auto;
      font-family: monospace;
      min-height: 280px;
      width: 100%;
      overflow: auto;
    }
    
    .page-footer .footer-copyright {
      justify-content: center;
    
    @media (max-width: 760px) {
    
        text-align: center;
        margin: auto;
    
        padding: 0;
      }
      .language-select:after {
        content: none;
    
      }
      .language-select span {
        display: none;
      }
    }