diff --git a/css/style.css b/css/style.css index f7eb18deb0..342d48a350 100644 --- a/css/style.css +++ b/css/style.css @@ -2121,6 +2121,44 @@ dt.d_decl:hover .decl_anchor { background-color: #4EBA0F; } +.message-box-red-border { + border: #D60027 solid 3px; +} +.message-box-red-border, .message-box-red-border a { + color: black; +} + +/** +Deprecation box +*/ + +.deprecation-box { + display: flex; + flex-direction: row; + align-items: center; +} + +.deprecation-title { + font-size: 1.15em; +} + +.deprecation-message { + margin-left: 1.2em; +} + +@media only screen and (max-width:40em) +{ + .deprecation-box { + flex-direction: column; + } + .deprecation-title { + margin-bottom: 0.5em; + } + .deprecation-message { + margin-left: 0px; + } +} + /** Custom modifications to the navigation menu - Insert an Internal API divider before the dmd menu item diff --git a/deprecate.dd b/deprecate.dd index e2984fe555..f021691f51 100644 --- a/deprecate.dd +++ b/deprecate.dd @@ -8,6 +8,10 @@ $(SPEC_S Deprecated Features, order to allow plenty of time for users to adjust to the change. ) +$(DEPRECATED 2.088, reverseBinaryArgs, + Use $(REF reverseArgs, std,functional) instead. +) + $(TABLE2 Deprecated Features, $(THEAD Feature, Spec, Dep, Error, Gone) $(TROW $(DEPLINK Hexstring literals), 2.079, 2.079,  ,  ) diff --git a/dlang.org.ddoc b/dlang.org.ddoc index bc14853617..bb285c779e 100644 --- a/dlang.org.ddoc +++ b/dlang.org.ddoc @@ -45,6 +45,10 @@ COMPATIBILITY_BOX_SUPERSEDED = $(MESSAGE_BOX gray, $(B Obsolete) - $0) COMPATIBILITY_BOX_OBSOLETE = $(MESSAGE_BOX gray, $(B Obsolete) - $0) COMPATIBILITY_BOX_OUTDATED = $(MESSAGE_BOX gray, $(B Obsolete) - $0) COMPATIBILITY_BOX_EXPERIMENTAL = $(MESSAGE_BOX orange, $(B Experimental) - $0) +SKIPFIRST=$+ +DEPRECATED = $(MESSAGE_BOX red-border, $(DIVC deprecation-box, $(DIVC deprecation-title, $(B Deprecated)) +$(DIVC deprecation-message, $(D $2) has been deprecated and will be removed in $1.$(BR) +$(SKIPFIRST $+)))) _= CONSOLE=$(TC pre, console notranslate, $0)