|
73 | 73 | padding: 0 6px; |
74 | 74 | margin: 0; |
75 | 75 | border: 1px solid transparent; |
76 | | - border-radius: 6px; |
| 76 | + border-radius: 4px; |
77 | 77 | outline: none; |
78 | 78 | box-shadow: none; |
79 | 79 | background: transparent; |
80 | 80 | color: @project-panel-text-1; |
81 | 81 | font-family: @layers-mono; |
82 | 82 | font-size: @sidebar-xs-font-size; |
83 | 83 | line-height: 20px; |
| 84 | + transition: none; |
84 | 85 |
|
85 | 86 | &::placeholder { |
86 | 87 | color: @project-panel-text-2; |
87 | 88 | opacity: 0.6; |
88 | 89 | } |
89 | 90 |
|
| 91 | + &::selection { |
| 92 | + background: fade(@layers-accent, 28%); |
| 93 | + } |
| 94 | + |
90 | 95 | &:hover:not([readonly]) { |
91 | 96 | border-color: @layers-border; |
92 | 97 | background: @layers-input-bg; |
93 | 98 | } |
94 | 99 |
|
95 | | - &:focus { |
| 100 | + &:focus:not([readonly]) { |
96 | 101 | border-color: @layers-accent; |
97 | 102 | background: @layers-input-bg-focus; |
| 103 | + box-shadow: none; |
98 | 104 | } |
99 | 105 | } |
100 | 106 |
|
|
681 | 687 | } |
682 | 688 | } |
683 | 689 |
|
684 | | - .layers-prop-input[type="text"] { |
| 690 | + input.layers-prop-input[type="text"] { |
685 | 691 | .layers-field-input(); |
686 | 692 | flex: 1; |
687 | 693 | min-width: 0; |
|
776 | 782 | } |
777 | 783 |
|
778 | 784 | .layers-decl { |
| 785 | + position: relative; |
779 | 786 | display: flex; |
780 | 787 | align-items: center; |
| 788 | + box-sizing: border-box; |
| 789 | + min-width: 100%; |
| 790 | + width: max-content; |
781 | 791 | min-height: 26px; |
782 | 792 | padding: 0 4px 0 8px; |
783 | 793 | font-family: @layers-mono; |
|
801 | 811 | } |
802 | 812 |
|
803 | 813 | .layers-decl-value { |
804 | | - flex: 0 1 auto; |
805 | | - min-width: 0; |
| 814 | + flex: none; |
806 | 815 | margin-left: 5px; |
807 | 816 | color: @layers-prop-value; |
808 | | - word-break: break-all; |
809 | 817 | } |
810 | 818 |
|
811 | | - .layers-decl-input[type="text"] { |
| 819 | + input.layers-decl-input[type="text"] { |
812 | 820 | .layers-field-input(); |
813 | | - flex: 0 1 auto; |
| 821 | + flex: none; |
814 | 822 | min-width: 3ch; |
815 | | - max-width: 100%; |
816 | 823 | padding: 0 4px; |
817 | 824 | border-color: @layers-border; |
818 | 825 | background: @layers-input-bg; |
|
833 | 840 | } |
834 | 841 |
|
835 | 842 | .layers-decl-actions { |
| 843 | + display: none; |
| 844 | + position: absolute; |
| 845 | + top: 0; |
| 846 | + right: 0; |
| 847 | + bottom: 0; |
| 848 | + left: 0; |
| 849 | + pointer-events: none; |
| 850 | + } |
| 851 | + |
| 852 | + .layers-decl-tools { |
836 | 853 | display: flex; |
837 | 854 | align-items: center; |
838 | 855 | gap: 2px; |
839 | | - flex: none; |
| 856 | + position: sticky; |
| 857 | + right: 0; |
| 858 | + height: 100%; |
840 | 859 | margin-left: auto; |
841 | | - padding-left: 8px; |
| 860 | + padding: 0 4px 0 8px; |
| 861 | + pointer-events: auto; |
| 862 | + background: @layers-row-hover-bg; |
| 863 | + } |
| 864 | + |
| 865 | + .layers-decl:hover .layers-decl-actions, |
| 866 | + .layers-decl-actions:focus-within { |
| 867 | + display: flex; |
| 868 | + } |
| 869 | + |
| 870 | + .layers-decl.layers-editing .layers-decl-actions { |
| 871 | + display: none; |
842 | 872 | } |
843 | 873 |
|
844 | 874 | .layers-decl.layers-overridden { |
|
853 | 883 | align-self: center; |
854 | 884 | } |
855 | 885 |
|
856 | | - .layers-decl .layers-icon-btn, |
857 | 886 | .layers-rule-add { |
858 | 887 | opacity: 0; |
859 | 888 | } |
860 | 889 |
|
861 | | - .layers-decl:hover .layers-icon-btn, |
862 | | - .layers-decl .layers-icon-btn:focus, |
863 | 890 | .layers-rule:hover .layers-rule-add, |
864 | 891 | .layers-rule-add:focus { |
865 | 892 | opacity: 1; |
|
874 | 901 | margin-bottom: 0; |
875 | 902 | border-bottom: none; |
876 | 903 | } |
877 | | - |
878 | | - &.layers-inactive { |
879 | | - opacity: 0.6; |
880 | | - } |
881 | 904 | } |
882 | 905 |
|
883 | 906 | .layers-rule-header { |
|
0 commit comments