From 7616c4ce7d89f47036d7fb31c4aadcaf357368a3 Mon Sep 17 00:00:00 2001 From: nameanyone Date: Tue, 18 Mar 2014 16:38:52 -0700 Subject: [PATCH] Stop using obsoleted "-moz-border-radius" and "-webkit-border-radius" properties Fixes #480 --- boot/boot.css.tid | 2 -- core/ui/PageStylesheet.tid | 7 ------- .../tw5.com/tiddlers/howtos/Using Stylesheets.tid | 3 +-- themes/tiddlywiki/snowwhite/base.tid | 12 ++++++------ themes/tiddlywiki/vanilla/base.tid | 8 ++++---- 5 files changed, 11 insertions(+), 21 deletions(-) diff --git a/boot/boot.css.tid b/boot/boot.css.tid index 5aa18410e..44293a5b7 100644 --- a/boot/boot.css.tid +++ b/boot/boot.css.tid @@ -19,8 +19,6 @@ Error message and password prompt left: 50%; margin-left: -144px; /* - width/2 - paddingHorz/2 - border */ padding: 16px 16px 16px 16px; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; border-radius: 8px; } diff --git a/core/ui/PageStylesheet.tid b/core/ui/PageStylesheet.tid index ca14dd7aa..1742e71e0 100644 --- a/core/ui/PageStylesheet.tid +++ b/core/ui/PageStylesheet.tid @@ -6,13 +6,6 @@ title: $:/core/ui/PageStylesheet \define color(name) <> \end -\define border-radius(radius) -``` - -webkit-border-radius: $radius$; - -moz-border-radius: $radius$; - border-radius: $radius$; -``` -\end \define box-shadow(shadow) ``` -webkit-box-shadow: $shadow$; diff --git a/editions/tw5.com/tiddlers/howtos/Using Stylesheets.tid b/editions/tw5.com/tiddlers/howtos/Using Stylesheets.tid index 36d297311..aec33bbe2 100644 --- a/editions/tw5.com/tiddlers/howtos/Using Stylesheets.tid +++ b/editions/tw5.com/tiddlers/howtos/Using Stylesheets.tid @@ -28,7 +28,7 @@ If you wish to use macros and transclusions in your stylesheets you should inste \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline body.tw-body pre { - <> + <> } ``` @@ -39,7 +39,6 @@ The `\rules` pragma at the top of the tiddler restricts the WikiText to just all Several globally available macros are provided that are helpful in constructing stylesheets. See [[$:/core/ui/PageStylesheet]] for the definitions of these macros. * `<>` and `<>` retrieve named colours from the current [[colour palette|ColourPalettes]] -* `<>` specify a border-radius * `<>` specify a box-shadow * `<>` specify a CSS filter * `<>` specify a CSS transition diff --git a/themes/tiddlywiki/snowwhite/base.tid b/themes/tiddlywiki/snowwhite/base.tid index 7298cd94d..8314e1e67 100644 --- a/themes/tiddlywiki/snowwhite/base.tid +++ b/themes/tiddlywiki/snowwhite/base.tid @@ -54,12 +54,12 @@ canvas.tw-edit-bitmapeditor { } .tw-drop-down { - <> + border-radius: 4px; <> } .tw-block-dropdown { - <> + border-radius: 4px; <> } @@ -68,23 +68,23 @@ canvas.tw-edit-bitmapeditor { } .modal { - <> + border-radius: 6px; <> } .modal-footer { - <> + border-radius: 0 0 6px 6px; <>; } .tw-alert { - <> + border-radius: 6px; <> } .tw-notification { - <> + border-radius: 6px; <> text-shadow: 0 1px 0 rgba(255,255,255, 0.8); } diff --git a/themes/tiddlywiki/vanilla/base.tid b/themes/tiddlywiki/vanilla/base.tid index 107369c7d..aaf224be3 100644 --- a/themes/tiddlywiki/vanilla/base.tid +++ b/themes/tiddlywiki/vanilla/base.tid @@ -52,7 +52,7 @@ pre { background-color: <>; border: 1px solid <>; padding: 0 3px 2px; - <> + border-radius: 3px; } code { @@ -61,7 +61,7 @@ code { border: 1px solid <>; white-space: pre-wrap; padding: 0 3px 2px; - <> + border-radius: 3px; } blockquote { @@ -193,7 +193,7 @@ a.tw-tiddlylink-external:hover { white-space: nowrap; vertical-align: baseline; background-color: <>; - <> + border-radius: 20px; } .tw-tiddler-dragger-cover { @@ -295,7 +295,7 @@ a.tw-tiddlylink-external:hover { white-space: nowrap; vertical-align: baseline; background-color: <>; - <> + border-radius: 8px; } .tw-untagged-label {