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
91036026
Commit
91036026
authored
Sep 22, 2015
by
Andrey
Committed by
Dmitriy Zaporozhets
Sep 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI for rendered markdown
parent
0ce5fb71
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
17 deletions
+63
-17
app/assets/stylesheets/base/mixins.scss
app/assets/stylesheets/base/mixins.scss
+57
-15
app/assets/stylesheets/generic/typography.scss
app/assets/stylesheets/generic/typography.scss
+6
-2
No files found.
app/assets/stylesheets/base/mixins.scss
View file @
91036026
...
@@ -93,46 +93,87 @@
...
@@ -93,46 +93,87 @@
}
}
h1
{
h1
{
margin-top
:
45px
;
font-size
:
1
.3em
;
font-size
:
2
.5em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
padding
:
0
0
10px
0
;
border-bottom
:
1px
solid
#e7e9ed
;
color
:
#313236
;
}
}
h2
{
h2
{
margin-top
:
40px
;
font-size
:
1
.2em
;
font-size
:
2em
;
font-weight
:
600
;
margin
:
24px
0
12px
0
;
color
:
#313236
;
}
}
h3
{
h3
{
margin
-top
:
35px
;
margin
:
24px
0
12px
0
;
font-size
:
1
.5em
;
font-size
:
1
.
2
5em
;
}
}
h4
{
h4
{
margin-top
:
30px
;
margin
:
24px
0
12px
0
;
font-size
:
1
.2em
;
font-size
:
1
.1em
;
}
h5
{
margin
:
24px
0
12px
0
;
font-size
:
1em
;
}
h6
{
margin
:
24px
0
12px
0
;
font-size
:
0
.90em
;
}
}
blockquote
{
blockquote
{
color
:
#888
;
padding
:
8px
21px
;
margin
:
12px
0
12px
;
border-left
:
3px
solid
#e7e9ed
;
}
blockquote
p
{
color
:
#7f8fa4
!
important
;
font-size
:
15px
;
font-size
:
15px
;
line-height
:
1
.5
;
line-height
:
1
.5
;
}
}
p
{
color
:
#5c5d5e
;
margin
:
6px
0
0
0
;
}
table
{
table
{
@extend
.table
;
@extend
.table
;
@extend
.table-bordered
;
@extend
.table-bordered
;
margin
:
12px
0
12px
0
;
color
:
#5c5d5e
;
th
{
th
{
background
:
#EEE
;
background
:
#f8fafc
;
}
}
}
pre
{
margin
:
12px
0
12px
0
!
important
;
background-color
:
#f8fafc
!
important
;
font-size
:
13px
!
important
;
color
:
#5b6169
!
important
;
line-height
:
1
.6em
!
important
;
}
}
p
>
code
{
p
>
code
{
font-size
:
inherit
;
font-weight
:
inherit
;
font-weight
:
inherit
;
}
}
ul
{
color
:
#5c5d5e
;
}
li
{
li
{
line-height
:
1
.
5
;
line-height
:
1
.
6em
;
}
}
a
[
href
*=
"/uploads/"
],
a
[
href
*=
"storage.googleapis.com/google-code-attachments/"
]
{
a
[
href
*=
"/uploads/"
],
a
[
href
*=
"storage.googleapis.com/google-code-attachments/"
]
{
...
@@ -152,6 +193,7 @@
...
@@ -152,6 +193,7 @@
}
}
}
}
@mixin
str-truncated
(
$max_width
:
82%
)
{
@mixin
str-truncated
(
$max_width
:
82%
)
{
display
:
inline-block
;
display
:
inline-block
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -183,7 +225,7 @@
...
@@ -183,7 +225,7 @@
&
.active
{
&
.active
{
background
:
#f9f9f9
;
background
:
#f9f9f9
;
a
{
a
{
font-weight
:
bold
;
font-weight
:
600
;
}
}
}
}
...
...
app/assets/stylesheets/generic/typography.scss
View file @
91036026
...
@@ -55,6 +55,7 @@ a > code {
...
@@ -55,6 +55,7 @@ a > code {
@include
md-typography
;
@include
md-typography
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
padding
:
7px
;
/* Link to current header. */
/* Link to current header. */
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
h1
,
h2
,
h3
,
h4
,
h5
,
h6
{
...
@@ -83,9 +84,12 @@ a > code {
...
@@ -83,9 +84,12 @@ a > code {
}
}
}
}
ul
{
ul
,
ol
{
padding
:
0
;
padding
:
0
;
margin
:
0
0
9px
25px
!
important
;
margin
:
6px
0
6px
18px
!
important
;
}
ol
{
color
:
#5c5d5e
;
}
}
}
}
...
...
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