зеркало из https://github.com/mozilla/gecko-dev.git
627 строки
14 KiB
CSS
627 строки
14 KiB
CSS
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
%filter substitution
|
|
%include defines.inc
|
|
|
|
@font-face {
|
|
font-family: 'OpenSansRegular';
|
|
src: url('chrome://browser/skin/fonts/opensans-regular.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
html {
|
|
-moz-text-size-adjust: none;
|
|
}
|
|
|
|
body {
|
|
font-family: "OpenSansRegular","Droid Sans",sans-serif;
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
.light {
|
|
background-image: url('chrome://browser/skin/images/reader-light-bg.png');
|
|
color: #222222;
|
|
}
|
|
|
|
.dark {
|
|
background-image: url('chrome://browser/skin/images/reader-dark-bg.png');
|
|
color: #eeeeee;
|
|
}
|
|
|
|
.sepia {
|
|
background-image: url('chrome://browser/skin/images/reader-sepia-bg.png');
|
|
color: #332e20;
|
|
}
|
|
|
|
.header {
|
|
font-family: "Droid Serif",serif;
|
|
width: 100%;
|
|
text-align: center;
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 2px solid;
|
|
-moz-border-bottom-colors: #ff9400 #ee6700;
|
|
display: none;
|
|
}
|
|
|
|
.light > .header {
|
|
-moz-border-bottom-colors: #ff9400 #ee6700;
|
|
}
|
|
|
|
.dark > .header {
|
|
-moz-border-bottom-colors: #ff9400 #ee6700;
|
|
}
|
|
|
|
.sepia > .header {
|
|
-moz-border-bottom-colors: #c1531b #75391c;
|
|
}
|
|
|
|
.font-size1 > .header {
|
|
font-size: 23px;
|
|
}
|
|
|
|
.font-size2 > .header {
|
|
font-size: 25px;
|
|
}
|
|
|
|
.font-size3 > .header {
|
|
font-size: 27px;
|
|
}
|
|
|
|
.font-size4 > .header {
|
|
font-size: 29px;
|
|
}
|
|
|
|
.font-size5 > .header {
|
|
font-size: 31px;
|
|
}
|
|
|
|
.font-size6 > .header {
|
|
font-size: 33px;
|
|
}
|
|
|
|
.font-size7 > .header {
|
|
font-size: 35px;
|
|
}
|
|
|
|
.content {
|
|
padding-top: 20px;
|
|
padding-bottom: 20px;
|
|
display: none;
|
|
}
|
|
|
|
.content a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.light > .content a,
|
|
.light > .content a:visited,
|
|
.light > .content a:hover,
|
|
.light > .content a:active {
|
|
color: #ee6700;
|
|
}
|
|
|
|
.dark > .content a,
|
|
.dark > .content a:visited,
|
|
.dark > .content a:hover,
|
|
.dark > .content a:active {
|
|
color: #ff9400;
|
|
}
|
|
|
|
.sepia > .content a,
|
|
.sepia > .content a:visited,
|
|
.sepia > .content a:hover,
|
|
.sepia > .content a:active {
|
|
color: #c1531b;
|
|
}
|
|
|
|
.content * {
|
|
max-width: 100% !important;
|
|
overflow: scroll !important;
|
|
}
|
|
|
|
.content img {
|
|
height: auto !important;
|
|
}
|
|
|
|
.content pre {
|
|
overflow: scroll !important;
|
|
}
|
|
|
|
.content blockquote {
|
|
margin: 0px !important;
|
|
padding: 0px !important;
|
|
border: 0px !important;
|
|
padding-left: 23px !important;
|
|
}
|
|
|
|
.font-size1 > .content {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.font-size2 > .content {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.font-size3 > .content {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.font-size4 > .content {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.font-size5 > .content {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.font-size6 > .content {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.font-size7 > .content {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.toolbar {
|
|
font-family: "Droid Sans",helvetica,arial,clean,sans-serif;
|
|
-moz-transition-property: visibility opacity;
|
|
-moz-transition-duration: 0.7s;
|
|
visibility: visible;
|
|
opacity: 1.0;
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
background-repeat: repeat;
|
|
}
|
|
|
|
.toolbar-hidden {
|
|
-moz-transition-property: visibility opacity;
|
|
-moz-transition-duration: 0.7s;
|
|
visibility: hidden;
|
|
opacity: 0.0;
|
|
}
|
|
|
|
.toolbar > * {
|
|
float: right;
|
|
width: 25%;
|
|
}
|
|
|
|
.button {
|
|
color: white;
|
|
display: block;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.button:active {
|
|
background-color: #ff9500;
|
|
}
|
|
|
|
.dropdown {
|
|
text-align: center;
|
|
display: inline-block;
|
|
list-style: none;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.dropdown li {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.dropdown-popup {
|
|
text-align: left;
|
|
position: absolute;
|
|
left: 0px;
|
|
z-index: 1000;
|
|
float: left;
|
|
background: #dde2e7;
|
|
margin-top: 12px;
|
|
margin-bottom: 10px;
|
|
padding-top: 4px;
|
|
padding-bottom: 8px;
|
|
font-size: 14px;
|
|
box-shadow: 0px -1px 12px #333;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.dropdown-popup > hr {
|
|
width: 100%;
|
|
height: 0px;
|
|
border: 0px;
|
|
border-top: 1px solid #ccc;
|
|
border-bottom: 1px solid white;
|
|
margin: 0px 0px 10px 0px;
|
|
float: left;
|
|
}
|
|
|
|
.dropdown-popup .button:active {
|
|
background-color: #ccc;
|
|
}
|
|
|
|
.open > .dropdown-popup {
|
|
margin-top: 0px;
|
|
margin-bottom: 6px;
|
|
bottom: 100%;
|
|
visibility: visible;
|
|
}
|
|
|
|
.dropdown-arrow {
|
|
position: absolute;
|
|
width: 40px;
|
|
height: 18px;
|
|
bottom: -18px;
|
|
background-image: url('chrome://browser/skin/images/reader-dropdown-arrow-mdpi.png');
|
|
background-size: 40px 18px;
|
|
background-position: center;
|
|
display: block;
|
|
}
|
|
|
|
.segmented-button {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 5px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.segmented-button > li {
|
|
display: inline-block;
|
|
padding: 1px 5px;
|
|
border-left: 1px solid #ccc;
|
|
}
|
|
|
|
.segmented-button > li:first-child {
|
|
border-left: 0px;
|
|
}
|
|
|
|
.segmented-button > li > a,
|
|
.segmented-button > li > a:hover
|
|
.segmented-button > li > a:visited {
|
|
display: block;
|
|
padding: 10px 16px;
|
|
text-decoration: none;
|
|
color: black;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.segmented-button > li > a:active,
|
|
.segmented-button > li.selected > a {
|
|
background: #ccc;
|
|
}
|
|
|
|
.step-control {
|
|
width: 100%;
|
|
padding: 0px;
|
|
}
|
|
|
|
.step-control > h1 {
|
|
font-size: 16px;
|
|
font-weight: normal;
|
|
color: black;
|
|
margin: 0px;
|
|
margin-top: 12px;
|
|
margin-bottom: 20px;
|
|
margin-left: 10px;
|
|
float: left;
|
|
}
|
|
|
|
.step-control > .button {
|
|
float: right;
|
|
text-align: center;
|
|
width: 56px;
|
|
height: 43px;
|
|
background-size: 20px;
|
|
}
|
|
|
|
.step-control > .plus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-plus-icon-mdpi.png');
|
|
border-left: 1px solid #ccc;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.step-control > .minus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-minus-icon-mdpi.png');
|
|
}
|
|
|
|
@media screen and (orientation: portrait) {
|
|
.button {
|
|
height: 48px;
|
|
background-size: 30px 24px
|
|
}
|
|
|
|
.toolbar {
|
|
background-size: 48px;
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-port-mdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-port-mdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-port-mdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-port-mdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-port-mdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-port-mdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (orientation: landscape) {
|
|
.button {
|
|
height: 40px;
|
|
background-size: 24px 20px
|
|
}
|
|
|
|
.toolbar {
|
|
background-size: 40px;
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-land-mdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-land-mdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-land-mdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-land-mdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-land-mdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-land-mdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 960px) {
|
|
.button {
|
|
width: 56px;
|
|
height: 56px;
|
|
background-size: 36px 28px
|
|
}
|
|
|
|
.toolbar {
|
|
background-size: 56px;
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-xlarge-mdpi.png');
|
|
}
|
|
|
|
.toolbar > * {
|
|
width: 56px;
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-xlarge-mdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-xlarge-mdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-xlarge-mdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-xlarge-mdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-xlarge-mdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (min-resolution: 200dpi) {
|
|
.dropdown-arrow {
|
|
background-image: url('chrome://browser/skin/images/reader-dropdown-arrow-hdpi.png');
|
|
}
|
|
|
|
.step-control > .plus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-plus-icon-hdpi.png');
|
|
}
|
|
|
|
.step-control > .minus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-minus-icon-hdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (min-resolution: 300dpi) {
|
|
.dropdown-arrow {
|
|
background-image: url('chrome://browser/skin/images/reader-dropdown-arrow-xhdpi.png');
|
|
}
|
|
|
|
.step-control > .plus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-plus-icon-xhdpi.png');
|
|
}
|
|
|
|
.step-control > .minus-button {
|
|
background-image: url('chrome://browser/skin/images/reader-minus-icon-xhdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (orientation: portrait) and (min-resolution: 200dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-port-hdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-port-hdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-port-hdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-port-hdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-port-hdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-port-hdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (orientation: landscape) and (min-resolution: 200dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-land-hdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-land-hdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-land-hdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-land-hdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-land-hdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-land-hdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (orientation: portrait) and (min-resolution: 300dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-port-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-port-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-port-xhdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-port-xhdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-port-xhdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-port-xhdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (orientation: landscape) and (min-resolution: 300dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-land-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-land-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-land-xhdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-land-xhdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-land-xhdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-land-xhdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 960px) and (min-resolution: 200dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-xlarge-hdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-xlarge-hdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-xlarge-hdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-xlarge-hdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-xlarge-hdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-xlarge-hdpi.png');
|
|
}
|
|
}
|
|
|
|
@media screen and (min-width: 960px) and (min-resolution: 300dpi) {
|
|
.toolbar {
|
|
background-image: url('chrome://browser/skin/images/reader-toolbar-bg-xlarge-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button.on {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-on-icon-xlarge-xhdpi.png');
|
|
}
|
|
|
|
.toggle-button {
|
|
background-image: url('chrome://browser/skin/images/reader-toggle-off-icon-xlarge-xhdpi.png');
|
|
}
|
|
|
|
.list-button {
|
|
background-image: url('chrome://browser/skin/images/reader-list-icon-xlarge-xhdpi.png');
|
|
}
|
|
|
|
.share-button {
|
|
background-image: url('chrome://browser/skin/images/reader-share-icon-xlarge-xhdpi.png');
|
|
}
|
|
|
|
.style-button {
|
|
background-image: url('chrome://browser/skin/images/reader-style-icon-xlarge-xhdpi.png');
|
|
}
|
|
}
|