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
4f0a9beb
Commit
4f0a9beb
authored
Sep 09, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ui-improvements' into 'master'
Ui improvements * allow containers without bg and border * style twbs panels See merge request !1270
parents
afb68d2d
960a1880
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
62 additions
and
15 deletions
+62
-15
gl_bootstrap.scss
app/assets/stylesheets/base/gl_bootstrap.scss
+18
-2
gl_variables.scss
app/assets/stylesheets/base/gl_variables.scss
+6
-5
buttons.scss
app/assets/stylesheets/generic/buttons.scss
+1
-1
sidebar.scss
app/assets/stylesheets/generic/sidebar.scss
+7
-1
page_layout_helper.rb
app/helpers/page_layout_helper.rb
+22
-0
edit.html.haml
app/views/groups/edit.html.haml
+1
-0
_page.html.haml
app/views/layouts/_page.html.haml
+1
-1
show.html.haml
app/views/profiles/preferences/show.html.haml
+2
-2
edit.html.haml
app/views/projects/edit.html.haml
+4
-3
No files found.
app/assets/stylesheets/base/gl_bootstrap.scss
View file @
4f0a9beb
...
...
@@ -156,10 +156,16 @@
* Add some extra stuff to panels
*
*/
.container-blank
.panel
.panel-heading
{
font-size
:
17px
;
line-height
:
38px
;
}
.panel
{
.panel-heading
{
font-weight
:
bold
;
box-shadow
:
none
;
.panel-heading
{
.panel-head-actions
{
position
:
relative
;
top
:
-5px
;
...
...
@@ -182,6 +188,10 @@
.pagination
{
margin
:
0
;
}
.btn
{
min-width
:
124px
;
}
}
&
.panel-small
{
...
...
@@ -209,6 +219,12 @@
}
}
.alert-help
{
background-color
:
$background-color
;
border
:
1px
solid
$border-color
;
color
:
$gl-gray
;
}
// Typography =================================================================
.text-primary
,
...
...
app/assets/stylesheets/base/gl_variables.scss
View file @
4f0a9beb
...
...
@@ -114,11 +114,12 @@ $alert-border-radius: 0;
//
//##
$panel-border-radius
:
0
;
$panel-default-text
:
$text-color
;
$panel-default-border
:
#E7E9ED
;
$panel-default-heading-bg
:
#F8FAFC
;
$panel-border-radius
:
2px
;
$panel-default-text
:
$text-color
;
$panel-default-border
:
$border-color
;
$panel-default-heading-bg
:
$background-color
;
$panel-footer-bg
:
$background-color
;
$panel-inner-border
:
$border-color
;
//== Wells
//
...
...
app/assets/stylesheets/generic/buttons.scss
View file @
4f0a9beb
...
...
@@ -10,7 +10,7 @@
}
&
.btn-save
{
@extend
.btn-
primary
;
@extend
.btn-
success
;
}
&
.btn-remove
{
...
...
app/assets/stylesheets/generic/sidebar.scss
View file @
4f0a9beb
...
...
@@ -28,12 +28,18 @@
padding
:
$gl-padding
;
border
:
1px
solid
#e7e9ed
;
min-height
:
90vh
;
&
.container-blank
{
background
:
none
;
padding
:
0
;
border
:
none
;
}
}
}
.nav-sidebar
{
margin-top
:
14
+
$header-height
;
margin-bottom
:
5
0px
;
margin-bottom
:
10
0px
;
transition-duration
:
.3s
;
list-style
:
none
;
overflow
:
hidden
;
...
...
app/helpers/page_layout_helper.rb
View file @
4f0a9beb
...
...
@@ -31,4 +31,26 @@ module PageLayoutHelper
@fluid_layout
end
end
def
blank_container
(
enabled
=
false
)
if
@blank_container
.
nil?
@blank_container
=
enabled
else
@blank_container
end
end
def
container_class
css_class
=
"container-fluid"
if
fluid_layout
css_class
+=
" container-limited"
end
if
blank_container
css_class
+=
" container-blank"
end
css_class
end
end
app/views/groups/edit.html.haml
View file @
4f0a9beb
-
@blank_container
=
true
.panel.panel-default
.panel-heading
%strong
=
@group
.
name
...
...
app/views/layouts/_page.html.haml
View file @
4f0a9beb
...
...
@@ -19,7 +19,7 @@
=
current_user
.
username
.content-wrapper
=
render
"layouts/flash"
%div
{
class:
fluid_layout
?
"container-fluid"
:
"container-fluid container-limited"
}
%div
{
class:
container_class
}
.content
.clearfix
=
yield
app/views/profiles/preferences/show.html.haml
View file @
4f0a9beb
-
page_title
'Preferences'
-
header_title
page_title
,
profile_preferences_path
-
@blank_container
=
true
.
gray-content-block.top-block
.
alert.alert-help
These settings allow you to customize the appearance and behavior of the site.
They are saved with your account and will persist to any device you use to
access the site.
.prepend-top-default
=
form_for
@user
,
url:
profile_preferences_path
,
remote:
true
,
method: :put
,
html:
{
class:
'js-preferences-form form-horizontal'
}
do
|
f
|
.panel.panel-default.application-theme
...
...
app/views/projects/edit.html.haml
View file @
4f0a9beb
-
@blank_container
=
true
.project-edit-container
.project-edit-errors
.project-edit-content
%div
%h3
.page-title
.panel.panel-default
.panel-heading
Project settings
%hr
.panel-body
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
multipart:
true
,
class:
"edit_project form-horizontal fieldset-form"
},
authenticity_token:
true
do
|
f
|
...
...
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