OLD | NEW |
(Empty) | |
| 1 /*! |
| 2 * This file is part of website-defaults |
| 3 * Copyright (C) 2016-2017 eyeo GmbH |
| 4 * |
| 5 * website-defaults is free software: you can redistribute it and/or |
| 6 * modify it under the terms of the GNU General Public License as published by |
| 7 * the Free Software Foundation, either version 3 of the License, or |
| 8 * (at your option) any later version. |
| 9 * |
| 10 * website-defaults is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 * GNU General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU General Public License |
| 16 * along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 17 */ |
| 18 |
| 19 /******************************************************************************* |
| 20 * Buttons |
| 21 ******************************************************************************* |
| 22 * 1. Reset |
| 23 ******************************************************************************/ |
| 24 |
| 25 /* 1. Reset |
| 26 ******************************************************************************/ |
| 27 |
| 28 button |
| 29 { |
| 30 box-sizing: border-box; |
| 31 margin: 0px; |
| 32 font: inherit; |
| 33 |
| 34 /* Show the overflow in IE and Edge */ |
| 35 overflow: visible; |
| 36 |
| 37 /* Remove the inheritance of text transform in Edge, Firefox, and IE. */ |
| 38 text-transform: none; |
| 39 } |
| 40 |
| 41 /** |
| 42 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` |
| 43 * controls in Android 4. |
| 44 * 2. Correct the inability to style clickable types in iOS and Safari. |
| 45 */ |
| 46 |
| 47 button, |
| 48 html [type="button"], |
| 49 [type="reset"], |
| 50 [type="submit"] |
| 51 { |
| 52 -webkit-appearance: button; |
| 53 } |
| 54 |
| 55 /** |
| 56 * Remove the inner border and padding in Firefox. |
| 57 */ |
| 58 |
| 59 button::-moz-focus-inner, |
| 60 [type="button"]::-moz-focus-inner, |
| 61 [type="reset"]::-moz-focus-inner, |
| 62 [type="submit"]::-moz-focus-inner |
| 63 { |
| 64 padding: 0px; |
| 65 border-style: none; |
| 66 } |
| 67 |
| 68 /** |
| 69 * Restore the focus styles unset by the previous rule. |
| 70 */ |
| 71 |
| 72 button:-moz-focusring, |
| 73 [type="button"]:-moz-focusring, |
| 74 [type="reset"]:-moz-focusring, |
| 75 [type="submit"]:-moz-focusring |
| 76 { |
| 77 outline: 1px dotted ButtonText; |
| 78 } |
OLD | NEW |