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
Jérome Perrin
gitlab-ce
Commits
bd7e569f
Commit
bd7e569f
authored
Jul 29, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent top margin for first element in markdown/wiki/readme typography
parent
2c6577a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
+4
-0
app/assets/stylesheets/gitlab_bootstrap/typography.scss
app/assets/stylesheets/gitlab_bootstrap/typography.scss
+8
-4
No files found.
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
View file @
bd7e569f
...
@@ -76,6 +76,10 @@
...
@@ -76,6 +76,10 @@
}
}
@mixin
md-typography
{
@mixin
md-typography
{
*
:first-child
{
margin-top
:
0
;
}
code
{
padding
:
0
4px
;
}
code
{
padding
:
0
4px
;
}
h1
{
margin-top
:
30px
;}
h1
{
margin-top
:
30px
;}
h2
{
margin-top
:
25px
;}
h2
{
margin-top
:
25px
;}
...
...
app/assets/stylesheets/gitlab_bootstrap/typography.scss
View file @
bd7e569f
...
@@ -94,12 +94,16 @@ a:focus {
...
@@ -94,12 +94,16 @@ a:focus {
*
*
*/
*/
.wiki
{
.wiki
{
font-size
:
14px
;
line-height
:
1
.6
;
@include
md-typography
;
@include
md-typography
;
.white
.highlight
pre
{
background
:
#f5f5f5
;
}
font-size
:
14px
;
ul
{
margin
:
0
0
9px
25px
!
important
;
}
line-height
:
1
.6
;
.white
.highlight
pre
{
background
:
#f5f5f5
;
}
ul
{
margin
:
0
0
9px
25px
!
important
;
}
}
}
.md
{
.md
{
...
...
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