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
d3862c0e
Commit
d3862c0e
authored
Jul 10, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CSS improvements & refactoring
parent
b58326af
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
156 additions
and
183 deletions
+156
-183
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+105
-6
app/assets/stylesheets/notes.scss
app/assets/stylesheets/notes.scss
+11
-4
app/assets/stylesheets/sections/tree.scss
app/assets/stylesheets/sections/tree.scss
+0
-136
app/views/help/api.html.haml
app/views/help/api.html.haml
+2
-2
app/views/keys/new.html.haml
app/views/keys/new.html.haml
+2
-2
app/views/notes/_reply_button.html.haml
app/views/notes/_reply_button.html.haml
+1
-0
app/views/refs/_tree.html.haml
app/views/refs/_tree.html.haml
+5
-3
app/views/refs/_tree_file.html.haml
app/views/refs/_tree_file.html.haml
+17
-15
app/views/refs/blame.html.haml
app/views/refs/blame.html.haml
+4
-4
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+9
-11
No files found.
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
d3862c0e
...
@@ -642,9 +642,7 @@ pre.logs {
...
@@ -642,9 +642,7 @@ pre.logs {
.file_holder
{
.file_holder
{
border
:
1px
solid
#CCC
;
border
:
1px
solid
#CCC
;
margin-bottom
:
1em
;
margin-bottom
:
1em
;
-moz-box-shadow
:
0
0
3px
#ddd
;
@include
shade
;
-webkit-box-shadow
:
0
0
3px
#ddd
;
box-shadow
:
0
0
3px
#ddd
;
.file_title
{
.file_title
{
border-bottom
:
1px
solid
#bbb
;
border-bottom
:
1px
solid
#bbb
;
...
@@ -661,10 +659,111 @@ pre.logs {
...
@@ -661,10 +659,111 @@ pre.logs {
padding
:
9px
10px
;
padding
:
9px
10px
;
height
:
18px
;
height
:
18px
;
.options
{
float
:right
;
margin-top
:
-5px
;
}
.file_name
{
color
:
$style_color
;
font-size
:
14px
;
text-shadow
:
0
1px
1px
#fff
;
small
{
color
:
#999
;
font-size
:
13px
;
}
}
}
}
.file_content
{
.file_content
{
background
:
#fff
;
color
:
#514721
;
font-size
:
11px
;
&
.wiki
{
&
.wiki
{
code
{
padding
:
0
4px
;
}
padding
:
20px
;
padding
:
20px
;
h1
,
h2
{
line-height
:
46px
;
}
h3
,
h4
{
line-height
:
40px
;
}
}
&
.image_file
{
background
:
#eee
;
text-align
:center
;
img
{
padding
:
100px
;
max-width
:
300px
;
}
}
&
.blob_file
{
}
/**
* Blame file
*/
&
.blame
{
tr
{
border-bottom
:
1px
solid
#eee
;
}
td
{
padding
:
5px
;
}
.author
,
.blame_commit
{
background
:
#f5f5f5
;
vertical-align
:top
;
}
.lines
{
pre
{
padding
:
0
;
margin
:
0
;
background
:none
;
border
:none
;
}
}
}
/**
* Code file
*/
&
.code
{
padding
:
0
;
td
.code
{
width
:
100%
;
.highlight
{
margin-left
:
55px
;
overflow
:auto
;
overflow-y
:hidden
;
}
}
.highlight
pre
{
white-space
:
pre
;
word-wrap
:normal
;
}
table
.highlighttable
{
border
:
none
;
}
body
.project-page
table
.highlighttable
td
{
border
:
none
}
table
.highlighttable
tr
:hover
{
background
:none
;}
table
.highlighttable
pre
{
line-height
:
16px
!
important
;
font-size
:
12px
!
important
;
}
table
.highlighttable
.linenodiv
pre
{
text-align
:
right
;
padding-right
:
4px
;
color
:
#666
;
}
}
}
}
}
}
}
app/assets/stylesheets/notes.scss
View file @
d3862c0e
...
@@ -63,18 +63,22 @@ p.notify_controls span{
...
@@ -63,18 +63,22 @@ p.notify_controls span{
tr
.line_notes_row
{
tr
.line_notes_row
{
border-bottom
:
1px
solid
#DDD
;
border-bottom
:
1px
solid
#DDD
;
border-left
:
7px
solid
#2A79A3
;
&
.reply
{
&
.reply
{
background
:
#eee
;
background
:
#eee
;
border-left
:
7px
solid
#2A79A3
;
border-top
:
1px
solid
#ddd
;
td
{
td
{
padding
:
7px
10px
;
padding
:
7px
10px
;
}
}
a
.line_note_reply_link
{
a
.line_note_reply_link
{
@include
round-borders-all
(
4px
);
@include
round-borders-all
(
4px
);
border-color
:
#aaa
;
padding
:
3px
10px
;
background
:
#bbb
;
margin-left
:
5px
;
padding
:
3px
20px
;
color
:
white
;
color
:
white
;
background
:
#2A79A3
;
border-color
:
#2A79A3
;
}
}
}
}
ul
{
ul
{
...
@@ -95,6 +99,9 @@ tr.line_notes_row {
...
@@ -95,6 +99,9 @@ tr.line_notes_row {
td
{
td
{
border-bottom
:
1px
solid
#ddd
;
border-bottom
:
1px
solid
#ddd
;
}
}
.actions
{
margin
:
0
;
}
}
}
td
.line_note_link
{
td
.line_note_link
{
...
...
app/assets/stylesheets/sections/tree.scss
View file @
d3862c0e
...
@@ -25,103 +25,6 @@
...
@@ -25,103 +25,6 @@
}
}
}
}
/** FILE CONTENT VIEW **/
.view_file_content
{
.old_line
,
.new_line
{
background
:
#ECECEC
;
color
:
#777
;
width
:
15px
;
float
:left
;
padding
:
0px
10px
;
border-right
:
1px
solid
#ccc
;
}
.old_line
{
display
:none
;
}
}
.view_file
.view_file_header
,
.diff_file
.diff_file_header
{
border-bottom
:
1px
solid
#bbb
;
background
:
#eee
;
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
30
,
color-stop
(
0
.066
,
#eee
)
,
to
(
#dfdfdf
));
background-image
:
-webkit-linear-gradient
(
#eee
6
.6%
,
#dfdfdf
);
background-image
:
-moz-linear-gradient
(
#eee
6
.6%
,
#dfdfdf
);
background-image
:
-o-linear-gradient
(
#eee
6
.6%
,
#dfdfdf
);
margin
:
0
;
font-weight
:
normal
;
font-weight
:
bold
;
text-align
:
left
;
color
:
#666
;
padding
:
9px
10px
;
height
:
18px
;
.options
{
float
:right
;
margin-top
:
-5px
;
}
.file_name
{
color
:
$style_color
;
font-size
:
14px
;
text-shadow
:
0
1px
1px
#fff
;
small
{
color
:
#999
;
font-size
:
13px
;
}
}
}
.view_file
{
border
:
1px
solid
#CCC
;
margin-bottom
:
1em
;
.view_file_content
{
background
:
#fff
;
color
:
#514721
;
font-size
:
11px
;
}
.view_file_content_image
{
background
:
#eee
;
text-align
:center
;
img
{
padding
:
100px
;
max-width
:
300px
;
}
}
}
td
.code
{
width
:
100%
;
.highlight
{
margin-left
:
55px
;
overflow
:auto
;
overflow-y
:hidden
;
}
}
.highlight
pre
{
white-space
:
pre
;
word-wrap
:normal
;
}
table
.highlighttable
{
border
:
none
;
}
body
.project-page
table
.highlighttable
td
{
border
:
none
}
table
.highlighttable
tr
:hover
{
background
:none
;}
table
.highlighttable
pre
{
line-height
:
16px
!
important
;
font-size
:
12px
!
important
;
}
table
.highlighttable
.linenodiv
pre
{
text-align
:
right
;
padding-right
:
4px
;
color
:
#666
;
}
#tree-slider
{
#tree-slider
{
@include
border-radius
(
0
);
@include
border-radius
(
0
);
.tree-item
{
.tree-item
{
...
@@ -183,21 +86,6 @@
...
@@ -183,21 +86,6 @@
color
:
#333
;
color
:
#333
;
}
}
#tree-content-holder
.view_file
{
@include
shade
;
}
#tree-readme-holder
.readme
{
@include
shade
;
margin-bottom
:
20px
;
h1
,
h2
{
line-height
:
56px
;
}
h3
,
h4
{
line-height
:
46px
;
}
}
a
.tree-commit-link
{
a
.tree-commit-link
{
color
:
#666
;
color
:
#666
;
&
:hover
{
&
:hover
{
...
@@ -206,27 +94,3 @@
...
@@ -206,27 +94,3 @@
}
}
}
}
.blame_file
{
.view_file_content
{
tr
{
border-bottom
:
1px
solid
#eee
;
}
td
{
padding
:
5px
;
}
.author
,
.commit
{
background
:
#f5f5f5
;
vertical-align
:top
;
}
.lines
{
pre
{
padding
:
0
;
margin
:
0
;
background
:none
;
border
:none
;
}
}
}
}
app/views/help/api.html.haml
View file @
d3862c0e
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
%li
%li
%a
{
:href
=>
"#README"
}
README
%a
{
:href
=>
"#README"
}
README
%li
%li
%a
{
:href
=>
"#
P
rojects"
}
Projects
%a
{
:href
=>
"#
p
rojects"
}
Projects
%li
%li
%a
{
:href
=>
"#
U
sers"
}
Users
%a
{
:href
=>
"#
u
sers"
}
Users
.file_holder
#README
.file_holder
#README
.file_title
.file_title
...
...
app/views/keys/new.html.haml
View file @
d3862c0e
%h3
New key
%h3
.page_title
New key
%hr
%hr
=
render
'form'
=
render
'form'
...
...
app/views/notes/_reply_button.html.haml
View file @
d3862c0e
%tr
.line_notes_row.reply
%tr
.line_notes_row.reply
%td
{
:colspan
=>
3
}
%td
{
:colspan
=>
3
}
%i
.icon-comment
=
link_to
"Reply"
,
"#"
,
:class
=>
"line_note_reply_link"
,
"line_code"
=>
line_code
,
:title
=>
"Add note for this line"
=
link_to
"Reply"
,
"#"
,
:class
=>
"line_note_reply_link"
,
"line_code"
=>
line_code
,
:title
=>
"Add note for this line"
app/views/refs/_tree.html.haml
View file @
d3862c0e
...
@@ -37,9 +37,11 @@
...
@@ -37,9 +37,11 @@
=
render
:partial
=>
"refs/submodule_item"
,
:locals
=>
{
:content
=>
content
}
=
render
:partial
=>
"refs/submodule_item"
,
:locals
=>
{
:content
=>
content
}
-
if
content
=
contents
.
select
{
|
c
|
c
.
is_a?
(
Grit
::
Blob
)
and
c
.
name
=~
/^readme/i
}.
first
-
if
content
=
contents
.
select
{
|
c
|
c
.
is_a?
(
Grit
::
Blob
)
and
c
.
name
=~
/^readme/i
}.
first
#tree-readme-holder
.file_holder
#README
%h3
=
content
.
name
.file_title
.readme
%i
.icon-file
=
content
.
name
.file_content.wiki
-
if
content
.
name
=~
/\.(md|markdown)$/i
-
if
content
.
name
=~
/\.(md|markdown)$/i
=
preserve
do
=
preserve
do
=
markdown
(
content
.
data
)
=
markdown
(
content
.
data
)
...
...
app/views/refs/_tree_file.html.haml
View file @
d3862c0e
.
view_file
.
file_holder
.
view_file_header
.
file_title
%i
.icon-file
%i
.icon-file
%span
.file_name
%span
.file_name
=
name
=
name
...
@@ -10,22 +10,24 @@
...
@@ -10,22 +10,24 @@
=
link_to
"blame"
,
blame_file_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
=
link_to
"blame"
,
blame_file_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
-
if
file
.
text?
-
if
file
.
text?
-
if
name
=~
/\.(md|markdown)$/i
-
if
name
=~
/\.(md|markdown)$/i
#tree-readme-holder
.file_content.wiki
.readme
=
preserve
do
=
preserve
do
=
markdown
(
file
.
data
)
=
markdown
(
file
.
data
)
-
else
-
else
.
view_file_content
.
file_content.code
-
unless
file
.
empty?
-
unless
file
.
empty?
%div
{
:class
=>
current_user
.
dark_scheme
?
"black"
:
"white"
}
%div
{
:class
=>
current_user
.
dark_scheme
?
"black"
:
"white"
}
=
preserve
do
=
preserve
do
=
raw
file
.
colorize
(
options:
{
linenos:
'True'
})
=
raw
file
.
colorize
(
options:
{
linenos:
'True'
})
-
else
-
else
%h4
.nothing_here_message
Empty file
%h4
.nothing_here_message
Empty file
-
elsif
file
.
image?
-
elsif
file
.
image?
.
view_file_content_imag
e
.
file_content.image_fil
e
%img
{
:src
=>
"data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"
}
%img
{
:src
=>
"data:#{file.mime_type};base64,#{Base64.encode64(file.data)}"
}
-
else
-
else
.file_content.blob_file
%center
%center
=
link_to
blob_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
])
do
=
link_to
blob_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
])
do
%div
.padded
%div
.padded
...
...
app/views/refs/blame.html.haml
View file @
d3862c0e
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
%li
=
link
%li
=
link
.clear
.clear
.
view_file.blame_file
.
file_holder
.
view_file_header
.
file_title
%i
.icon-file
%i
.icon-file
%span
.file_name
%span
.file_name
=
@tree
.
name
=
@tree
.
name
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
=
link_to
"raw"
,
blob_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
,
:target
=>
"_blank"
=
link_to
"raw"
,
blob_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
,
:target
=>
"_blank"
=
link_to
"history"
,
project_commits_path
(
@project
,
:path
=>
params
[
:path
],
:ref
=>
@ref
),
:class
=>
"btn very_small"
=
link_to
"history"
,
project_commits_path
(
@project
,
:path
=>
params
[
:path
],
:ref
=>
@ref
),
:class
=>
"btn very_small"
=
link_to
"source"
,
tree_file_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
=
link_to
"source"
,
tree_file_project_ref_path
(
@project
,
@ref
,
:path
=>
params
[
:path
]),
:class
=>
"btn very_small"
.
view_file_content
.
file_content.blame
%table
%table
-
@blame
.
each
do
|
commit
,
lines
|
-
@blame
.
each
do
|
commit
,
lines
|
-
commit
=
Commit
.
new
(
commit
)
-
commit
=
Commit
.
new
(
commit
)
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
%td
.author
%td
.author
=
image_tag
gravatar_icon
(
commit
.
author_email
,
16
)
=
image_tag
gravatar_icon
(
commit
.
author_email
,
16
)
=
commit
.
author_name
=
commit
.
author_name
%td
.commit
%td
.
blame_
commit
=
link_to
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
do
=
link_to
project_commit_path
(
@project
,
:id
=>
commit
.
id
)
do
%code
=
commit
.
id
.
to_s
[
0
..
10
]
%code
=
commit
.
id
.
to_s
[
0
..
10
]
...
...
app/views/snippets/show.html.haml
View file @
d3862c0e
...
@@ -7,15 +7,13 @@
...
@@ -7,15 +7,13 @@
=
link_to
"Edit"
,
edit_project_snippet_path
(
@project
,
@snippet
),
:class
=>
"btn small right"
=
link_to
"Edit"
,
edit_project_snippet_path
(
@project
,
@snippet
),
:class
=>
"btn small right"
%br
%br
#tree-holder
.file_holder
#tree-content-holder
.file_title
.view_file
.view_file_header
%i
.icon-file
%i
.icon-file
%strong
=
@snippet
.
file_name
%strong
=
@snippet
.
file_name
%span
.options
%span
.options
=
link_to
"raw"
,
raw_project_snippet_path
(
@project
,
@snippet
),
:class
=>
"btn very_small"
,
:target
=>
"_blank"
=
link_to
"raw"
,
raw_project_snippet_path
(
@project
,
@snippet
),
:class
=>
"btn very_small"
,
:target
=>
"_blank"
.view_file_content
.file_content.code
%div
{
:class
=>
current_user
.
dark_scheme
?
"black"
:
""
}
%div
{
:class
=>
current_user
.
dark_scheme
?
"black"
:
""
}
=
raw
@snippet
.
colorize
(
options:
{
linenos:
'True'
})
=
raw
@snippet
.
colorize
(
options:
{
linenos:
'True'
})
...
...
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