Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1005,#1010] Code Panel: match font with GitHub and break lines when overflow #1008

Merged
merged 23 commits into from
Mar 9, 2020
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0340056
Set file path to break into next line when overflows
jamessspanggg Jan 19, 2020
95a5a14
retrigger CI
jamessspanggg Jan 19, 2020
0d736dd
Set lines of code to break into next lines when overflow
jamessspanggg Jan 19, 2020
2171bee
Modify font-family and font-size to match with GitHub's
jamessspanggg Jan 20, 2020
4f674cf
Merge branch 'master' into 1005-long-filepath
jamessspanggg Jan 20, 2020
a68b042
Decrease the font size of title
jamessspanggg Jan 20, 2020
5550c43
Set line-content to break on each word instead of character
jamessspanggg Jan 21, 2020
035bfb9
Merge remote-tracking branch 'upstream/master' into 1005-long-filepath
jamessspanggg Jan 21, 2020
ce48c6f
Standardise font size between file title and group title
jamessspanggg Jan 23, 2020
aac1a20
Merge branch 'master' into 1005-long-filepath
jamessspanggg Jan 23, 2020
2171d74
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 3, 2020
efb403f
Standardise title fonts between code and commits panel
jamessspanggg Feb 3, 2020
e6fa04b
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 15, 2020
7c64660
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 15, 2020
0fba189
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 22, 2020
b0f51ca
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 22, 2020
d49186b
Merge branch 'master' into 1005-long-filepath
jamessspanggg Feb 25, 2020
7d8be49
Merge branch 'master' into 1005-long-filepath
jamessspanggg Mar 3, 2020
6a9d922
Merge branch 'master' into 1005-long-filepath
jamessspanggg Mar 4, 2020
9eea229
Revert changes in zoom
jamessspanggg Mar 4, 2020
f0ef7fb
Revert changes in zoom
jamessspanggg Mar 4, 2020
cf0cde3
Merge branch 'master' into 1005-long-filepath
jamessspanggg Mar 9, 2020
6ee252e
Standardise logo and font size
jamessspanggg Mar 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions frontend/src/static/css/v_authorship.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
.file {
pre {
display: none;
// GitHub's font family and font size
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 12px;
}

&.active {
Expand All @@ -105,18 +108,20 @@
// overwrite hljs library
display: inherit;
padding: 0;
white-space: pre-wrap;
}
}
}
}

.title {
font-size: 1.25rem;
font-size: medium;
font-weight: bold;
margin-top: 1rem;

.path {
cursor: pointer;
overflow-wrap: break-word;
}

.loc {
Expand All @@ -125,7 +130,6 @@

.button {
color: mui-color('grey');
font-size: 1.15rem;
margin-left: .5rem;
text-decoration: none;
}
Expand Down Expand Up @@ -159,6 +163,7 @@

.line-content {
padding-left: 2rem;
word-break: break-word;
}

&.untouched {
Expand Down