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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
cd36f293
Commit
cd36f293
authored
Jun 08, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve button margin for btn-grouped css class
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
bf9e4826
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
30 deletions
+24
-30
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+19
-23
app/views/groups/group_members/_group_member.html.haml
app/views/groups/group_members/_group_member.html.haml
+1
-1
app/views/projects/project_members/_project_member.html.haml
app/views/projects/project_members/_project_member.html.haml
+1
-1
app/views/shared/milestones/_milestone.html.haml
app/views/shared/milestones/_milestone.html.haml
+3
-5
No files found.
app/assets/stylesheets/framework/buttons.scss
View file @
cd36f293
...
...
@@ -79,6 +79,23 @@
@include
btn-color
(
$white-light
,
$border-color
,
$white-normal
,
$border-white-normal
,
$white-dark
,
$border-white-dark
,
$btn-white-active
);
}
@mixin
btn-with-margin
{
margin-left
:
$btn-side-margin
;
float
:
left
;
&
.inline
{
float
:
none
;
}
&
.btn-sm
{
margin-left
:
$btn-sm-side-margin
;
}
&
.btn-xs
{
margin-left
:
$btn-xs-side-margin
;
}
}
.btn
{
@include
btn-default
;
@include
btn-white
;
...
...
@@ -142,24 +159,7 @@
}
&
.btn-grouped
{
margin-right
:
$btn-side-margin
;
float
:
left
;
&
.inline
{
float
:
none
;
}
&
:last-child
{
margin-right
:
0
;
}
&
.btn-sm
{
margin-right
:
$btn-sm-side-margin
;
}
&
.btn-xs
{
margin-right
:
$btn-xs-side-margin
;
}
@include
btn-with-margin
;
}
&
.disabled
{
...
...
@@ -203,11 +203,7 @@
.btn-group
{
&
.btn-grouped
{
margin-right
:
7px
;
float
:
left
;
&
:last-child
{
margin-right
:
0
;
}
@include
btn-with-margin
;
}
}
...
...
app/views/groups/group_members/_group_member.html.haml
View file @
cd36f293
...
...
@@ -34,7 +34,7 @@
%strong
.member-access-level
=
member
.
human_access
-
if
show_controls
-
if
can?
(
current_user
,
:update_group_member
,
member
)
=
button_tag
class:
"btn-xs btn js-toggle-button"
,
=
button_tag
class:
"btn-xs btn
btn-grouped inline
js-toggle-button"
,
title:
'Edit access level'
,
type:
'button'
do
=
icon
(
'pencil'
)
...
...
app/views/projects/project_members/_project_member.html.haml
View file @
cd36f293
...
...
@@ -32,7 +32,7 @@
.pull-right
%strong
=
member
.
human_access
-
if
can?
(
current_user
,
:update_project_member
,
member
)
=
button_tag
class:
"btn-xs btn js-toggle-button"
,
=
button_tag
class:
"btn-xs btn
-grouped inline btn
js-toggle-button"
,
title:
'Edit access level'
,
type:
'button'
do
=
icon
(
'pencil'
)
...
...
app/views/shared/milestones/_milestone.html.haml
View file @
cd36f293
...
...
@@ -35,11 +35,9 @@
.col-sm-6
=
render
(
'shared/milestone_expired'
,
milestone:
milestone
)
.col-sm-6
-
if
can?
(
current_user
,
:admin_milestone
,
milestone
.
project
)
and
milestone
.
active?
=
link_to
edit_namespace_project_milestone_path
(
milestone
.
project
.
namespace
,
milestone
.
project
,
milestone
),
class:
"btn btn-xs"
do
=
icon
(
'pencil-square-o'
)
=
link_to
edit_namespace_project_milestone_path
(
milestone
.
project
.
namespace
,
milestone
.
project
,
milestone
),
class:
"btn btn-xs btn-grouped"
do
Edit
\
=
link_to
'Close Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
remote:
true
,
class:
"btn btn-xs btn-close"
=
link_to
namespace_project_milestone_path
(
milestone
.
project
.
namespace
,
milestone
.
project
,
milestone
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-xs btn-remove"
do
=
icon
(
'trash-o'
)
=
link_to
'Close Milestone'
,
namespace_project_milestone_path
(
@project
.
namespace
,
@project
,
milestone
,
milestone:
{
state_event: :close
}),
method: :put
,
remote:
true
,
class:
"btn btn-xs btn-close btn-grouped"
=
link_to
namespace_project_milestone_path
(
milestone
.
project
.
namespace
,
milestone
.
project
,
milestone
),
data:
{
confirm:
'Are you sure?'
},
method: :delete
,
class:
"btn btn-xs btn-remove btn-grouped"
do
Delete
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