@namespace "http://www.xmlmind.com/xmleditor/schema/quickrefcard";

quickrefcard,
section,
title,
note,
item,
on-mac,
para {
    display: block;
}

title {
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(70, 130, 180);
    margin: 1.33ex 0;
}

section > section > title {
    font-size: 1em;
}

note {
    background-color: rgb(255, 255, 224);
    padding: 1ex;
    margin: 1.33ex 4ex;
}

note:before {
    display: marker;
    content: url(note.gif);
    color: gray;
}

note > para:first-child {
    margin-top: 0;
    margin-bottom: 0;
}

para {
    margin: 1.33ex 0;
}

item > para {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 4ex;
}

item {
    margin-right: 40px;
}

item[important]:after {
    display: marker;
    content: url(important.gif);
}

literal {
    font-family: monospace;
}

emphasis {
    font-style: italic;
}

gui {
    font-weight: bold;
}

on-mac:before {
    content: icon(left-half-disc) " ";
    color: gray;
}

on-mac:after {
    content: " " icon(right-half-disc);
    color: gray;
}

dnd-drop, 
press-1, press-2, press-3, 
drag-1, drag-2, drag-3,
release-1, release-2, release-3, 
click-1, click-2, click-3, 
double-click-1, double-click-2, double-click-3, 
triple-click-1, triple-click-2, triple-click-3,
wheel {
    content: element-local-name();
}

dnd-drop,
press-1, press-2, press-3, 
drag-1, drag-2, drag-3,
release-1, release-2, release-3, 
click-1, click-2, click-3, 
double-click-1, double-click-2, double-click-3, 
triple-click-1, triple-click-2, triple-click-3,
wheel,
key,
char {
    background-color: rgb(225, 233, 237);
    font-weight: bold;
}

char {
    font-family: monospace;
    font-weight: normal;
}

key:before,
char:before {
    content: " ";
}

*[mod]:before,
*[ctrl]:before,
*[alt]:before,
*[shift]:before {
    content: xpath("concat(' ',join(@*,'-'),'-')");
}

key:first-child:before,
char:first-child:before {
    content: "";
}

*[mod]:first-child:before,
*[ctrl]:first-child:before,
*[alt]:first-child:before,
*[shift]:first-child:before {
    content: xpath("concat(join(@*,'-'),'-')");
}
