Skip to content

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

7.3 KB
Raw Blame
.upgrade {
   width: 100%;
   color: var(--content-text-color);
   height: 100vh;
   background-color: var(--modal-bg);
   position: fixed;
   left: 0;
   top: 0;
   z-index: 999;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   transition: all 0.12s linear;

   .sidePanel {
      width: 240px;
      min-height: 500px;
      padding: 20px;
      gap: 20px;
      padding-right: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background-color: var(--background-color);
      h1 {
         margin: 0;
         font-size: 15px;
         padding-left: 15px;
         text-transform: uppercase;
         font-weight: 800;
      }
      ul {
         margin: 0;
         padding: 0;
         li {
            list-style-type: none;
            padding: 12px 16px;
            border-radius: 6px 0 0 6px;
            color: var(--content-text-color-light);
            user-select: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.12s linear;
            &.active {
               background-color: var(--content-background-color);
               color: var(--primary-color);
            }
            &:hover {
               color: var(--primary-color);
            }
            span {
               opacity: 0.7;
            }
         }
      }
      .upgradeButton {
         display: block;
         margin: 0 15px;
         font-weight: 600;
         background: var(--primary-color);
         color: var(--primary-text-color);
         border-radius: 6px;
         padding: 12px;
         text-align: center;
         cursor: pointer;
         transition: all 0.2s linear;
         &:hover {
            background: var(--primary-hover-color);
         }
      }
   }

   .mobileNav {
      display: none;
   }

   .content {
      width: 90%;
      max-width: 960px;
      border-radius: 10px;
      position: absolute;
      background: var(--content-background-color);
      color: var(--content-text-color);
      border: 1px solid var(--content-shadow-color);
      right: 0;
      left: 0;
      top: 42%;
      transform: translateY(-50%);
      margin: 0 auto;
      box-sizing: border-box;
      box-shadow: 0 0 20px var(--modal-shadow-color);
      transition: all 0.2s ease-out;
      .container {
         display: flex;
      }
   }
   .tabs {
      width: calc(100% - 240px);
      position: relative;
      overflow: hidden;
      .close {
         position: absolute;
         right: 0;
         padding: 20px;
         opacity: 0.3;
         transition: all 0.2s ease-out;
         &:hover {
            opacity: 0.6;
            transform: rotate(90deg);
         }
      }
      .tab {
         padding: 60px;
         h3 {
            span {
               opacity: 0.7;
               color: var(--primary-color);
            }
         }
         ul {
            padding-left: 0px;
            line-height: 2.2em;
            font-size: 0.86rem;
            list-style-type: none;
            li {
               span {
                  color: var(--primary-color);
                  opacity: 0.6;
               }
            }
         }
         .tabImage {
            img {
               width: auto;
               max-height: 450px;
               position: absolute;
               margin-top: -65px;
               right: -50px;
            }
            &.emailTabImage {
               img {
                  max-height: 320px;
                  margin-top: 0;
                  right: 0;
                  bottom: 0;
                  z-index: 4;
               }
               .glowImage {
                  z-index: 1;
                  max-height: unset;
                  top: 300px;
               }
            }
         }
      }
   }
   .snapshotTabs {
      margin: 0;
      display: flex;
      gap: 10px;
      position: relative;
      z-index: 22;
      margin-bottom: 20px;
      li {
         font-size: 0.9em;
         line-height: 1em;
         padding: 6px;
         font-weight: 600;
         cursor: pointer;
         &.active {
            background-color: var(--primary-color-light);
            border-radius: 6px;
         }
      }
   }

   .snapshotTabsMobile {
      display: none;
   }

   .snapshotTabsContent {
      .snapshotTab {
         position: relative;
         p {
            margin: 20px 0;
            font-weight: 600;
            position: relative;
            z-index: 22;
         }
         .snapshotImage {
            max-height: 420px;
            position: relative;
            overflow: hidden;
            border-radius: 6px;
            &:after {
               content: '';
               width: 100%;
               height: 200px;
               background: linear-gradient(0deg, #ffffff, transparent);
               display: block;
               z-index: 999;
               position: absolute;
               bottom: 0;
            }
            img {
               max-width: 100%;
               border: 1px solid var(--line-color);
               border-radius: 6px;
               position: relative;
               z-index: 222;
            }
         }

         .glowImage {
            position: absolute;
            bottom: -250px;
            left: -60px;
            z-index: 0;
            width: 122%;
            max-width: unset;
            opacity: 0.5;
         }
      }
   }
}

@media only screen and (max-width: 768px) {
   .upgrade {
      .content {
         .container {
            flex-direction: column;
         }
      }
      .sidePanel {
         width: 100%;
         box-sizing: border-box;
         min-height: unset;
         border-radius: 6px 6px 0 0;
         ul {
            display: none;
         }
         .upgradeButton {
            position: absolute;
            width: 100%;
            box-sizing: border-box;
            left: 0;
            bottom: -60px;
            margin: 0;
         }
      }
      .mobileNav {
         display: flex;
         width: 100%;
         ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
            display: flex;
            justify-content: space-around;
            width: 100%;
            border-top: 1px solid var(--line-color);
            li {
               padding: 8px;
               color: var(--content-text-color-light);
               cursor: pointer;
               &.active {
                  color: var(--primary-color);
               }
            }
         }
      }
      .snapshotTabs {
         display: none;
      }
      .snapshotTabsMobile {
         display: block;
         select {
            width: 100%;
            margin-bottom: 20px;
            padding: 6px 12px;
            border-color: var(--line-active-color);
            border-radius: 6px;
         }
      }

      .tabs {
         width: 100%;
         min-height: 60vh;
         .tab {
            padding: 30px;
            padding-bottom: 0;
            ul {
               font-size: 1em;
            }
            .tabImage img {
               max-height: 350px;
            }
            .tabImage.emailTabImage img {
               right: -100px;
               bottom: -100px;
            }
            .snapshotTab {
               position: relative;
               .glowImage {
                  left: unset;
               }
            }
         }
      }
   }
}