SU-SWS/stanford_profile

View on GitHub
themes/stanford_basic/src/scss/print/_print.scss

Summary

Maintainability
Test Coverage
@charset "UTF-8";

//
// Print Styles
//

// Use this stylesheet for print styles only.

* {
  background-color: transparent;
}

.sidebar,
#navigation,
nav,
#header-region,
#footer,
.breadcrumb,
.tabs,
.feed-icon,
.links {
  display: none;
}

.layout-container {
  width: 100%;
}

#content,
.title {
  margin: 20px 0;
  width: auto;
}

a {
  &:hover,
  &:active,
  &:link,
  &:visited {
    color: $su-color-black;
  }
}

// CSS2 selector to add visible href after links.
#content {
  a {
    &:link:after,
    &:visited:after {
      content: " (" attr(href) ") ";
      font-size: 0.8em;
      font-weight: normal;
    }
  }
}

// Policy print page
img {
  &.su-policy--print {
    max-width: 10%;
  }
}