bsw/jbe@1309: /** bsw/jbe@1309: * Copyright 2015 Google Inc. All Rights Reserved. bsw/jbe@1309: * bsw/jbe@1309: * Licensed under the Apache License, Version 2.0 (the "License"); bsw/jbe@1309: * you may not use this file except in compliance with the License. bsw/jbe@1309: * You may obtain a copy of the License at bsw/jbe@1309: * bsw/jbe@1309: * http://www.apache.org/licenses/LICENSE-2.0 bsw/jbe@1309: * bsw/jbe@1309: * Unless required by applicable law or agreed to in writing, software bsw/jbe@1309: * distributed under the License is distributed on an "AS IS" BASIS, bsw/jbe@1309: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. bsw/jbe@1309: * See the License for the specific language governing permissions and bsw/jbe@1309: * limitations under the License. bsw/jbe@1309: */ bsw/jbe@1309: bsw/jbe@1309: @import "h5bp"; bsw/jbe@1309: @import "mobile"; bsw/jbe@1309: bsw/jbe@1309: /* bsw/jbe@1309: * Make html take up the entire screen bsw/jbe@1309: * Then set touch-action to avoid touch delay on mobile IE bsw/jbe@1309: */ bsw/jbe@1309: html { bsw/jbe@1309: width: 100%; bsw/jbe@1309: height: 100%; bsw/jbe@1309: -ms-touch-action: manipulation; bsw/jbe@1309: touch-action: manipulation; bsw/jbe@1309: } bsw/jbe@1309: bsw/jbe@1309: /* bsw/jbe@1309: * Make body take up the entire screen bsw/jbe@1309: * Remove body margin so layout containers don't cause extra overflow. bsw/jbe@1309: */ bsw/jbe@1309: body { bsw/jbe@1309: width: 100%; bsw/jbe@1309: min-height: 100%; bsw/jbe@1309: margin: 0; bsw/jbe@1309: } bsw/jbe@1309: bsw/jbe@1309: /* bsw/jbe@1309: * Main display reset for IE support. bsw/jbe@1309: * Source: http://weblog.west-wind.com/posts/2015/Jan/12/main-HTML5-Tag-not-working-in-Internet-Explorer-91011 bsw/jbe@1309: */ bsw/jbe@1309: main { bsw/jbe@1309: display: block; bsw/jbe@1309: } bsw/jbe@1309: bsw/jbe@1309: /* bsw/jbe@1309: * Apply no display to elements with the hidden attribute. bsw/jbe@1309: * IE 9 and 10 support. bsw/jbe@1309: */ bsw/jbe@1309: *[hidden] { bsw/jbe@1309: display: none !important; bsw/jbe@1309: }