mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Deprecate some CSS property macros (#9242)
* Deprecate some CSS property macros
* Update docs
* Remove -ms and -o prefix
* Revert "Update docs"
This reverts commit cdf535054a.
* Update docs
* Update docs
* Update change note
* Update comment
This commit is contained in:
parent
244251ed44
commit
ae79736e82
5 changed files with 86 additions and 67 deletions
|
|
@ -13,56 +13,6 @@ tags: $:/tags/Macro
|
|||
|
||||
\define color(name) <<colour $name$>>
|
||||
|
||||
\define box-shadow(shadow)
|
||||
``
|
||||
-webkit-box-shadow: $shadow$;
|
||||
-moz-box-shadow: $shadow$;
|
||||
box-shadow: $shadow$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define filter(filter)
|
||||
``
|
||||
-webkit-filter: $filter$;
|
||||
-moz-filter: $filter$;
|
||||
filter: $filter$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define transition(transition)
|
||||
``
|
||||
-webkit-transition: $transition$;
|
||||
-moz-transition: $transition$;
|
||||
transition: $transition$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define transform-origin(origin)
|
||||
``
|
||||
-webkit-transform-origin: $origin$;
|
||||
-moz-transform-origin: $origin$;
|
||||
transform-origin: $origin$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define background-linear-gradient(gradient)
|
||||
``
|
||||
background-image: linear-gradient($gradient$);
|
||||
background-image: -o-linear-gradient($gradient$);
|
||||
background-image: -moz-linear-gradient($gradient$);
|
||||
background-image: -webkit-linear-gradient($gradient$);
|
||||
background-image: -ms-linear-gradient($gradient$);
|
||||
``
|
||||
\end
|
||||
|
||||
\define column-count(columns)
|
||||
``
|
||||
-moz-column-count: $columns$;
|
||||
-webkit-column-count: $columns$;
|
||||
column-count: $columns$;
|
||||
``
|
||||
\end
|
||||
|
||||
\procedure datauri(title)
|
||||
<$macrocall $name="makedatauri" type={{{ [<title>get[type]] }}} text={{{ [<title>get[text]] }}} _canonical_uri={{{ [<title>get[_canonical_uri]] }}}/>
|
||||
\end
|
||||
|
|
|
|||
43
core/wiki/macros/deprecated.tid
Normal file
43
core/wiki/macros/deprecated.tid
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
title: $:/core/macros/deprecated
|
||||
tags: $:/tags/Macro
|
||||
|
||||
<!-- Deprecated Macros -->
|
||||
<!-- DO NOT USE THESE MACROS. THEY MAY BE REMOVED AT ANY MOMENT -->
|
||||
|
||||
\define box-shadow(shadow)
|
||||
``
|
||||
box-shadow: $shadow$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define filter(filter)
|
||||
``
|
||||
filter: $filter$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define transition(transition)
|
||||
``
|
||||
transition: $transition$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define transform-origin(origin)
|
||||
``
|
||||
transform-origin: $origin$;
|
||||
``
|
||||
\end
|
||||
|
||||
\define background-linear-gradient(gradient)
|
||||
``
|
||||
background-image: linear-gradient($gradient$);
|
||||
background-image: -moz-linear-gradient($gradient$);
|
||||
background-image: -webkit-linear-gradient($gradient$);
|
||||
``
|
||||
\end
|
||||
|
||||
\define column-count(columns)
|
||||
``
|
||||
column-count: $columns$;
|
||||
``
|
||||
\end
|
||||
31
editions/tw5.com/tiddlers/Deprecated core macros.tid
Normal file
31
editions/tw5.com/tiddlers/Deprecated core macros.tid
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
created: 20251101085817414
|
||||
modified: 20251101091035398
|
||||
tags: [[Core Macros]] Macros $:/deprecated
|
||||
title: Deprecated core macros
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<<.warning "It is discouraged to use the following macros. Though tiddlywiki might still support them, they may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible. Be aware that these macros may cease to work at any time. ">>
|
||||
|
||||
Most deprecated macros are defined in [[$:/core/macros/deprecated]]. It is discouraged to use them.
|
||||
|
||||
! Stylesheet Macros
|
||||
|
||||
<<.deprecated-since 5.4.0>> The following core [[macros|Macros]] used to made it easy to specify alternative browser-specific properties when constructing a [[stylesheet|Cascading Style Sheets]] tiddler. They are deprecated after 2017 baseline is supported in v5.4.0:
|
||||
|
||||
; `<<box-shadow shadow>>`
|
||||
: for the `x-box-shadow` properties
|
||||
|
||||
; `<<filter filter>>`
|
||||
: for the `x-filter` properties
|
||||
|
||||
; `<<transition transition>>`
|
||||
: for the `x-transition` properties
|
||||
|
||||
; `<<transform-origin origin>>`
|
||||
: for the `x-transition-origin` properties
|
||||
|
||||
; `<<background-linear-gradient gradient>>`
|
||||
: for the `x-linear-gradient` values of the `background-image` property
|
||||
|
||||
; `<<column-count columns>>`
|
||||
: for the `x-column-count` property
|
||||
|
|
@ -1,25 +1,10 @@
|
|||
created: 20150221181835000
|
||||
modified: 20230803034031256
|
||||
modified: 20251101090648379
|
||||
tags: Macros [[Core Macros]]
|
||||
title: Stylesheet Macros
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The following core [[macros|Macros]] make it easy to specify alternative browser-specific properties when constructing a [[stylesheet|Cascading Style Sheets]] tiddler:
|
||||
|
||||
;`<<box-shadow shadow>>`
|
||||
: for the `x-box-shadow` properties
|
||||
;`<<filter filter>>`
|
||||
: for the `x-filter` properties
|
||||
;`<<transition transition>>`
|
||||
: for the `x-transition` properties
|
||||
;`<<transform-origin origin>>`
|
||||
: for the `x-transition-origin` properties
|
||||
;`<<background-linear-gradient gradient>>`
|
||||
: for the `x-linear-gradient` values of the `background-image` property
|
||||
;`<<column-count columns>>`
|
||||
: for the `x-column-count` property
|
||||
|
||||
The following macros are documented separately:
|
||||
The following stylesheet macros are documented separately:
|
||||
|
||||
* <<.mlink colour>>
|
||||
* <<.mlink datauri>>
|
||||
|
|
|
|||
10
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9242.tid
Normal file
10
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9242.tid
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
title: $:/changenotes/5.4.0/#9242
|
||||
description: Deprecate CSS macros supported in 2017 baseline
|
||||
release: 5.4.0
|
||||
tags: $:/tags/ChangeNote
|
||||
change-type: deprecation
|
||||
change-category: developer
|
||||
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9242
|
||||
github-contributors: Leilei332
|
||||
|
||||
Mark CSS macros supported in 2017 baseline as deprecated. They are moved to [[$:/core/macros/deprecated]] now.
|
||||
Loading…
Add table
Add a link
Reference in a new issue