Skip to content

Commit 2ae4011

Browse files
committed
Merge branch 'release/1.0.2'
2 parents 63730b5 + f926c63 commit 2ae4011

File tree

16 files changed

+1980
-2023
lines changed

16 files changed

+1980
-2023
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
1+
# v1.0.2
2+
## 12/16/2025
3+
4+
1. [](#new)
5+
* Added new `grav` grammar for frontmatter + shortcode + twig support in markdown
6+
1. [](#improved)
7+
* Override `md` and `markdown` to use new `grav` grammar
8+
* Improve traditional markdown (triple backticks) support in Codesh
9+
110
# v1.0.1
2-
## 12/14/2024
11+
## 12/14/2025
312

413
1. [](#improved)
514
* Fixed blueprints
615
* Fixed copy button on code groups
716
* Fixed empty badge when `show-lang` is disabled
817

918
# v1.0.0
10-
## 12/14/2024
19+
## 12/14/2025
1120

1221
1. [](#new)
1322
* Initial release of CodeSh plugin
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
/* CodeSh Grammar List Field */
2+
3+
.codeshgrammarlist-field {
4+
background: #f9f9f9;
5+
border: 1px solid #e0e0e0;
6+
border-radius: 4px;
7+
padding: 20px;
8+
}
9+
10+
.codeshgrammarlist-field__header {
11+
display: flex;
12+
justify-content: space-between;
13+
align-items: flex-start;
14+
margin-bottom: 24px;
15+
padding-bottom: 16px;
16+
border-bottom: 1px solid #e0e0e0;
17+
}
18+
19+
.codeshgrammarlist-field__intro {
20+
margin: 0;
21+
color: #666;
22+
font-size: 0.9em;
23+
flex: 1;
24+
margin-right: 16px;
25+
}
26+
27+
.codeshgrammarlist-field__intro code {
28+
background: #e8e8e8;
29+
padding: 2px 6px;
30+
border-radius: 3px;
31+
font-size: 0.9em;
32+
}
33+
34+
.codeshgrammarlist-field__import-btn {
35+
cursor: pointer;
36+
display: inline-flex !important;
37+
align-items: center;
38+
gap: 6px;
39+
white-space: nowrap;
40+
}
41+
42+
.codeshgrammarlist-field__section {
43+
margin-bottom: 24px;
44+
}
45+
46+
.codeshgrammarlist-field__section:last-child {
47+
margin-bottom: 0;
48+
}
49+
50+
.codeshgrammarlist-field__section-title {
51+
display: flex;
52+
align-items: center;
53+
gap: 8px;
54+
margin: 0 0 12px 0;
55+
font-size: 0.95em;
56+
font-weight: 600;
57+
color: #444;
58+
}
59+
60+
.codeshgrammarlist-field__section-title i {
61+
color: #888;
62+
}
63+
64+
/* Multi-column list */
65+
.codeshgrammarlist-field__list {
66+
list-style: none;
67+
margin: 0;
68+
padding: 0;
69+
column-count: 4;
70+
column-gap: 20px;
71+
}
72+
73+
@media (max-width: 1200px) {
74+
.codeshgrammarlist-field__list {
75+
column-count: 3;
76+
}
77+
}
78+
79+
@media (max-width: 900px) {
80+
.codeshgrammarlist-field__list {
81+
column-count: 2;
82+
}
83+
}
84+
85+
@media (max-width: 600px) {
86+
.codeshgrammarlist-field__list {
87+
column-count: 1;
88+
}
89+
}
90+
91+
.codeshgrammarlist-field__list li {
92+
break-inside: avoid;
93+
padding: 4px 0;
94+
font-size: 0.9em;
95+
line-height: 1.4;
96+
}
97+
98+
.codeshgrammarlist-field__list code {
99+
background: #e8f4fc;
100+
color: #0066cc;
101+
padding: 2px 6px;
102+
border-radius: 3px;
103+
font-size: 0.85em;
104+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
105+
}
106+
107+
.codeshgrammarlist-field__aliases {
108+
color: #888;
109+
font-size: 0.85em;
110+
margin-left: 4px;
111+
}
112+
113+
.codeshgrammarlist-field__delete-btn {
114+
background: none;
115+
border: none;
116+
padding: 2px 6px;
117+
cursor: pointer;
118+
color: #999;
119+
border-radius: 4px;
120+
transition: background 0.2s, color 0.2s;
121+
margin-left: 8px;
122+
font-size: 0.85em;
123+
}
124+
125+
.codeshgrammarlist-field__delete-btn:hover {
126+
background: #fee;
127+
color: #c00;
128+
}
129+
130+
.codeshgrammarlist-field__loading {
131+
text-align: center;
132+
padding: 20px;
133+
color: #888;
134+
}
135+
136+
.codeshgrammarlist-field__loading i {
137+
margin-right: 8px;
138+
}
139+
140+
.codeshgrammarlist-field__empty {
141+
text-align: center;
142+
padding: 20px;
143+
color: #888;
144+
background: #fff;
145+
border: 1px dashed #ddd;
146+
border-radius: 6px;
147+
}
148+
149+
.codeshgrammarlist-field__empty p {
150+
margin: 0;
151+
}
152+
153+
/* Modal Styles */
154+
.codeshgrammarlist-field__modal {
155+
position: fixed;
156+
top: 0;
157+
left: 0;
158+
right: 0;
159+
bottom: 0;
160+
background: rgba(0,0,0,0.5);
161+
display: flex;
162+
align-items: center;
163+
justify-content: center;
164+
z-index: 10000;
165+
}
166+
167+
.codeshgrammarlist-field__modal-content {
168+
background: #fff;
169+
border-radius: 6px;
170+
max-width: 400px;
171+
width: 90%;
172+
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
173+
}
174+
175+
.codeshgrammarlist-field__modal-header {
176+
display: flex;
177+
justify-content: space-between;
178+
align-items: center;
179+
padding: 14px 18px;
180+
border-bottom: 1px solid #e5e5e5;
181+
}
182+
183+
.codeshgrammarlist-field__modal-header h3 {
184+
margin: 0;
185+
font-size: 1.1em;
186+
}
187+
188+
.codeshgrammarlist-field__modal-close {
189+
background: none;
190+
border: none;
191+
font-size: 24px;
192+
cursor: pointer;
193+
color: #888;
194+
padding: 0;
195+
line-height: 1;
196+
}
197+
198+
.codeshgrammarlist-field__modal-close:hover {
199+
color: #333;
200+
}
201+
202+
.codeshgrammarlist-field__modal-body {
203+
padding: 18px;
204+
}
205+
206+
.codeshgrammarlist-field__modal-body p {
207+
margin: 0 0 10px 0;
208+
}
209+
210+
.codeshgrammarlist-field__modal-body .text-danger {
211+
color: #c00;
212+
font-size: 0.9em;
213+
}
214+
215+
.codeshgrammarlist-field__modal-footer {
216+
display: flex;
217+
justify-content: flex-end;
218+
gap: 10px;
219+
padding: 14px 18px;
220+
border-top: 1px solid #e5e5e5;
221+
}
222+
223+
.codeshgrammarlist-field__modal-footer .button.danger {
224+
background: #dc3545;
225+
border-color: #dc3545;
226+
color: #fff;
227+
}
228+
229+
.codeshgrammarlist-field__modal-footer .button.danger:hover {
230+
background: #c82333;
231+
border-color: #bd2130;
232+
}

0 commit comments

Comments
 (0)