Changeset 1380
- Timestamp:
- 11/29/08 06:06:00 (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
plugins/unbuttonadmin/trunk/unbuttonadmin.plugin.php
r1374 r1380 16 16 public function action_admin_header( $theme ) 17 17 { 18 // This is such a hack it's not even funny 19 // But I am laughing inside. Laughing in a bad way. 20 Stack::remove('admin_stylesheet', 'admin'); 21 $css = file_get_contents(Site::get_dir('admin_theme') . '/css/admin.css'); 22 $css = preg_replace( 23 '@#page input\[type=button\], #page input\[type=submit\], #page button {([^}]+)}@', 24 '', 25 $css, 26 1 27 ); 28 $css = preg_replace( 29 '@#page input\[type=button\]:hover, #page input\[type=submit\]:hover, #page button:hover {([^}]+)}@', 30 '', 31 $css, 32 1 33 ); 18 34 Stack::add( 19 35 'admin_stylesheet', 20 36 array( 21 ' 22 #page input[type=button], #page input[type=submit], #page button { 23 padding: inherit; 24 cursor: inherit; 25 -webkit-border-radius: 0; /* Webkit only supports up to 9px at present */ 26 -moz-border-radius: 0; 27 font-size: inherit; 28 background: inherit; 29 border: inherit; 30 } 31 32 #page input[type=button]:hover, #page input[type=submit]:hover, #page button:hover { 33 background: inherit; 34 border: inherit; 35 } 36 ', 37 $css, 37 38 'screen' 38 39 ), 39 ' unbuttonadmin',40 ' admin'40 'admin', 41 'jquery' 41 42 ); 42 43 }
