Skip to content

Commit 7a09554

Browse files
committed
fix php error
1 parent 7b482a5 commit 7a09554

22 files changed

+4075
-562
lines changed

fields/markdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
);
106106
}
107107

108-
foreach ($this->option('fabianmichael.markdown-field.customHighlights', []) as $highlight) {
108+
foreach ($this->kirby()->option('fabianmichael.markdown-field.customHighlights', []) as $highlight) {
109109
$highlights[] = is_callable($highlight) ? $highlight() : $highlight;
110110
}
111111

index.css

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,14 @@
807807
border-top-left-radius: var(--rounded);
808808
}
809809
.k-markdown-toolbar {
810-
height: auto;
811-
background: var(--color-white);
810+
height: auto;
811+
background: var(--color-white);
812812
border-bottom: 1px solid var(--color-background);
813813
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;
818818
}
819819

820820
/* .k-markdown-toolbar-wrapper {
@@ -824,92 +824,93 @@
824824
overflow-y: hidden;
825825
} */
826826
.k-markdown-toolbar-button {
827-
width: 32px;
828-
height: 32px;
827+
width: 32px;
828+
height: 32px;
829829
}
830830
.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);
834834
}
835835

836836
/* disabled state of toolbar buttons */
837837
.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;
840840
}
841841

842842
/* Editor has focus */
843843
.k-markdown-toolbar {
844-
color: #aaa
844+
color: #aaa;
845845
}
846846
.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;
855855
}
856856
.k-markdown-input-wrap .k-markdown-toolbar .k-markdown-toolbar-button:hover {
857-
background: var(--toolbar-hover);
857+
background: var(--toolbar-hover);
858858
}
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;
861863
}
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);
864868
}
865869

866870
/* Align invisibles button to the right of the toolbar */
867871
.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;
870874
}
871875

872876
/** Active state for dropdown items */
873877
.k-markdown-toolbar .k-button.k-dropdown-item[aria-current="true"] {
874-
color: #8fbfff;
878+
color: #8fbfff;
875879
}
876880
.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;
880884
}
881885
.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;
888892
}
889893

890-
891894
.k-block-container-type-markdown {
892-
padding: 0;
895+
padding: 0;
893896
}
894897
.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;
898901
}
899902

900-
901903
/**
902904
* General field setup
903905
*/
904906
.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;
907909
}
908910

909911
/**
910912
* 1. Make sure there's no overflow
911913
*/
912914
.k-input[data-type="markdown"] .k-input-element {
913-
max-width: 100%; /* 1 */
915+
max-width: 100%; /* 1 */
914916
}
915-

0 commit comments

Comments
 (0)