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
0dea8b0c
Commit
0dea8b0c
authored
Feb 28, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6897: Print styles get own .less file
parent
9d763e80
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
126 additions
and
125 deletions
+126
-125
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+53
-53
docs/customize.html
docs/customize.html
+1
-0
less/bootstrap.less
less/bootstrap.less
+3
-2
less/print.less
less/print.less
+69
-0
less/scaffolding.less
less/scaffolding.less
+0
-70
No files found.
docs/assets/css/bootstrap.css
View file @
0dea8b0c
/*!
* Bootstrap v3.0.0
*
* Copyright 201
2
Twitter, Inc
* Copyright 201
3
Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
...
...
@@ -218,6 +218,58 @@ table {
border-spacing
:
0
;
}
@media
print
{
*
{
color
:
#000
!important
;
text-shadow
:
none
!important
;
background
:
transparent
!important
;
box-shadow
:
none
!important
;
}
a
,
a
:visited
{
text-decoration
:
underline
;
}
a
[
href
]
:after
{
content
:
" ("
attr
(
href
)
")"
;
}
abbr
[
title
]
:after
{
content
:
" ("
attr
(
title
)
")"
;
}
.ir
a
:after
,
a
[
href
^=
"javascript:"
]
:after
,
a
[
href
^=
"#"
]
:after
{
content
:
""
;
}
pre
,
blockquote
{
border
:
1px
solid
#999
;
page-break-inside
:
avoid
;
}
thead
{
display
:
table-header-group
;
}
tr
,
img
{
page-break-inside
:
avoid
;
}
img
{
max-width
:
100%
!important
;
}
@page
{
margin
:
0.5cm
;
}
p
,
h2
,
h3
{
orphans
:
3
;
widows
:
3
;
}
h2
,
h3
{
page-break-after
:
avoid
;
}
}
html
{
font-size
:
62.5%
;
-webkit-overflow-scrolling
:
touch
;
...
...
@@ -283,58 +335,6 @@ img {
border-radius
:
500px
;
}
@media
print
{
*
{
color
:
#000
!important
;
text-shadow
:
none
!important
;
background
:
transparent
!important
;
box-shadow
:
none
!important
;
}
a
,
a
:visited
{
text-decoration
:
underline
;
}
a
[
href
]
:after
{
content
:
" ("
attr
(
href
)
")"
;
}
abbr
[
title
]
:after
{
content
:
" ("
attr
(
title
)
")"
;
}
.ir
a
:after
,
a
[
href
^=
"javascript:"
]
:after
,
a
[
href
^=
"#"
]
:after
{
content
:
""
;
}
pre
,
blockquote
{
border
:
1px
solid
#999
;
page-break-inside
:
avoid
;
}
thead
{
display
:
table-header-group
;
}
tr
,
img
{
page-break-inside
:
avoid
;
}
img
{
max-width
:
100%
!important
;
}
@page
{
margin
:
0.5cm
;
}
p
,
h2
,
h3
{
orphans
:
3
;
widows
:
3
;
}
h2
,
h3
{
page-break-after
:
avoid
;
}
}
p
{
margin
:
0
0
10px
;
}
...
...
docs/customize.html
View file @
0dea8b0c
...
...
@@ -44,6 +44,7 @@ title: Customize and download
<div
class=
"span3"
>
<h3>
Scaffolding
</h3>
<label
class=
"checkbox"
><input
checked=
"checked"
type=
"checkbox"
value=
"reset.less"
>
Normalize and reset
</label>
<label
class=
"checkbox"
><input
checked=
"checked"
type=
"checkbox"
value=
"print.less"
>
Print
</label>
<label
class=
"checkbox"
><input
checked=
"checked"
type=
"checkbox"
value=
"scaffolding.less"
>
Body type and links
</label>
<label
class=
"checkbox"
><input
checked=
"checked"
type=
"checkbox"
value=
"grid.less"
>
Grid system
</label>
<label
class=
"checkbox"
><input
checked=
"checked"
type=
"checkbox"
value=
"layouts.less"
>
Layouts
</label>
...
...
less/bootstrap.less
View file @
0dea8b0c
/*!
* Bootstrap v3.0.0
*
* Copyright 201
2
Twitter, Inc
* Copyright 201
3
Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
...
...
@@ -9,11 +9,12 @@
*/
// Core variables and mixins
@import "variables.less";
// Modify this for custom colors, font-sizes, etc
@import "variables.less";
@import "mixins.less";
// Reset
@import "normalize.less";
@import "print.less";
// Core CSS
@import "scaffolding.less";
...
...
less/print.less
0 → 100644
View file @
0dea8b0c
//
// Basic print styles
// --------------------------------------------------
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
@media print {
* {
text-shadow: none !important;
color: #000 !important; // Black prints faster: h5bp.com/s
background: transparent !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
// Don't show links for images, or javascript/internal links
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group; // h5bp.com/t
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
less/scaffolding.less
View file @
0dea8b0c
...
...
@@ -85,73 +85,3 @@ img {
.img-circle {
border-radius: 500px; // crank the border-radius so it works with most reasonably sized images
}
// Printing
// -------------------------
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
@media print {
* {
text-shadow: none !important;
color: #000 !important; // Black prints faster: h5bp.com/s
background: transparent !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
// Don't show links for images, or javascript/internal links
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group; // h5bp.com/t
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
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