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
iv
gitlab-ce
Commits
b8f6d67b
Commit
b8f6d67b
authored
Aug 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle buttons
parent
0be06215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
53 deletions
+75
-53
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
+75
-53
No files found.
app/assets/stylesheets/gitlab_bootstrap/buttons.scss
View file @
b8f6d67b
.btn
{
.btn
{
display
:
inline-block
;
padding
:
6px
12px
;
margin-bottom
:
0
;
font-size
:
13px
;
line-height
:
$baseLineHeight
;
text-align
:
center
;
vertical-align
:
middle
;
cursor
:
pointer
;
border
:
1px
solid
#BBB
;
color
:
$style_color
;
@include
border-radius
(
$baseBorderRadius
);
@include
box-shadow
(
inset
0
1px
0
rgba
(
255
,
255
,
255
,.
2
));
@include
linear-gradient
(
#f1f1f1
,
#e1e1e1
);
@include
linear-gradient
(
#f1f1f1
,
#e1e1e1
);
text-shadow
:
0
1px
1px
#FFF
;
text-shadow
:
0
1px
1px
#FFF
;
border-color
:
#BBB
;
text-decoration
:
none
;
&
.hover
,
&
:hover
{
&
:hover
{
color
:
$style_color
;
background
:
#f1f1f1
;
background
:
#f1f1f1
;
@include
linear-gradient
(
#fAfAfA
,
#f1f1f1
);
border-color
:
#AAA
;
border-color
:
#AAA
;
color
:
#333
;
text-decoration
:
none
;
@include
linear-gradient
(
#fAfAfA
,
#f1f1f1
);
}
}
&
.btn-primary
{
&
.active
,
background
:
#2a79A3
;
&
:active
{
@include
linear-gradient
(
#47A7b7
,
#2585b5
);
background-image
:
none
;
border-color
:
#2A79A3
;
outline
:
0
;
color
:
#fff
;
@include
box-shadow
(
inset
0
2px
4px
rgba
(
0
,
0
,
0
,.
15
));
text-shadow
:
0
1px
1px
#268
;
&
:hover
{
background
:
$primary_color
;
color
:
#fff
;
}
&
.disabled
{
color
:
#fff
;
background
:
$primary_color
;
}
}
}
&
.btn-info
{
&
.disabled
,
background
:
#5aB9C3
;
&
[
disabled
]
{
border-color
:
$primary_color
;
cursor
:
default
;
color
:
#fff
;
background-image
:
none
;
text-shadow
:
0
1px
1px
#268
;
@include
opacity
(
65
);
&
:hover
{
@include
box-shadow
(
none
);
background
:
$primary_color
;
}
color
:
#fff
;
}
&
.disabled
{
&
.btn-primary
{
color
:
#fff
;
color
:
#FFF
;
background
:
$primary_color
;
border-color
:
#189
;
text-shadow
:
0
1px
1px
#189
;
@include
linear-gradient
(
#4AC
,
#289
);
&
.hover
,
&
:hover
,
&
.disabled
,
&
[
disabled
]
{
color
:
#FFF
;
background
:
#389
;
}
}
}
}
&
.btn-success
{
&
.btn-success
{
&
:hover
{
color
:
#FFF
;
background
:
#51a351
;
border-color
:
#1A1
;
text-shadow
:
0
1px
1px
#FFF
;
text-shadow
:
0
1px
1px
#181
;
@include
linear-gradient
(
#62C452
,
#51a351
);
&
.hover
,
&
:hover
,
&
.disabled
,
&
[
disabled
]
{
color
:
#FFF
;
background
:
#2A2
;
}
}
}
&
.btn-danger
{
color
:
#FFF
;
text-shadow
:
0
1px
1px
#811
;
border-color
:
#BD362F
;
@include
linear-gradient
(
#EE5F5B
,
#BD362F
);
&
.disabled
{
color
:
#fff
;
&
.hover
,
background
:
#2b2
;
&
:hover
,
&
.disabled
,
&
[
disabled
]
{
color
:
#FFF
;
background
:
#A22
;
}
}
}
}
&
.btn-new
{
@extend
.btn-success
;
}
&
.btn-create
{
&
.btn-create
{
@extend
.wide
;
@extend
.wide
;
@extend
.btn-success
;
@extend
.btn-success
;
...
@@ -67,12 +104,6 @@
...
@@ -67,12 +104,6 @@
&
.btn-close
,
&
.btn-close
,
&
.btn-remove
{
&
.btn-remove
{
@extend
.btn-danger
;
@extend
.btn-danger
;
border-color
:
#BD362F
;
&
:hover
{
color
:
#fff
;
background
:
#EE4E49
;
}
}
}
&
.btn-cancel
{
&
.btn-cancel
{
...
@@ -84,13 +115,9 @@
...
@@ -84,13 +115,9 @@
padding-right
:
20px
;
padding-right
:
20px
;
}
}
&
.small
{
&
.btn-small
{
@extend
.btn-small
;
padding
:
2px
10px
;
}
font-size
:
12px
;
&
.active
{
border-color
:
#aaa
;
background-color
:
#ccc
;
}
}
&
.btn-tiny
{
&
.btn-tiny
{
...
@@ -104,9 +131,4 @@
...
@@ -104,9 +131,4 @@
margin-right
:
7px
;
margin-right
:
7px
;
float
:
left
;
float
:
left
;
}
}
&
.padded
{
margin-right
:
3px
;
padding
:
4px
10px
4px
;
}
}
}
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