Selecting Mediums and Media Queries

When you are editing a stylesheet, you can select a medium or media query in order to edit settings for it. You can also select a medium or media query when you are viewing or editing a content file. See Mediums and Media Queries.

When Editing a Stylesheet

You can select a medium or media query when editing styles in either the Stylesheet Editor or the Table Style Editor. This lets you place style settings in that medium or media query so that the look and/or behavior is unique for a particular target or screen when the output is generated.

In the Simplified view of the Stylesheet Editor, as well as in the Table Style Editor, selecting a medium or media query does not change the editor, except to indicate the chosen medium or media query in the drop-down field. Whichever medium or media query appears in that field is the one you are changing when you make modifications to styles in the editor.

But if you are working in the Advanced view of the Stylesheet Editor, selecting a medium or media query opens a pane in the editor dedicated to that medium or media query. You then click inside the appropriate pane and make your changes to that medium or media query. In addition, you can have multiple mediums and media queries open at same time.

How to Select a Medium or Media Query in the Stylesheet Editor

  1. Open the stylesheet you want to modify or create a new one.
  2. Click in the Medium drop-down and select the appropriate medium or media query.

  3. Edit the styles for that medium or media query as necessary.

How to Select a Medium or Media Query in the Table Style Editor

  1. Open the table stylesheet.
  2. Click in the Medium drop-down and select the appropriate medium or media query.
  3. Edit the styles for that medium or media query as necessary.

When Viewing or Editing Content

You can also select a medium or media query in the XML Editor when viewing and editing content.

Mediums and Layout Modes

Contributor provides multiple layout modes when working in the XML Editor: Web Layout, Web Layout (Tablet), Web Layout (Mobile), and Print Layout. This lets you see your content in the format that you are most likely concerned about at the moment.

The default and print mediums are tied to the Web Layout and Print Layout modes, respectively. The tablet and mobile media queries are tied to the Web Layout (Tablet) and Web Layout (Mobile) modes, respectively.

Example  

You are using the Web Layout mode, so the XML Editor displays the styles from the default medium. But if you switch to Print Layout mode, the XML Editor automatically displays the styles from the print medium. And if you choose the Web Layout (mobile) mode, the XML Editor adjusts to show the topic as if it were displayed on a mobile device.

The key is to select the layout first. If you select the medium or media query, the layout will not automatically change as well.

How to Select a Medium or Media Query in the XML Editor

  1. Open the document or topic.
  2. In the local toolbar, click in the Medium drop-down and select the appropriate medium or media query.

    The look of the content changes to reflect the style settings for that medium or media query.

What’s Noteworthy?

Note This feature is not supported for MadCap Lingo review package (LIREV) files.

Note You cannot use stylesheets for this feature in the Review (Full Registered) workflow.