Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 1e1feb9

Browse files
committed
Merge pull request #10727 from humphd/font-variables
Add `@sourceFontFamily` LESS variable and use instead of SourceCodePro font-family
2 parents 4a79d66 + 389cb19 commit 1e1feb9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/styles/brackets.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ a, img {
438438
color: @bc-text-alt;
439439
background-color: rgba(0, 0, 0, 0.8);
440440
font-size: 11px;
441-
font-family: SourceCodePro;
441+
font-family: @sourceFontFamily;
442442
line-height: 13px;
443443
border-radius: 3px;
444444
box-shadow: 0 1px 3px @bc-shadow;
@@ -640,7 +640,7 @@ a, img {
640640

641641
.line-number {
642642
color: @bc-text-thin-quiet;
643-
font-family: SourceCodePro;
643+
font-family: @sourceFontFamily;
644644
font-size: 11px;
645645
padding: 4px 0 0 15px;
646646
text-align: right;

src/styles/brackets_fonts.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@
8181
/* Font Stacks */
8282

8383
@sansFontFamily: 'SourceSansPro', Helvetica, Arial, "Meiryo UI", "MS Pゴシック", "MS PGothic", sans-serif;
84+
85+
@sourceFontFamily: "SourceCodePro", "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", Courier, fixed;
86+
@sourceFontFamily-Medium: "SourceCodePro-Medium", "MS ゴシック", "MS Gothic", monospace;

src/styles/brackets_theme_default.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
color: @dark-bc-text;
133133
}
134134

135-
font-family: "SourceCodePro-Medium", "MS ゴシック", "MS Gothic", monospace;
135+
font-family: @sourceFontFamily-Medium;
136136
}
137137

138138
.code-font-win() {

0 commit comments

Comments
 (0)