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