Skip to content

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

3.8 KB
Raw Blame
.planStats {
   display: flex;
   justify-content: space-between;
   gap: 20px;
   .widgetTitle {
      padding: 2px 6px;
      background-color: var(--content-background-color);
      border: 1px solid var(--line-color);
      color: var(--content-title-color);
      border-radius: 4px;
      font-size: 0.6875rem;
      font-weight: 600;
      width: max-content;
      position: relative;
      margin-top: -30px;
      span {
         color: var(--icon-color);
      }
      .widgetSubTitle {
         margin-left: 4px;
         i {
            font-style: normal;
            font-family: sans-serif;
            font-size: 9px;
            padding: 0 2px;
         }
      }
   }

   .sources,
   .snapshots,
   .health {
      border: 1px solid var(--line-color);
      padding: 20px;
      border-radius: 6px;
      box-sizing: border-box;
   }

   .sources {
      width: 38%;
      .sourceContent {
         display: flex;
         align-items: center;
         justify-content: center;
         padding: 12px;
         gap: 20%;
         & > div {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            font-size: 0.75rem;
            font-weight: 500;
            min-width: 80px;
            img {
               width: auto;
               max-height: 18px;
               display: block;
            }
            span {
               display: block;
               line-height: initial;
            }
            .sourceIcon {
               position: relative;
            }
            .sourceStatus {
               position: absolute;
               right: -5px;
               bottom: -3px;
               width: 8px;
               height: 8px;
               border-radius: 50%;
               background-color: var(--line-active-color);
               &.online {
                  background-color: turquoise;
               }
            }
            &:nth-child(2) {
               border: 1px solid var(--line-color);
               border-radius: 50%;
               width: 30px;
               min-width: 30px;
               height: 30px;
               box-sizing: border-box;
               padding-top: 4px;
               position: relative;
            }
            .sourceArrow {
               position: absolute;
               left: 35px;
               opacity: 0.6;
               &::before {
                  content: '';
                  width: 10px;
                  height: 2px;
                  background: var(--content-text-color-light);
                  position: absolute;
                  left: -52px;
                  top: 8px;
                  opacity: 0.7;
               }
            }
         }
      }
   }
   .snapshots {
      width: 24%;
      padding: 20px 0 0 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .snapshotsContent {
         display: flex;
         justify-content: space-around;
         align-items: center;
         height: 70px;
         margin-top: 16px;
         position: relative;

         & > div {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 0.75rem;
            font-weight: 500;

            & > span:nth-child(1) {
               font-size: 1rem;
               font-weight: 600;
               color: var(--content-subtitle-color);
            }
            &:nth-child(2) {
               width: 1px;
               height: 30px;
               background-color: var(--line-color);
            }
         }
      }
   }
   .health {
      width: 33%;
   }
}

@media only screen and (max-width: 768px) {
   .planStats {
      flex-direction: column;
      .sources,
      .snapshots,
      .health {
         width: 100%;
      }
   }
}