body { margin: 0; overflow-x: hidden; text-align: center; position: fixed; width: 100%; width: 100vw; height: 100vh; font-family: Arial, sans-serif; /* Prevent user from selecting whitespace between containers */ user-select: none; -ms-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; /* Use background image for grass on old IE versions */ *background-repeat: repeat-x; *background-position: left bottom; } * { transition: all 0.2s linear, width 0s; -o-transition: all 0.2s linear, width 0s; -webkit-transition: all 0.2s linear, width 0s; -moz-transition: all 0.2s linear, width 0s; } a { outline: none; } a:hover { text-decoration: none; } .loading, .loading * { cursor: wait !important; } /* Background */ #grass { height: 150px; position: fixed; /**position: absolute;*/ *display: none; bottom: 0; left: 0; right: 0; z-index: -2; } .tree { z-index: -1; } /* Navigation bar */ #nav { margin: 30px 0; font-size: 0; } .nav-button { font-size: 14px; padding: 5px 10px; cursor: pointer; margin: 1px; border-bottom-width: 3px; border-bottom-style: solid; font-weight: bold; text-decoration: none; transition: border-bottom-color 0.2s; -o-transition: border-bottom-color 0.2s; -moz-transition: border-bottom-color 0.2s; -webkit-transition: border-bottom-color 0.2s; } .nav-button-selected { border-bottom-color: #2962FF; cursor: default; } .nav-button-selected:hover { border-bottom-color: #2962FF; } /* Sidebar */ #sidebar-wrapper { padding: 0 10px 0 10px; } #sidebar { width: 100px; } #sidebar .container { padding: 10px; text-align: left; line-height: 1.5; } .theme-btn.selected { text-decoration: none; cursor: default; } /* Main section */ #main-and-sidebar { direction: rtl; width: 965px; max-width: 100%; } #main-wrapper { vertical-align: top; width: 820px; max-width: 100%; padding: 0 10px 20px 10px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; /* Doesn't seem to work */ /* *behavior: url("/lib/box-sizing-polyfill/boxsizing.htc"); */ } #main { width: 800px; max-width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; vertical-align: top; text-align: left; line-height: 1.5; } h1, h2 { margin: 0; } /* Sections */ .section { padding: 10px; margin-bottom: 20px; } .section hr { border: none; border-bottom: 1px solid; margin: 10px -10px; *margin: 10px auto; } /* Container */ .container { direction: ltr; /* IE polyfills */ behavior: url("/assets/lib/css3pie/PIE.htc"); /* Re-enable user select for text */ user-select: text; -ms-user-select: text; -moz-user-select: text; -khtml-user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; } /* Inline code */ .inline-code-text { position: relative; bottom: 1px; font-family: Consolas, monospace; /* Remove default style */ background-color: inherit; color: inherit; border: none; outline: none; } .inline-code { position: relative; } .inline-code-text-wrapper { position: relative; /* Fix overflow for IE6/7 - https://github.com/logeshpaul/CSS-Hacks#8-overflow-hidden-not-working-on-ie7- */ margin: 0 21px; overflow-x: auto; scrollbar-width: thin; } .inline-code-text-wrapper::-webkit-scrollbar { width: 3px; } .inline-code-icon { position: absolute; height: 15px; width: 15px; } .inline-code-icon-start { top: 3px; left: 4px; } .inline-code-icon-end { top: 4px; right: 4px; } .clipboard-icon { height: 15px; cursor: pointer; background-color: inherit; padding: 3px 0 3px 0; float: right; } .icon { -ms-interpolation-mode: nearest-neighbor; display: inline-block; width: 16px; height: 16px; background-size: 16px; position: relative; top: 3px; margin-right: 2px; } .pixelated { image-rendering: optimizeSpeed; image-rendering: -webkit-optimize-contrast; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: crisp-edges; image-rendering: pixelated; } /* Fixes */ /* IE 9-11 has a bug which makes the ch css unit unusable, this will make it use the inputs size attribute instead */ /* ch is otherwise used as it is a lot more precise on modern browsers than size */ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { .inline-code-text { width: auto !important; } } /* Make inline-block work for IE 7 and below */ /* https://stackoverflow.com/a/5838575/8618686 */ .inline-block { display: inline-block; *display: inline; zoom: 1; } object { color-scheme: none; /* Remove white background from s in chrome */ pointer-events: none; /* Fix pointer cursor on svg links */ } img { border: none; /* Fix ico images on internet explorer */ }