From: Marcel Werk Date: Mon, 30 May 2016 14:17:24 +0000 (+0200) Subject: Added print version X-Git-Tag: 3.0.0_Beta_1~1567^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ec9b816cde5c5f71aca54857a0a66dab0a3121e;p=GitHub%2FWoltLab%2FWCF.git Added print version --- diff --git a/wcfsetup/install/files/style/layout/print.scss b/wcfsetup/install/files/style/layout/print.scss new file mode 100644 index 0000000000..3e015c05c0 --- /dev/null +++ b/wcfsetup/install/files/style/layout/print.scss @@ -0,0 +1,75 @@ +/* print version */ +@media print { + /** reset font colors, backgrounds and shadows **/ + *, + ::after, + ::before { + background: 0 0 !important; + box-shadow: none !important; + color: #000 !important; + opacity: 1 !important; + text-shadow: none !important; + } + + + /** hide obsolete elements **/ + /* general elements */ + .pageHeaderContainer, + .pageNavigationIcons, + .userNotice, + .pageAction, + .contentHeaderNavigation, + .contentFooterNavigation, + .paginationTop, + .paginationBottom, + .buttonList, + .collapsibleButton, + .columnMark, + .statusDisplay, + .tabMenu > ul > li:not(.active), + .userProfileButtonContainer, + .showMore, + + /* box layout */ + .boxesSidebarLeft, + .boxesSidebarRight, + .boxesFooterBoxes, + .boxesFooter, + + /* message layout */ + .messageFooterButtons, + .messageQuickOptions, + .messageGroupEditLink, + #messageQuickReply, + .messageAuthor .badgeOnline, + + /* comment layout */ + .jsCommentAdd { + display: none !important; + } + + + /** minor optimizations **/ + .main { + padding: 30px 0; + } + + .content { + flex-basis: auto !important; + max-width: none !important; + } + + .pageNavigation .breadcrumbs { + margin-left: 0; + } + + .badge { + &::before { + content: "("; + } + + &::after { + content: ")"; + } + } +}