Skip to content

Instantly share code, notes, and snippets.

@lyshie
Last active March 15, 2023 10:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lyshie/c0199250041ad78a8219181efa44a816 to your computer and use it in GitHub Desktop.
Save lyshie/c0199250041ad78a8219181efa44a816 to your computer and use it in GitHub Desktop.
放大 Scratch 3 字型 (Enlarge font size in Scratch 3)
/*
1. Install Stylus (https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne)
2. URL: Regular expression (https://scratch.mit.edu/projects/.*editor.*)
*/
/*
* {
font-family: "微軟正黑體" !important;
}
*/
/* 減少高度(最上面一排的選單) */
div.menu-bar_menu-bar_JcuHF,
div.menu-bar_menu-bar-item_oLDa-,
div.menu-bar_menu-bar-item_oLDa- span,
div.menu-bar_menu-bar-item_oLDa- div,
div.menu-bar_menu-bar-item_oLDa- input {
height: 32px;
}
/* 減少高度(最上面一排的選單) */
div.menu-bar_menu-bar-item_oLDa- span,
div.menu-bar_menu-bar-item_oLDa- div,
div.menu-bar_menu-bar-item_oLDa- input {
padding: 2px;
}
/* 一般文字標籤 */
span {
font-size: 14px;
font-weight: bold !important;
text-shadow: 0.03em 0.03em 0.03em #999999 !important;
}
/* 程式積木分類文字 */
div.scratchCategoryMenuItemLabel {
font-size: 14px !important;
font-weight: bold !important;
text-shadow: 0.03em 0.03em 0.03em #999999 !important;
}
/* 積木文字 */
.blocklyText, .blocklyHtmlInput {
font-size: 20px !important;
font-weight: bold !important;
text-shadow: 0.03em 0.03em 0.03em #999999 !important;
}
/*
sprite-selector-item: 角色名稱
label_input-label: 角色一般文字標籤
labeled-icon-button: 繪圖工具按鈕
input_input-form: 可輸入的文字區域
*/
div[class^="sprite-selector-item"],
span[class^="label_input-label"],
span[class^="labeled-icon-button"],
input[class^="input_input-form"] {
font-size: 12px !important;
font-weight: bold !important;
text-shadow: 0.03em 0.03em 0.03em #999999 !important;
}
/* 程式註解文字 */
.scratchCommentText {
font-size: 20px !important;
font-weight: bold !important;
text-shadow: 0.03em 0.03em 0.03em #999999 !important;
}
@lyshie
Copy link
Author

lyshie commented Mar 31, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment