Sha256: 48c7bf5edcf6ed29676ffd30972dd9f4521bc9c0f508e23fb9650fa29d3b4e6c

Contents?: true

Size: 1.86 KB

Versions: 92

Compression:

Stored size: 1.86 KB

Contents

////
/// @group overview
////

/// Images to use to draw outline of chapter columns.
///
/// Possible values:
///
/// - `"default"`: Use images from default theme.
/// - `"none"`: Do not use background images.
/// - `"custom"`: Use images from current theme directory.
///
/// Custom border images have to placed in a
/// `overview_chapter_borders` directory inside the theme's image
/// directory. Five images have to be supplied:
///
/// - `top.png` (width: 265pxm height: 10px): Used as the upper border
///   of each column.
///
/// - `bottom.png` (width: 265px, height 10px): Used as the lower
///   border of each column.
///
/// - `start.png` (width: 265px, height: 10px): Used as the upper
///   border of the first column.
///
/// - `end.png` (width: 265px, height: 10px): Used as the lower border
///   of the last column.
///
/// - `tile.png` (width: 265px): Repeated in the background of each
///    column to draw the left and right borders.
///
/// @see $overview-chapter-background-color
$overview-chapter-border-images: "default" !default;

/// Opacity of the border images.
$overview-chapter-border-opacity: 1 !default;

@if $overview-chapter-border-images != "none" {
  .ov_chapter {
    $dir: "pageflow/themes/default/overview_chapter_borders";

    @if $overview-chapter-border-images == "custom" {
      $dir: "pageflow/themes/#{$theme-name}/overview_chapter_borders";
    }

    background-image: image-url("#{$dir}/tile.png");
    background-repeat: repeat-y;

    &:before,
    &:after {
      opacity: $overview-chapter-border-opacity;
    }

    &:before {
      background-image: image-url("#{$dir}/top.png");
    }

    &:after {
      background-image: image-url("#{$dir}/bottom.png");
    }

    &:first-of-type:before {
      background-image: image-url("#{$dir}/start.png");
    }

    &:last-of-type:after {
      background-image: image-url("#{$dir}/end.png");
    }
  }
}

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-17.0.3 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-17.0.2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-17.0.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-17.0.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-16.2.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-16.1.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-16.0.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.8.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-14.5.2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.7.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.7.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.6.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.6.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.5.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.4.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.3.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.2.2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.2.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.2.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss