/*
 * Copyright (c) 2006 Pixware. 
 *
 * This file is part of the XMLmind XML Editor project.
 * For conditions of distribution and use, see the accompanying legal.txt file.
 *
 * Styles for DITA map elements. 
 */

@import "common.imp";

/* mapgroup-d ------------------------------------------------------------- */

topicgroup,
topichead {
    display: block;
}

/* map -------------------------------------------------------------------- */

front,
back,
mtbimap,
bookmap,
map {
    display: block;
}

booktitle,
title {
    margin: 1.33ex 0;
    display: block;
    font-family: verdana, arial, sans-serif;
    border-width: 1px;
    border-style: solid;
    border-top-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
}

booklibrary {
    display: block;
    color: blue;
    font-weight: bold;
    font-size: 1.2em;
}

booktitlealt {
    display: block;
    color: blue;
    font-style: italic;
    font-size: 1.0em;
}

title,
mainbooktitle {
    display: block;
    color: blue;
    font-weight: bold;
    font-size: 1.5em;
    margin: 0.83ex 0;
}

appendix,
chapter,
part,
front,
back,
legal,
feedback,
overview,
navref,
anchor,
topicgroup,
topichead,
topicref {
    display: block;
    margin-left: 4ex;
    margin-top: 0.5ex;
    margin-bottom: 0.5ex;
}

printlocation:before {
    display: block;
    content: "Country: ";
}

bookpartno:before {
    display: block;
    content: "DocNumber: ";
}

bookpartno,
printlocation {
    display: inline;
}

front:before {
    content: "Front Matter";
}

back {
    content: "Back Matter";
}

map > navref,
map > anchor,
map > topicgroup,
map > topichead,
map > topicref,
relcell > topicgroup,
relcell > topichead,
relcell > topicref {
    margin-left: 0;
}

map:before,
navref:before,
anchor:before,
topicgroup:before,
topichead:before,
topicref:before {
    display: inline;
    color: #333333;
}

map:before {
    content: url(icons/map.gif) " title=" attr(title);
}

chapter:before {
    content: url(icons/topicref.gif) " Chapter: " attr(navtitle);
}

part:before {
    content: url(icons/topicref.gif) " Part: " attr(navtitle);
}

appendix:before {
    content: url(icons/topicref.gif) " Appendix: " attr(navtitle);
}

legal:before {
    content: url(icons/topicref.gif) " Legal: " attr(navtitle);
}

feedback:before {
    content: url(icons/topicref.gif) " Feedback: " attr(navtitle);
}

overview:before {
    content: url(icons/topicref.gif) " Overview: " attr(navtitle);
}

topicref:before {
    content: url(icons/topicref.gif) " " attr(navtitle);
}

topicgroup:before {
    content: url(icons/topicgroup.gif) 
             " collection-type=" attr(collection-type);
}

topichead:before {
    content: url(icons/topichead.gif) " " attr(navtitle);
}

navref:before {
    content: url(icons/navref.gif) " mapref=" attr(mapref);
}

anchor:before {
    content: url(icons/anchor.gif) " id=" attr(id);
}

reltable {
    display: table;
    border: 1 solid #D0E0F0;
    margin: 1.33ex 0;
}

reltable > topicmeta {
    display: table-caption;
    margin-left: 0;
}

relheader,
relrow {
    display: table-row;
}

relcolspec,
relcell {
    display: table-cell;
    border: 1 solid #D0E0F0;
    padding: 2px;
}

relcolspec {
    background-color: #D0E0F0;
}

@media XMLmind-XML-Editor {
    relcolspec {
        content: "type=" attr(type);
        font-weight: bold;
        color: #333333;
    }
}

/*
 * Also found in topics but these are really map elements.
 */

/* map -------------------------------------------------------------------- */

linktext,
searchtitle,
shortdesc {
    display: block;
    margin-left: 16ex;
    margin-top: 1.33ex;
    margin-bottom: 1.33ex;
}

linktext:before,
searchtitle:before,
shortdesc:before {
    display: marker;
    font-weight: bold;
    color: #333333;
}

linktext:before {
    content: "linktext";
}

searchtitle:before {
    content: "searchtitle";
}

shortdesc:before {
    content: "shortdesc";
}

@media XMLmind-XML-Editor {
    linktext:before,
    searchtitle:before,
    shortdesc:before {
        content: element-name(); /*Support for specialization*/
        marker-offset: fill; /*Nicer*/
    }
}

/* ---------------------------------------------------------------------------
  When printing
--------------------------------------------------------------------------- */

@media print {
    * {
        background-color: transparent; 
        line-height: 1.2; 
    }
}

