Skip to content

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

3.4 KB
Raw Blame
.storagePicker {
   width: 100%;

   .storagePickerInput {
      width: 100%;
      padding: 8px;
      border: 1px solid var(--field-line-color);
      border-radius: 6px;
      box-sizing: border-box;
      .storage {
         width: 35%;
         cursor: pointer;
         img {
            height: 18px;
            width: auto;
            margin-right: 5px;
            vertical-align: top;
         }
         :global([class*='_dropdown_']) {
            width: 100%;
         }
      }
      .path {
         width: calc(65% - 10px);
         margin-left: 10px;
         position: relative;
         display: flex;
         flex-direction: row;
         align-items: center;
         .fileManagerBtn {
            position: absolute;
            right: 1px;
            top: 1px;
            padding: 8px;
            cursor: pointer;
            color: var(--icon-color);
            &:hover {
               color: var(--primary-color);
            }
         }
         .defaultPath {
            display: block;
            min-width: fit-content;
            background: var(--background-color);
            color: var(--content-text-color-light);
            cursor: default;
            padding: 8px;
            padding-top: 9px;
            border-radius: 6px 0 0 6px;
            border: 1px solid var(--field-line-color);
            border-right: 0;
            box-sizing: border-box;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
         }
         div[class*='_inputField_'] {
            display: inline-block;
         }
         div[class*='_inputField_'] input {
            padding: 10px 12px;
         }
         &.withBucket {
            div[class*='_inputField_'] input {
               border-radius: 0 6px 6px 0;
            }
         }
      }
      & > div {
         border-radius: 4px;
         box-sizing: border-box;
         font-size: 0.75rem;
         display: flex;

         button {
            padding: 3px 8px;
            background-color: var(--background-color);
            color: var(--content-text-color);
            font-size: 0.75rem;
            border-radius: 4px;
            margin-left: 5px;
         }
      }
   }
}

.pickerContent {
   .field {
      margin-bottom: 20px;
      width: 100%;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
   }

   label {
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 0.75rem;
      width: 55%;
   }
   .pickerFooter {
      margin-top: 20px;
      justify-content: right;
      display: flex;
      flex-direction: row;
      gap: 10px;
      button {
         background-color: var(--line-color);
         color: var(--content-text-color);
         padding: 8px 16px;
         border-radius: 4px;
         font-size: 0.75rem;
         transition: all 0.12s linear;
         &:nth-child(2) {
            background-color: var(--primary-color);
            color: var(--primary-text-color);
            &:hover {
               background-color: var(--primary-hover-color);
            }
         }
      }
   }
}

@media only screen and (max-width: 768px) {
   .storagePicker {
      .storagePickerInput > div {
         display: flex;
         flex-direction: column;
         .storage {
            width: 100%;
            margin-bottom: 10px;
         }
         .path {
            width: 100%;
            margin-left: 0px;
         }
      }
   }
}