_core.scss2.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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">.#{$prefix}body {
  19. color: $color;
  20. font-size: $font-size;
  21. font-family: $font-family;
  22. }
  23. .#{$prefix}rtl {
  24. direction: rtl;
  25. }
  26. .#{$prefix}ltr {
  27. direction: ltr;
  28. }
  29. .#{$prefix}clear {
  30. overflow: hidden;
  31. clear: both;
  32. font-size: 0;
  33. line-height: 0;
  34. display: table;
  35. }
  36. .#{$prefix}strict .#{$prefix}ie7 .#{$prefix}clear {
  37. // In IE7 strict the clear element has to have both a height and width of 0, otherwise the height of its parent element gets
  38. // increased by 1px. We cannot simply add the zero height/width for all browsers, because in IE quirks the height
  39. // of the clear element's parent element gets increased by 1px if the clear element has either height:0 or width:0.
  40. height: 0;
  41. width: 0;
  42. }
  43. .#{$prefix}layer {
  44. position: absolute !important;
  45. overflow: hidden;
  46. zoom: 1;
  47. }
  48. .#{$prefix}shim {
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. overflow: hidden;
  53. @include opacity(0);
  54. }
  55. .#{$prefix}hide-display {
  56. display: none !important;
  57. }
  58. .#{$prefix}hide-visibility {
  59. visibility:hidden !important;
  60. }
  61. .#{$prefix}item-disabled .#{$prefix}form-item-label,
  62. .#{$prefix}item-disabled .#{$prefix}form-field,
  63. .#{$prefix}item-disabled .#{$prefix}form-cb-label,
  64. .#{$prefix}item-disabled .#{$prefix}form-trigger {
  65. @include opacity(0.3);
  66. }
  67. .#{$prefix}ie6 .#{$prefix}item-disabled {
  68. filter:none;
  69. }
  70. .#{$prefix}hidden,
  71. .#{$prefix}hide-offsets {
  72. // to deal with inline elements that can't be position:absolute
  73. display: block !important;
  74. // ensure the browser disallows tabbing into this element
  75. visibility: hidden !important;
  76. position: absolute!important;
  77. left: -10000px!important;
  78. top: -10000px!important;
  79. }
  80. .#{$prefix}hide-nosize {
  81. height: 0!important;
  82. width: 0!important;
  83. }
  84. .#{$prefix}masked-relative {
  85. position: relative;
  86. }
  87. @if $include-ie {
  88. .#{$prefix}ie6 .#{$prefix}masked select,
  89. .#{$prefix}ie6.#{$prefix}body-masked select {
  90. visibility: hidden !important;
  91. }
  92. }
  93. // Element shadows for browsers that support CSS3 box-shadow
  94. .#{$prefix}css-shadow {
  95. position: absolute;
  96. @include border-radius($window-border-radius);
  97. }
  98. // Element shadows for IE 8 and below
  99. .#{$prefix}ie-shadow {
  100. background-color:#777;
  101. display: none;
  102. position: absolute;
  103. overflow: hidden;
  104. zoom: 1;
  105. }
  106. //box wrap - Ext.get(&quot;foo&quot;).boxWrap();
  107. .#{$prefix}box-tl {
  108. background: transparent no-repeat 0 0;
  109. zoom:1;
  110. }
  111. .#{$prefix}box-tc {
  112. height: 8px;
  113. background: transparent repeat-x 0 0;
  114. overflow: hidden;
  115. }
  116. .#{$prefix}box-tr {
  117. background: transparent no-repeat right -8px;
  118. }
  119. .#{$prefix}box-ml {
  120. background: transparent repeat-y 0;
  121. padding-left: 4px;
  122. overflow: hidden;
  123. zoom:1;
  124. }
  125. .#{$prefix}box-mc {
  126. background: repeat-x 0 -16px;
  127. padding: 4px 10px;
  128. }
  129. .#{$prefix}box-mc h3 {
  130. margin: 0 0 4px 0;
  131. zoom:1;
  132. }
  133. .#{$prefix}box-mr {
  134. background: transparent repeat-y right;
  135. padding-right: 4px;
  136. overflow: hidden;
  137. }
  138. .#{$prefix}box-bl {
  139. background: transparent no-repeat 0 -16px;
  140. zoom:1;
  141. }
  142. .#{$prefix}box-bc {
  143. background: transparent repeat-x 0 -8px;
  144. height: 8px;
  145. overflow: hidden;
  146. }
  147. .#{$prefix}box-br {
  148. background: transparent no-repeat right -24px;
  149. }
  150. .#{$prefix}box-tl, .#{$prefix}box-bl {
  151. padding-left: 8px;
  152. overflow: hidden;
  153. }
  154. .#{$prefix}box-tr, .#{$prefix}box-br {
  155. padding-right: 8px;
  156. overflow: hidden;
  157. }
  158. .#{$prefix}box-tl {
  159. background-image: theme-background-image($theme-name, 'box/corners.gif');
  160. }
  161. .#{$prefix}box-tc {
  162. background-image: theme-background-image($theme-name, 'box/tb.gif');
  163. }
  164. .#{$prefix}box-tr {
  165. background-image: theme-background-image($theme-name, 'box/corners.gif');
  166. }
  167. .#{$prefix}box-ml {
  168. background-image: theme-background-image($theme-name, 'box/l.gif');
  169. }
  170. .#{$prefix}box-mc {
  171. background-color: #eee;
  172. background-image: theme-background-image($theme-name, 'box/tb.gif');
  173. font-family: &quot;Myriad Pro&quot;,&quot;Myriad Web&quot;,&quot;Tahoma&quot;,&quot;Helvetica&quot;,&quot;Arial&quot;,sans-serif;
  174. color: #393939;
  175. font-size: 15px;
  176. }
  177. .#{$prefix}box-mc h3 {
  178. font-size: 18px;
  179. font-weight: bold;
  180. }
  181. .#{$prefix}box-mr {
  182. background-image: theme-background-image($theme-name, 'box/r.gif');
  183. }
  184. .#{$prefix}box-bl {
  185. background-image: theme-background-image($theme-name, 'box/corners.gif');
  186. }
  187. .#{$prefix}box-bc {
  188. background-image: theme-background-image($theme-name, 'box/tb.gif');
  189. }
  190. .#{$prefix}box-br {
  191. background-image: theme-background-image($theme-name, 'box/corners.gif');
  192. }
  193. .#{$prefix}box-blue .#{$prefix}box-bl, .#{$prefix}box-blue .#{$prefix}box-br, .#{$prefix}box-blue .#{$prefix}box-tl, .#{$prefix}box-blue .#{$prefix}box-tr {
  194. background-image: theme-background-image($theme-name, 'box/corners-blue.gif');
  195. }
  196. .#{$prefix}box-blue .#{$prefix}box-bc, .#{$prefix}box-blue .#{$prefix}box-mc, .#{$prefix}box-blue .#{$prefix}box-tc {
  197. background-image: theme-background-image($theme-name, 'box/tb-blue.gif');
  198. }
  199. .#{$prefix}box-blue .#{$prefix}box-mc {
  200. background-color: #c3daf9;
  201. }
  202. .#{$prefix}box-blue .#{$prefix}box-mc h3 {
  203. color: #17385b;
  204. }
  205. .#{$prefix}box-blue .#{$prefix}box-ml {
  206. background-image: theme-background-image($theme-name, 'box/l-blue.gif');
  207. }
  208. .#{$prefix}box-blue .#{$prefix}box-mr {
  209. background-image: theme-background-image($theme-name, 'box/r-blue.gif');
  210. }
  211. .#{$prefix}container {
  212. // zoom:1 prevents margins of child elements from collapsing in old IE, this is needed to prevent
  213. // the top margin of the first child element from collapsing.
  214. zoom: 1;
  215. // In modern browsers, we can use a pseudo :before element to prevent the top margin of the first child element from collapsing
  216. &amp;:before {
  217. content: &quot;&quot;;
  218. clear: both;
  219. display: table;
  220. }
  221. }
  222. // when the container class is used on a table, tbody, or tr (form layout),
  223. // inserting content using the :before selector can cause problems
  224. table.#{$prefix}container:before,
  225. tbody.#{$prefix}container:before,
  226. tr.#{$prefix}container:before {
  227. display: none;
  228. }
  229. </pre>
  230. </body>
  231. </html>