All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added sheild.io badges to top of
README.md
.
- Added
aspect-ratio
property to list of property-names, matching the latest commit to VSCode. - Added
light-dark
to list of color functions for proper syntax highlighting.
- Added nesting syntax highlighting for body of
@support
rule.
- Updated CHANGELOG.md to follow formatting set by Keep a Changelog.
- Updated
README.md
with Table of Contents and better organization.
- Changed
package.json
vscode engine to v1.84.0 and above to allow users on older versions to use the extension.
- Added tokens for
@container
syntax highlighting.
/* Nested @container example */
@container summary (width > 400px) {
@container (min-width: 800px) {
.card {
margin: 50px;
}
@container (min-width: calc( var(--width) * 1rem)) {
.card {
margin: 0;
}
}
}
}
- Added
#arithmetic-operators
for functions (clamp, min, max) operator syntax highlighting.
.arithmetic-operators-example {
font-size: clamp(1.1rem, 0.7153rem + 1.6368vw, 1.5rem);
width: max(300px, 50% + 20px);
}
- Revert package.json language keyword to lowercase as extension doesn't work if it is uppercase.
- Added syntax highlighting for functions in media-query header.
- Added syntax highlighting for nested
calc()
functions.
/* Example of a nested calc function */
.example {
max-width: calc( (768 / 16) * 1rem) ) {
}
/* Example of functions in media-query header */
@media only screen and (max-width: calc( var(--size) * 1rem)) {}
- Added note to reload VSCode after installing this extension.
- Added border to logo image for contrast on dark backgrounds.
- Added
.dev-assets
directory with CSS files containing syntax errors, a rule lists, and a getSharedNames() function for finding shared names between#tag-names
and#property-names
. - Added
&
to the allowed list of characters that can be appended to a tag, class, or ID, so it can be used as a CSS nesting compound selector. - Added
#nesting-selector
rule with&
. - Added
#nesting-rules
and#nesting-at-rules
to include CSS nesting syntax highlighting. - Added
"include": "$self"
torule-list
for nested{}
. - Added extension's logo image.
- Added
.prettierrc
file for formatting json with tabs.
- Updated demo CSS.
- Updated other CSS for review and testing.
- Removed
&
from invalid punctuation so it can be used as a CSS nesting selector. - Removed
language-configuration.json
and package.json's language contribution block pointing to it.
- Added demo CSS files for testing and review.
- Added initial files to match VSCode core CSS syntax highlighting.