summaryrefslogtreecommitdiffstats
path: root/less/bootstrap/print.less
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-27 18:15:12 +0100
committerSimo Sorce <simo@redhat.com>2014-02-17 09:45:15 -0500
commitfa5bb8dca04e2876d9def529a77b5273b5243169 (patch)
tree398cd64ee3d78fcbd9876ca73b3443be9726ccce /less/bootstrap/print.less
parent630b85e06018fb3d9f8c34685a406b3770d58b54 (diff)
downloadipsilon.git-fa5bb8dca04e2876d9def529a77b5273b5243169.tar.gz
ipsilon.git-fa5bb8dca04e2876d9def529a77b5273b5243169.tar.xz
ipsilon.git-fa5bb8dca04e2876d9def529a77b5273b5243169.zip
Add Boostrap files
Signed-off-by: Petr Vobornik <pvoborni@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'less/bootstrap/print.less')
-rw-r--r--less/bootstrap/print.less105
1 files changed, 105 insertions, 0 deletions
diff --git a/less/bootstrap/print.less b/less/bootstrap/print.less
new file mode 100644
index 0000000..07277a3
--- /dev/null
+++ b/less/bootstrap/print.less
@@ -0,0 +1,105 @@
+//
+// 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
+ 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: 2cm .5cm;
+ }
+
+ p,
+ h2,
+ h3 {
+ orphans: 3;
+ widows: 3;
+ }
+
+ h2,
+ h3 {
+ page-break-after: avoid;
+ }
+
+ // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
+ // Once fixed, we can just straight up remove this.
+ select {
+ background: #fff !important;
+ }
+
+ // Bootstrap components
+ .navbar {
+ display: none;
+ }
+ .table {
+ td,
+ th {
+ background-color: #fff !important;
+ }
+ }
+ .btn,
+ .dropup > .btn {
+ > .caret {
+ border-top-color: #000 !important;
+ }
+ }
+ .label {
+ border: 1px solid #000;
+ }
+
+ .table {
+ border-collapse: collapse !important;
+ }
+ .table-bordered {
+ th,
+ td {
+ border: 1px solid #ddd !important;
+ }
+ }
+
+}