ayaka417 3 лет назад
Родитель
Сommit
65b615893e

+ 6 - 7
packages/app/src/styles/theme/_apply-colors-dark.scss

@@ -175,13 +175,6 @@
       linear-gradient(225deg, darken(var.$growi-blue, 20%) 10%, hsla(140, 90%, 50%, 0) 80%),
       linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
 
-    .link-switch {
-      color: #7b9bd5;
-      @include hover() {
-        color: lighten(#7b9bd5,10%);
-      }
-    }
-
     .nologin-header {
       background-color: rgba(black, 0.5);
 
@@ -197,6 +190,12 @@
 
     .nologin-dialog {
       background-color: rgba(black, 0.5);
+      .link-switch {
+        color: #7b9bd5;
+        @include hover() {
+          color: lighten(#7b9bd5,10%);
+        }
+      }
     }
 
     .input-group {

+ 6 - 7
packages/app/src/styles/theme/_apply-colors-light.scss

@@ -98,13 +98,6 @@
       linear-gradient(135deg, var.$growi-green 10%, hsla(225, 95%, 50%, 0) 70%), linear-gradient(225deg, var.$growi-blue 10%, hsla(140, 90%, 50%, 0) 80%),
       linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
 
-    .link-switch {
-      color: #1939b8;
-      @include hover() {
-        color: lighten(#1939b8,20%);
-      }
-    }
-
     .nologin-header {
       background-color: rgba(white, 0.5);
 
@@ -120,6 +113,12 @@
 
     .nologin-dialog {
       background-color: rgba(white, 0.5);
+      .link-switch {
+        color: #1939b8;
+        @include hover() {
+          color: lighten(#1939b8,20%);
+        }
+      }
     }
 
     .dropdown-with-icon {

+ 1 - 2
packages/preset-themes/src/styles/antarctic.scss

@@ -161,8 +161,7 @@
 
   // login and register
   .nologin {
-    a.d-block.link-switch,
-    a#register.link-switch {
+    .nologin-dialog a.link-switch {
       color: rgba(black, 0.5);
     }
 

+ 3 - 4
packages/preset-themes/src/styles/christmas.scss

@@ -160,10 +160,9 @@
     .nologin-header,
     .nologin-dialog {
       background-color: rgba(#ccc, 0.5);
-    }
-    a.d-block.link-switch,
-    a#register.link-switch {
-      color: #bd3425;
+      a.link-switch {
+        color: #bd3425;
+      }
     }
 
     .grw-external-auth-form {

+ 3 - 5
packages/preset-themes/src/styles/hufflepuff.scss

@@ -154,11 +154,9 @@
     .nologin-header,
     .nologin-dialog {
       background-color: rgba(black, 0.1);
-    }
-
-    a.d-block.link-switch,
-    a#register.link-switch {
-      color: #{hsl.darken(var(--color-global),10%)};
+      a.link-switch  {
+        color: #{hsl.darken(var(--color-global),10%)};
+      }
     }
 
     .grw-external-auth-form {

+ 3 - 5
packages/preset-themes/src/styles/spring.scss

@@ -145,11 +145,9 @@
     .nologin-header,
     .nologin-dialog {
       background-color: rgba(black, 0.1);
-    }
-
-    a.d-block.link-switch,
-    a#register.link-switch {
-      color: var(--color-global);
+      a.link-switch {
+        color: var(--color-global);
+      }
     }
 
     .grw-external-auth-form {

+ 3 - 5
packages/preset-themes/src/styles/wood.scss

@@ -175,11 +175,9 @@
     .nologin-header,
     .nologin-dialog {
       background-color: rgba(black, 0.1);
-    }
-
-    a.d-block.link-switch,
-    a#register.link-switch {
-      color: rgba(black, 0.5);
+      a.link-switch {
+        color: rgba(black, 0.5);
+      }
     }
 
     .grw-external-auth-form {