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
1e9b4506
Commit
1e9b4506
authored
Jul 27, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add image styles, for now to scaffolding (soon to own file)
parent
64741907
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
100 additions
and
0 deletions
+100
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+22
-0
docs/assets/css/docs.css
docs/assets/css/docs.css
+6
-0
docs/base-css.html
docs/base-css.html
+25
-0
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+25
-0
less/scaffolding.less
less/scaffolding.less
+22
-0
No files found.
docs/assets/css/bootstrap.css
View file @
1e9b4506
...
...
@@ -175,6 +175,28 @@ a:hover {
text-decoration
:
underline
;
}
.img-rounded
{
-webkit-border-radius
:
6px
;
-moz-border-radius
:
6px
;
border-radius
:
6px
;
}
.img-polaroid
{
padding
:
4px
;
background-color
:
#fff
;
border
:
1px
solid
#ccc
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.2
);
-webkit-box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
-moz-box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.1
);
}
.img-circle
{
-webkit-border-radius
:
500px
;
-moz-border-radius
:
500px
;
border-radius
:
500px
;
}
.row
{
margin-left
:
-20px
;
*
zoom
:
1
;
...
...
docs/assets/css/docs.css
View file @
1e9b4506
...
...
@@ -632,6 +632,12 @@ form.bs-docs-example {
line-height
:
24px
;
}
/* Images */
.bs-docs-example-images
img
{
margin
:
10px
;
display
:
inline-block
;
}
/* Tooltips */
.bs-docs-tooltip-examples
{
text-align
:
center
;
...
...
docs/base-css.html
View file @
1e9b4506
...
...
@@ -92,6 +92,7 @@
<li><a
href=
"#tables"
>
Tables
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#forms"
>
Forms
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#buttons"
>
Buttons
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#images"
>
Images
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#icons"
>
Icons by Glyphicons
<i
class=
"icon-chevron-right"
></i></a></li>
</ul>
</div>
...
...
@@ -1517,6 +1518,30 @@ For example, <code>section</code> should be wrapped as inline.
<!-- Images
================================================== -->
<section
id=
"images"
>
<div
class=
"page-header"
>
<h1>
Images
</h1>
</div>
<p>
Simple classes to easily style images in any project.
</p>
<div
class=
"bs-docs-example bs-docs-example-images"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-rounded"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-circle"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-polaroid"
>
</div>
<pre
class=
"prettyprint linenums"
>
<
img src="..." class="img-rounded"
>
<
img src="..." class="img-circle"
>
<
img src="..." class="img-polaroid"
>
</pre>
</section>
<!-- Icons
================================================== -->
<section
id=
"icons"
>
...
...
docs/templates/pages/base-css.mustache
View file @
1e9b4506
...
...
@@ -21,6 +21,7 @@
<li><a
href=
"#tables"
>
{{
_i
}}
Tables
{{/
i
}}
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#forms"
>
{{
_i
}}
Forms
{{/
i
}}
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#buttons"
>
{{
_i
}}
Buttons
{{/
i
}}
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#images"
>
{{
_i
}}
Images
{{/
i
}}
<i
class=
"icon-chevron-right"
></i></a></li>
<li><a
href=
"#icons"
>
{{
_i
}}
Icons by Glyphicons
{{/
i
}}
<i
class=
"icon-chevron-right"
></i></a></li>
</ul>
</div>
...
...
@@ -1454,6 +1455,30 @@
<!-- Images
================================================== -->
<section
id=
"images"
>
<div
class=
"page-header"
>
<h1>
{{
_i
}}
Images
{{/
i
}}
</h1>
</div>
<p>
Simple classes to easily style images in any project.
</p>
<div
class=
"bs-docs-example bs-docs-example-images"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-rounded"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-circle"
>
<img
src=
"http://placehold.it/140x140"
class=
"img-polaroid"
>
</div>
<pre
class=
"prettyprint linenums"
>
<
img src="..." class="img-rounded"
>
<
img src="..." class="img-circle"
>
<
img src="..." class="img-polaroid"
>
</pre>
</section>
<!-- Icons
================================================== -->
<section
id=
"icons"
>
...
...
less/scaffolding.less
View file @
1e9b4506
...
...
@@ -27,3 +27,25 @@ a:hover {
color: @linkColorHover;
text-decoration: underline;
}
// Images
// -------------------------
.img-rounded {
.border-radius(6px);
}
.img-polaroid {
padding: 4px;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,.1);
box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.img-circle {
.border-radius(500px);
}
\ No newline at end of file
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