/*
 * Copyright (c) 2017-2019 XMLmind Software. All rights reserved.
 *
 * This file is part of the XMLmind XML Editor project.
 * For conditions of distribution and use, see the accompanying legal.txt file.
 * 
 * Emulates what's done by Web browsers; that is,
 * the generic CSS styles recommended by the W3C 
 * plus dynamic support of user CSS styles.
 */

@import url(xhtml_base.imp);
@import url(xxe-config:common/css/xhtml_table_base.imp);

/*
 * For more information about table support for XHTML, see 
 * XMLmind XML Editor - Configuration and Deployment.
 */
@extension "com.xmlmind.xmleditext.xhtml.table.TableSupport false";

/* 
 * Do not report an error if the "MathML support" add-on 
 * has not been installed. 
 */
@import url(---mathml-config:xhtml5/mathml_support.imp);

/*
 * Dynamic support of user CSS styles.
 */
@extension "com.xmlmind.xmleditext.xhtml.UserStylesSupport";

/* Intrinsic text-align:center set by 
   com.xmlmind.xmleditext.xhtml.table.TableSupport
   which is invoked before this stylesheet. */
*[style*="text-align:"] th {
    text-align: inherit;
}

/* Scripting ============================================================== */

body template,
body script {
    display: none;
}

/* Text-level semantics =================================================== */

ruby {
    display: view("com.xmlmind.xmleditext.xhtml.RubyViewFactory");
    /* In fact what follows draws a grid. 
       It makes the structure of the ruby clearer. */
    padding: 1px;
    border: 1px solid #F0F0F0;
}

/* More realistic rendering, but harder to edit when rp is used.

rp {
    display: none;
}

*/

/* Embedded content ======================================================= */

/* embed-properties() also used in xhtml_base.imp to style canvas. */

embed {
    property-group: embed-properties(url(icons/embed.png));
}

object {
    property-group: embed-properties(url(icons/object.png));
}

iframe {
    property-group: embed-properties(url(icons/iframe.png));
}

video {
    property-group: embed-properties(url(icons/video.png));
}

audio { 
    property-group: embed-properties(url(icons/audio.png));
}

@import url(media.imp) media-player;

/* Forms ================================================================== */

select {
    display: inline-block;
    padding: 1px; /* Allows to see the red box around selected element. */
    font: message-box;
    font-weight: normal;
    font-style: normal;
    content: component("com.xmlmind.xmleditext.xhtml.form.Select");
}
