You are here

print.css in Drupal Commons 7.3

/*
 * @file
 * Print Styles
 * This probably needs work, but it's a good starting point.
 */
/*
 * Body
 */
body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4;
  word-spacing: 1.1pt;
  letter-spacing: 0.2pt;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  color: black;
  background: none;
  font-size: 11pt;
}

/*
 * Links
 */
a {
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  color: #0000ee;
}
a[href^="http://"]:after, a[href^="http://"]:visited:after {
  content: "(" attr(href) ")";
  font-size: 10pt;
}

/*
 * Strip background from likely candidates
 */
div[id*="wrapper"],
[class*="title"],
[class*="inner"],
header,
footer,
#branding,
#container,
#columns,
.columns-inner,
#content-column,
.content-inner,
.region,
.region-header,
.region-content,
.article,
.article-title,
.article-content,
.comment,
.comment-title,
.comment-content,
.block,
.block-inner,
.block-title,
.block-content,
table,
table * {
  background: none !important;
}

/*
 * Hide various bits of the page
 */
.sidebar,
#breadcrumb,
.nav,
.field-type-taxonomy-term-reference,
ul.links,
.feed-icon,
.poll .bar,
.poll .foreground,
.comment-form,
#comment-form,
.book-navigation,
.tabs,
.action-links,
.pager,
.messages,
.help {
  display: none;
}

/*
 * Ensure the display the main content region
 */
#content {
  display: block !important;
}

/*
 * Layout
 */
#header {
  margin-bottom: 20px;
}

.content-inner {
  margin: 0 !important;
  padding: 0 !important;
}

/*
 * HTML elements
 */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
  margin: 0;
  padding: 0;
  line-height: 1;
}

h1 {
  font-size: 14pt;
}

h2 {
  font-size: 13pt;
}

h3 {
  font-size: 12pt;
}

h4,
h5,
h6 {
  font-size: 11pt;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
#site-name a,
#site-slogan {
  text-decoration: none !important;
  color: #333333;
}

hgroup a:link, hgroup a:visited {
  text-decoration: none;
}

#page-title {
  margin-top: 20px;
}

pre,
code,
tt,
samp,
kbd,
var {
  font-size: 10pt;
  font-family: Consolas, "Lucida Console", Menlo, Monaco, "DejaVu Sans Mono", monospace, sans-serif;
}

blockquote {
  margin: 20px;
  padding: 10px;
  font-size: 10pt;
  font-style: italic;
  background: #eeeeee;
}

hr {
  background-color: #666666;
}

/*
 * Header, Logo, Site name
 */
#header {
  padding-bottom: 20px;
}

#logo img {
  padding: 0 10px 0 0;
  margin: 0 !important;
  float: none !important;
}

/*
 * Images
 */
img {
  float: left;
  margin: 4px 20px 10px 0;
  page-break-inside: avoid;
}

a img {
  border: none;
}

/*
 * Tables
 */
table {
  margin: 1px;
  text-align: left;
}

th {
  border-bottom: 1px solid #333333;
  font-weight: 700;
}

td {
  border-bottom: 1px solid #333333;
}

th,
td {
  padding: 4px 10px 4px 0;
}

tfoot {
  font-style: italic;
}

caption {
  margin-bottom: 10px;
  text-align: left;
}

thead {
  display: table-header-group;
}

tr {
  page-break-inside: avoid;
}

/*
 * Forms
 */
form {
  margin-bottom: 10px;
}

/*
 * Poll module
 */
.poll .text,
.poll .percent,
.poll .total {
  text-align: left;
}
.poll form {
  margin-bottom: 0;
}

/*
 * Articles
 */
.node,
.comment {
  margin-bottom: 20px;
  overflow: hidden;
  page-break-inside: avoid;
}

.submitted {
  color: #666666;
  text-decoration: none;
  font-size: 9pt;
  font-weight: 400;
  margin: 0;
  padding: 0;
}
.submitted a {
  color: #666666;
  text-decoration: none;
  font-size: 9pt;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

File

themes/commons/commons_origins/css/print.css
View source
  1. /*
  2. * @file
  3. * Print Styles
  4. * This probably needs work, but it's a good starting point.
  5. */
  6. /*
  7. * Body
  8. */
  9. body {
  10. width: 100% !important;
  11. margin: 0 !important;
  12. padding: 0 !important;
  13. line-height: 1.4;
  14. word-spacing: 1.1pt;
  15. letter-spacing: 0.2pt;
  16. font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  17. color: black;
  18. background: none;
  19. font-size: 11pt;
  20. }
  21. /*
  22. * Links
  23. */
  24. a {
  25. background: transparent;
  26. font-weight: 700;
  27. text-decoration: underline;
  28. color: #0000ee;
  29. }
  30. a[href^="http://"]:after, a[href^="http://"]:visited:after {
  31. content: "(" attr(href) ")";
  32. font-size: 10pt;
  33. }
  34. /*
  35. * Strip background from likely candidates
  36. */
  37. div[id*="wrapper"],
  38. [class*="title"],
  39. [class*="inner"],
  40. header,
  41. footer,
  42. #branding,
  43. #container,
  44. #columns,
  45. .columns-inner,
  46. #content-column,
  47. .content-inner,
  48. .region,
  49. .region-header,
  50. .region-content,
  51. .article,
  52. .article-title,
  53. .article-content,
  54. .comment,
  55. .comment-title,
  56. .comment-content,
  57. .block,
  58. .block-inner,
  59. .block-title,
  60. .block-content,
  61. table,
  62. table * {
  63. background: none !important;
  64. }
  65. /*
  66. * Hide various bits of the page
  67. */
  68. .sidebar,
  69. #breadcrumb,
  70. .nav,
  71. .field-type-taxonomy-term-reference,
  72. ul.links,
  73. .feed-icon,
  74. .poll .bar,
  75. .poll .foreground,
  76. .comment-form,
  77. #comment-form,
  78. .book-navigation,
  79. .tabs,
  80. .action-links,
  81. .pager,
  82. .messages,
  83. .help {
  84. display: none;
  85. }
  86. /*
  87. * Ensure the display the main content region
  88. */
  89. #content {
  90. display: block !important;
  91. }
  92. /*
  93. * Layout
  94. */
  95. #header {
  96. margin-bottom: 20px;
  97. }
  98. .content-inner {
  99. margin: 0 !important;
  100. padding: 0 !important;
  101. }
  102. /*
  103. * HTML elements
  104. */
  105. h1,
  106. h2,
  107. h3,
  108. h4,
  109. h5,
  110. h6 {
  111. color: #333333;
  112. margin: 0;
  113. padding: 0;
  114. line-height: 1;
  115. }
  116. h1 {
  117. font-size: 14pt;
  118. }
  119. h2 {
  120. font-size: 13pt;
  121. }
  122. h3 {
  123. font-size: 12pt;
  124. }
  125. h4,
  126. h5,
  127. h6 {
  128. font-size: 11pt;
  129. }
  130. h1 a,
  131. h2 a,
  132. h3 a,
  133. h4 a,
  134. h5 a,
  135. h6 a,
  136. #site-name a,
  137. #site-slogan {
  138. text-decoration: none !important;
  139. color: #333333;
  140. }
  141. hgroup a:link, hgroup a:visited {
  142. text-decoration: none;
  143. }
  144. #page-title {
  145. margin-top: 20px;
  146. }
  147. pre,
  148. code,
  149. tt,
  150. samp,
  151. kbd,
  152. var {
  153. font-size: 10pt;
  154. font-family: Consolas, "Lucida Console", Menlo, Monaco, "DejaVu Sans Mono", monospace, sans-serif;
  155. }
  156. blockquote {
  157. margin: 20px;
  158. padding: 10px;
  159. font-size: 10pt;
  160. font-style: italic;
  161. background: #eeeeee;
  162. }
  163. hr {
  164. background-color: #666666;
  165. }
  166. /*
  167. * Header, Logo, Site name
  168. */
  169. #header {
  170. padding-bottom: 20px;
  171. }
  172. #logo img {
  173. padding: 0 10px 0 0;
  174. margin: 0 !important;
  175. float: none !important;
  176. }
  177. /*
  178. * Images
  179. */
  180. img {
  181. float: left;
  182. margin: 4px 20px 10px 0;
  183. page-break-inside: avoid;
  184. }
  185. a img {
  186. border: none;
  187. }
  188. /*
  189. * Tables
  190. */
  191. table {
  192. margin: 1px;
  193. text-align: left;
  194. }
  195. th {
  196. border-bottom: 1px solid #333333;
  197. font-weight: 700;
  198. }
  199. td {
  200. border-bottom: 1px solid #333333;
  201. }
  202. th,
  203. td {
  204. padding: 4px 10px 4px 0;
  205. }
  206. tfoot {
  207. font-style: italic;
  208. }
  209. caption {
  210. margin-bottom: 10px;
  211. text-align: left;
  212. }
  213. thead {
  214. display: table-header-group;
  215. }
  216. tr {
  217. page-break-inside: avoid;
  218. }
  219. /*
  220. * Forms
  221. */
  222. form {
  223. margin-bottom: 10px;
  224. }
  225. /*
  226. * Poll module
  227. */
  228. .poll .text,
  229. .poll .percent,
  230. .poll .total {
  231. text-align: left;
  232. }
  233. .poll form {
  234. margin-bottom: 0;
  235. }
  236. /*
  237. * Articles
  238. */
  239. .node,
  240. .comment {
  241. margin-bottom: 20px;
  242. overflow: hidden;
  243. page-break-inside: avoid;
  244. }
  245. .submitted {
  246. color: #666666;
  247. text-decoration: none;
  248. font-size: 9pt;
  249. font-weight: 400;
  250. margin: 0;
  251. padding: 0;
  252. }
  253. .submitted a {
  254. color: #666666;
  255. text-decoration: none;
  256. font-size: 9pt;
  257. font-weight: 400;
  258. margin: 0;
  259. padding: 0;
  260. }