Ticket #17184: press-this.diff

File press-this.diff, 3.5 KB (added by chexee, 2 years ago)

Press This bookmarklet redesign

Line 
1Index: wp-admin/tools.php
2===================================================================
3--- wp-admin/tools.php  (revision 17660)
4+++ wp-admin/tools.php  (working copy)
5@@ -33,8 +33,8 @@
6        <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p>
7 
8        <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p>
9-       <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
10-       <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
11+       <p class="description"><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
12+       <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><span><?php _e('Press This') ?></span></a></p>
13 </div>
14 <?php
15 endif;
16Index: wp-admin/css/wp-admin.dev.css
17===================================================================
18--- wp-admin/css/wp-admin.dev.css       (revision 17660)
19+++ wp-admin/css/wp-admin.dev.css       (working copy)
20@@ -3905,9 +3905,78 @@
21   19.0 - Tools
22 ------------------------------------------------------------------------------*/
23 
24+.pressthis { margin: 20px 0; }
25 
26+.pressthis a {
27+       display: inline-block;
28+       width: 113px;
29+       position: relative;
30+       cursor: move;
31+       color: #333;
32+       background: #dfdfdf;
33+       -webkit-gradient(
34+    linear,
35+    left bottom,
36+    left top,
37+    color-stop(0.07, rgb(230,230,230)),
38+    color-stop(0.77, rgb(216,216,216))
39+       );
40+       -moz-linear-gradient(
41+    center bottom,
42+    rgb(230,230,230) 7%,
43+    rgb(216,216,216) 77%
44+       );
45+       background-repeat: no-repeat;
46+       background-image-position: 10px 8px;   
47+       border-radius: 5px;
48+       -webkit-border-radius: 5px;
49+       -moz-border-radius: 5px;
50+       -o-border-radius: 5px; 
51+       border: 1px #b4b4b4 solid;
52+       font: normal normal normal 14px/16px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;     
53+       text-decoration: none;
54+       text-shadow: #fff 0 1px 0px;
55+       -webkit-text-shadow: #fff 0 1px 0px;
56+       -moz-text-shadow: #fff 0 1px 0px;
57+       -o-text-shadow: #fff 0 1px 0px;
58+}
59 
60+.pressthis a:hover,
61+.pressthis a:active { color: #333 }
62 
63+.pressthis a:hover:after {
64+       transform: skew(20deg) rotate(9deg);
65+       -webkit-transform: skew(20deg) rotate(9deg);
66+       -moz-transform: skew(20deg) rotate(9deg);
67+       box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7);
68+       -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7);
69+       -moz-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.7);
70+}
71+
72+.pressthis a span {
73+       background: url(../images/press-this.png) no-repeat 10px 7px ;
74+       padding: 8px 0 8px 32px;
75+       display: inline-block;
76+}
77+
78+.pressthis a:after {
79+       content: '';
80+       width: 70%;
81+       height: 55%;
82+       z-index: -1;
83+       position: absolute;
84+       right: 10px;
85+       bottom: 9px;
86+       background: transparent; 
87+       transform: skew(20deg) rotate(6deg);
88+       -webkit-transform: skew(20deg) rotate(6deg);
89+       -moz-transform: skew(20deg) rotate(6deg);
90+       box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6);
91+       -webkit-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6);
92+       -moz-box-shadow: 0 10px 8px rgba(0, 0, 0, 0.6);
93+}
94+
95+
96 /*------------------------------------------------------------------------------
97   20.0 - Settings
98 ------------------------------------------------------------------------------*/