Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
25f592cf
Commit
25f592cf
authored
Apr 20, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap all code in diffs
parent
1ec203a9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
30 deletions
+20
-30
app/assets/stylesheets/framework/markdown_area.scss
app/assets/stylesheets/framework/markdown_area.scss
+9
-0
app/assets/stylesheets/pages/detail_page.scss
app/assets/stylesheets/pages/detail_page.scss
+6
-0
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+2
-2
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+0
-12
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+3
-16
No files found.
app/assets/stylesheets/framework/markdown_area.scss
View file @
25f592cf
...
@@ -90,3 +90,12 @@
...
@@ -90,3 +90,12 @@
box-shadow
:
none
;
box-shadow
:
none
;
width
:
100%
;
width
:
100%
;
}
}
.md
{
&
.md-preview-holder
{
code
{
white-space
:
pre-wrap
;
word-break
:
break-all
;
}
}
}
app/assets/stylesheets/pages/detail_page.scss
View file @
25f592cf
...
@@ -36,4 +36,10 @@
...
@@ -36,4 +36,10 @@
}
}
}
}
}
}
.wiki
{
code
{
white-space
:
pre-wrap
;
}
}
}
}
app/assets/stylesheets/pages/diff.scss
View file @
25f592cf
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
}
}
span
{
span
{
white-space
:
pre
;
white-space
:
pre
-wrap
;
}
}
}
}
}
}
...
@@ -335,7 +335,7 @@
...
@@ -335,7 +335,7 @@
}
}
.diff-file
.line_content
{
.diff-file
.line_content
{
white-space
:
pre
;
white-space
:
pre
-wrap
;
}
}
.diff-wrap-lines
.line_content
{
.diff-wrap-lines
.line_content
{
...
...
app/assets/stylesheets/pages/note_form.scss
View file @
25f592cf
...
@@ -84,18 +84,6 @@
...
@@ -84,18 +84,6 @@
border-color
:
$gl-success
;
border-color
:
$gl-success
;
}
}
}
}
p
{
code
{
white-space
:
normal
;
}
pre
{
code
{
white-space
:
pre
;
}
}
}
}
}
}
}
...
...
app/assets/stylesheets/pages/notes.scss
View file @
25f592cf
...
@@ -81,16 +81,8 @@ ul.notes {
...
@@ -81,16 +81,8 @@ ul.notes {
@include
md-typography
;
@include
md-typography
;
// On diffs code should wrap nicely and not overflow
// On diffs code should wrap nicely and not overflow
p
{
code
{
code
{
white-space
:
normal
;
white-space
:
pre-wrap
;
}
pre
{
code
{
white-space
:
pre
;
}
}
}
}
// Reset ul style types since we're nested inside a ul already
// Reset ul style types since we're nested inside a ul already
...
@@ -137,7 +129,7 @@ ul.notes {
...
@@ -137,7 +129,7 @@ ul.notes {
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.line_content
{
.line_content
{
white-space
:
pre
;
white-space
:
pre
-wrap
;
}
}
}
}
...
@@ -171,11 +163,6 @@ ul.notes {
...
@@ -171,11 +163,6 @@ ul.notes {
&
.parallel
{
&
.parallel
{
border-width
:
1px
;
border-width
:
1px
;
.code
,
code
{
white-space
:
pre-wrap
;
}
}
}
.notes
{
.notes
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment