Преглед на файлове

Clean up command palette styling

Steven Silvester преди 8 години
родител
ревизия
b04c20b14a
променени са 1 файла, в които са добавени 40 реда и са изтрити 37 реда
  1. 40 37
      src/default-theme/commandpalette.css

+ 40 - 37
src/default-theme/commandpalette.css

@@ -11,86 +11,89 @@
 
 
 .p-CommandPalette-search {
-  margin-bottom: 4px;
+  padding: 8px;
 }
 
 
 .p-CommandPalette-wrapper {
   padding: 4px 6px;
-  margin: 4px;
   background: white;
   border: 1px solid #E0E0E0;
-  border-radius: 1px;
 }
 
 
 .p-CommandPalette-input {
   width: 100%;
-  outline: none;
   border: none;
-  font-size: 13px;
+  outline: none;
+  font-size: 16px;
 }
 
 
 .p-CommandPalette-header {
-  margin: 4px 0px;
-  padding: 4px 12px;
-  font-size: 11px;
+  padding: 4px;
+  color: #757575;
+  font-size: 12px;
   font-weight: 600;
-  text-transform: uppercase;
-  border-bottom: 1px solid #E0E0E0;
-  letter-spacing: 2px;
+  background: #E1E1E1;
+  cursor: pointer;
 }
 
 
-.p-CommandPalette-item {
-  padding: 4px 12px;
-  font-size: 13px;
-  font-weight: 500;
-  color: #757575;
+.p-CommandPalette-header.p-mod-active {
+  background: #7FDBFF;
 }
 
 
-.p-CommandPalette-commandCaption {
-  display: none;
+.p-CommandPalette-header:hover::before {
+  content: '\2026'; /* ellipsis */
+  float: right;
+  margin-right: 4px;
 }
 
 
-.p-CommandPalette-header:hover:not(.p-mod-active),
-.p-CommandPalette-item:hover:not(.p-mod-active) {
-  background: #EEEEEE;
+.p-CommandPalette-header > mark {
+  background-color: transparent;
+  font-weight: bold;
 }
 
 
-.p-CommandPalette-header mark {
-  color: #424242;
-  background: inherit;
+.p-CommandPalette-item {
+  padding: 4px 8px;
+  color: #757575;
+  font-size: 13px;
+  font-weight: 500;
+}
+
+
+.p-CommandPalette-item.p-mod-disabled {
+  color: rgba(0, 0, 0, 0.25);
 }
 
 
 .p-CommandPalette-item.p-mod-active {
-  color: rgba(255,255,255,0.7);
-  background: #2196F3;
+  background: #7FDBFF;
 }
 
-.p-CommandPalette-header.p-mod-active {
-  color: rgba(255,255,255,0.7);
-  background: #2196F3;
+
+.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled) {
+  background: #E5E5E5;
 }
 
 
-.p-CommandPalette-item.p-mod-active .p-CommandPalette-itemCaption {
-  color: inherit;
+.p-CommandPalette-itemLabel > mark {
+  background-color: transparent;
+  font-weight: bold;
 }
 
 
-.p-CommandPalette-item.p-mod-active mark {
-    background: inherit;
-    color: white;
+.p-CommandPalette-item.p-mod-disabled mark {
+  color: rgba(0, 0, 0, 0.4);
 }
 
 
-.p-CommandPalette-item mark {
-    background: inherit;
-    color: #757575;
+.p-CommandPalette-itemCaption {
+  color: #9E9E9E;
+  font-size: 11px;
+  font-weight: 400;
 }