Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4611243
Wikilater-print.css
Jhernandez (Joaquin Oltra Hernandez)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
Jhernandez
Oct 17 2016, 7:57 AM
2016-10-17 07:57:41 (UTC+0)
Size
7 KB
Referenced Files
None
Subscribers
None
Wikilater-print.css
View Options
/* print 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
*/
/*
@page {
size: 90vw 90vh;
}
*/
body
{
-webkit-
print-color-adjust
:
exact
;}
body
{
padding
:
10
px
10
px
;
font-family
:
sans-serif
;
}
/* Show branding tailored for English Wikipedia */
/*
body:before{
content: " ";
display: block;
background-image: url('https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia_wordmark@2x.png');
height: 20px;
background-size: 120px 20px;
background-repeat: no-repeat;
padding-bottom: 10px;
border-bottom: 3px solid #ccc;
}
*/
/* hide on print */
/* Elements to hide
- Interactive elemts
- Elements leading to other websites
- Elements which cannot have any action in print format
- Navboxes
- Categories
*/
.
noprint
,
.
mw-indicators
,
.
App-header
,
#
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
;
}
/*
- Basic infobox styling
*/
.
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
;
}
.
infobox
a
{
border-bottom
:
none
;
}
/*
- Main article textual content - sans serif
*/
/* using Lato for body type.
Lato is an open source serif typeface specfically designed for legibility and reading
*/
.
mw-body-content
p
{
font-family
:
"Lato"
,
sans-serif
;
font-size
:
14
pt
;
line-height
:
21
pt
;
margin-top
:
10
px
;
}
/* article title separator - print element from classic editorial practices */
.
Article-description
:
after
{
content
:
" "
;
display
:
block
;
width
:
50
px
;
background-color
:
#666
!important
;
height
:
1
px
;
margin-top
:
15
px
;
}
/* 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
,
h1
{
font-family
:
serif
;
font-size
:
28
px
;
line-height
:
32
px
;
margin-bottom
:
5
px
;
font-weight
:
normal
;
}
.
mw-body-content
h2
,
h2
{
page-break-before
:
avoid
;
font-family
:
sans-serif
;
font-size
:
20
px
;
line-height
:
24
px
;
border-bottom
:
2
px
solid
#222
;
margin-bottom
:
0.25
em
;
padding
:
0
;
overflow
:
hidden
;
display
:
block
;
padding-bottom
:
5
px
;
}
.
mw-body-content
h3
,
h3
{
font-size
:
18
px
;
page-break-before
:
avoid
;
font-family
:
sans-serif
;
line-height
:
20
px
;
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
,
h4
,
.
mw-body-content
h5
,
h5
,
.
mw-body-content
h6
,
h6
{
page-break-before
:
avoid
;
font-family
:
sans-serif
;
font-size
:
16
px
;
line-height
:
18
px
;
position
:
relative
;
padding
:
0
;
display
:
block
;
margin
:
30
px
0
px
0
px
0
px
;
}
/* reference brackets */
.
mw-ref
a
{
font-size
:
14
px
;
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
#EAECF0
;
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
#ccc
;
margin-top
:
10
px
;
font-size
:
14
px
;
}
#
footer
{
border-top
:
1
px
solid
#eee
;
padding
:
20
px
15
px
;
margin-top
:
12
px
;
background-color
:
#F2F2F2
;
}
#
footer-info
{
margin
:
0
;
padding
:
0
;
}
#
footer-info
li
:
first-child
{
font-size
:
14
px
;
font-weight
:
bold
;
color
:
#000
;
}
#
footer-info
li
{
font-size
:
14
px
;
display
:
block
;
list-style
:
none
;
padding-bottom
:
10
px
;
color
:
#999
;
}
#
footer-info
li
a
{
color
:
#999
;
}
#
footer-info
:
before
{
content
:
" "
;
background-image
:
url
(
'https://www.wikipedia.org/portal/wikipedia.org/assets/img/Wikipedia_wordmark@2x.png'
);
background-size
:
auto
32
px
;
background-repeat
:
no-repeat
;
height
:
32
px
;
display
:
block
;
margin
:
15
px
0
px
30
px
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4065971
Default Alt Text
Wikilater-print.css (7 KB)
Attached To
Mode
T148366: Update pdf print stylesheet
Attached
Detach File
Event Timeline
Log In to Comment