Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

1.3 KB
Raw Blame
@use '../../../../styles/fields.scss';

.tristateField {
   .fieldInner {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
   }

   .inputGroup {
      display: flex;
      align-items: center;
      gap: 8px;
   }

   .optionSelector {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      border: 1px solid var(--field-line-color);
      border-radius: 6px;
      overflow: hidden;
   }

   .option {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 5px 12px;
      font-size: 0.75rem;
      cursor: pointer;
      color: var(--content-text-color);
      background: transparent;
      border-right: 1px solid var(--field-line-color);
      transition: all 0.2s ease;

      &:last-child {
         border-right: none;
      }

      &:hover {
         background: var(--background-color);
      }

      &.selected {
         background: var(--primary-color);
         color: var(--primary-text-color);
      }

      &.optionDisabled {
         opacity: 0.6;
         user-select: none;
         cursor: not-allowed;
      }
   }

   &.tristateInline {
      .fieldInner {
         display: flex;
         flex-direction: row;
         gap: 1.25rem;
         align-items: center;
      }
   }
}