buttons-rtl.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. /*! This file is auto-generated */
  2. /* ----------------------------------------------------------------------------
  3. NOTE: If you edit this file, you should make sure that the CSS rules for
  4. buttons in the following files are updated.
  5. * jquery-ui-dialog.css
  6. * editor.css
  7. WordPress-style Buttons
  8. =======================
  9. Create a button by adding the `.button` class to an element. For backward
  10. compatibility, we support several other classes (such as `.button-secondary`),
  11. but these will *not* work with the stackable classes described below.
  12. Button Styles
  13. -------------
  14. To display a primary button style, add the `.button-primary` class to a button.
  15. Button Sizes
  16. ------------
  17. Adjust a button's size by adding the `.button-large` or `.button-small` class.
  18. Button States
  19. -------------
  20. Lock the state of a button by adding the name of the pseudoclass as
  21. an actual class (e.g. `.hover` for `:hover`).
  22. TABLE OF CONTENTS:
  23. ------------------
  24. 1.0 - Button Layouts
  25. 2.0 - Default Button Style
  26. 3.0 - Primary Button Style
  27. 4.0 - Button Groups
  28. 5.0 - Responsive Button Styles
  29. ---------------------------------------------------------------------------- */
  30. /* ----------------------------------------------------------------------------
  31. 1.0 - Button Layouts
  32. ---------------------------------------------------------------------------- */
  33. .wp-core-ui .button,
  34. .wp-core-ui .button-primary,
  35. .wp-core-ui .button-secondary {
  36. display: inline-block;
  37. text-decoration: none;
  38. font-size: 13px;
  39. line-height: 2.15384615; /* 28px */
  40. min-height: 30px;
  41. margin: 0;
  42. padding: 0 10px;
  43. cursor: pointer;
  44. border-width: 1px;
  45. border-style: solid;
  46. -webkit-appearance: none;
  47. border-radius: 3px;
  48. white-space: nowrap;
  49. box-sizing: border-box;
  50. }
  51. /* Remove the dotted border on :focus and the extra padding in Firefox */
  52. .wp-core-ui button::-moz-focus-inner,
  53. .wp-core-ui input[type="reset"]::-moz-focus-inner,
  54. .wp-core-ui input[type="button"]::-moz-focus-inner,
  55. .wp-core-ui input[type="submit"]::-moz-focus-inner {
  56. border-width: 0;
  57. border-style: none;
  58. padding: 0;
  59. }
  60. .wp-core-ui .button.button-large,
  61. .wp-core-ui .button-group.button-large .button {
  62. min-height: 32px;
  63. line-height: 2.30769231; /* 30px */
  64. padding: 0 12px;
  65. }
  66. .wp-core-ui .button.button-small,
  67. .wp-core-ui .button-group.button-small .button {
  68. min-height: 26px;
  69. line-height: 2.18181818; /* 24px */
  70. padding: 0 8px;
  71. font-size: 11px;
  72. }
  73. .wp-core-ui .button.button-hero,
  74. .wp-core-ui .button-group.button-hero .button {
  75. font-size: 14px;
  76. min-height: 46px;
  77. line-height: 3.14285714;
  78. padding: 0 36px;
  79. }
  80. .wp-core-ui .button.hidden {
  81. display: none;
  82. }
  83. /* Style Reset buttons as simple text links */
  84. .wp-core-ui input[type="reset"],
  85. .wp-core-ui input[type="reset"]:hover,
  86. .wp-core-ui input[type="reset"]:active,
  87. .wp-core-ui input[type="reset"]:focus {
  88. background: none;
  89. border: none;
  90. box-shadow: none;
  91. padding: 0 2px 1px;
  92. width: auto;
  93. }
  94. /* ----------------------------------------------------------------------------
  95. 2.0 - Default Button Style
  96. ---------------------------------------------------------------------------- */
  97. .wp-core-ui .button,
  98. .wp-core-ui .button-secondary {
  99. color: #2271b1;
  100. border-color: #2271b1;
  101. background: #f6f7f7;
  102. vertical-align: top;
  103. }
  104. .wp-core-ui p .button {
  105. vertical-align: baseline;
  106. }
  107. .wp-core-ui .button.hover,
  108. .wp-core-ui .button:hover,
  109. .wp-core-ui .button-secondary:hover{
  110. background: #f0f0f1;
  111. border-color: #0a4b78;
  112. color: #0a4b78;
  113. }
  114. .wp-core-ui .button.focus,
  115. .wp-core-ui .button:focus,
  116. .wp-core-ui .button-secondary:focus {
  117. background: #f6f7f7;
  118. border-color: #3582c4;
  119. color: #0a4b78;
  120. box-shadow: 0 0 0 1px #3582c4;
  121. /* Only visible in Windows High Contrast mode */
  122. outline: 2px solid transparent;
  123. /* Reset inherited offset from Gutenberg */
  124. outline-offset: 0;
  125. }
  126. /* :active state */
  127. .wp-core-ui .button:active,
  128. .wp-core-ui .button-secondary:active {
  129. background: #f6f7f7;
  130. border-color: #8c8f94;
  131. box-shadow: none;
  132. }
  133. /* pressed state e.g. a selected setting */
  134. .wp-core-ui .button.active,
  135. .wp-core-ui .button.active:hover {
  136. background-color: #dcdcde;
  137. color: #135e96;
  138. border-color: #0a4b78;
  139. box-shadow: inset 0 2px 5px -3px #0a4b78;
  140. }
  141. .wp-core-ui .button.active:focus {
  142. border-color: #3582c4;
  143. box-shadow:
  144. inset 0 2px 5px -3px #0a4b78,
  145. 0 0 0 1px #3582c4;
  146. }
  147. .wp-core-ui .button[disabled],
  148. .wp-core-ui .button:disabled,
  149. .wp-core-ui .button.disabled,
  150. .wp-core-ui .button-secondary[disabled],
  151. .wp-core-ui .button-secondary:disabled,
  152. .wp-core-ui .button-secondary.disabled,
  153. .wp-core-ui .button-disabled {
  154. color: #a7aaad !important;
  155. border-color: #dcdcde !important;
  156. background: #f6f7f7 !important;
  157. box-shadow: none !important;
  158. cursor: default;
  159. transform: none !important;
  160. }
  161. /* Buttons that look like links, for a cross of good semantics with the visual */
  162. .wp-core-ui .button-link {
  163. margin: 0;
  164. padding: 0;
  165. box-shadow: none;
  166. border: 0;
  167. border-radius: 0;
  168. background: none;
  169. cursor: pointer;
  170. text-align: right;
  171. /* Mimics the default link style in common.css */
  172. color: #2271b1;
  173. text-decoration: underline;
  174. transition-property: border, background, color;
  175. transition-duration: .05s;
  176. transition-timing-function: ease-in-out;
  177. }
  178. .wp-core-ui .button-link:hover,
  179. .wp-core-ui .button-link:active {
  180. color: #135e96;
  181. }
  182. .wp-core-ui .button-link:focus {
  183. color: #043959;
  184. box-shadow:
  185. 0 0 0 1px #4f94d4,
  186. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  187. /* Only visible in Windows High Contrast mode */
  188. outline: 1px solid transparent;
  189. }
  190. .wp-core-ui .button-link-delete {
  191. color: #d63638;
  192. }
  193. .wp-core-ui .button-link-delete:hover,
  194. .wp-core-ui .button-link-delete:focus {
  195. color: #d63638;
  196. background: transparent;
  197. }
  198. .wp-core-ui .button-link-delete:disabled {
  199. /* overrides the default buttons disabled background */
  200. background: transparent !important;
  201. }
  202. /* ----------------------------------------------------------------------------
  203. 3.0 - Primary Button Style
  204. ---------------------------------------------------------------------------- */
  205. .wp-core-ui .button-primary {
  206. background: #2271b1;
  207. border-color: #2271b1;
  208. color: #fff;
  209. text-decoration: none;
  210. text-shadow: none;
  211. }
  212. .wp-core-ui .button-primary.hover,
  213. .wp-core-ui .button-primary:hover,
  214. .wp-core-ui .button-primary.focus,
  215. .wp-core-ui .button-primary:focus {
  216. background: #135e96;
  217. border-color: #135e96;
  218. color: #fff;
  219. }
  220. .wp-core-ui .button-primary.focus,
  221. .wp-core-ui .button-primary:focus {
  222. box-shadow:
  223. 0 0 0 1px #fff,
  224. 0 0 0 3px #2271b1;
  225. }
  226. .wp-core-ui .button-primary.active,
  227. .wp-core-ui .button-primary.active:hover,
  228. .wp-core-ui .button-primary.active:focus,
  229. .wp-core-ui .button-primary:active {
  230. background: #135e96;
  231. border-color: #135e96;
  232. box-shadow: none;
  233. color: #fff;
  234. }
  235. .wp-core-ui .button-primary[disabled],
  236. .wp-core-ui .button-primary:disabled,
  237. .wp-core-ui .button-primary-disabled,
  238. .wp-core-ui .button-primary.disabled {
  239. color: #a7aaad !important;
  240. background: #f6f7f7 !important;
  241. border-color: #dcdcde !important;
  242. box-shadow: none !important;
  243. text-shadow: none !important;
  244. cursor: default;
  245. }
  246. /* ----------------------------------------------------------------------------
  247. 4.0 - Button Groups
  248. ---------------------------------------------------------------------------- */
  249. .wp-core-ui .button-group {
  250. position: relative;
  251. display: inline-block;
  252. white-space: nowrap;
  253. font-size: 0;
  254. vertical-align: middle;
  255. }
  256. .wp-core-ui .button-group > .button {
  257. display: inline-block;
  258. border-radius: 0;
  259. margin-left: -1px;
  260. }
  261. .wp-core-ui .button-group > .button:first-child {
  262. border-radius: 0 3px 3px 0;
  263. }
  264. .wp-core-ui .button-group > .button:last-child {
  265. border-radius: 3px 0 0 3px;
  266. }
  267. .wp-core-ui .button-group > .button-primary + .button {
  268. border-right: 0;
  269. }
  270. .wp-core-ui .button-group > .button:focus {
  271. position: relative;
  272. z-index: 1;
  273. }
  274. /* pressed state e.g. a selected setting */
  275. .wp-core-ui .button-group > .button.active {
  276. background-color: #dcdcde;
  277. color: #135e96;
  278. border-color: #0a4b78;
  279. box-shadow: inset 0 2px 5px -3px #0a4b78;
  280. }
  281. .wp-core-ui .button-group > .button.active:focus {
  282. border-color: #3582c4;
  283. box-shadow:
  284. inset 0 2px 5px -3px #0a4b78,
  285. 0 0 0 1px #3582c4;
  286. }
  287. /* ----------------------------------------------------------------------------
  288. 5.0 - Responsive Button Styles
  289. ---------------------------------------------------------------------------- */
  290. @media screen and (max-width: 782px) {
  291. .wp-core-ui .button,
  292. .wp-core-ui .button.button-large,
  293. .wp-core-ui .button.button-small,
  294. input#publish,
  295. input#save-post,
  296. a.preview {
  297. padding: 0 14px;
  298. line-height: 2.71428571; /* 38px */
  299. font-size: 14px;
  300. vertical-align: middle;
  301. min-height: 40px;
  302. margin-bottom: 4px;
  303. }
  304. /* Copy attachment URL button in the legacy edit media page. */
  305. .wp-core-ui .copy-to-clipboard-container .copy-attachment-url {
  306. margin-bottom: 0;
  307. }
  308. #media-upload.wp-core-ui .button {
  309. padding: 0 10px 1px;
  310. min-height: 24px;
  311. line-height: 22px;
  312. font-size: 13px;
  313. }
  314. .media-frame.mode-grid .bulk-select .button {
  315. margin-bottom: 0;
  316. }
  317. /* Publish Metabox Options */
  318. .wp-core-ui .save-post-status.button {
  319. position: relative;
  320. margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
  321. }
  322. /* Reset responsive styles in Press This, Customizer */
  323. .wp-core-ui.wp-customizer .button {
  324. font-size: 13px;
  325. line-height: 2.15384615; /* 28px */
  326. min-height: 30px;
  327. margin: 0;
  328. vertical-align: inherit;
  329. }
  330. .media-modal-content .media-toolbar-primary .media-button {
  331. margin-top: 10px;
  332. margin-right: 5px;
  333. }
  334. /* Reset responsive styles on Log in button on iframed login form */
  335. .interim-login .button.button-large {
  336. min-height: 30px;
  337. line-height: 2;
  338. padding: 0 12px 2px;
  339. }
  340. }