BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
95875061
Commit
95875061
authored
Sep 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont override default table with bootstrap class. Refactor table css
parent
550c1828
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
97 deletions
+31
-97
gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+0
-1
files.scss
app/assets/stylesheets/gitlab_bootstrap/files.scss
+4
-0
mixins.scss
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
+8
-0
tables.scss
app/assets/stylesheets/gitlab_bootstrap/tables.scss
+0
-68
tree.scss
app/assets/stylesheets/sections/tree.scss
+17
-26
_tree.html.haml
app/views/projects/tree/_tree.html.haml
+1
-1
_tree_item.html.haml
app/views/projects/tree/_tree_item.html.haml
+1
-1
No files found.
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
95875061
...
...
@@ -62,6 +62,5 @@ $baseLineHeight: 18px !default;
@import
"gitlab_bootstrap/buttons.scss"
;
@import
"gitlab_bootstrap/blocks.scss"
;
@import
"gitlab_bootstrap/files.scss"
;
@import
"gitlab_bootstrap/tables.scss"
;
@import
"gitlab_bootstrap/lists.scss"
;
@import
"gitlab_bootstrap/forms.scss"
;
app/assets/stylesheets/gitlab_bootstrap/files.scss
View file @
95875061
...
...
@@ -6,6 +6,10 @@
border
:
1px
solid
#CCC
;
margin-bottom
:
1em
;
table
{
@extend
.table
;
}
.file-title
{
border-bottom
:
1px
solid
#bbb
;
@include
bg-dark-gray-gradient
;
...
...
app/assets/stylesheets/gitlab_bootstrap/mixins.scss
View file @
95875061
...
...
@@ -95,6 +95,14 @@
font-size
:
14px
;
line-height
:
1
.5
;
}
table
{
@extend
.table
;
@extend
.table-bordered
;
th
{
background
:
#EEE
;
}
}
}
@mixin
page-title
{
...
...
app/assets/stylesheets/gitlab_bootstrap/tables.scss
deleted
100644 → 0
View file @
550c1828
table
{
@extend
.table
;
@extend
.table-striped
;
border
:
1px
solid
#CCC
;
width
:
100%
;
&
.low
{
td
{
line-height
:
18px
;
}
}
&
.headless
{
tr
:first-child
td
{
border-top
:
1px
solid
#CCC
;
}
}
th
{
font-weight
:
normal
;
font-size
:
15px
;
vertical-align
:
middle
;
border-bottom
:
1px
solid
#CCC
;
text-shadow
:
0
1px
1px
#fff
;
ul
.nav
{
text-shadow
:
none
;
margin
:
0
;
}
}
th
,
td
{
padding
:
10px
;
line-height
:
18px
;
text-align
:
left
;
}
td
{
border-color
:
#f1f1f1
;
line-height
:
28px
;
.s16
{
margin-top
:
5px
;
margin-right
:
5px
;
}
&
:first-child
{
border-left
:
1px
solid
#CCC
;
}
&
:last-child
{
border-right
:
1px
solid
#CCC
;
}
}
&
.bordered
{
@extend
.table-bordered
;
}
&
.lite
{
border
:
none
;
box-shadow
:
none
;
tr
,
td
{
border
:
none
;
background
:none
!
important
;
}
}
}
app/assets/stylesheets/sections/tree.scss
View file @
95875061
...
...
@@ -13,13 +13,21 @@
}
.tree-table
{
@extend
.table
;
@include
border-radius
(
0
);
.tree-item
{
td
{
tr
{
td
,
th
{
padding
:
8px
10px
;
strong
{
font-weight
:
normal
;
}
line-height
:
20px
;
}
th
{
font-weight
:
normal
;
font-size
:
15px
;
border-bottom
:
1px
solid
#CCC
;
}
td
{
border-color
:
#F1F1F1
;
}
&
:hover
{
td
{
...
...
@@ -29,12 +37,11 @@
}
cursor
:
pointer
;
}
&
.selected
{
td
{
background
:
$hover
;
border-top
:
1px
solid
#
ADF
;
border-bottom
:
1px
solid
#
ADF
;
background
:
#f5f5f5
;
border-top
:
1px
solid
#
EEE
;
border-bottom
:
1px
solid
#
EEE
;
}
}
}
...
...
@@ -56,21 +63,6 @@
}
}
.tree-table
{
border
:
none
;
th
.btn
{
margin
:
-2px
-1px
;
padding
:
2px
10px
;
}
td
{
line-height
:
20px
;
background
:
#fff
;
border-left
:
none
;
border-right
:
none
;
}
}
.tree_author
{
padding-right
:
8px
;
...
...
@@ -125,4 +117,4 @@
.tree-ref-holder
{
float
:
left
;
margin-top
:
5px
;
}
\ No newline at end of file
}
app/views/projects/tree/_tree.html.haml
View file @
95875061
...
...
@@ -26,7 +26,7 @@
=
link_to
@commit
.
short_id
,
project_commit_path
(
@project
,
@commit
)
–
=
truncate
(
@commit
.
title
,
length:
50
)
%th
=
link_to
"history"
,
project_commits_path
(
@project
,
@id
),
class:
"
btn btn-tiny
pull-right"
%th
=
link_to
"history"
,
project_commits_path
(
@project
,
@id
),
class:
"pull-right"
-
if
tree
.
up_dir?
%tr
.tree-item
...
...
app/views/projects/tree/_tree_item.html.haml
View file @
95875061
%tr
{
class:
"tree-item #{tree_hex_class(tree_item)}"
}
%td
.tree-item-file-name
=
tree_icon
(
type
)
%s
trong
=
link_to
truncate
(
tree_item
.
name
,
length:
40
),
project_tree_path
(
@project
,
tree_join
(
@id
||
@commit
.
id
,
tree_item
.
name
))
%s
pan
=
link_to
truncate
(
tree_item
.
name
,
length:
40
),
project_tree_path
(
@project
,
tree_join
(
@id
||
@commit
.
id
,
tree_item
.
name
))
%td
.tree_time_ago.cgray
%span
.log_loading.hide
Loading commit data...
...
...
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