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-15.1.2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.rc0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta6 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta5 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta4 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta3 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.1.0.beta1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-14.5.1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-14.5.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.0.rc2 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.0.rc1 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.0.beta4 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-15.0.0.beta3 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss
pageflow-14.4.0 app/assets/stylesheets/pageflow/themes/default/overview/chapter_border_images.scss