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
451a642a
Commit
451a642a
authored
Feb 09, 2012
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a black/dark button
parent
b36a744f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+5
-0
less/buttons.less
less/buttons.less
+9
-2
No files found.
docs/templates/pages/base-css.mustache
View file @
451a642a
...
@@ -1205,6 +1205,11 @@
...
@@ -1205,6 +1205,11 @@
<td><a
class=
"btn btn-danger"
href=
"#"
>
{{
_i
}}
Danger
{{/
i
}}
</a></td>
<td><a
class=
"btn btn-danger"
href=
"#"
>
{{
_i
}}
Danger
{{/
i
}}
</a></td>
<td><code>
.btn-danger
</code></td>
<td><code>
.btn-danger
</code></td>
<td>
{{
_i
}}
Indicates a dangerous or potentially negative action
{{/
i
}}
</td>
<td>
{{
_i
}}
Indicates a dangerous or potentially negative action
{{/
i
}}
</td>
</tr>
<tr>
<td><a
class=
"btn btn-dark"
href=
"#"
>
{{
_i
}}
Dark
{{/
i
}}
</a></td>
<td><code>
.btn-dark
</code></td>
<td>
{{
_i
}}
Indicates a potential abort or black magic
{{/
i
}}
</td>
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
...
...
less/buttons.less
View file @
451a642a
...
@@ -107,7 +107,9 @@
...
@@ -107,7 +107,9 @@
.btn-success,
.btn-success,
.btn-success:hover,
.btn-success:hover,
.btn-info,
.btn-info,
.btn-info:hover {
.btn-info:hover,
.btn-dark,
.btn-dark:hover {
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
color: @white;
color: @white;
}
}
...
@@ -116,7 +118,8 @@
...
@@ -116,7 +118,8 @@
.btn-warning.active,
.btn-warning.active,
.btn-danger.active,
.btn-danger.active,
.btn-success.active,
.btn-success.active,
.btn-info.active {
.btn-info.active,
.btn-dark.active {
color: rgba(255,255,255,.75);
color: rgba(255,255,255,.75);
}
}
...
@@ -141,6 +144,10 @@
...
@@ -141,6 +144,10 @@
.btn-info {
.btn-info {
.buttonBackground(#5bc0de, #2f96b4);
.buttonBackground(#5bc0de, #2f96b4);
}
}
// Dark appears as black
.btn-dark {
.buttonBackground(#454545, #262626);
}
// Cross-browser Jank
// Cross-browser Jank
...
...
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