Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4534841
print.css
Nirzar (Nirzar)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
Nirzar
Sep 29 2016, 12:08 AM
2016-09-29 00:08:26 (UTC+0)
Size
7 KB
Referenced Files
None
Subscribers
None
print.css
View Options
/* pint css */
/* This css files can be applied to any wikipedia article.
Note: remove any other css applied to page. this is the only css needed to print.
*/
/*
- Have some padding and body typeface
- Turn color to pure black. good for printing pure black
*/
body
{
padding
:
10
px
10
px
;
font-family
:
sans-serif
;
color
:
#000
;
}
/* Show branding for only English Wikipedia */
body
:
lang
(
en
)
:
before
{
content
:
" "
;
display
:
block
;
background-image
:
url
(
'https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia_wordmark@2x.png'
);
height
:
20
px
;
background-size
:
120
px
20
px
;
background-repeat
:
no-repeat
;
padding-bottom
:
10
px
;
border-bottom
:
3
px
solid
#ccc
;
}
/* hide on print */
/* Elements to hide
- Interactive elemts
- Elements leading to other websites
- Elemeents which cannot have any action in print format
- Navboxes
- Categories
*/
.
noprint
,
.
mw-indicators
,
#
jump-to-nav
,
.
mw-redirectedfrom
,
.
hatnote
,
#
toc
,
#
mw-navigation
,
#
footer-places
,
.
mw-cite-backlink
,
.
play-btn-large
,
.
mbox-small
,
.
navbox
,
.
catlinks
,
.
mw-editsection
,
#
administrator
,
#
coordinates
.
image
{
display
:
none
;
}
/*
-Normalize Blue links in the article
*/
a
{
color
:
#000
;
text-decoration
:
none
;
border-bottom
:
1
px
dotted
#aaa
;
}
/*
- Basic infobox styling
- Remove background colors, they are hard to print
*/
.
infobox
{
border
:
1
px
solid
#aaa
;
border-spacing
:
3
px
;
background-color
:
#fff
;
border-radius
:
2
px
;
color
:
black
;
margin
:
0.5
em
0
0.5
em
1
em
;
padding
:
0.2
em
;
float
:
right
;
clear
:
right
;
font-size
:
13
px
;
line-height
:
1.5
em
;
}
.
infobox
a
{
border-bottom
:
none
;
}
.
infobox
td
,
.
infobox
th
{
vertical-align
:
top
;
text-align
:
left
;
}
/*
- Main article textual content - sans serif
- 12pt is the most ideal typesize for print and reading
- 18pt line height - ideal for readbility
*/
/* using charter for body type.
Charter is an open source serif typeface specfically designed for legibility and reading
*/
.
mw-body-content
p
{
font-family
:
"Charter"
,
serif
;
font-size
:
12
pt
;
line-height
:
18
pt
;
margin-top
:
10
px
;
}
/* article title separator - print element from classic editorial practices */
#
siteSub
:
after
{
content
:
" "
;
display
:
block
;
width
:
50
px
;
background
:
#666
;
height
:
1
px
;
margin-top
:
15
px
;
}
/* brand */
#
siteSub
{
font-size
:
13
px
;
padding-bottom
:
5
px
;
color
:
#333
;
}
/* header styling
- Big part of typography
- headers should be closer to the next <p> than the <p> before
====TYPOGRAPHY=====
- H1 = 26pt
- H2 = 18pt
- H3 = 14pt
- H4, H5, H6 = 12pt
*/
/* article name */
.
firstHeading
{
font-family
:
serif
;
font-size
:
26
pt
;
line-height
:
32
pt
;
margin-bottom
:
5
px
;
font-weight
:
normal
;
}
.
mw-body-content
h2
{
page-break-before
:
avoid
;
font-family
:
sans-serif
;
font-size
:
18
pt
;
line-height
:
24
pt
;
border-bottom
:
2
px
solid
#000
;
margin-bottom
:
0.25
em
;
padding
:
0
;
overflow
:
hidden
;
display
:
block
;
padding-bottom
:
5
px
;
}
.
mw-body-content
h3
{
font-size
:
14
pt
;
page-break-before
:
avoid
;
font-family
:
sans-serif
;
line-height
:
20
pt
;
position
:
relative
;
padding
:
0
;
display
:
block
;
margin
:
30
px
0
px
0
px
0
px
;
}
/* scanning indicator for H3s
.mw-body-content h3:before {
content: " ";
height: 1px;
width: 30px;
position: absolute;
left:-40px;
top: 50%;
display: block;
background: #000;
}
*/
/* rest of the headers*/
.
mw-body-content
h4
,
.
mw-body-content
h5
,
.
mw-body-content
h6
{
page-break-before
:
avoid
;
font-family
:
sans-serif
;
font-size
:
12
pt
;
line-height
:
15
pt
;
position
:
relative
;
padding
:
0
;
display
:
block
;
margin
:
30
px
0
px
0
px
0
px
;
}
/* reference brackets */
.
reference
a
{
font-size
:
12
px
;
color
:
#666
;
border-bottom
:
none
;
}
/* all kind of content types
- Media
- Images
- Tables
- lists
- bullets
- layout classes, right left center
*/
.
thumb
{
margin-bottom
:
.5
em
;
width
:
auto
;
background-color
:
transparent
;
}
.
thumb
a
{
border-bottom
:
none
;
}
.
center
{
width
:
100
%
;
text-align
:
center
;
}
div
.
tright
{
margin
:
.5
em
0
1.3
em
1.4
em
;
}
div
.
tleft
{
margin
:
.5
em
1.4
em
1.3
em
0
;
}
div
.
tright
,
div
.
floatright
,
table
.
floatright
{
clear
:
right
;
float
:
right
;
}
div
.
tleft
,
div
.
floatleft
,
table
.
floatleft
{
clear
:
left
;
float
:
left
;
}
div
.
floatright
,
table
.
floatright
{
margin
:
0
0
.5
em
.5
em
;
border
:
0
;
}
ul
.
gallery
{
margin
:
2
px
;
padding
:
2
px
;
display
:
block
;
}
ul
.
gallery
,
li
.
gallerybox
{
zoom
:
1
;
}
div
#
content
.
gallerybox
div
.
thumb
{
background-color
:
#FFF
;
}
li
.
gallerybox
div
.
thumb
{
text-align
:
center
;
border
:
1
px
solid
#ccc
;
background-color
:
#FFF
;
margin
:
2
px
;
}
li
.
gallerybox
{
vertical-align
:
top
;
display
:
-moz-
inline
-
box
;
display
:
inline-block
;
}
li
{
margin-bottom
:
.1
em
;
}
div
.
gallerytext
{
overflow
:
hidden
;
font-size
:
10
pt
;
padding
:
2
px
4
px
;
word-wrap
:
break-word
;
}
ul
{
list-style-type
:
disc
;
list-style-image
:
url
(
data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22…%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A
);
list-style-image
:
url
(
/w/skins/Vector/images/bullet-icon.svg?90d59
)
!
ie
;
list-style-image
:
url
(
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAANCAIAAADuXjPfAAAABnRST…t9AAAAHklEQVR4AWP4jwrowWcI6oEgEBtIISNCfFT9mOYDACO/lbNIGC/yAAAAAElFTkSuQmCC
)
\
9
;
list-style-image
:
url
(
/w/skins/Vector/images/bullet-icon.png?e31f8
)
\
9
!
ie
;
}
ul
{
list-style-type
:
square
;
margin
:
.3
em
0
0
1.6
em
;
padding
:
0
;
}
table
.
wikitable
{
margin
:
1
em
0
;
background-color
:
#FFF
;
border
:
1
px
solid
#aaa
;
border-collapse
:
collapse
;
color
:
#000
;
}
table
.
wikitable
caption
{
padding
:
5
px
;
font-size
:
13
px
;
}
table
.
wikitable
>
tr
>
th
,
table
.
wikitable
>
*
>
tr
>
th
{
background-color
:
#FFF
;
text-align
:
center
;
}
table
.
wikitable
>
tr
>
th
,
table
.
wikitable
>
tr
>
td
,
table
.
wikitable
>
*
>
tr
>
th
,
table
.
wikitable
>
*
>
tr
>
td
{
border
:
1
px
solid
#aaa
;
padding
:
0.2
em
0.4
em
;
}
div
.
thumbinner
{
border
:
1
px
solid
#ccc
;
border-radius
:
2
px
;
padding
:
5
px
;
background-color
:
#FFF
;
font-size
:
12
px
;
color
:
#666
;
text-align
:
left
;
overflow
:
hidden
;
}
.
thumbinner
{
min-width
:
100
px
;
}
*
.
center
*
{
margin-left
:
auto
;
margin-right
:
auto
;
}
ul
{
margin-top
:
10
px
;
}
ul
li
{
padding
:
5
px
0
px
;
font-size
:
10
pt
;
}
.
refbegin
ul
li
,
.
references
li
{
font-size
:
13
px
;
color
:
#666
;
padding
:
5
px
0
px
;
}
/* New footer
- the page URL
- Last updated as primary info
- tone down the license info
- add Wikimedia Foundation branding as Wikipedia is a Wikimedia Project
*/
.
printfooter
{
padding-top
:
10
px
;
border-top
:
3
px
solid
#000
;
margin-top
:
10
px
;
font-size
:
10
pt
;
}
#
footer
{
border-top
:
1
px
solid
#eee
;
padding-top
:
5
px
;
margin-top
:
12
px
;
}
#
footer-info
{
margin
:
0
;
padding
:
0
;
}
#
footer-info
li
:
first-child
{
font-size
:
12
pt
;
font-weight
:
bold
;
color
:
#000
;
}
#
footer-info
li
{
font-size
:
10
pt
;
display
:
block
;
list-style
:
none
;
padding-bottom
:
10
px
;
color
:
#999
;
}
#
footer-info
li
a
{
color
:
#999
;
}
#
footer-info
:
after
{
content
:
" "
;
background-image
:
url
(
'https://upload.wikimedia.org/wikipedia/commons/6/60/Wmf_logo_horiz_K.svg'
);
background-size
:
auto
30
px
;
background-repeat
:
no-repeat
;
height
:
30
px
;
display
:
block
;
margin-top
:
20
px
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4020355
Default Alt Text
print.css (7 KB)
Attached To
Mode
T135022: [EPIC] Improve print styles in desktop and mobile sites
Attached
Detach File
Event Timeline
Log In to Comment