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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
4a972aa2
Commit
4a972aa2
authored
Apr 25, 2017
by
Taurie Davis
Committed by
Phil Hughes
Apr 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Clean up padding with Markdown headers"
parent
226e184d
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
38 deletions
+48
-38
app/assets/stylesheets/framework/awards.scss
app/assets/stylesheets/framework/awards.scss
+1
-2
app/assets/stylesheets/framework/common.scss
app/assets/stylesheets/framework/common.scss
+1
-1
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+0
-8
app/assets/stylesheets/framework/timeline.scss
app/assets/stylesheets/framework/timeline.scss
+1
-1
app/assets/stylesheets/framework/typography.scss
app/assets/stylesheets/framework/typography.scss
+27
-13
app/assets/stylesheets/pages/detail_page.scss
app/assets/stylesheets/pages/detail_page.scss
+0
-6
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+5
-1
app/assets/stylesheets/pages/note_form.scss
app/assets/stylesheets/pages/note_form.scss
+1
-1
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+6
-3
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+1
-1
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+1
-1
changelogs/unreleased/27827-cleanup-markdown.yml
changelogs/unreleased/27827-cleanup-markdown.yml
+4
-0
No files found.
app/assets/stylesheets/framework/awards.scss
View file @
4a972aa2
...
@@ -108,8 +108,7 @@
...
@@ -108,8 +108,7 @@
}
}
.award-control
{
.award-control
{
margin
:
3px
5px
3px
0
;
margin-right
:
5px
;
padding
:
.35em
.4em
;
outline
:
0
;
outline
:
0
;
&
.disabled
{
&
.disabled
{
...
...
app/assets/stylesheets/framework/common.scss
View file @
4a972aa2
...
@@ -70,7 +70,7 @@ pre {
...
@@ -70,7 +70,7 @@ pre {
}
}
hr
{
hr
{
margin
:
$gl-padding
0
;
margin
:
24px
0
;
border-top
:
1px
solid
darken
(
$gray-normal
,
8%
);
border-top
:
1px
solid
darken
(
$gray-normal
,
8%
);
}
}
...
...
app/assets/stylesheets/framework/files.scss
View file @
4a972aa2
...
@@ -73,14 +73,6 @@
...
@@ -73,14 +73,6 @@
&
.wiki
{
&
.wiki
{
padding
:
30px
$gl-padding
;
padding
:
30px
$gl-padding
;
.highlight
{
margin-bottom
:
9px
;
>
pre
{
margin
:
0
;
}
}
}
}
&
.blob-no-preview
{
&
.blob-no-preview
{
...
...
app/assets/stylesheets/framework/timeline.scss
View file @
4a972aa2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
padding
:
0
;
padding
:
0
;
.timeline-entry
{
.timeline-entry
{
padding
:
$gl-padding
$gl-btn-padding
14px
;
padding
:
$gl-padding
$gl-btn-padding
0
;
border-color
:
$white-normal
;
border-color
:
$white-normal
;
color
:
$gl-text-color
;
color
:
$gl-text-color
;
border-bottom
:
1px
solid
$border-white-light
;
border-bottom
:
1px
solid
$border-white-light
;
...
...
app/assets/stylesheets/framework/typography.scss
View file @
4a972aa2
...
@@ -8,6 +8,13 @@
...
@@ -8,6 +8,13 @@
img
{
img
{
max-width
:
100%
;
max-width
:
100%
;
margin
:
0
0
8px
;
}
p
a
:not
(
.no-attachment-icon
)
img
{
// Remove bottom padding because
// <p> already has $gl-padding bottom
margin-bottom
:
0
;
}
}
*
:first-child:not
(
.katex-display
)
{
*
:first-child:not
(
.katex-display
)
{
...
@@ -47,44 +54,50 @@
...
@@ -47,44 +54,50 @@
h1
{
h1
{
font-size
:
1
.75em
;
font-size
:
1
.75em
;
font-weight
:
600
;
font-weight
:
600
;
margin
:
16px
0
10
px
;
margin
:
24px
0
16
px
;
padding
:
0
0
0
.3em
;
padding
-bottom
:
0
.3em
;
border-bottom
:
1px
solid
$white-dark
;
border-bottom
:
1px
solid
$white-dark
;
color
:
$gl-text-color
;
color
:
$gl-text-color
;
&
:first-child
{
margin-top
:
0
;
}
}
}
h2
{
h2
{
font-size
:
1
.5em
;
font-size
:
1
.5em
;
font-weight
:
600
;
font-weight
:
600
;
margin
:
16px
0
10px
;
margin
:
24px
0
16px
;
padding-bottom
:
0
.3em
;
border-bottom
:
1px
solid
$white-dark
;
color
:
$gl-text-color
;
color
:
$gl-text-color
;
}
}
h3
{
h3
{
margin
:
16px
0
10
px
;
margin
:
24px
0
16
px
;
font-size
:
1
.3em
;
font-size
:
1
.3em
;
}
}
h4
{
h4
{
margin
:
16px
0
10
px
;
margin
:
24px
0
16
px
;
font-size
:
1
.2em
;
font-size
:
1
.2em
;
}
}
h5
{
h5
{
margin
:
16px
0
10
px
;
margin
:
24px
0
16
px
;
font-size
:
1em
;
font-size
:
1em
;
}
}
h6
{
h6
{
margin
:
16px
0
10
px
;
margin
:
24px
0
16
px
;
font-size
:
0
.95em
;
font-size
:
0
.95em
;
}
}
blockquote
{
blockquote
{
color
:
$gl-grayish-blue
;
color
:
$gl-grayish-blue
;
font-size
:
inherit
;
font-size
:
inherit
;
padding
:
8px
2
1
px
;
padding
:
8px
2
4
px
;
margin
:
1
2
px
0
;
margin
:
1
6
px
0
;
border-left
:
3px
solid
$white-dark
;
border-left
:
3px
solid
$white-dark
;
}
}
...
@@ -95,19 +108,20 @@
...
@@ -95,19 +108,20 @@
blockquote
p
{
blockquote
p
{
color
:
$gl-grayish-blue
!
important
;
color
:
$gl-grayish-blue
!
important
;
margin
:
0
;
font-size
:
inherit
;
font-size
:
inherit
;
line-height
:
1
.5
;
line-height
:
1
.5
;
}
}
p
{
p
{
color
:
$gl-text-color
;
color
:
$gl-text-color
;
margin
:
6px
0
0
;
margin
:
0
0
16px
;
}
}
table
{
table
{
@extend
.table
;
@extend
.table
;
@extend
.table-bordered
;
@extend
.table-bordered
;
margin
:
1
2
px
0
;
margin
:
1
6
px
0
;
color
:
$gl-text-color
;
color
:
$gl-text-color
;
th
{
th
{
...
@@ -120,7 +134,7 @@
...
@@ -120,7 +134,7 @@
}
}
pre
{
pre
{
margin
:
12px
0
;
margin
-bottom
:
16px
;
font-size
:
13px
;
font-size
:
13px
;
line-height
:
1
.6em
;
line-height
:
1
.6em
;
overflow-x
:
auto
;
overflow-x
:
auto
;
...
@@ -134,7 +148,7 @@
...
@@ -134,7 +148,7 @@
ul
,
ul
,
ol
{
ol
{
padding
:
0
;
padding
:
0
;
margin
:
3px
0
!
important
;
margin
:
0
0
16px
!
important
;
}
}
ul
:dir
(
rtl
),
ul
:dir
(
rtl
),
...
...
app/assets/stylesheets/pages/detail_page.scss
View file @
4a972aa2
...
@@ -29,11 +29,5 @@
...
@@ -29,11 +29,5 @@
.description
{
.description
{
margin-top
:
6px
;
margin-top
:
6px
;
p
{
&
:last-child
{
margin-bottom
:
0
;
}
}
}
}
}
}
app/assets/stylesheets/pages/issuable.scss
View file @
4a972aa2
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
.title
{
.title
{
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
-bottom
:
16px
;
border-bottom
:
none
;
border-bottom
:
none
;
}
}
...
@@ -357,6 +357,8 @@
...
@@ -357,6 +357,8 @@
}
}
.detail-page-description
{
.detail-page-description
{
padding
:
16px
0
0
;
small
{
small
{
color
:
$gray-darkest
;
color
:
$gray-darkest
;
}
}
...
@@ -364,6 +366,8 @@
...
@@ -364,6 +366,8 @@
.edited-text
{
.edited-text
{
color
:
$gray-darkest
;
color
:
$gray-darkest
;
display
:
block
;
margin
:
0
0
16px
;
.author_link
{
.author_link
{
color
:
$gray-darkest
;
color
:
$gray-darkest
;
...
...
app/assets/stylesheets/pages/note_form.scss
View file @
4a972aa2
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
.note-edit-form
{
.note-edit-form
{
.note-form-actions
{
.note-form-actions
{
position
:
relative
;
position
:
relative
;
margin
-top
:
$gl-padding
;
margin
:
$gl-padding
0
;
}
}
.note-preview-holder
{
.note-preview-holder
{
...
...
app/assets/stylesheets/pages/notes.scss
View file @
4a972aa2
...
@@ -102,13 +102,12 @@ ul.notes {
...
@@ -102,13 +102,12 @@ ul.notes {
.note-awards
{
.note-awards
{
.js-awards-block
{
.js-awards-block
{
padding
:
2px
;
margin-bottom
:
16px
;
margin-top
:
10px
;
}
}
}
}
.note-header
{
.note-header
{
padding-bottom
:
3
px
;
padding-bottom
:
8
px
;
padding-right
:
20px
;
padding-right
:
20px
;
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
...
@@ -151,6 +150,10 @@ ul.notes {
...
@@ -151,6 +150,10 @@ ul.notes {
margin-left
:
65px
;
margin-left
:
65px
;
}
}
.note-header
{
padding-bottom
:
0
;
}
&.
timeline-entry
:
:
after
{
&.
timeline-entry
:
:
after
{
clear
:
none
;
clear
:
none
;
}
}
...
...
app/views/projects/issues/show.html.haml
View file @
4a972aa2
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
=
link_to
'Edit'
,
edit_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
class:
'hidden-xs hidden-sm btn btn-grouped issuable-edit'
=
link_to
'Edit'
,
edit_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
class:
'hidden-xs hidden-sm btn btn-grouped issuable-edit'
.issue-details.issuable-details
.issue-details.issuable-details
.detail-page-description.content-block
{
class:
(
'hide-bottom-border'
unless
@issue
.
description
.
present?
)
}
.detail-page-description.content-block
.issue-title-data.hidden
{
"data"
=>
{
"initial-title"
=>
markdown_field
(
@issue
,
:title
),
.issue-title-data.hidden
{
"data"
=>
{
"initial-title"
=>
markdown_field
(
@issue
,
:title
),
"endpoint"
=>
rendered_title_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
"endpoint"
=>
rendered_title_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
}
}
}
}
...
...
app/views/projects/milestones/show.html.haml
View file @
4a972aa2
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
%a
.btn.btn-default.btn-grouped.pull-right.visible-xs-block.js-sidebar-toggle
{
href:
"#"
}
%a
.btn.btn-default.btn-grouped.pull-right.visible-xs-block.js-sidebar-toggle
{
href:
"#"
}
=
icon
(
'angle-double-left'
)
=
icon
(
'angle-double-left'
)
.detail-page-description.milestone-detail
{
class:
(
'hide-bottom-border'
unless
@milestone
.
description
.
present?
)
}
.detail-page-description.milestone-detail
%h2
.title
%h2
.title
=
markdown_field
(
@milestone
,
:title
)
=
markdown_field
(
@milestone
,
:title
)
%div
%div
...
...
changelogs/unreleased/27827-cleanup-markdown.yml
0 → 100644
View file @
4a972aa2
---
title
:
Cleanup markdown spacing
merge_request
:
author
:
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