UNPKG

@evidentpoint/readium-css

Version:

A set of reference stylesheets for EPUB Reading Systems

281 lines (240 loc) 5.27 kB
/* HTML5 Suggested rendering versus Safari UA Stylesheet (Version 10.1.1) Source: https://www.w3.org/TR/html5/rendering.html */ @namespace url(http://www.w3.org/1999/xhtml); /* 015 Button */ button { -webkit-appearance: button; writing-mode: horizontal-tb !important; margin: 0; font-style: normal; font-weight: 400; font-size: 11px; font-family: -apple-system; font-variant-caps: normal; letter-spacing: normal; word-spacing: normal; line-height: normal; text-transform: none; text-indent: 0px; text-shadow: none; display: inline-block; align-items: flex-start; text-align: center; cursor: default; color: buttontext; padding: 2px 6px 3px; border: 2px outset buttonface; background-color: buttonface; border-image: initial; box-sizing: border-box; } /* 016 Input as text entry */ input { -webkit-appearance: textfield; writing-mode: horizontal-tb !important; margin: 0; font-style: normal; font-weight: 400; font-size: 11px; font-family: -apple-system; font-variant-caps: normal; letter-spacing: normal; word-spacing: normal; line-height: normal; text-transform: none; text-indent: 0px; text-shadow: none; display: inline-block; text-align: start; background-color: white; border: 2px inset initial; border-image: initial; padding: 1px; -webkit-rtl-ordering: logical; -webkit-user-select: text; cursor: auto; } input[type=search i] { -webkit-appearance: searchfield; box-sizing: border-box; } input[type=password i] { -webkit-text-security: disc !important; } /* 017 Input as domain specific widget */ input[type=date i] { } input[type=time i] { } input[type=number i] { } /* 018 Input as range control */ input[type=range i] { -webkit-appearance: slider-horizontal; padding: initial; border: initial; margin: 2px; color: rgb(144, 144, 144); } /* 019 Input as color well */ /* Not implemented */ input[type=color i] { } /* 020 Input as checkbox and radio */ input[type=checkbox i] { -webkit-appearance: checkbox; margin: 3px 2px; padding: initial; background-color: initial; border: initial; box-sizing: border-box; } input[type=radio i] { -webkit-appearance: radio; margin: 3px 2px; padding: initial; background-color: initial; border: initial; box-sizing: border-box; } /* 021 Input as file upload */ input[type=file i] { -webkit-appearance: initial; padding: initial; background-color: initial; border: initial; align-items: baseline; color: inherit; text-align: start !important; } /* 022 Input as button */ input[type=submit i], input[type=reset i], input[type=button i] { -webkit-appearance: push-button; white-space: pre; -webkit-rtl-ordering: logical; -webkit-user-select: text; align-items: flex-start; text-align: center; cursor: default; color: buttontext; padding: 2px 6px 3px; border: 2px outset buttonface; background-color: buttonface; border-image: initial; box-sizing: border-box; } /* 023 Marquee */ marquee { } /* 024 Meter */ meter { -webkit-appearance: meter; writing-mode: horizontal-tb !important; box-sizing: border-box; display: inline-block; height: 1em; width: 5em; vertical-align: -0.2em; } /* 025 Progress */ progress { -webkit-appearance: progress-bar; writing-mode: horizontal-tb !important; box-sizing: border-box; display: inline-block; height: 1em; width: 10em; vertical-align: -0.2em; } /* 026 Select */ select { -webkit-appearance: menulist; writing-mode: horizontal-tb !important; margin: 0; font-style: normal; font-weight: 400; font-size: 11px; font-family: -apple-system; font-variant-caps: normal; letter-spacing: normal; word-spacing: normal; line-height: normal; text-transform: none; text-indent: 0px; text-shadow: none; display: inline-block; text-align: start; border-radius: 5px; box-sizing: border-box; border: 1px solid initial; border-image: initial; color: black; background-color: white; align-items: center; white-space: pre; -webkit-rtl-ordering: logical; cursor: default; } /* 027 Textarea */ textarea { white-space: pre-wrap; -webkit-appearance: textarea; margin: 0; font-style: normal; font-weight: 400; font-size: 11px; font-family: -apple-system; font-variant-caps: normal; letter-spacing: normal; word-spacing: normal; line-height: normal; text-transform: none; text-indent: 0px; text-shadow: none; display: inline-block; text-align: start; background-color: white; border: 1px solid initial; border-image: initial; -webkit-user-select: text; flex-direction: column; resize: auto; cursor: auto; padding: 2px; word-wrap: break-word; } /* 028 Keygen */ keygen { writing-mode: horizontal-tb !important; margin: 0; font-style: normal; font-weight: 400; font-size: 11px; font-family: -apple-system; font-variant-caps: normal; letter-spacing: normal; word-spacing: normal; line-height: normal; text-transform: none; text-indent: 0px; text-shadow: none; display: inline-block; text-align: start; border-radius: 5px; } /* 029 Frame and framesets */