Просмотр исходного кода

Merge pull request #22225 from overleaf/ds-register-bs-5-four

BS5 Migration - Migrating Registration page to BS5(4)

GitOrigin-RevId: 89f9158242714dca6fdbe0626a2c2c6e7174a010
M Fahru 1 год назад
Родитель
Сommit
3e0b447bc1
1 измененных файлов с 93 добавлено и 0 удалено
  1. 93 0
      services/web/frontend/stylesheets/bootstrap-5/pages/login-register.scss

+ 93 - 0
services/web/frontend/stylesheets/bootstrap-5/pages/login-register.scss

@@ -58,10 +58,68 @@
             font-size: var(--font-size-02);
             font-size: var(--font-size-02);
           }
           }
         }
         }
+
+        .tos-agreement-notice {
+          text-align: left;
+        }
+      }
+    }
+
+    .register-illustration-container {
+      height: 100%;
+      display: flex;
+      align-items: center;
+      position: relative;
+
+      .register-illustration {
+        position: absolute;
+        left: 80px;
+        top: 100px;
+
+        // for wide screen
+        @media (width >= 1700px) {
+          position: relative;
+          left: unset;
+          top: unset;
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          width: 100%;
+        }
+
+        .register-main-image {
+          max-width: 850px;
+
+          @media (width <= 1350px) {
+            max-width: 750px;
+          }
+
+          @media (width <= 1150px) {
+            max-width: 670px;
+          }
+        }
+
+        .sticky-tags {
+          position: absolute;
+          height: 210px;
+          bottom: -135px;
+          right: 130px;
+
+          // for wide screen
+          @media (width >= 1700px) {
+            right: calc(50% - 300px);
+          }
+        }
       }
       }
     }
     }
   }
   }
 
 
+  .recaptcha-branding {
+    text-align: left;
+    padding: var(--spacing-05) 0;
+    font-size: var(--font-size-01);
+  }
+
   .registration-block-separator {
   .registration-block-separator {
     margin-bottom: 0;
     margin-bottom: 0;
   }
   }
@@ -147,6 +205,41 @@
       }
       }
     }
     }
   }
   }
+
+  .login-register-text {
+    padding-bottom: var(--spacing-08);
+    margin-bottom: 0;
+
+    @include body-sm;
+  }
+
+  .login-register-other-links {
+    padding: var(--spacing-08) 0;
+    text-align: left;
+
+    .login-register-text {
+      padding-bottom: 0;
+    }
+
+    a {
+      color: var(--green-50);
+      text-decoration: underline;
+
+      // text-decoration-;skip-ink is for letter with descender (like 'g' and 'y')
+      // this will force underline to not skip the descender
+      text-decoration-skip-ink: none;
+
+      &:hover {
+        color: var(--green-60);
+      }
+
+      // for accessibility with keyboard navigation
+      &:focus {
+        outline: 2px solid var(--green-50);
+        outline-offset: 1px;
+      }
+    }
+  }
 }
 }
 
 
 .login-register-hr-text-container {
 .login-register-hr-text-container {