michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: @import url(resource://gre-resources/html.css); michael@0: @import url(chrome://global/content/xul.css); michael@0: michael@0: @namespace parsererror url(http://www.mozilla.org/newlayout/xml/parsererror.xml); michael@0: @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); michael@0: michael@0: /* magic -- some of these rules are important to keep pages from overriding michael@0: them michael@0: */ michael@0: michael@0: /* Tables */ michael@0: michael@0: *|*::-moz-table { michael@0: display: table !important; michael@0: box-sizing: border-box; /* XXX do we really want this? */ michael@0: } michael@0: michael@0: *|*::-moz-inline-table { michael@0: display: inline-table !important; michael@0: box-sizing: border-box; /* XXX do we really want this? */ michael@0: } michael@0: michael@0: *|*::-moz-table-outer { michael@0: display: inherit !important; /* table or inline-table */ michael@0: margin: inherit ! important; michael@0: padding: 0 ! important; michael@0: border: none ! important; michael@0: float: inherit; michael@0: clear: inherit; michael@0: position: inherit; michael@0: top: inherit; michael@0: right: inherit; michael@0: bottom: inherit; michael@0: left: inherit; michael@0: z-index: inherit; michael@0: page-break-before: inherit; michael@0: page-break-after: inherit; michael@0: page-break-inside: inherit; michael@0: vertical-align: inherit; /* needed for inline-table */ michael@0: line-height: inherit; /* needed for vertical-align on inline-table */ michael@0: align-self: inherit; /* needed for "align-self" to work on table flex items */ michael@0: order: inherit; /* needed for "order" to work on table flex items */ michael@0: /* Bug 722777 */ michael@0: -moz-transform: inherit; michael@0: -moz-transform-origin: inherit; michael@0: /* Bug 724750 */ michael@0: -moz-backface-visibility: inherit; michael@0: clip: inherit; michael@0: } michael@0: michael@0: *|*::-moz-table-row { michael@0: display: table-row !important; michael@0: } michael@0: michael@0: /* The ::-moz-table-column pseudo-element is for extra columns at the end michael@0: of a table. */ michael@0: *|*::-moz-table-column { michael@0: display: table-column !important; michael@0: } michael@0: michael@0: *|*::-moz-table-column-group { michael@0: display: table-column-group !important; michael@0: } michael@0: michael@0: *|*::-moz-table-row-group { michael@0: display: table-row-group !important; michael@0: } michael@0: michael@0: *|*::-moz-table-cell { michael@0: display: table-cell !important; michael@0: white-space: inherit; michael@0: } michael@0: michael@0: /* Lists */ michael@0: michael@0: *|*::-moz-list-bullet, *|*::-moz-list-number { michael@0: display: inline; michael@0: vertical-align: baseline; michael@0: /* Note that this padding is suppressed for some CJK numbering styles; michael@0: * see bug 934072 */ michael@0: -moz-padding-end: 0.5em; michael@0: } michael@0: michael@0: /* Links */ michael@0: michael@0: *|*:-moz-any-link { michael@0: cursor: pointer; michael@0: } michael@0: michael@0: *|*:-moz-any-link:-moz-focusring { michael@0: /* Don't specify the outline-color, we should always use initial value. */ michael@0: outline: 1px dotted; michael@0: } michael@0: michael@0: /* Miscellaneous */ michael@0: michael@0: *|*::-moz-anonymous-block, *|*::-moz-cell-content { michael@0: display: block !important; michael@0: position: static !important; michael@0: unicode-bidi: inherit; michael@0: text-overflow: inherit; michael@0: overflow-clip-box: inherit; michael@0: } michael@0: michael@0: *|*::-moz-anonymous-block, *|*::-moz-anonymous-positioned-block { michael@0: /* we currently inherit from the inline that is split */ michael@0: outline: inherit; michael@0: outline-offset: inherit; michael@0: clip-path: inherit; michael@0: filter: inherit; michael@0: mask: inherit; michael@0: opacity: inherit; michael@0: text-decoration: inherit; michael@0: -moz-box-ordinal-group: inherit !important; michael@0: overflow-clip-box: inherit; michael@0: } michael@0: michael@0: *|*::-moz-xul-anonymous-block { michael@0: display: block ! important; michael@0: position: static ! important; michael@0: float: none ! important; michael@0: -moz-box-ordinal-group: inherit !important; michael@0: text-overflow: inherit; michael@0: overflow-clip-box: inherit; michael@0: } michael@0: michael@0: *|*::-moz-scrolled-content, *|*::-moz-scrolled-canvas, michael@0: *|*::-moz-scrolled-page-sequence { michael@0: /* e.g., text inputs, select boxes */ michael@0: padding: inherit; michael@0: /* The display doesn't affect the kind of frame constructed here. This just michael@0: affects auto-width sizing of the block we create. */ michael@0: display: block; michael@0: -moz-box-orient: inherit; michael@0: /* make unicode-bidi inherit, otherwise it has no effect on text inputs and michael@0: blocks with overflow: scroll; */ michael@0: unicode-bidi: inherit; michael@0: text-overflow: inherit; michael@0: -moz-column-count: inherit; michael@0: -moz-column-width: inherit; michael@0: -moz-column-gap: inherit; michael@0: -moz-column-rule: inherit; michael@0: /* CSS3 flexbox properties that apply to the flex container: */ michael@0: align-content: inherit; michael@0: align-items: inherit; michael@0: flex-direction: inherit; michael@0: flex-wrap: inherit; michael@0: justify-content: inherit; michael@0: /* Do not change these. nsCSSFrameConstructor depends on them to create a good michael@0: frame tree. */ michael@0: position: static !important; michael@0: float: none !important; michael@0: overflow-clip-box: inherit; michael@0: } michael@0: michael@0: *|*::-moz-viewport, *|*::-moz-viewport-scroll, *|*::-moz-canvas, *|*::-moz-scrolled-canvas { michael@0: display: block !important; michael@0: background-color: inherit; michael@0: } michael@0: michael@0: *|*::-moz-viewport-scroll { michael@0: overflow: auto; michael@0: %ifdef XP_WIN michael@0: resize: both; michael@0: %endif michael@0: } michael@0: michael@0: *|*::-moz-column-content { michael@0: /* the column boxes inside a column-flowed block */ michael@0: /* make unicode-bidi inherit, otherwise it has no effect on column boxes */ michael@0: unicode-bidi: inherit; michael@0: text-overflow: inherit; michael@0: /* inherit the outer frame's display, otherwise we turn into an inline */ michael@0: display: inherit !important; michael@0: /* Carry through our parent's height so that %-height children get michael@0: their heights set */ michael@0: height: 100%; michael@0: } michael@0: michael@0: *|*::-moz-anonymous-flex-item { michael@0: /* Anonymous blocks that wrap contiguous runs of inline non-replaced michael@0: * content inside of a flex container. */ michael@0: display: block; michael@0: } michael@0: michael@0: *|*::-moz-page-sequence, *|*::-moz-scrolled-page-sequence { michael@0: /* Collection of pages in print/print preview. Visual styles may only appear michael@0: * in print preview. */ michael@0: display: block !important; michael@0: background: linear-gradient(#606060, #8a8a8a) fixed; michael@0: height: 100%; michael@0: } michael@0: michael@0: *|*::-moz-page { michael@0: /* Individual page in print/print preview. Visual styles may only appear michael@0: * in print preview. */ michael@0: display: block !important; michael@0: background: white; michael@0: box-shadow: 5px 5px 8px #202020; michael@0: margin: 0.125in 0.25in; michael@0: } michael@0: michael@0: *|*::-moz-pagecontent { michael@0: display: block !important; michael@0: margin: auto; michael@0: } michael@0: michael@0: *|*::-moz-pagebreak { michael@0: display: block !important; michael@0: } michael@0: michael@0: *|*::-moz-anonymous-positioned-block { michael@0: display: block !important; michael@0: position: inherit; /* relative or sticky */ michael@0: top: inherit; michael@0: left: inherit; michael@0: bottom: inherit; michael@0: right: inherit; michael@0: z-index: inherit; michael@0: clip: inherit; michael@0: opacity: inherit; michael@0: unicode-bidi: inherit; michael@0: text-overflow: inherit; michael@0: } michael@0: michael@0: /* Printing */ michael@0: michael@0: @media print { michael@0: michael@0: * { michael@0: cursor: default !important; michael@0: } michael@0: michael@0: } michael@0: michael@0: *|*:not(:root):-moz-full-screen { michael@0: position: fixed !important; michael@0: top: 0 !important; michael@0: left: 0 !important; michael@0: right: 0 !important; michael@0: bottom: 0 !important; michael@0: z-index: 2147483647 !important; michael@0: background: black; michael@0: width: 100% !important; michael@0: height: 100% !important; michael@0: margin: 0 !important; michael@0: min-width: 0 !important; michael@0: max-width: none !important; michael@0: min-height: 0 !important; michael@0: max-height: none !important; michael@0: box-sizing: border-box !important; michael@0: } michael@0: michael@0: /* If there is a full-screen element that is not the root then michael@0: we should hide the viewport scrollbar. We exclude the chrome michael@0: document to prevent reframing of contained plugins. */ michael@0: :not(xul|*):root:-moz-full-screen-ancestor { michael@0: overflow: hidden !important; michael@0: } michael@0: michael@0: /* XML parse error reporting */ michael@0: michael@0: parsererror|parsererror { michael@0: display: block; michael@0: font-family: sans-serif; michael@0: font-weight: bold; michael@0: white-space: pre; michael@0: margin: 1em; michael@0: padding: 1em; michael@0: border-width: thin; michael@0: border-style: inset; michael@0: border-color: red; michael@0: font-size: 14pt; michael@0: background-color: lightyellow; michael@0: } michael@0: michael@0: parsererror|sourcetext { michael@0: display: block; michael@0: white-space: pre; michael@0: font-family: -moz-fixed; michael@0: margin-top: 2em; michael@0: margin-bottom: 1em; michael@0: color: red; michael@0: font-weight: bold; michael@0: font-size: 12pt; michael@0: }