Skip to content

Commit 57c0322

Browse files
committed
Merge branch 'master' of github.com:parcel-bundler/parcel-css
2 parents da3aeb8 + 3da6e40 commit 57c0322

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

node/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ export interface ImportDependency {
359359
/** The `supports()` query for the `@import` rule. */
360360
supports: string | null,
361361
/** The source location where the `@import` rule was found. */
362-
loc: SourceLocation
362+
loc: SourceLocation,
363+
/** The placeholder that the import was replaced with. */
364+
placeholder: string
363365
}
364366

365367
export interface UrlDependency {

src/properties/grid.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ pub enum TrackBreadth {
163163
#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
164164
pub struct TrackRepeat<'i> {
165165
/// The repeat count.
166-
count: RepeatCount,
166+
pub count: RepeatCount,
167167
/// The line names to repeat.
168168
#[cfg_attr(feature = "serde", serde(borrow))]
169-
line_names: Vec<CustomIdentList<'i>>,
169+
pub line_names: Vec<CustomIdentList<'i>>,
170170
/// The track sizes to repeat.
171-
track_sizes: Vec<TrackSize>,
171+
pub track_sizes: Vec<TrackSize>,
172172
}
173173

174174
/// A [`<repeat-count>`](https://drafts.csswg.org/css-grid-2/#typedef-track-repeat) value,

website/pages/docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,6 @@ By default, Lightning CSS is strict, and will error when parsing an invalid rule
174174

175175
Lightning CSS supports generating source maps when compiling, minifying, and bundling your source code to make debugging easier. Use the `sourceMap` option to enable it when using the API, or the `--sourcemap` CLI flag.
176176

177-
If the input CSS came from another compiler such as SASS or Less, you can also pass an input source map to Lightning CSS using the `inputSourceMap` API option. This will map compiled locations back to their location in the original source code.
177+
If the input CSS came from another compiler such as Sass or Less, you can also pass an input source map to Lightning CSS using the `inputSourceMap` API option. This will map compiled locations back to their location in the original source code.
178178

179179
Finally, the `projectRoot` option can be used to make file paths in source maps relative to a root directory. This makes build stable between machines.

website/pages/transforms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let res = transform({
3131
Length(length) {
3232
return {
3333
unit: length.unit,
34-
value: length * 2
34+
value: length.value * 2
3535
}
3636
}
3737
}
@@ -123,7 +123,7 @@ let res = transform({
123123
type: 'length-percentage',
124124
value: { type: 'dimension', value: property.value[0].value }
125125
};
126-
126+
127127
return [
128128
{ property: 'width', value },
129129
{ property: 'height', value }

website/pages/transpilation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ Lightning CSS can also be configured to compile several draft specs that are not
425425

426426
### Nesting
427427

428-
The [CSS Nesting](https://drafts.csswg.org/css-nesting/) draft spec enables style rules to be nested, with the selectors of the child rules extending the parent selector in some way. This is very commonly supported by CSS pre-processors like SASS, but with this spec, it will eventually be supported natively in browsers. Lightning CSS compiles this syntax to un-nested style rules that are supported in all browsers today.
428+
The [CSS Nesting](https://drafts.csswg.org/css-nesting/) draft spec enables style rules to be nested, with the selectors of the child rules extending the parent selector in some way. This is very commonly supported by CSS pre-processors like Sass, but with this spec, it will eventually be supported natively in browsers. Lightning CSS compiles this syntax to un-nested style rules that are supported in all browsers today.
429429

430430
Because nesting is a draft, it is not enabled by default. To use it, enable the `nesting` option under `drafts` when calling the Lightning CSS API. When using the CLI, enable the `--nesting` flag.
431431

0 commit comments

Comments
 (0)