Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
aac3736e
Commit
aac3736e
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
fixes
#3845
: add .btn-link for transparent buttons styled as links
parent
cb1a59ca
7 merge requests
!4427
Use variable for desktop media query
,
!4258
Aria
,
!4248
Amended mentions of 'javascript' to the correct 'JavaScript'
,
!4235
Patch 1
,
!4232
Fixing the modal z-index issue + make modal stacking possible
,
!4213
2.1.0 wip
,
!4165
Patch 2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/assets/css/bootstrap.css
+20
-0
docs/assets/css/bootstrap.css
docs/assets/css/docs.css
+2
-2
docs/assets/css/docs.css
docs/base-css.html
+13
-6
docs/base-css.html
docs/templates/pages/base-css.mustache
+5
-0
docs/templates/pages/base-css.mustache
less/buttons.less
+24
-0
less/buttons.less
with
64 additions
and
8 deletions
+64
-8
docs/assets/css/bootstrap.css
+
20
-
0
View file @
aac3736e
...
@@ -3175,6 +3175,26 @@ input[type="submit"].btn.btn-mini {
...
@@ -3175,6 +3175,26 @@ input[type="submit"].btn.btn-mini {
*
padding-bottom
:
1px
;
*
padding-bottom
:
1px
;
}
}
.btn-link
{
color
:
#0088cc
;
cursor
:
pointer
;
background-color
:
transparent
;
background-image
:
none
;
border-color
:
transparent
;
-webkit-border-radius
:
0
;
-moz-border-radius
:
0
;
border-radius
:
0
;
-webkit-box-shadow
:
none
;
-moz-box-shadow
:
none
;
box-shadow
:
none
;
}
.btn-link
:hover
{
color
:
#005580
;
text-decoration
:
underline
;
background-color
:
transparent
;
}
.btn-group
{
.btn-group
{
position
:
relative
;
position
:
relative
;
*
margin-left
:
.3em
;
*
margin-left
:
.3em
;
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.css
+
2
-
2
View file @
aac3736e
...
@@ -93,7 +93,7 @@ hr.soften {
...
@@ -93,7 +93,7 @@ hr.soften {
padding
:
40px
0
;
padding
:
40px
0
;
color
:
#fff
;
color
:
#fff
;
text-align
:
center
;
text-align
:
center
;
text-shadow
:
0
1px
5
px
rgba
(
0
,
0
,
0
,
.
3
),
0
0
30px
rgba
(
0
,
0
,
0
,
.075
);
text-shadow
:
0
1px
3
px
rgba
(
0
,
0
,
0
,
.
4
),
0
0
30px
rgba
(
0
,
0
,
0
,
.075
);
background
:
#020031
;
/* Old browsers */
background
:
#020031
;
/* Old browsers */
background
:
-moz-linear-gradient
(
45deg
,
#020031
0%
,
#6d3353
100%
);
/* FF3.6+ */
background
:
-moz-linear-gradient
(
45deg
,
#020031
0%
,
#6d3353
100%
);
/* FF3.6+ */
background
:
-webkit-gradient
(
linear
,
left
bottom
,
right
top
,
color-stop
(
0%
,
#020031
),
color-stop
(
100%
,
#6d3353
));
/* Chrome,Safari4+ */
background
:
-webkit-gradient
(
linear
,
left
bottom
,
right
top
,
color-stop
(
0%
,
#020031
),
color-stop
(
100%
,
#6d3353
));
/* Chrome,Safari4+ */
...
@@ -146,7 +146,7 @@ hr.soften {
...
@@ -146,7 +146,7 @@ hr.soften {
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
background
:
url(../img/bs-docs-masthead-pattern.png)
repeat
center
center
;
background
:
url(../img/bs-docs-masthead-pattern.png)
repeat
center
center
;
opacity
:
.
5
;
opacity
:
.
3
;
}
}
/* Masthead (docs home)
/* Masthead (docs home)
...
...
This diff is collapsed.
Click to expand it.
docs/base-css.html
+
13
-
6
View file @
aac3736e
...
@@ -712,12 +712,14 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -712,12 +712,14 @@ For example, <code>section</code> should be wrapped as inline.
</table>
</table>
</div>
</div>
<pre
class=
"prettyprint linenums"
>
<pre
class=
"prettyprint linenums"
>
<
tr class="success"
>
...
<
td
>
1
<
/td
>
<
tr class="success"
>
<
td
>
TB - Monthly
<
/td
>
<
td
>
1
<
/td
>
<
td
>
01/04/2012
<
/td
>
<
td
>
TB - Monthly
<
/td
>
<
td
>
Approved
<
/td
>
<
td
>
01/04/2012
<
/td
>
<
/tr
>
<
td
>
Approved
<
/td
>
<
/tr
>
...
</pre>
</pre>
...
@@ -1423,6 +1425,11 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -1423,6 +1425,11 @@ For example, <code>section</code> should be wrapped as inline.
<td><code>
btn btn-inverse
</code></td>
<td><code>
btn btn-inverse
</code></td>
<td>
Alternate dark gray button, not tied to a semantic action or use
</td>
<td>
Alternate dark gray button, not tied to a semantic action or use
</td>
</tr>
</tr>
<tr>
<td><button
type=
"button"
class=
"btn btn-link"
>
Link
</button></td>
<td><code>
btn btn-link
</code></td>
<td>
Deemphasize a button by making it look like a link while maintaining button behavior
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
This diff is collapsed.
Click to expand it.
docs/templates/pages/base-css.mustache
+
5
-
0
View file @
aac3736e
...
@@ -1362,6 +1362,11 @@
...
@@ -1362,6 +1362,11 @@
<td><code>
btn btn-inverse
</code></td>
<td><code>
btn btn-inverse
</code></td>
<td>
{{
_i
}}
Alternate dark gray button, not tied to a semantic action or use
{{/
i
}}
</td>
<td>
{{
_i
}}
Alternate dark gray button, not tied to a semantic action or use
{{/
i
}}
</td>
</tr>
</tr>
<tr>
<td><button
type=
"button"
class=
"btn btn-link"
>
{{
_i
}}
Link
{{/
i
}}
</button></td>
<td><code>
btn btn-link
</code></td>
<td>
{{
_i
}}
Deemphasize a button by making it look like a link while maintaining button behavior
{{/
i
}}
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
This diff is collapsed.
Click to expand it.
less/buttons.less
+
24
-
0
View file @
aac3736e
...
@@ -173,3 +173,27 @@ input[type="submit"].btn {
...
@@ -173,3 +173,27 @@ input[type="submit"].btn {
*padding-bottom: 1px;
*padding-bottom: 1px;
}
}
}
}
// Link buttons
// --------------------------------------------------
// Make a button look and behave like a link
.btn-link {
background-color: transparent;
background-image: none;
border-color: transparent;
cursor: pointer;
color: @linkColor;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.btn-link:hover {
color: @linkColorHover;
text-decoration: underline;
background-color: transparent;
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets