|
807 | 807 | border-top-left-radius: var(--rounded); |
808 | 808 | } |
809 | 809 | .k-markdown-toolbar { |
810 | | - height: auto; |
811 | | - background: var(--color-white); |
| 810 | + height: auto; |
| 811 | + background: var(--color-white); |
812 | 812 | border-bottom: 1px solid var(--color-background); |
813 | 813 | min-height: 32px; |
814 | | - max-width: 100%; |
815 | | - display: flex; |
816 | | - overflow-x: auto; |
817 | | - overflow-y: hidden; |
| 814 | + max-width: 100%; |
| 815 | + display: flex; |
| 816 | + overflow-x: auto; |
| 817 | + overflow-y: hidden; |
818 | 818 | } |
819 | 819 |
|
820 | 820 | /* .k-markdown-toolbar-wrapper { |
|
824 | 824 | overflow-y: hidden; |
825 | 825 | } */ |
826 | 826 | .k-markdown-toolbar-button { |
827 | | - width: 32px; |
828 | | - height: 32px; |
| 827 | + width: 32px; |
| 828 | + height: 32px; |
829 | 829 | } |
830 | 830 | .k-markdown-toolbar-divider { |
831 | | - width: 1px; |
832 | | - border-width: 0; |
833 | | - background: var(--color-background); |
| 831 | + width: 1px; |
| 832 | + border-width: 0; |
| 833 | + background: var(--color-background); |
834 | 834 | } |
835 | 835 |
|
836 | 836 | /* disabled state of toolbar buttons */ |
837 | 837 | .k-markdown-toolbar .k-markdown-toolbar-button.is-disabled { |
838 | | - opacity: 0.25; |
839 | | - pointer-events: none; |
| 838 | + opacity: 0.25; |
| 839 | + pointer-events: none; |
840 | 840 | } |
841 | 841 |
|
842 | 842 | /* Editor has focus */ |
843 | 843 | .k-markdown-toolbar { |
844 | | - color: #aaa |
| 844 | + color: #aaa; |
845 | 845 | } |
846 | 846 | .k-markdown-input-wrap:focus-within .k-markdown-toolbar { |
847 | | - border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
848 | | - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); |
849 | | - color: var(--color-text); |
850 | | - left: 0; |
851 | | - position: sticky; |
852 | | - right: 0; |
853 | | - top: var(--header-sticky-offset); |
854 | | - z-index: 4; |
| 847 | + border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
| 848 | + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); |
| 849 | + color: var(--color-text); |
| 850 | + left: 0; |
| 851 | + position: sticky; |
| 852 | + right: 0; |
| 853 | + top: var(--header-sticky-offset); |
| 854 | + z-index: 4; |
855 | 855 | } |
856 | 856 | .k-markdown-input-wrap .k-markdown-toolbar .k-markdown-toolbar-button:hover { |
857 | | - background: var(--toolbar-hover); |
| 857 | + background: var(--toolbar-hover); |
858 | 858 | } |
859 | | -.k-markdown-input-wrap:focus-within .k-markdown-toolbar .k-markdown-toolbar-button.is-active { |
860 | | - color: #3872be; |
| 859 | +.k-markdown-input-wrap:focus-within |
| 860 | + .k-markdown-toolbar |
| 861 | + .k-markdown-toolbar-button.is-active { |
| 862 | + color: #3872be; |
861 | 863 | } |
862 | | -.k-markdown-input-wrap:focus-within .k-markdown-toolbar .k-markdown-toolbar-button.is-active:hover { |
863 | | - background: rgba(66, 113, 174, 0.075); |
| 864 | +.k-markdown-input-wrap:focus-within |
| 865 | + .k-markdown-toolbar |
| 866 | + .k-markdown-toolbar-button.is-active:hover { |
| 867 | + background: rgba(66, 113, 174, 0.075); |
864 | 868 | } |
865 | 869 |
|
866 | 870 | /* Align invisibles button to the right of the toolbar */ |
867 | 871 | .k-markdown-toolbar-button-right { |
868 | | - border-left: 1px solid var(--color-background); |
869 | | - margin-left: auto; |
| 872 | + border-left: 1px solid var(--color-background); |
| 873 | + margin-left: auto; |
870 | 874 | } |
871 | 875 |
|
872 | 876 | /** Active state for dropdown items */ |
873 | 877 | .k-markdown-toolbar .k-button.k-dropdown-item[aria-current="true"] { |
874 | | - color: #8fbfff; |
| 878 | + color: #8fbfff; |
875 | 879 | } |
876 | 880 | .k-markdown-toolbar .k-button-text { |
877 | | - align-items: baseline; |
878 | | - display: flex; |
879 | | - justify-content: space-between; |
| 881 | + align-items: baseline; |
| 882 | + display: flex; |
| 883 | + justify-content: space-between; |
880 | 884 | } |
881 | 885 | .k-markdown-toolbar .k-button-text kbd { |
882 | | - background: hsla(0deg 0% 100% / 25%); |
883 | | - color: white; |
884 | | - font-variant-numeric: tabular-nums; |
885 | | - margin-left: 2.5rem; |
886 | | - padding-top: 2px; |
887 | | - padding-bottom: 2px; |
| 886 | + background: hsla(0deg 0% 100% / 25%); |
| 887 | + color: white; |
| 888 | + font-variant-numeric: tabular-nums; |
| 889 | + margin-left: 2.5rem; |
| 890 | + padding-top: 2px; |
| 891 | + padding-bottom: 2px; |
888 | 892 | } |
889 | 893 |
|
890 | | - |
891 | 894 | .k-block-container-type-markdown { |
892 | | - padding: 0; |
| 895 | + padding: 0; |
893 | 896 | } |
894 | 897 | .k-block-type-markdown-input { |
895 | | - background: none; |
896 | | - border-radius: 0; |
897 | | - padding: 0; |
| 898 | + background: none; |
| 899 | + border-radius: 0; |
| 900 | + padding: 0; |
898 | 901 | } |
899 | 902 |
|
900 | | - |
901 | 903 | /** |
902 | 904 | * General field setup |
903 | 905 | */ |
904 | 906 | .k-markdown-input-wrap[data-font-family="sans-serif"] .cm-line { |
905 | | - --cm-mark: 0 !important; |
906 | | - --cm-indent: 0 !important; |
| 907 | + --cm-mark: 0 !important; |
| 908 | + --cm-indent: 0 !important; |
907 | 909 | } |
908 | 910 |
|
909 | 911 | /** |
910 | 912 | * 1. Make sure there's no overflow |
911 | 913 | */ |
912 | 914 | .k-input[data-type="markdown"] .k-input-element { |
913 | | - max-width: 100%; /* 1 */ |
| 915 | + max-width: 100%; /* 1 */ |
914 | 916 | } |
915 | | - |
|
0 commit comments