-
Notifications
You must be signed in to change notification settings - Fork 41
Print stylesheet #1633
Print stylesheet #1633
Changes from all commits
f3ac501
25a6c82
a39dbb1
ebdc89b
b829ddd
c74273e
e19da24
36ab0a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@media print { | ||
@import 'print/layout'; | ||
@import 'print/home'; | ||
@import 'print/about'; | ||
@import 'print/landing'; | ||
@import 'print/how-it-works'; | ||
@import 'print/content'; | ||
@import 'print/state-page'; | ||
@import 'print/page-breaks'; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.bureau img, | ||
.bureau-img { | ||
width: 100px; | ||
} | ||
|
||
.article_img-60 { | ||
max-width: 30; | ||
width: 250px; | ||
|
||
|
||
&.article_img-centered { | ||
margin: 0; | ||
} | ||
} | ||
|
||
.about_intro-highlight { | ||
padding-left: 0; | ||
text-align: left; | ||
} | ||
|
||
.about_intro-callout { | ||
padding-left: 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.layout-content { | ||
.container-left-7 { | ||
margin: 0; | ||
width: 100%; | ||
} | ||
|
||
.case_studies_intro-select { | ||
display: none !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
.case_studies-maps { | ||
text-align: left; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.carousel, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Begin pseudo elements with double colons: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what this flag is referencing. |
||
.eiti-tabs, | ||
.card-image_link, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
.eiti-tab-panel .explore_home-button, | ||
.home-bottom-links { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
display: none !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
.card { | ||
display: block; | ||
float: none; | ||
height: inherit !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
|
||
img { | ||
display: none !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
} | ||
|
||
.eiti-tab-panel { | ||
display: block; | ||
float: none; | ||
margin-bottom: $base-padding-jumbo; | ||
|
||
img { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
&[aria-hidden=true] { | ||
display: block !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
} | ||
|
||
.header-image_link, | ||
.card > a, | ||
.explore_home-img { | ||
&::after { | ||
content: ''; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.revenues_page-footer, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line should be indented with spaces, not tabs |
||
.revenues_subpage-involved_video, | ||
.break { | ||
display: none !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
|
||
.revenues_subpage-steps_group { | ||
width: 100%; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.landing-section, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. |
||
.landing-section_open { | ||
margin-top: 0; | ||
|
||
div[class^='landing-'] { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. |
||
background: initial !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
height: initial !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
} | ||
|
||
.landing-section a, | ||
.landing-section_open a, | ||
.hero-right a, | ||
.landing-wrapper section a { | ||
&::after { | ||
content: ''; | ||
} | ||
} | ||
|
||
.hero-right_caption { | ||
padding-left: 0; | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
.hero-right_square { | ||
border: 0; | ||
} | ||
|
||
.hero-right_image { | ||
text-align: left; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
section.banner, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using id selectors |
||
.header-nav, | ||
.header-bars, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
footer, | ||
#glossary, | ||
#nav-drawer, | ||
iframe, | ||
.term .icon-book, | ||
.carousel-button, | ||
[accordion-button], | ||
.hash_selector, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer single quoted strings |
||
.sticky_nav { | ||
display: none !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
header, | ||
.container-outer { | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
|
||
@page { | ||
margin: 0.5cm; | ||
} | ||
|
||
img { | ||
max-width: 500px !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prefer single quoted strings There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} | ||
|
||
a::after{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opening curly brace |
||
@include font-size(1); | ||
content: ' (' attr(href) ') '; | ||
} | ||
|
||
.term { | ||
border-bottom: 0; | ||
} | ||
|
||
|
||
[accordion-content], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid qualifying attribute selectors with an element. |
||
[accordion-item] div[aria-hidden='true'] { | ||
display: block !important; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. !important should not be used |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.chart-item, | ||
.row-container, | ||
tr, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered page-break-before, page-break-inside |
||
figure, | ||
figcaption, | ||
eiti-data-map, | ||
eiti-bar-chart, | ||
img { | ||
page-break-before: always; | ||
page-break-inside: avoid; | ||
} | ||
|
||
h1:not(#title), | ||
h2, | ||
h3 { | ||
page-break-after: avoid; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.layout-state-pages figure { | ||
min-height: 300px; | ||
} | ||
|
||
.chart-list { | ||
width: 100%; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid CSS after "@import 'reset'": expected "{", was ";" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is because of Jekyll syntax. |
||
# Jekyll only builds Sass files with front matter | ||
--- | ||
|
||
// include reset | ||
@import 'reset'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid CSS after "@import 'reset'": expected "{", was ";" |
||
|
||
// include Bourbon & Neat | ||
@import 'lib/bourbon/bourbon'; | ||
@import 'lib/neat/neat'; | ||
|
||
// include site specific base styles | ||
@import 'base'; | ||
|
||
// include fonts (and @import font-face declarations from /css/fonts) | ||
@import 'fonts'; | ||
|
||
// include FontAwesome Sass variables, etc. | ||
@import 'lib/font-awesome/font-awesome'; | ||
|
||
// include print stylesheet overrides | ||
@import 'print'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered margin, width
!important should not be used