فهرست منبع

fix image url

ayaka417 3 سال پیش
والد
کامیت
835341541c

+ 5 - 5
packages/preset-themes/src/styles/christmas.scss

@@ -6,7 +6,7 @@
 .growi:not(.login-page) {
 .growi:not(.login-page) {
   // add background-image
   // add background-image
   .page-editor-preview-container {
   .page-editor-preview-container {
-    background-image: url('/images/themes/christmas/christmas.jpg');
+    background-image: url('../images/christmas/christmas.jpg');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: center center;
     background-position: center center;
     background-size: cover;
     background-size: cover;
@@ -137,7 +137,7 @@
   }
   }
 
 
   .page-editor-preview-container {
   .page-editor-preview-container {
-    background-image: url('/images/themes/christmas/christmas.jpg');
+    background-image: url('../images/christmas/christmas.jpg');
     background-attachment: fixed;
     background-attachment: fixed;
     background-size: cover;
     background-size: cover;
   }
   }
@@ -174,7 +174,7 @@
   * Modal
   * Modal
   */
   */
   .modal-dialog .modal-header.bg-primary {
   .modal-dialog .modal-header.bg-primary {
-    background-image: url('/images/themes/christmas/christmas-navbar.jpg');
+    background-image: url('../images/christmas/christmas-navbar.jpg');
     border-bottom: 2px solid var(--color-link);
     border-bottom: 2px solid var(--color-link);
   }
   }
 
 
@@ -187,12 +187,12 @@
     }
     }
     .card-header.bg-primary {
     .card-header.bg-primary {
       color: white;
       color: white;
-      background-image: url('/images/themes/christmas/christmas-navbar.jpg') !important;
+      background-image: url('../images/christmas/christmas-navbar.jpg') !important;
     }
     }
   }
   }
 
 
   .grw-navbar {
   .grw-navbar {
-    background-image: url('/images/themes/christmas/christmas-navbar.jpg');
+    background-image: url('../images/christmas/christmas-navbar.jpg');
   }
   }
 
 
   // Button
   // Button

+ 4 - 4
packages/preset-themes/src/styles/hufflepuff.scss

@@ -136,7 +136,7 @@
   .growi:not(.login-page) {
   .growi:not(.login-page) {
     // add background-image
     // add background-image
     .page-editor-preview-container {
     .page-editor-preview-container {
-      background-image: url('../images/themes/hufflepuff/badger-light3.png');
+      background-image: url('../images/hufflepuff/badger-light3.png');
       background-attachment: fixed;
       background-attachment: fixed;
       background-position: bottom;
       background-position: bottom;
       background-size: cover;
       background-size: cover;
@@ -146,7 +146,7 @@
   // login and register
   // login and register
   .nologin {
   .nologin {
     background: unset !important;
     background: unset !important;
-    background-image: url('../images/themes/hufflepuff/badger-light.png');
+    background-image: url('../images/hufflepuff/badger-light.png');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: bottom;
     background-position: bottom;
     background-size: cover;
     background-size: cover;
@@ -336,7 +336,7 @@
   .growi:not(.login-page) {
   .growi:not(.login-page) {
     // add background-image
     // add background-image
     .page-editor-preview-container {
     .page-editor-preview-container {
-      background-image: url('../images/themes/hufflepuff/badger-dark.jpg');
+      background-image: url('../images/hufflepuff/badger-dark.jpg');
       background-attachment: fixed;
       background-attachment: fixed;
       background-position: bottom;
       background-position: bottom;
       background-size: cover;
       background-size: cover;
@@ -346,7 +346,7 @@
   // login and register
   // login and register
   .nologin {
   .nologin {
     background: unset !important;
     background: unset !important;
-    background-image: url('../images/themes/hufflepuff/badger-light.png');
+    background-image: url('../images/hufflepuff/badger-light.png');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: bottom;
     background-position: bottom;
     background-size: cover;
     background-size: cover;

+ 1 - 1
packages/preset-themes/src/styles/island.scss

@@ -126,7 +126,7 @@
   }
   }
 
 
   .page-editor-preview-container {
   .page-editor-preview-container {
-    background-image: url('/images/themes/island/island.png');
+    background-image: url('../images/island/island.png');
     background-attachment: fixed;
     background-attachment: fixed;
   }
   }
 
 

+ 2 - 2
packages/preset-themes/src/styles/spring.scss

@@ -127,7 +127,7 @@
   .growi:not(.login-page) {
   .growi:not(.login-page) {
     // add background-image
     // add background-image
     .page-editor-preview-container {
     .page-editor-preview-container {
-      background-image: url('/images/themes/spring/spring02.svg');
+      background-image: url('../images/spring/spring02.svg');
       background-attachment: fixed;
       background-attachment: fixed;
       background-position: bottom;
       background-position: bottom;
       background-size: cover;
       background-size: cover;
@@ -137,7 +137,7 @@
   // login and register
   // login and register
   .nologin {
   .nologin {
     background: unset !important;
     background: unset !important;
-    background-image: url('/images/themes/spring/spring.svg');
+    background-image: url('../images/spring/spring.svg');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: bottom;
     background-position: bottom;
     background-size: cover;
     background-size: cover;

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

@@ -6,7 +6,7 @@
 .growi:not(.login-page) {
 .growi:not(.login-page) {
   // add background-image
   // add background-image
   .page-editor-preview-container {
   .page-editor-preview-container {
-    background-image: url('/images/themes/wood/wood.jpg');
+    background-image: url('../images/wood/wood.jpg');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: center center;
     background-position: center center;
     background-size: cover;
     background-size: cover;
@@ -15,7 +15,7 @@
 
 
 .growi.login-page {
 .growi.login-page {
   .page-wrapper {
   .page-wrapper {
-    background-image: url('/images/themes/wood/wood.jpg');
+    background-image: url('../images/wood/wood.jpg');
     background-attachment: fixed;
     background-attachment: fixed;
     background-position: center center;
     background-position: center center;
     background-size: cover;
     background-size: cover;
@@ -146,13 +146,13 @@
    * Modal
    * Modal
    */
    */
   .modal-dialog .modal-header.bg-primary {
   .modal-dialog .modal-header.bg-primary {
-    background-image: url('/images/themes/wood/wood-navbar.jpg');
+    background-image: url('../images/wood/wood-navbar.jpg');
   }
   }
 
 
   // Sidebar
   // Sidebar
   .grw-sidebar {
   .grw-sidebar {
     div[data-testid='GlobalNavigation'] {
     div[data-testid='GlobalNavigation'] {
-      background-image: url('/images/themes/wood/wood-navbar.jpg');
+      background-image: url('../images/wood/wood-navbar.jpg');
 
 
       button,
       button,
       .btn {
       .btn {
@@ -162,7 +162,7 @@
     div[data-testid='ContextualNavigation'] {
     div[data-testid='ContextualNavigation'] {
       > div {
       > div {
         background-color: rgba(white, 0.6);
         background-color: rgba(white, 0.6);
-        background-image: url('/images/themes/wood/wood-navbar.jpg');
+        background-image: url('../images/wood/wood-navbar.jpg');
         background-blend-mode: lighten;
         background-blend-mode: lighten;
       }
       }
     }
     }