Skip to content

Commit b49c365

Browse files
committed
refactor: added licenses
1 parent 5038668 commit b49c365

File tree

3 files changed

+168
-0
lines changed

3 files changed

+168
-0
lines changed

docs/TEST_FIXTURES.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This document demonstrates the centralized test fixture system that provides a s
1111
**Input CSS:**
1212

1313
```css
14+
/*
15+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
16+
*
17+
* SPDX-License-Identifier: MIT
18+
*/
19+
1420
.responsive {
1521
width: if(media(width <= 768px): 100%; else: 50%);
1622
}
@@ -19,6 +25,12 @@ This document demonstrates the centralized test fixture system that provides a s
1925
**Expected Output:**
2026

2127
```css
28+
/*
29+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
30+
*
31+
* SPDX-License-Identifier: MIT
32+
*/
33+
2234
.responsive {
2335
width: 50%;
2436
}
@@ -40,6 +52,12 @@ This document demonstrates the centralized test fixture system that provides a s
4052
**Input CSS:**
4153

4254
```css
55+
/*
56+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
57+
*
58+
* SPDX-License-Identifier: MIT
59+
*/
60+
4361
.grid {
4462
display: if(supports(display: grid): grid; else: block);
4563
}
@@ -48,6 +66,12 @@ This document demonstrates the centralized test fixture system that provides a s
4866
**Expected Output:**
4967

5068
```css
69+
/*
70+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
71+
*
72+
* SPDX-License-Identifier: MIT
73+
*/
74+
5175
.grid {
5276
display: block;
5377
}
@@ -69,6 +93,12 @@ This document demonstrates the centralized test fixture system that provides a s
6993
**Input CSS:**
7094

7195
```css
96+
/*
97+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
98+
*
99+
* SPDX-License-Identifier: MIT
100+
*/
101+
72102
.test {
73103
color: if(style(--theme): var(--primary) ; else: #00f);
74104
}
@@ -77,6 +107,12 @@ This document demonstrates the centralized test fixture system that provides a s
77107
**Expected Output:**
78108

79109
```css
110+
/*
111+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
112+
*
113+
* SPDX-License-Identifier: MIT
114+
*/
115+
80116
.test {
81117
color: #00f;
82118
}
@@ -93,6 +129,12 @@ This document demonstrates the centralized test fixture system that provides a s
93129
**Input CSS:**
94130

95131
```css
132+
/*
133+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
134+
*
135+
* SPDX-License-Identifier: MIT
136+
*/
137+
96138
.example {
97139
color: if(media(width <= 768px): #00f; else: red);
98140
font-size: if(supports(display: grid): 1.2rem; else: 1rem);
@@ -102,6 +144,12 @@ This document demonstrates the centralized test fixture system that provides a s
102144
**Expected Output:**
103145

104146
```css
147+
/*
148+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
149+
*
150+
* SPDX-License-Identifier: MIT
151+
*/
152+
105153
.example {
106154
color: red;
107155
}
@@ -131,6 +179,12 @@ This document demonstrates the centralized test fixture system that provides a s
131179
**Input CSS:**
132180

133181
```css
182+
/*
183+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
184+
*
185+
* SPDX-License-Identifier: MIT
186+
*/
187+
134188
.responsive {
135189
padding: if(
136190
media(width >= 1200px): 40px; media(width >= 768px): 30px;
@@ -142,6 +196,12 @@ This document demonstrates the centralized test fixture system that provides a s
142196
**Expected Output:**
143197

144198
```css
199+
/*
200+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
201+
*
202+
* SPDX-License-Identifier: MIT
203+
*/
204+
145205
.responsive {
146206
padding: 15px;
147207
}
@@ -173,6 +233,12 @@ This document demonstrates the centralized test fixture system that provides a s
173233
**Input CSS:**
174234

175235
```css
236+
/*
237+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
238+
*
239+
* SPDX-License-Identifier: MIT
240+
*/
241+
176242
.test {
177243
color: if(media(width >= 768px): #00f; else: red);
178244
background: if(style(--dark-mode): black; else: white);
@@ -182,6 +248,12 @@ This document demonstrates the centralized test fixture system that provides a s
182248
**Expected Output:**
183249

184250
```css
251+
/*
252+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
253+
*
254+
* SPDX-License-Identifier: MIT
255+
*/
256+
185257
.test {
186258
color: red;
187259
}
@@ -206,6 +278,12 @@ This document demonstrates the centralized test fixture system that provides a s
206278
**Input CSS:**
207279

208280
```css
281+
/*
282+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
283+
*
284+
* SPDX-License-Identifier: MIT
285+
*/
286+
209287
.responsive {
210288
width: if(media((width >= 768px) and (width <= 1024px)): 50%; else: 100%);
211289
}
@@ -214,6 +292,12 @@ This document demonstrates the centralized test fixture system that provides a s
214292
**Expected Output:**
215293

216294
```css
295+
/*
296+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
297+
*
298+
* SPDX-License-Identifier: MIT
299+
*/
300+
217301
.responsive {
218302
width: 100%;
219303
}
@@ -235,6 +319,12 @@ This document demonstrates the centralized test fixture system that provides a s
235319
**Input CSS:**
236320

237321
```css
322+
/*
323+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
324+
*
325+
* SPDX-License-Identifier: MIT
326+
*/
327+
238328
/* Header styles */
239329
.header {
240330
background: #00f;
@@ -253,6 +343,12 @@ This document demonstrates the centralized test fixture system that provides a s
253343
**Expected Output:**
254344

255345
```css
346+
/*
347+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
348+
*
349+
* SPDX-License-Identifier: MIT
350+
*/
351+
256352
/* Header styles */
257353
.header {
258354
background: #00f;
@@ -282,6 +378,12 @@ This document demonstrates the centralized test fixture system that provides a s
282378
**Input CSS:**
283379

284380
```css
381+
/*
382+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
383+
*
384+
* SPDX-License-Identifier: MIT
385+
*/
386+
285387
.normal {
286388
color: red;
287389
font-size: 1rem;
@@ -291,6 +393,12 @@ This document demonstrates the centralized test fixture system that provides a s
291393
**Expected Output:**
292394

293395
```css
396+
/*
397+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
398+
*
399+
* SPDX-License-Identifier: MIT
400+
*/
401+
294402
.normal {
295403
color: red;
296404
font-size: 1rem;

docs/refactoring/TEST_CENTRALIZATION_SUMMARY.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ pnpm run build:docs # Auto-generates docs from fixtures
8484
**Input CSS:**
8585

8686
```css
87+
/*
88+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
89+
*
90+
* SPDX-License-Identifier: MIT
91+
*/
92+
8793
.responsive {
8894
width: if(media(width <= 768px): 100%; else: 50%);
8995
}
@@ -92,6 +98,12 @@ pnpm run build:docs # Auto-generates docs from fixtures
9298
**Expected Output:**
9399

94100
```css
101+
/*
102+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
103+
*
104+
* SPDX-License-Identifier: MIT
105+
*/
106+
95107
.responsive {
96108
width: 50%;
97109
}

packages/postcss-if-function/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ This plugin is part of the [css-if-polyfill](https://github.com/mfranzke/css-if-
1515
**Input CSS:**
1616

1717
```css
18+
/*
19+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
20+
*
21+
* SPDX-License-Identifier: MIT
22+
*/
23+
1824
.responsive {
1925
width: if(media(width <= 768px): 100%; else: 50%);
2026
}
@@ -23,6 +29,12 @@ This plugin is part of the [css-if-polyfill](https://github.com/mfranzke/css-if-
2329
**Expected Output:**
2430

2531
```css
32+
/*
33+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
34+
*
35+
* SPDX-License-Identifier: MIT
36+
*/
37+
2638
.responsive {
2739
width: 50%;
2840
}
@@ -218,6 +230,12 @@ module.exports = {
218230
**Input CSS:**
219231

220232
```css
233+
/*
234+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
235+
*
236+
* SPDX-License-Identifier: MIT
237+
*/
238+
221239
.responsive {
222240
width: if(media(width <= 768px): 100%; else: 50%);
223241
}
@@ -226,6 +244,12 @@ module.exports = {
226244
**Expected Output:**
227245

228246
```css
247+
/*
248+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
249+
*
250+
* SPDX-License-Identifier: MIT
251+
*/
252+
229253
.responsive {
230254
width: 50%;
231255
}
@@ -247,6 +271,12 @@ module.exports = {
247271
**Input CSS:**
248272

249273
```css
274+
/*
275+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
276+
*
277+
* SPDX-License-Identifier: MIT
278+
*/
279+
250280
.grid {
251281
display: if(supports(display: grid): grid; else: block);
252282
}
@@ -255,6 +285,12 @@ module.exports = {
255285
**Expected Output:**
256286

257287
```css
288+
/*
289+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
290+
*
291+
* SPDX-License-Identifier: MIT
292+
*/
293+
258294
.grid {
259295
display: block;
260296
}
@@ -276,6 +312,12 @@ module.exports = {
276312
**Input CSS:**
277313

278314
```css
315+
/*
316+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
317+
*
318+
* SPDX-License-Identifier: MIT
319+
*/
320+
279321
.responsive {
280322
padding: if(
281323
media(width >= 1200px): 40px; media(width >= 768px): 30px;
@@ -287,6 +329,12 @@ module.exports = {
287329
**Expected Output:**
288330

289331
```css
332+
/*
333+
* SPDX-FileCopyrightText: 2025 Maximilian Franzke <mfr@nzke.net>
334+
*
335+
* SPDX-License-Identifier: MIT
336+
*/
337+
290338
.responsive {
291339
padding: 15px;
292340
}

0 commit comments

Comments
 (0)