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
b1215d1b
Commit
b1215d1b
authored
Dec 07, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #11193: Add kbd element styles to indicate user input via keyboard
parent
fe58357d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
4 deletions
+42
-4
_includes/nav-css.html
_includes/nav-css.html
+8
-1
css.html
css.html
+11
-2
dist/css/bootstrap.css
dist/css/bootstrap.css
+9
-0
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/code.less
less/code.less
+10
-0
less/variables.less
less/variables.less
+3
-0
No files found.
_includes/nav-css.html
View file @
b1215d1b
...
...
@@ -37,7 +37,14 @@
<li><a
href=
"#type-lists"
>
Lists
</a></li>
</ul>
</li>
<li><a
href=
"#code"
>
Code
</a></li>
<li>
<a
href=
"#code"
>
Code
</a>
<ul
class=
"nav"
>
<li><a
href=
"#code-inline"
>
Inline code
</a></li>
<li><a
href=
"#code-user-input"
>
User input
</a></li>
<li><a
href=
"#code-block"
>
Blocks of code
</a></li>
</ul>
</li>
<li>
<a
href=
"#tables"
>
Tables
</a>
<ul
class=
"nav"
>
...
...
css.html
View file @
b1215d1b
...
...
@@ -1047,7 +1047,7 @@ base_url: "../"
<h1
id=
"code"
>
Code
</h1>
</div>
<h2>
Inline
</h2>
<h2
id=
"code-inline"
>
Inline
</h2>
<p>
Wrap inline snippets of code with
<code>
<
code
>
</code>
.
</p>
<div
class=
"bs-example"
>
For example,
<code>
<
section
>
</code>
should be wrapped as inline.
...
...
@@ -1056,7 +1056,16 @@ base_url: "../"
For example,
<code>
<
section
>
</code>
should be wrapped as inline.
{% endhighlight %}
<h2>
Basic block
</h2>
<h2
id=
"code-user-input"
>
User input
</h2>
<p>
Use the
<code>
<
kbd
>
</code>
to indicate input that is typically entered via keyboard.
</p>
<div
class=
"bs-example"
>
To switch directories, type
<kbd>
cd
</kbd>
followed the name of the directory.
</div>
{% highlight html %}
To switch directories, type
<kbd>
cd
</kbd>
followed the name of the directory.
{% endhighlight %}
<h2
id=
"code-block"
>
Basic block
</h2>
<p>
Use
<code>
<
pre
>
</code>
for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
</p>
<div
class=
"bs-example"
>
<pre>
<
p
>
Sample text here...
<
/p
>
</pre>
...
...
dist/css/bootstrap.css
View file @
b1215d1b
...
...
@@ -753,6 +753,15 @@ code {
border-radius
:
4px
;
}
kbd
{
padding
:
2px
4px
;
font-size
:
90%
;
color
:
#ffffff
;
background-color
:
#333333
;
border-radius
:
3px
;
box-shadow
:
inset
0
-1px
0
rgba
(
0
,
0
,
0
,
0.25
);
}
pre
{
display
:
block
;
padding
:
9.5px
;
...
...
dist/css/bootstrap.min.css
View file @
b1215d1b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/code.less
View file @
b1215d1b
...
...
@@ -21,6 +21,16 @@ code {
border-radius: @border-radius-base;
}
// User input typically entered via keyboard
kbd {
padding: 2px 4px;
font-size: 90%;
color: @kbd-color;
background-color: @kbd-bg;
border-radius: @border-radius-small;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
}
// Blocks of code
pre {
display: block;
...
...
less/variables.less
View file @
b1215d1b
...
...
@@ -602,6 +602,9 @@
@code-color: #c7254e;
@code-bg: #f9f2f4;
@kbd-color: #fff;
@kbd-bg: #333;
@pre-bg: #f5f5f5;
@pre-color: @gray-dark;
@pre-border-color: #ccc;
...
...
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