Created
November 20, 2017 02:15
-
-
Save mlutfy/6ccdf608a49febd2f32e5f7ea2e3f0f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
/* based on : https://gitlab.com/gitlab-org/gitlab-ce/issues/23465 */ | |
@media print { | |
/* fix firefox print internal error (https://bugzilla.mozilla.org/show_bug.cgi?id=1308516) */ | |
html.turbolinks-progress-bar::before { | |
display: none !important; | |
} | |
/* don't show target urls after non-wiki (i.e. navigational) links; it makes the content unreadable */ | |
a:link:after, a:visited:after { | |
content: ""; | |
} | |
/* re-enable showing href for external wiki links (target=_blank) */ | |
a[href][target]:not([href='']):link:after, a[href][target]:not([href='']):visited:after { | |
content: " ("attr(href) ") "; | |
text-decoration: none; | |
font-weight: normal; | |
font-style: italic; | |
font-size: 90%; | |
} | |
/* otherwise try to show title (becomes data-original-title with javascript after tooltip hover) */ | |
a[title]:not([title='']):link:after, a[title]:not([title='']):visited:after { | |
content: " ["attr(title) "] "; | |
text-decoration: none; | |
font-weight: normal; | |
font-style: italic; | |
font-size: 90%; | |
} | |
a[data-original-title]:not([data-original-title='']):link:after, a[data-original-title]:not([data-original-title='']):visited:after { | |
content: " ["attr(data-original-title) "] "; | |
text-decoration: none; | |
font-weight: normal; | |
font-style: italic; | |
font-size: 90%; | |
} | |
/* unhide .file-holder (https://gitlab.com/gitlab-org/gitlab-ce/issues/17203) */ | |
article.file-holder { | |
display: block !important; | |
} | |
/* hide various naviation / message areas */ | |
.page-with-sidebar { | |
padding-top: 0px; | |
} | |
.page-with-layout-nav { | |
margin-top: 0px; | |
} | |
.wiki-page-header { | |
padding-top: 2em; | |
} | |
div.top-area | |
, header | |
, aside | |
, nav-sidebar | |
, div.detail-page-header | |
, section.issuable-discussion | |
, small.edited-text | |
, div.layout-nav | |
, div.nav-links | |
, li.project-repo-buttons-right | |
, div.project-repo-buttons | |
, div.project-action-buttons | |
, avatar-container | |
, div.flash-container { | |
display: none !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment