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
0b7d7df7
Commit
0b7d7df7
authored
Jun 23, 2017
by
Phil Hughes
Committed by
Annabel Dunstone Gray
Jun 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Limit the width of project READMEs
parent
6ff571aa
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
2 deletions
+13
-2
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+6
-0
app/assets/stylesheets/framework/layout.scss
app/assets/stylesheets/framework/layout.scss
+1
-1
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/views/projects/tree/_readme.html.haml
app/views/projects/tree/_readme.html.haml
+1
-1
changelogs/unreleased/project-readme-limited-width.yml
changelogs/unreleased/project-readme-limited-width.yml
+4
-0
No files found.
app/assets/stylesheets/framework/files.scss
View file @
0b7d7df7
...
@@ -12,6 +12,12 @@
...
@@ -12,6 +12,12 @@
&
.readme-holder
{
&
.readme-holder
{
margin
:
$gl-padding
0
;
margin
:
$gl-padding
0
;
&
.limited-width-container
.file-content
{
max-width
:
$limited-layout-width-sm
;
margin-left
:
auto
;
margin-right
:
auto
;
}
}
}
table
{
table
{
...
...
app/assets/stylesheets/framework/layout.scss
View file @
0b7d7df7
...
@@ -53,7 +53,7 @@ body {
...
@@ -53,7 +53,7 @@ body {
}
}
&
.limit-container-width-sm
{
&
.limit-container-width-sm
{
max-width
:
790px
;
max-width
:
$limited-layout-width-sm
;
}
}
}
}
...
...
app/assets/stylesheets/framework/variables.scss
View file @
0b7d7df7
...
@@ -161,6 +161,7 @@ $progress-color: #c0392b;
...
@@ -161,6 +161,7 @@ $progress-color: #c0392b;
$header-height
:
50px
;
$header-height
:
50px
;
$fixed-layout-width
:
1280px
;
$fixed-layout-width
:
1280px
;
$limited-layout-width
:
990px
;
$limited-layout-width
:
990px
;
$limited-layout-width-sm
:
790px
;
$gl-avatar-size
:
40px
;
$gl-avatar-size
:
40px
;
$error-exclamation-point
:
$red-500
;
$error-exclamation-point
:
$red-500
;
$border-radius-default
:
3px
;
$border-radius-default
:
3px
;
...
...
app/views/projects/tree/_readme.html.haml
View file @
0b7d7df7
-
if
readme
.
rich_viewer
-
if
readme
.
rich_viewer
%article
.file-holder.readme-holder
%article
.file-holder.readme-holder
{
class:
(
"limited-width-container"
unless
fluid_layout
)
}
.js-file-title.file-title
.js-file-title.file-title
=
blob_icon
readme
.
mode
,
readme
.
name
=
blob_icon
readme
.
mode
,
readme
.
name
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@ref
,
readme
.
path
))
do
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@ref
,
readme
.
path
))
do
...
...
changelogs/unreleased/project-readme-limited-width.yml
0 → 100644
View file @
0b7d7df7
---
title
:
Limit the width of the projects README text
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