Skip to content

Commit 5f567ca

Browse files
Merge pull request #40242 from gaurav-nelson/print-page-css-fixes
Hide elements from print preview
2 parents 9048b0b + 0ff112a commit 5f567ca

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

_stylesheets/docs.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,6 +2639,18 @@ b.conum * {
26392639
padding-bottom: 0 !important;
26402640
}
26412641

2642+
#toc {
2643+
display: none !important;
2644+
}
2645+
2646+
.clipboard-button-container {
2647+
display: none !important;
2648+
}
2649+
2650+
.open-btn-sm {
2651+
display: none !important;
2652+
}
2653+
26422654
.sect1 {
26432655
padding-bottom: 0 !important;
26442656
}

_templates/_page_openshift.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<meta content="IE=edge" http-equiv="X-UA-Compatible">
1111
<meta content="width=device-width, initial-scale=1.0" name="viewport">
1212
<%= (distro_key == "openshift-webscale") ? '<meta name="robots" content="noindex,nofollow">' : '' %>
13-
<%= ((["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5"].include?(version)) && distro_key == "openshift-enterprise") ? '<meta name="googlebot" content="noindex">' : '' %>
13+
<%= ((["3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.9", "3.10", "4.1", "4.2", "4.3", "4.4", "4.5"].include?(version)) && distro_key == "openshift-enterprise") ? '<meta name="googlebot" content="noindex">' : '' %>
1414
<title><%= [topic_title, subgroup_title].compact.join(' - ') %> | <%= group_title %> | <%= distro %> <%= version %></title>
1515
<link href="https://assets.openshift.net/content/subdomain.css" rel="stylesheet" type="text/css">
1616
<link href="https://docs.openshift.com/container-platform/4.1/_stylesheets/search.css" rel="stylesheet" />
@@ -55,7 +55,7 @@
5555
%>
5656
<div class="container">
5757
<button id="hc-open-btn" class="open-btn-sm" onclick="openNav()" aria-label="Open"><span class="fa fa-bars" /></button>
58-
<ol class="breadcrumb">
58+
<ol class="breadcrumb hide-for-print">
5959
<% if (version == "4.10" || distro_key == "openshift-webscale") %>
6060
<span>
6161
<div class="alert alert-danger" role="alert" id="support-alert">
@@ -145,7 +145,7 @@
145145
<% end %>
146146
</ol>
147147
<div class="row row-offcanvas row-offcanvas-left">
148-
<div class="col-xs-8 col-sm-3 col-md-3 sidebar sidebar-offcanvas">
148+
<div class="col-xs-8 col-sm-3 col-md-3 sidebar sidebar-offcanvas hide-for-print">
149149
<div class="row-fluid">
150150
<div id="btn-close">
151151
<button id="hc-close-btn" onclick="closeNav()" class="close-btn-sm" aria-label="close"><span class="fa fa-times" /></button>

0 commit comments

Comments
 (0)