CSS and Javascript Customizations

These customizations apply to the ScreenSteps 2015 template. If you are using the 2011 template then the CSS selectors may not apply to your site design.

View this article to see were to add CSS and Javascript to your site template:

Adding custom CSS and Javascript to your template

CSS Customizations

Hide the site title
.screensteps-site-title-wrapper { display: none;}
Hide the site title
Adjust the body or article font colors
// Change default colors for all pages
body { color: #333333 }

// Only change font color in the article body
.screensteps-article { color: #333333; }
Adjust the chapter title font colors
.screensteps-main-content h2.chapter-title a {
  color: green ;
}
Remove underlines for links in an article
.screensteps-article a { text-decoration: none; }
Change the color of the search box prompt
.screensteps-main-search .input-prompt { color: #333; }
Adjust padding on the header
.screensteps-header { padding: 1em 1.5em; }

Defaults are {4em 1.5em 2em}

Hide the breadcrumb navigation
#screensteps-breadcrumb { display: none; }
Hide the next/previous navigation
.screensteps-next-prev-navigation { display: none; }
Replace the icon for a manual (Advanced)

The icons that are used for manuals in ScreenSteps come from Font Awesome. Each manual is given a CSS class that corresponds to an icon. For example, the default class is .fa-book.

If you want to use a custom icon you can upload the icon to your own file server and then add the following CSS.

.fa-book::before{
  content: url('insert url to your image');
}

Replace .fa-book with whatever icon you have assigned to that particular manual. You can find the icon class by inspecting the HTML for the manual table of contents.

Change the color of links in the body of an article
.screensteps-article a {
 color: #477dca;
}

.screensteps-article a:visited {
 color: #3061a7;
}
Adjust spacing below the header
.screensteps-container-wrapper { padding-top: 0; }
Change the border around the next/previous navigation
.screensteps-next-prev-navigation { border-top-color: #333; }
Remove the "Print Article" button
.print-article { display: none !important; }
Remove Image background and border
.screensteps-steps .image {
 background-color: transparent;
 border: none;
}
Left align the site table of contents and turn it into a list
.screensteps-group header {
  text-align:left;
  margin-left: 0;
}
.asset-list li {
  display: block;
  float: none;
  margin-left: 0;
}
Left align images and remove background
.screensteps-steps .image {
  text-align: left;
  background: inherit;
  border: none;
  padding: 0px;
}
Modify appearance of styled text blocks

A text block in ScreenSteps can have a style applied to it. Currently you can assign a style of introduction, alert, tip, info, or warning. Use the following CSS to target text assigned one of these styles.

This example will change the font size for a text block that has the alert style assigned to it. Just change the word alert with introduction, tip, info, or warning for other styles.

.screensteps-textblock.screensteps-wrapper--alert {
  font-size: 10pt;
}

Javascript Customizations

Add the Next/Prev navigation to the top and the bottom of the article

Javascript:

$('.screensteps-title').after($('.screensteps-next-prev-navigation').clone())

Optional CSS:

.screensteps-title + .screensteps-next-prev-navigation {
 margin-top: 0;
 border-top: none;
 border-bottom: 1px solid #ebebeb;
 padding: 0 0 1.5em;
}

2 Comments

Matthew Fisher

Can you please add how to make the header logo larger?

Greg DeVore

@Matthew -

Right now you can't make the logo larger. That is on our list of improvements to add.

Add your comment

E-Mail me when someone replies to this comment