Files
WebODF/webodf/webodf.css
T

471 lines
9.9 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@namespace draw url(urn:oasis:names:tc:opendocument:xmlns:drawing:1.0);
@namespace fo url(urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0);
@namespace office url(urn:oasis:names:tc:opendocument:xmlns:office:1.0);
@namespace presentation url(urn:oasis:names:tc:opendocument:xmlns:presentation:1.0);
@namespace style url(urn:oasis:names:tc:opendocument:xmlns:style:1.0);
@namespace svg url(urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0);
@namespace table url(urn:oasis:names:tc:opendocument:xmlns:table:1.0);
@namespace text url(urn:oasis:names:tc:opendocument:xmlns:text:1.0);
@namespace runtimens url(urn:webodf); /* namespace for runtime only */
@namespace cursor url(urn:webodf:names:cursor);
@namespace editinfo url(urn:webodf:names:editinfo);
@namespace annotation url(urn:webodf:names:annotation);
@namespace dc url(http://purl.org/dc/elements/1.1/);
office|document > *, office|document-content > * {
display: none;
}
office|body, office|document {
display: inline-block;
position: relative;
}
text|p, text|h {
display: block;
padding: 0;
margin: 0;
line-height: normal;
position: relative;
min-height: 1.3em; /* prevent empty paragraphs and headings from collapsing if they are empty */
}
*[runtimens|containsparagraphanchor] {
position: relative;
}
text|s {
white-space: pre;
}
text|tab {
display: inline;
white-space: pre;
}
text|line-break {
content: " ";
display: block;
}
text|tracked-changes {
/*Consumers that do not support change tracking, should ignore changes.*/
display: none;
}
office|binary-data {
display: none;
}
office|text {
display: block;
text-align: left;
overflow: visible;
word-wrap: break-word;
}
office|text::selection {
/** Let's not draw selection highlight that overflows into the office|text
* node when selecting content across several paragraphs
*/
background: transparent;
}
office|spreadsheet {
display: block;
border-collapse: collapse;
empty-cells: show;
font-family: sans-serif;
font-size: 10pt;
text-align: left;
page-break-inside: avoid;
overflow: hidden;
}
office|presentation {
display: inline-block;
text-align: left;
}
#shadowContent {
display: inline-block;
text-align: left;
}
draw|page {
display: block;
position: relative;
overflow: hidden;
}
presentation|notes, presentation|footer-decl, presentation|date-time-decl {
display: none;
}
@media print {
draw|page {
border: 1pt solid black;
page-break-inside: avoid;
}
presentation|notes {
/*TODO*/
}
}
office|spreadsheet text|p {
border: 0px;
padding: 1px;
margin: 0px;
}
office|spreadsheet table|table {
margin: 3px;
}
office|spreadsheet table|table:after {
/* show sheet name the end of the sheet */
/*content: attr(table|name);*/ /* gives parsing error in opera */
}
office|spreadsheet table|table-row {
counter-increment: row;
}
office|spreadsheet table|table-row:before {
width: 3em;
background: #cccccc;
border: 1px solid black;
text-align: center;
content: counter(row);
display: table-cell;
}
office|spreadsheet table|table-cell {
border: 1px solid #cccccc;
}
table|table {
display: table;
}
draw|frame table|table {
width: 100%;
height: 100%;
background: white;
}
table|table-header-rows {
display: table-header-group;
}
table|table-row {
display: table-row;
}
table|table-column {
display: table-column;
}
table|table-cell {
width: 0.889in;
display: table-cell;
word-break: break-all; /* prevent long words from extending out the table cell */
}
draw|frame {
display: block;
}
draw|image {
display: block;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
background-repeat: no-repeat;
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}
/* only show the first image in frame */
draw|frame > draw|image:nth-of-type(n+2) {
display: none;
}
text|list:before {
display: none;
content:"";
}
text|list {
counter-reset: list;
}
text|list-item {
display: block;
}
text|number {
display:none;
}
text|a {
color: blue;
text-decoration: underline;
cursor: pointer;
}
text|note-citation {
vertical-align: super;
font-size: smaller;
}
text|note-body {
display: none;
}
text|note:hover text|note-citation {
background: #dddddd;
}
text|note:hover text|note-body {
display: block;
left:1em;
max-width: 80%;
position: absolute;
background: #ffffaa;
}
svg|title, svg|desc {
display: none;
}
video {
width: 100%;
height: 100%
}
/* below set up the cursor */
cursor|cursor {
display: inline;
width: 0px;
height: 1em;
/* making the position relative enables the avatar to use
the cursor as reference for its absolute position */
position: relative;
z-index: 1;
}
cursor|cursor > span {
display: inline;
position: absolute;
top: 5%; /* push down the caret; 0px can do the job, 5% looks better, 10% is a bit over */
height: 1em;
border-left: 2px solid black;
outline: none;
}
cursor|cursor > div {
padding: 3px;
box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
border: none !important;
border-radius: 5px;
opacity: 0.3;
}
cursor|cursor > div > img {
border-radius: 5px;
}
cursor|cursor > div.active {
opacity: 0.8;
}
cursor|cursor > div:after {
content: ' ';
position: absolute;
width: 0px;
height: 0px;
border-style: solid;
border-width: 8.7px 5px 0 5px;
border-color: black transparent transparent transparent;
top: 100%;
left: 43%;
}
.editInfoMarker {
position: absolute;
width: 10px;
height: 100%;
left: -20px;
opacity: 0.8;
top: 0;
border-radius: 5px;
background-color: transparent;
box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
}
.editInfoMarker:hover {
box-shadow: 0px 0px 8px rgba(0, 0, 0, 1);
}
.editInfoHandle {
position: absolute;
background-color: black;
padding: 5px;
border-radius: 5px;
opacity: 0.8;
box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
bottom: 100%;
margin-bottom: 10px;
z-index: 3;
left: -25px;
}
.editInfoHandle:after {
content: ' ';
position: absolute;
width: 0px;
height: 0px;
border-style: solid;
border-width: 8.7px 5px 0 5px;
border-color: black transparent transparent transparent;
top: 100%;
left: 5px;
}
.editInfo {
font-family: sans-serif;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: white;
width: 100%;
height: 12pt;
}
.editInfoColor {
float: left;
width: 10pt;
height: 10pt;
border: 1px solid white;
}
.editInfoAuthor {
float: left;
margin-left: 5pt;
font-size: 10pt;
text-align: left;
height: 12pt;
line-height: 12pt;
}
.editInfoTime {
float: right;
margin-left: 30pt;
font-size: 8pt;
font-style: italic;
color: yellow;
height: 12pt;
line-height: 12pt;
}
.annotationWrapper {
display: inline;
position: relative;
}
.annotationRemoveButton:before {
content: '×';
color: white;
padding: 5px;
line-height: 1em;
}
.annotationRemoveButton {
width: 20px;
height: 20px;
border-radius: 10px;
background-color: black;
box-shadow: 0px 0px 5px rgba(50, 50, 50, 0.75);
position: absolute;
top: -10px;
left: -10px;
z-index: 3;
text-align: center;
font-family: sans-serif;
font-style: normal;
font-weight: normal;
text-decoration: none;
font-size: 15px;
}
.annotationRemoveButton:hover {
cursor: pointer;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}
.annotationNote {
width: 4cm;
position: absolute;
display: inline;
z-index: 10;
}
.annotationNote > office|annotation {
display: block;
}
.annotationConnector {
position: absolute;
display: inline;
z-index: 2;
border-top: 1px dashed brown;
}
.annotationConnector.angular {
-moz-transform-origin: left top;
-webkit-transform-origin: left top;
-ms-transform-origin: left top;
transform-origin: left top;
}
.annotationConnector.horizontal {
left: 0;
}
.annotationConnector.horizontal:before {
content: '';
display: inline;
position: absolute;
width: 0px;
height: 0px;
border-style: solid;
border-width: 8.7px 5px 0 5px;
border-color: brown transparent transparent transparent;
top: -1px;
left: -5px;
}
office|annotation {
width: 100%;
height: 100%;
display: none;
background: rgb(198, 238, 184);
background: -moz-linear-gradient(90deg, rgb(198, 238, 184) 30%, rgb(180, 196, 159) 100%);
background: -webkit-linear-gradient(90deg, rgb(198, 238, 184) 30%, rgb(180, 196, 159) 100%);
background: -o-linear-gradient(90deg, rgb(198, 238, 184) 30%, rgb(180, 196, 159) 100%);
background: -ms-linear-gradient(90deg, rgb(198, 238, 184) 30%, rgb(180, 196, 159) 100%);
background: linear-gradient(180deg, rgb(198, 238, 184) 30%, rgb(180, 196, 159) 100%);
box-shadow: 0 3px 4px -3px #ccc;
}
office|annotation > dc|creator {
display: block;
font-size: 10pt;
font-weight: normal;
font-style: normal;
font-family: sans-serif;
color: white;
background-color: brown;
padding: 4px;
}
office|annotation > dc|date {
display: block;
font-size: 10pt;
font-weight: normal;
font-style: normal;
font-family: sans-serif;
border: 4px solid transparent;
}
office|annotation > text|list {
display: block;
padding: 5px;
}
/* This is very temporary CSS. This must go once
* we start bundling webodf-default ODF styles for annotations.
*/
office|annotation text|p {
font-size: 10pt;
color: black;
font-weight: normal;
font-style: normal;
text-decoration: none;
font-family: sans-serif;
}
dc|*::selection {
background: transparent;
}
dc|*::-moz-selection {
background: transparent;
}
#annotationsPane {
background-color: #EAEAEA;
width: 4cm;
height: 100%;
display: inline-block;
position: absolute;
outline: 1px solid #ccc;
}
.annotationHighlight {
background-color: yellow;
position: relative;
}