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

Merge pull request #2546 from weseek/imprv/options-selector-restyle

Imprv/options selector restyle
Yuki Takei 5 лет назад
Родитель
Сommit
c2b423cddf

+ 3 - 3
src/client/js/components/PageEditor/OptionsSelector.jsx

@@ -247,9 +247,9 @@ class OptionsSelector extends React.Component {
   render() {
   render() {
     return (
     return (
       <div className="d-flex flex-row">
       <div className="d-flex flex-row">
-        <span className="ml-2">{this.renderThemeSelector()}</span>
-        <span className="ml-2">{this.renderKeymapModeSelector()}</span>
-        <span className="ml-2">{this.renderConfigurationDropdown()}</span>
+        <span className="ml-3">{this.renderThemeSelector()}</span>
+        <span className="ml-4">{this.renderKeymapModeSelector()}</span>
+        <span className="ml-4">{this.renderConfigurationDropdown()}</span>
       </div>
       </div>
     );
     );
   }
   }

+ 15 - 5
src/client/styles/scss/theme/_apply-colors-dark.scss

@@ -51,8 +51,8 @@ textarea.form-control {
 }
 }
 
 
 .input-group > .input-group-prepend > .input-group-text {
 .input-group > .input-group-prepend > .input-group-text {
-  color: color-yiq(theme-color('dark'));
-  background-color: theme-color('dark');
+  color: theme-color('light');
+  background-color: theme-color('secondary');
   border: 1px solid theme-color('secondary');
   border: 1px solid theme-color('secondary');
   border-right: none;
   border-right: none;
 }
 }
@@ -64,6 +64,13 @@ textarea.form-control {
   background-color: $bgcolor-global;
   background-color: $bgcolor-global;
 }
 }
 
 
+.dropdown-item {
+  &:hover {
+    color: $light;
+    background-color: lighten($bgcolor-global, 15%);
+  }
+}
+
 /*
 /*
  * Table
  * Table
  */
  */
@@ -226,9 +233,12 @@ ul.pagination {
 /*
 /*
  * GROWI on-edit
  * GROWI on-edit
  */
  */
-.grw-editor-navbar-bottom {
-  #slack-mark-black {
-    display: none;
+body.on-edit {
+  .grw-editor-navbar-bottom {
+    background-color: $bgcolor-global;
+    #slack-mark-black {
+      display: none;
+    }
   }
   }
 }
 }
 
 

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

@@ -165,6 +165,16 @@ $table-hover-bg: $bgcolor-table-hover;
   #slack-mark-white {
   #slack-mark-white {
     display: none;
     display: none;
   }
   }
+
+  .input-group-text {
+    margin-right: 1px;
+    color: $secondary;
+    border-color: $light;
+  }
+
+  .btn.btn-outline-secondary {
+    border-color: $border-color;
+  }
 }
 }
 
 
 /*
 /*

+ 6 - 3
src/client/styles/scss/theme/_apply-colors.scss

@@ -90,11 +90,14 @@ pre:not(.hljs):not(.CodeMirror-line) {
 
 
 .dropdown-item {
 .dropdown-item {
   color: $color-global;
   color: $color-global;
-  &.active,
-  &:active {
+  &:active,
+  &.active {
     color: $color-dropdown-link-active;
     color: $color-dropdown-link-active;
     background-color: $bgcolor-dropdown-link-active;
     background-color: $bgcolor-dropdown-link-active;
   }
   }
+  &:hover {
+    background-color: $light;
+  }
 }
 }
 
 
 // Form
 // Form
@@ -339,7 +342,7 @@ body.on-edit {
   }
   }
 
 
   .grw-editor-navbar-bottom {
   .grw-editor-navbar-bottom {
-    background-color: darken($bgcolor-global, 2%);
+    background-color: $gray-50;
   }
   }
 }
 }
 
 

+ 6 - 2
src/client/styles/scss/theme/_reboot-bootstrap-theme-colors.scss

@@ -19,10 +19,14 @@ $theme-colors: map-merge($theme-colors, $colors);
     @include button-variant($value, $value);
     @include button-variant($value, $value);
   }
   }
 }
 }
-
 @each $color, $value in $theme-colors {
 @each $color, $value in $theme-colors {
   .btn-outline-#{$color} {
   .btn-outline-#{$color} {
-    @include button-outline-variant($value);
+    @include button-outline-variant($value, $color-hover: $value, $active-background: rgba($value, 0.1), $active-border: $value);
+    &:not(:disabled):not(.disabled):active,
+    &:not(:disabled):not(.disabled).active,
+    .show > &.dropdown-toggle {
+      color: $value;
+    }
   }
   }
 }
 }