// This file is part of the DITA Open Toolkit project.
//
// Copyright 2016 Roger Sheen
//
// See the accompanying LICENSE file for applicable license.

// Sass partial for figure & image styles

.fig {
  /* Default of italics to set apart figure captions */
  &cap {
    font-style: italic;
  }

  &desc {
    font-style: normal;
  }

  /* Use @frame to create frames on figures */
  &border {
    border-color: Silver;
    border-style: solid;
    border-width: 2px;
    margin-top: 1em;
    padding-left: 3px;
    padding-right: 3px;
  }

  &sides {
    border-color: Silver;
    border-left: 2px solid;
    border-right: 2px solid;
    margin-top: 1em;
    padding-left: 3px;
    padding-right: 3px;
  }

  &top {
    border-color: Silver;
    border-top: 2px solid;
    margin-top: 1em;
  }

  &bottom {
    border-bottom: 2px solid;
    border-color: Silver;
  }

  &topbot {
    border-bottom: 2px solid;
    border-color: Silver;
    border-top: 2px solid;
    margin-top: 1em;
  }
}

/* Align images based on @align on topic/image */

div.imageleft {
  text-align: left;
}

div.imagecenter {
  text-align: center;
}

div.imageright {
  text-align: right;
}

div.imagejustify {
  text-align: justify;
}
