Skip to content
This repository has been archived by the owner on May 30, 2021. It is now read-only.

Commit

Permalink
Made the button look like the ones in the editor!
Browse files Browse the repository at this point in the history
  • Loading branch information
Felizolinha committed Feb 2, 2015
1 parent 61c6f86 commit 5428e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parts/scratchystuff.part.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ msuParts["scratchyStuff"] = function(ScratchUserscript){
var extPresets = unsafeWindow.extPresets;

function createButton() {
$('head').append('<style type="text/css">#scratchystuffbutton { position: absolute; top: 33px; right:' + (unsafeWindow.data.project.creator == username ? (unsafeWindow.data.project.isPrivate ? '204': '150') : '207') +'px; z-index: 1000; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } #scratchystuffbutton > .button { height: 20px; line-height: 20px; margin: 0; display: none; } body.editor #scratchystuffbutton > .button { display: block; } #scratchystuff > .dropdown-menu { top: 22px; } .scratchystuffextlib tr > * { text-align: left; padding-right: 10px; } .scratchystuffextlib tr > *:last-child { padding-right: 0; } .scratchystuffextlib .ui-dialog-title { color: black; }</style>');
$('head').append('<style type="text/css">#scratchystuffbutton { position: absolute; top: 33px; right:' + (unsafeWindow.data.project.creator == username ? (unsafeWindow.data.project.isPrivate ? '204': '150') : '207') +'px; z-index: 1000; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } #scratchystuffbutton > .button { height: 22px; line-height: 24px; margin: 0; display: none; font-weight: bold; font-size: 12px; background-color: #179fd7; background-image: none; box-shadow: none; border: none;} body.editor #scratchystuffbutton > .button { display: block;} #scratchystuff > .dropdown-menu { top: 22px; } .scratchystuffextlib tr > * { text-align: left; padding-right: 10px; } .scratchystuffextlib tr > *:last-child { padding-right: 0; } .scratchystuffextlib .ui-dialog-title { color: black; }</style>');

//Scratchy Stuff Extension Library
var extLibrary = $('<div><table><tbody id="scratchystuffextmenu"><tr><th>Extension</th><th>Author</th></tr></tbody></table></div>'), extTable = $(''),
Expand Down

0 comments on commit 5428e8d

Please sign in to comment.