Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit 55306d7

Browse files
committed
Moved fonts into variables. Fixed sans-serif font fallback. Fixed bottom border-radius on tab headers.
1 parent 645e43c commit 55306d7

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

GitHubWindows.user.css

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@
2727
--color-link: rgb(0, 0, 255);
2828
--color-hover: rgb(223, 223, 255);
2929

30+
--font-family: MS Sans Serif, MS Reference Sans Serif, Liberation Sans, Tahoma, sans-serif;
31+
--font-size: 12px;
32+
--font-line: 1.2;
33+
--font: var(--font-size)/var(--font-line) var(--font-family);
34+
--font-size-text: 14px;
35+
--font-line-text: 1.2;
36+
--font-size-bigger: 13px;
37+
--font-size-header: 14px;
38+
--font-text: var(--font-size-text)/var(--font-line-text) var(--font-family);
39+
3040
--button-3d-border-color-exact: var(--color-button-face) var(--color-button-shadow) var(--color-button-shadow) var(--color-button-face);
3141
--button-3d-box-shadow-exact:
3242
0 -1px 0 0 var(--color-button-highlight),
@@ -64,7 +74,7 @@
6474
-1px 1px 0 0 var(--color-button-shadow-dark),
6575
1px 0 0 0 var(--color-button-shadow-dark),
6676
1px 1px 0 0 var(--color-button-shadow-dark);
67-
77+
6878
--image-folder: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGFBMVEUAAAD//5nMzGYAAAD/zJmZmQD//8zx8fEIMK00AAAAAXRSTlMAQObYZgAAAE5JREFUCNdjQIDQ0GAwzVqWKGoAYgQpKSmFhoYyMISlgYCQAUOYIAg4QRgiIjARR4iICFzEESIiAgQghiMQuAAZQUpgYMDAbAwGBgwYAABoaBIom9Nm3gAAAABJRU5ErkJggg==');
6979
--image-folder-documents: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEUAAACZmQD//5n/zJn///8zMwDn59aGhobMzGZVVVUAM5mAgADx8fH/+/Dq6upNTU2p3qmcAAAAAXRSTlMAQObYZgAAAGlJREFUCNdjAIECBghgfwmmGAVLrn0AMSTaXY68BDNKXNYem72BgUE8LSsrLXMDgyAYpH1gEHEBAguxTAYRJSUlZWWxAAZGJWUlI+NGIAMkoGwIZAAFjIyADAZhZYgIVD+QwRoKAgxwAADcLBkG7Oto1QAAAABJRU5ErkJggg==');
7080
--image-file-text: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAD1BMVEUAAAD///8AAADAwMCAgIA71crUAAAAAXRSTlMAQObYZgAAADdJREFUCNdjYFAAAQYGBiYRIBACMhwVQUAByBAEAmEUhpCSkCK6iBLJIgiGszEIABlMSiDAwAAAbdoMvcC7PKEAAAAASUVORK5CYII=');
@@ -81,10 +91,10 @@
8191
--image-graph: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAFVBMVEUAAAAAAACAAID///8A//+AgIDAwMAGyj3KAAAAAXRSTlMAQObYZgAAAFlJREFUCNdVy7ENwDAIRFGa9AGb9LCB5Qks3QoZII33HyHYFFFe9cUJ4nRS6Zt+cc1nhrg0KTmJW+usxO4u7Eriyz8sth1VbKxgDIPEF4CKoVSxxSUpHXd6AVDAE78kckOGAAAAAElFTkSuQmCC');
8292
--image-config: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAM1BMVEUAAABmZgCZmZn/+/Dn59aZmQD//5kzMwAcHBzAwMDMzGZNTU0AAADq6upmZmYzAACtqZA/egufAAAAAXRSTlMAQObYZgAAAHJJREFUGNNNzVESgyAMRVEu8QVLBdz/aosU1DvDzyGThPgURtG22XfBZ9/3uJU3mMU18QC8oC/EjBvOlE5cBGleoegCGQvEBWhCcneycDcGkPAM2cUETG6eZceAgolmudElhForJOBooPCP1F//XLBw9APHJgNeldevuwAAAABJRU5ErkJggg==');
8393
}
84-
94+
8595
body {
8696
background: var(--color-button-face) !important;
87-
font: 12px/1.2 MS Sans Serif, MS Reference Sans Serif !important;
97+
font: var(--font) !important;
8898
}
8999
a {
90100
color: var(--color-link);
@@ -97,9 +107,9 @@
97107
color: var(--color-highlight-text) !important;
98108
background: var(--color-highlight) !important;
99109
}
100-
110+
101111
.markdown-body {
102-
font: 14px/1.5 MS Sans Serif, MS Reference Sans Serif !important;
112+
font: var(--font-text) !important;
103113
}
104114
.markdown-body pre,
105115
.markdown-body .highlight pre,
@@ -155,7 +165,7 @@
155165
.social-count:hover {
156166
text-decoration: underline !important;
157167
}
158-
168+
159169
.topic-tag {
160170
color: inherit;
161171
background: var(--color-button-checked) !important;
@@ -255,7 +265,7 @@
255265
box-shadow: none !important;
256266
height: 18px !important;
257267
}
258-
268+
259269
.repository-lang-stats-graph {
260270
border: solid 1px var(--color-button-shadow-dark) !important;
261271
border-radius: 0 !important;
@@ -275,12 +285,12 @@
275285
.table-list-header .btn-link {
276286
padding: 6px 8px !important;
277287
}
278-
288+
279289
.issues-listing .h4 {
280290
font: inherit !important;
281-
font-size: 13px !important;
291+
font-size: var(--font-size-bigger) !important;
282292
}
283-
293+
284294
.discussion-timeline,
285295
.timeline-comment-wrapper,
286296
.timeline-comment,
@@ -325,14 +335,14 @@
325335
.tabnav-tabs span:not(.Counter),
326336
.reponav-item,
327337
.select-menu-tab a {
328-
font-size: 12px;
338+
font-size: var(--font-size);
329339
font-weight: normal !important;
330340
color: var(--color-button-text) !important;
331341
background: var(--color-button-face) !important;
332342
border: solid 1px transparent !important;
333343
border-color: var(--button-3d-border-color) !important;
334344
border-bottom: none !important;
335-
border-radius: 2px !important;
345+
border-radius: 2px 2px 0 0 !important;
336346
box-shadow:
337347
1px 0 0 var(--color-button-shadow-dark),
338348
0 1px 0 var(--color-button-highlight)
@@ -368,7 +378,7 @@
368378
.Counter::after {
369379
content: ")";
370380
}
371-
381+
372382
.select-menu-modal,
373383
.dropdown-menu {
374384
background: var(--color-button-face) !important;
@@ -546,8 +556,8 @@
546556
#user-links .notification-indicator .mail-status.unread::after {
547557
color: var(--color-button-text) !important;
548558
content: "(unread)";
549-
}
550-
559+
}
560+
551561
.Box:not(.position-absolute):not(.Popover-message),
552562
.blankslate,
553563
.border,
@@ -593,13 +603,13 @@
593603
}
594604
.Subhead {
595605
border: none !important;
596-
font-size: 14px !important;
606+
font-size: var(--font-size-header) !important;
597607
}
598608
.Subhead h2 {
599-
font-size: 14px !important;
609+
font-size: var(--font-size-header) !important;
600610
font-weight: bold !important;
601611
}
602-
612+
603613
.octicon-file-directory, .octicon-file, .octicon-book, .octicon-history, .octicon-git-branch, .octicon-tag, .octicon-organization, .octicon-law, .octicon-code,
604614
.octicon-issue-opened, .octicon-git-pull-request, .octicon-project, .octicon-graph, .octicon-gear, .octicon-repo {
605615
fill: transparent !important;

0 commit comments

Comments
 (0)