Projet

Général

Profil

Paste
Télécharger (1,55 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / zen / STARTERKIT / sass / _print.scss @ 87dbc3bf

1
/**
2
 * @file
3
 * Print styling
4
 *
5
 * We provide some sane print styling for Drupal using Zen's layout method.
6
 */
7

    
8
/**
9
 * By importing this CSS file as media "all", we allow this print file to be
10
 * aggregated with other stylesheets, for improved front-end performance.
11
 */
12
@media print {
13

    
14
  /* Underline all links. */
15
  a:link,
16
  a:visited {
17
    text-decoration: underline !important;
18

    
19
    /* Don't underline header. */
20
    &.header__site-link {
21
      text-decoration: none !important;
22
    }
23
  }
24

    
25
  #content {
26
    /* Add visible URL after links. */
27
    a[href]:after {
28
      content: " (" attr(href) ")";
29
      font-weight: normal;
30
      font-size: $base-font-size;
31
    }
32

    
33
    /* Only display useful links. */
34
    a[href^="javascript:"]:after,
35
    a[href^="#"]:after {
36
      content: "";
37
    }
38

    
39
    /* Add visible title after abbreviations. */
40
    abbr[title]:after {
41
      content: " (" attr(title) ")";
42
    }
43
  }
44

    
45
  /* Un-float the content. */
46
  #content {
47
    float: none !important;
48
    width: 100% !important;
49
    margin: 0 !important;
50
    padding: 0 !important;
51
  }
52

    
53
  /* Turn off any background colors or images. */
54
  body,
55
  #page,
56
  #main,
57
  #content {
58
    color: #000;
59
    background-color: transparent !important;
60
    background-image: none !important;
61
  }
62

    
63
  /* Hide sidebars and nav elements. */
64
  #skip-link,
65
  #toolbar,
66
  #navigation,
67
  .region-sidebar-first,
68
  .region-sidebar-second,
69
  #footer,
70
  .breadcrumb,
71
  .tabs,
72
  .action-links,
73
  .links,
74
  .book-navigation,
75
  .forum-topic-navigation,
76
  .pager,
77
  .feed-icons {
78
    visibility: hidden;
79
    display: none;
80
  }
81
}