Parcourir la source

adjust css selecter

yusuketk il y a 5 ans
Parent
commit
2d3a9a5483

+ 1 - 1
src/client/js/components/PageEditor/LinkEditModal.jsx

@@ -209,7 +209,7 @@ class LinkEditModal extends React.PureComponent {
     const linkText = linker.generateMarkdownText();
     const linkText = linker.generateMarkdownText();
     return (
     return (
       <div className="d-flex justify-content-between mb-3">
       <div className="d-flex justify-content-between mb-3">
-        <div className="card w-100 bg-muted p-1 mb-0">
+        <div className="card bg-disabled w-100 p-1 mb-0">
           <p className="text-left text-muted mb-1 small">Markdown</p>
           <p className="text-left text-muted mb-1 small">Markdown</p>
           <p className="text-center text-truncate text-muted">{linkText}</p>
           <p className="text-center text-truncate text-muted">{linkText}</p>
         </div>
         </div>

+ 13 - 20
src/client/styles/scss/theme/_apply-colors-dark.scss

@@ -57,6 +57,10 @@ textarea.form-control {
   border-right: none;
   border-right: none;
 }
 }
 
 
+.input-group input {
+  border-color: $secondary;
+}
+
 /*
 /*
  * Dropdown
  * Dropdown
  */
  */
@@ -85,6 +89,15 @@ textarea.form-control {
   @extend .bg-dark;
   @extend .bg-dark;
 }
 }
 
 
+.card.well {
+  border-color: $secondary;
+}
+
+.card.bg-disabled {
+  background-color: lighten($dark, 10%);
+  border-color: $secondary;
+}
+
 /*
 /*
  * Pagination
  * Pagination
  */
  */
@@ -242,26 +255,6 @@ body.on-edit {
   }
   }
 }
 }
 
 
-/*
- * Link Edit Modal
- */
-.link-edit-modal {
-  .card,
-  input {
-    border-color: $secondary;
-  }
-  .card.bg-muted {
-    background-color: lighten($dark, 10%);
-    border-color: $secondary;
-  }
-  .input-group {
-    .input-group-text {
-      color: $light;
-      background-color: $secondary;
-    }
-  }
-}
-
 /*
 /*
  * Popover
  * Popover
  */
  */

+ 8 - 10
src/client/styles/scss/theme/_apply-colors-light.scss

@@ -181,21 +181,19 @@ $table-hover-bg: $bgcolor-table-hover;
  * Link Edit Modal
  * Link Edit Modal
  */
  */
 .link-edit-modal {
 .link-edit-modal {
-  .card.bg-muted {
-    background-color: darken($bgcolor-card, 5%);
-    border-color: $gray-200;
-  }
-  .input-group {
-    .input-group-text {
-      color: $secondary;
-      background-color: $light;
-    }
-  }
   span i {
   span i {
     color: $gray-400;
     color: $gray-400;
   }
   }
 }
 }
 
 
+/*
+ * card
+ */
+.card.bg-disabled {
+  background-color: darken($bgcolor-card, 5%);
+  border-color: $gray-200;
+}
+
 /*
 /*
  * GROWI HandsontableModal
  * GROWI HandsontableModal
  */
  */