Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
bootstrap
Commits
68e4d897
Commit
68e4d897
authored
Aug 09, 2015
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shoutout to outline buttons
parent
91d23666
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
docs/components/buttons.md
docs/components/buttons.md
+13
-0
scss/_buttons.scss
scss/_buttons.scss
+6
-0
No files found.
docs/components/buttons.md
View file @
68e4d897
...
@@ -54,6 +54,19 @@ When using button classes on `<a>` elements that are used to trigger in-page fun
...
@@ -54,6 +54,19 @@ When using button classes on `<a>` elements that are used to trigger in-page fun
<input
class=
"btn btn-primary"
type=
"submit"
value=
"Submit"
>
<input
class=
"btn btn-primary"
type=
"submit"
value=
"Submit"
>
{% endexample %}
{% endexample %}
## Outline buttons
In need of a button, but not the hefty background colors they bring? Add the
`.btn-outline`
modifier class to remove all background images and colors on any button.
{% example html %}
<button
type=
"button"
class=
"btn btn-primary btn-outline"
>
Primary
</button>
<button
type=
"button"
class=
"btn btn-secondary btn-outline"
>
Secondary
</button>
<button
type=
"button"
class=
"btn btn-success btn-outline"
>
Success
</button>
<button
type=
"button"
class=
"btn btn-warning btn-outline"
>
Warning
</button>
<button
type=
"button"
class=
"btn btn-danger btn-outline"
>
Danger
</button>
{% endexample %}
## Sizes
## Sizes
Fancy larger or smaller buttons? Add
`.btn-lg`
,
`.btn-sm`
, or
`.btn-xs`
for additional sizes.
Fancy larger or smaller buttons? Add
`.btn-lg`
,
`.btn-sm`
, or
`.btn-xs`
for additional sizes.
...
...
scss/_buttons.scss
View file @
68e4d897
...
@@ -82,6 +82,12 @@ fieldset[disabled] a.btn {
...
@@ -82,6 +82,12 @@ fieldset[disabled] a.btn {
@include
button-variant
(
$btn-danger-color
,
$btn-danger-bg
,
$btn-danger-border
);
@include
button-variant
(
$btn-danger-color
,
$btn-danger-bg
,
$btn-danger-border
);
}
}
// Remove all backgrounds
.btn-outline
{
background-color
:
$body-bg
;
background-image
:
transparent
;
}
//
//
// Link buttons
// Link buttons
...
...
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