Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
a16d04e9
Commit
a16d04e9
authored
Jul 10, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new btn-clean style
This removes the background and borders from the button.
parent
291a1294
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
forms.scss
h/static/styles/forms.scss
+31
-4
No files found.
h/static/styles/forms.scss
View file @
a16d04e9
...
@@ -144,39 +144,66 @@
...
@@ -144,39 +144,66 @@
}
}
}
}
// Allows buttons to be positioned explicitly.
.form-actions-left
{
float
:
left
;
}
.form-actions-right
{
float
:
right
;
}
.btn
{
.btn
{
@include
background
(
linear-gradient
(
top
,
#fff
,
#f0f0f0
));
@include
background
(
linear-gradient
(
top
,
#fff
,
#f0f0f0
));
@include
box-shadow
(
0
1px
0
rgba
(
0
,
0
,
0
,
0
.15
));
display
:
inline-block
;
display
:
inline-block
;
font-size
:
13px
;
font-size
:
13px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#585858
;
color
:
#585858
;
text-shadow
:
0
1px
0
#FFF
;
text-shadow
:
0
1px
0
#FFF
;
box-shadow
:
0
1px
0
rgba
(
0
,
0
,
0
,
0
.15
);
border-radius
:
2px
;
border-radius
:
2px
;
border
:
1px
solid
#ACACAC
;
border
:
1px
solid
#ACACAC
;
padding
:
6px
12px
;
padding
:
6px
12px
;
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
@include
box-shadow
(
0
1px
0
rgba
(
0
,
0
,
0
,
0
.05
));
outline
:
none
;
outline
:
none
;
color
:
#585858
;
color
:
#585858
;
background
:
#fff
;
background
:
#fff
;
border-color
:
#bababa
;
border-color
:
#bababa
;
box-shadow
:
0
1px
0
rgba
(
0
,
0
,
0
,
0
.05
);
}
}
&
:active
,
&
.js-active
{
&
:active
,
&
.js-active
{
@include
box-shadow
(
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0
.1
));
background
:
#F0F0F0
;
background
:
#F0F0F0
;
color
:
#424242
;
color
:
#424242
;
border-color
:
#bababa
;
border-color
:
#bababa
;
box-shadow
:
inset
0
1px
0
rgba
(
0
,
0
,
0
,
0
.1
);
}
}
&
[
disabled
],
&
.js-disabled
{
&
[
disabled
],
&
.js-disabled
{
@include
box-shadow
(
none
);
cursor
:
default
;
cursor
:
default
;
background
:
#F0F0F0
;
background
:
#F0F0F0
;
box-shadow
:
none
;
border-color
:
#CECECE
;
border-color
:
#CECECE
;
color
:
#999
;
color
:
#999
;
}
}
}
}
.btn-clean
{
&
,
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
@include
box-shadow
(
none
);
padding-left
:
0
;
padding-right
:
0
;
background
:
none
;
border-color
:
transparent
;
}
&
:focus
,
&
:hover
,
&
:active
,
&
.js-hover
,
&
.js-focus
,
&
.js-active
{
color
:
$linkColor
;
}
&
:active
,
&
.js-active
{
color
:
$linkColorHover
;
}
}
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