_checkbox.scss.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-form-field-Checkbox-css_mixin-extjs-form-checkboxfield'>/**
  19. </span> * Creates the base structure of checkbox field.
  20. * @member Ext.form.field.Checkbox
  21. */
  22. @mixin extjs-form-checkboxfield {
  23. .#{$prefix}form-cb-wrap {
  24. padding-top: 3px;
  25. }
  26. .#{$prefix}form-checkbox,
  27. .#{$prefix}form-radio {
  28. vertical-align: -1px;
  29. width: $form-checkbox-size;
  30. height: $form-checkbox-size;
  31. background: no-repeat;
  32. background-image: theme-background-image($theme-name, $form-checkbox-image);
  33. overflow: hidden;
  34. padding: 0;
  35. border: 0;
  36. &amp;::-moz-focus-inner {
  37. padding: 0;
  38. border: 0;
  39. }
  40. }
  41. @if $include-ie {
  42. /* Hack for IE; causes alignment problem in IE9 standards mode so exclude that */
  43. .#{$prefix}nbr.#{$prefix}ie {
  44. .#{$prefix}form-checkbox,
  45. .#{$prefix}form-radio {
  46. font-size: 0;
  47. }
  48. }
  49. }
  50. .#{$prefix}form-cb-checked {
  51. .#{$prefix}form-checkbox,
  52. .#{$prefix}form-radio {
  53. background-position: 0 (0 - $form-checkbox-size);
  54. }
  55. }
  56. /* Focused */
  57. .#{$prefix}form-cb-focus {
  58. background-position: (0 - $form-checkbox-size) 0;
  59. }
  60. .#{$prefix}form-cb-checked {
  61. .#{$prefix}form-cb-focus {
  62. background-position: (0 - $form-checkbox-size) (0 - $form-checkbox-size);
  63. }
  64. }
  65. /* Radios */
  66. .#{$prefix}form-radio {
  67. background-image: theme-background-image($theme-name, $form-radio-image);
  68. }
  69. /* boxLabel */
  70. .#{$prefix}form-cb-label-before {
  71. margin-right: 4px;
  72. }
  73. .#{$prefix}form-cb-label-after {
  74. margin-left: 4px;
  75. }
  76. }</pre>
  77. </body>
  78. </html>