|
67 | 67 | } |
68 | 68 | } |
69 | 69 |
|
| 70 | +.layers-field-input() { |
| 71 | + box-sizing: border-box; |
| 72 | + height: 22px; |
| 73 | + padding: 0 6px; |
| 74 | + margin: 0; |
| 75 | + border: 1px solid transparent; |
| 76 | + border-radius: 4px; |
| 77 | + outline: none; |
| 78 | + box-shadow: none; |
| 79 | + background: transparent; |
| 80 | + color: @project-panel-text-1; |
| 81 | + font-family: @layers-mono; |
| 82 | + font-size: @sidebar-xs-font-size; |
| 83 | + line-height: 20px; |
| 84 | + |
| 85 | + &::placeholder { |
| 86 | + color: @project-panel-text-2; |
| 87 | + opacity: 0.6; |
| 88 | + } |
| 89 | + |
| 90 | + &:hover:not([readonly]) { |
| 91 | + border-color: @layers-border; |
| 92 | + background: @layers-input-bg; |
| 93 | + } |
| 94 | + |
| 95 | + &:focus { |
| 96 | + border-color: @layers-accent; |
| 97 | + background: @layers-input-bg-focus; |
| 98 | + box-shadow: 0 0 0 2px @layers-accent-soft; |
| 99 | + } |
| 100 | +} |
| 101 | + |
70 | 102 | .layers-tab-container { |
71 | 103 | display: flex; |
72 | 104 | flex-direction: column; |
|
651 | 683 | } |
652 | 684 |
|
653 | 685 | .layers-prop-input[type="text"] { |
| 686 | + .layers-field-input(); |
654 | 687 | flex: 1; |
655 | 688 | min-width: 0; |
656 | | - height: 22px; |
657 | | - padding: 0 5px; |
658 | | - margin: 0; |
659 | | - border: 1px solid transparent; |
660 | | - border-radius: 4px; |
661 | | - outline: none; |
662 | | - box-shadow: none; |
663 | | - background: transparent; |
664 | | - color: @project-panel-text-1; |
665 | | - font-family: @layers-mono; |
666 | | - font-size: @sidebar-xs-font-size; |
667 | 689 | text-overflow: ellipsis; |
668 | 690 |
|
669 | | - &::placeholder { |
670 | | - color: @project-panel-text-2; |
671 | | - opacity: 0.6; |
672 | | - } |
673 | | - |
674 | | - &:hover:not([readonly]) { |
675 | | - border-color: @layers-border; |
676 | | - background: @layers-input-bg; |
677 | | - } |
678 | | - |
679 | 691 | &:focus { |
680 | | - border-color: @layers-accent; |
681 | | - background: @layers-input-bg-focus; |
682 | 692 | text-overflow: clip; |
683 | 693 | } |
684 | 694 |
|
|
768 | 778 |
|
769 | 779 | .layers-decl { |
770 | 780 | display: flex; |
771 | | - align-items: baseline; |
772 | | - min-height: 20px; |
| 781 | + align-items: center; |
| 782 | + min-height: 26px; |
773 | 783 | padding: 0 4px 0 8px; |
774 | 784 | font-family: @layers-mono; |
775 | 785 | font-size: @sidebar-xs-font-size; |
776 | | - line-height: 18px; |
| 786 | + line-height: 22px; |
777 | 787 | user-select: none; |
778 | 788 |
|
779 | 789 | &:hover { |
|
794 | 804 | .layers-decl-value { |
795 | 805 | flex: 0 1 auto; |
796 | 806 | min-width: 0; |
| 807 | + margin-left: 5px; |
797 | 808 | color: @layers-prop-value; |
798 | 809 | word-break: break-all; |
799 | 810 | } |
800 | 811 |
|
801 | | - .layers-decl-field, |
802 | | - .layers-decl-input { |
803 | | - margin: 0 -2px; |
804 | | - |
805 | | - &.layers-decl-value { |
806 | | - margin-left: 3px; |
807 | | - } |
808 | | - } |
809 | | - |
810 | | - .layers-decl-field { |
811 | | - padding: 0 2px; |
812 | | - border-radius: 3px; |
813 | | - cursor: text; |
814 | | - |
815 | | - &:hover { |
816 | | - background: @layers-input-bg-focus; |
817 | | - box-shadow: inset 0 0 0 1px @layers-border; |
818 | | - } |
819 | | - } |
820 | | - |
821 | 812 | .layers-decl-input { |
822 | | - box-sizing: border-box; |
823 | | - height: 18px; |
824 | | - min-width: 0; |
825 | | - padding: 0 2px; |
826 | | - border: 1px solid @layers-accent; |
827 | | - border-radius: 3px; |
828 | | - outline: none; |
829 | | - box-shadow: none; |
830 | | - background: @layers-input-bg-focus; |
831 | | - font: inherit; |
832 | | - line-height: 16px; |
| 813 | + .layers-field-input(); |
| 814 | + flex: 0 1 auto; |
| 815 | + min-width: 3ch; |
| 816 | + max-width: 100%; |
| 817 | + padding: 0 4px; |
| 818 | + border-color: @layers-border; |
| 819 | + background: @layers-input-bg; |
833 | 820 | text-decoration: none; |
834 | 821 |
|
835 | | - &::placeholder { |
836 | | - color: @project-panel-text-2; |
837 | | - opacity: 0.6; |
| 822 | + &.layers-decl-name { |
| 823 | + color: @layers-prop-name; |
838 | 824 | } |
839 | 825 |
|
840 | 826 | &.layers-decl-value { |
841 | | - flex: 1; |
| 827 | + margin: 0 3px 0 5px; |
| 828 | + color: @layers-prop-value; |
842 | 829 | } |
843 | 830 | } |
844 | 831 |
|
|
849 | 836 | .layers-decl-actions { |
850 | 837 | display: flex; |
851 | 838 | align-items: center; |
852 | | - gap: 1px; |
| 839 | + gap: 2px; |
853 | 840 | flex: none; |
854 | | - align-self: center; |
855 | 841 | margin-left: auto; |
856 | | - padding-left: 6px; |
| 842 | + padding-left: 8px; |
857 | 843 | } |
858 | 844 |
|
859 | 845 | .layers-decl.layers-overridden { |
|
0 commit comments