Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// stylelint-disable declaration-no-important, selector-no-qualifying-type
2
 
3
// Source: https://github.com/h5bp/main.css/blob/master/src/_print.css
4
 
5
// ==========================================================================
6
// Print styles.
7
// Inlined to avoid the additional HTTP request:
8
// https://www.phpied.com/delay-loading-your-print-css/
9
// ==========================================================================
10
 
11
@if $enable-print-styles {
12
  @media print {
13
 
14
    *,
15
    *::before,
16
    *::after {
17
      // Bootstrap specific; comment out `color` and `background`
18
      //color: $black !important; // Black prints faster
19
      text-shadow: none !important;
20
      //background: transparent !important;
21
      box-shadow: none !important;
22
    }
23
 
24
    a {
25
      &:not(.btn) {
26
        text-decoration: underline;
27
      }
28
    }
29
 
30
    // Bootstrap specific; comment the following selector out
31
    //a[href]::after {
32
    //  content: " (" attr(href) ")";
33
    //}
34
 
35
    abbr[title]::after {
36
      content: " ("attr(title) ")";
37
    }
38
 
39
    // Bootstrap specific; comment the following selector out
40
    //
41
    // Don't show links that are fragment identifiers,
42
    // or use the `javascript:` pseudo protocol
43
    //
44
 
45
    //a[href^="#"]::after,
46
    //a[href^="javascript:"]::after {
47
    // content: "";
48
    //}
49
 
50
    pre {
51
      white-space: pre-wrap !important;
52
    }
53
 
54
    pre,
55
    blockquote {
56
      border: $border-width solid $gray-500; // Bootstrap custom code; using `$border-width` instead of 1px
57
      page-break-inside: avoid;
58
    }
59
 
60
    //
61
    // Printing Tables:
62
    // https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
63
    //
64
 
65
    thead {
66
      display: table-header-group;
67
    }
68
 
69
    tr,
70
    img {
71
      page-break-inside: avoid;
72
    }
73
 
74
    p,
75
    h2,
76
    h3 {
77
      orphans: 3;
78
      widows: 3;
79
    }
80
 
81
    h2,
82
    h3 {
83
      page-break-after: avoid;
84
    }
85
 
86
    // Bootstrap specific changes start
87
 
88
    // Specify a size and min-width to make printing closer across browsers.
89
    // We don't set margin here because it breaks `size` in Chrome. We also
90
    // don't use `!important` on `size` as it breaks in Chrome.
91
    @page {
92
      size: $print-page-size;
93
    }
94
    body {
95
      min-width: $print-body-min-width !important;
96
    }
97
    .container {
98
      min-width: $print-body-min-width !important;
99
    }
100
 
101
    // Bootstrap components
102
    .navbar {
103
      display: none;
104
    }
105
    .badge {
106
      border: $border-width solid $black;
107
    }
108
 
109
    .table {
110
      border-collapse: collapse !important;
111
 
112
      td,
113
      th {
114
        background-color: $white !important;
115
      }
116
    }
117
 
118
    .table-bordered {
119
      th,
120
      td {
121
        border: 1px solid $gray-300 !important;
122
      }
123
    }
124
 
125
    .table-dark {
126
      color: inherit;
127
 
128
      th,
129
      td,
130
      thead th,
131
      tbody + tbody {
132
        border-color: $table-border-color;
133
      }
134
    }
135
 
136
    .table .thead-dark th {
137
      color: inherit;
138
      border-color: $table-border-color;
139
    }
140
 
141
    // Bootstrap specific changes end
142
  }
143
}