@color-alfa: #008000; @color-beta: #f63; @color-flat: #ccc; @font-main: Verdana, "DejaVu Sans", Geneva, sans-serif; @font-mono: Consolas, "DejaVu Sans Mono", monospace; // Mixins .border_radius (@radius: 5px) { -moz-border-radius: @radius; -webkit-border-radius: @radius; border-radius: @radius; } .inline_block { display: inline-block; vertical-align: top; // IE 6/7 *zoom: 1; *display: inline; } .typography { /* Need including `_styles/common.less` in parent file */ h1 { font-size: 1.3em; } h2 { font-size: 1.2em; } h3, h4, h5, h6 { font-size: 1.1em; } h1, h2, h3, h4, h5, h6 { margin-bottom: 0.5em; } p, dl, dd, hr, ol, ul, pre, blockquote, table, address, fieldset, div.line-block { margin-bottom: 1em; } ol { list-style: decimal; } ul { list-style: disc; } li, dd { margin-left: 1em; } dt { font-weight: bold; } hr { border: 0 #ccc solid; border-top-width: 1px; clear: both; height: 0; } pre { overflow: auto; padding: 5px; border-top: 1px solid @color-flat; border-bottom: 1px solid @color-flat; background: #f9f9f9; font: 0.8em @font-mono; line-height: 1.2em; white-space: pre; } blockquote { margin-left: 20px; padding: 10px; border-left: 3px solid @color-beta; background: #f9f9f9; font-style: italic; } /* Blocks */ .note { border-left: 2px solid @color-flat; color: @color-flat - #444; padding: 5px 10px; margin: 7px 0 1em 0; p.admonition-title { color: @color-beta; border: 2px solid @color-flat; font-weight: bold; padding: 2px 3px; margin: -12px 5px 0 -12px; .border_radius(10px 10px 10px 0); .inline_block; } p.admonition-title + p { display: inline; } } .system-message { color: red; border: 1px dotted red; background: #fff3f3; padding: 10px; margin-bottom: 1em; .system-message-title { font-weight: bold; } .last-child; } /* Highlight */ .highlight { margin-bottom: 1em; pre { margin-bottom: 0; } } .highlighttable { width: 100%; pre, .highlight { margin-bottom: 0; } .linenodiv { color: @color-flat - #444; border-right: 1px solid @color-flat; text-align: right; } .code { width: 100%; } } /* Custom classes */ img.align-right { float: right; margin: 0 0 20px 20px; } img.align-left { float: left; margin: 0 20px 20px 0; } .hll { background-color: #ffffcc } .c { color: #408080; font-style: italic } /* Comment */ .err { border: 1px solid #FF0000 } /* Error */ .k { color: #008000; font-weight: bold } /* Keyword */ .o { color: #666666 } /* Operator */ .cm { color: #408080; font-style: italic } /* Comment.Multiline */ .cp { color: #BC7A00 } /* Comment.Preproc */ .c1 { color: #408080; font-style: italic } /* Comment.Single */ .cs { color: #408080; font-style: italic } /* Comment.Special */ .gd { color: #A00000 } /* Generic.Deleted */ .ge { font-style: italic } /* Generic.Emph */ .gr { color: #FF0000 } /* Generic.Error */ .gh { color: #000080; font-weight: bold } /* Generic.Heading */ .gi { color: #00A000 } /* Generic.Inserted */ .go { color: #808080 } /* Generic.Output */ .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ .gs { font-weight: bold } /* Generic.Strong */ .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ .gt { color: #0040D0 } /* Generic.Traceback */ .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ .kp { color: #008000 } /* Keyword.Pseudo */ .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ .kt { color: #B00040 } /* Keyword.Type */ .m { color: #666666 } /* Literal.Number */ .s { color: #BA2121 } /* Literal.String */ .na { color: #7D9029 } /* Name.Attribute */ .nb { color: #008000 } /* Name.Builtin */ .nc { color: #0000FF; font-weight: bold } /* Name.Class */ .no { color: #880000 } /* Name.Constant */ .nd { color: #AA22FF } /* Name.Decorator */ .ni { color: #999999; font-weight: bold } /* Name.Entity */ .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ .nf { color: #0000FF } /* Name.Function */ .nl { color: #A0A000 } /* Name.Label */ .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ .nt { color: #008000; font-weight: bold } /* Name.Tag */ .nv { color: #19177C } /* Name.Variable */ .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ .w { color: #bbbbbb } /* Text.Whitespace */ .mf { color: #666666 } /* Literal.Number.Float */ .mh { color: #666666 } /* Literal.Number.Hex */ .mi { color: #666666 } /* Literal.Number.Integer */ .mo { color: #666666 } /* Literal.Number.Oct */ .sb { color: #BA2121 } /* Literal.String.Backtick */ .sc { color: #BA2121 } /* Literal.String.Char */ .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ .s2 { color: #BA2121 } /* Literal.String.Double */ .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ .sh { color: #BA2121 } /* Literal.String.Heredoc */ .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ .sx { color: #008000 } /* Literal.String.Other */ .sr { color: #BB6688 } /* Literal.String.Regex */ .s1 { color: #BA2121 } /* Literal.String.Single */ .ss { color: #19177C } /* Literal.String.Symbol */ .bp { color: #008000 } /* Name.Builtin.Pseudo */ .vc { color: #19177C } /* Name.Variable.Class */ .vg { color: #19177C } /* Name.Variable.Global */ .vi { color: #19177C } /* Name.Variable.Instance */ .il { color: #666666 } /* Literal.Number.Integer.Long */} .last-child { > :last-child { margin-bottom: 0; } } .toolbar { position: relative; border-bottom: 2px solid #ccc; li { .inline_block; margin-bottom: -2px; a { background: #eee; font-weight: bold; padding: 0 5px; border: 1px solid #ccc; .border_radius(10px 10px 0 0); .inline_block; :active { background: #fcc; } } } } /* http://meyerweb.com/eric/tools/css/reset/ */ /* v1.0 | 20080212 */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } /* remember to highlight inserts somehow! */ ins { text-decoration: none; } del { text-decoration: line-through; } /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse: collapse; border-spacing: 0; } /* Base styles */ html { height: 100%; } body { font: 14px/1.4 @font-main; position: relative; max-width: 900px; min-height: 500px; height: 100%; margin: 0 auto; } a { color: @color-alfa; text-decoration: none; } a:hover, a:focus, a:active { color: @color-beta; } /* Header */ #header { background: @color-beta; height: 40px; position: relative; .border_radius(0 0 15px 15px); h1 { position: absolute; left: 220px; top: 20px; font-size: 1.5em; color: #eff; } .logo-wrap { background-color: @color-alfa; padding-left: 20px; height: 40px; .inline_block; .border_radius(0 0 0 15px); } .logo { height: 46px; width: 198px; background: #fff url("../_images/logo-hands.png") no-repeat right center; .inline_block; } ul.menu { position: absolute; top: 0; right: 5px; li { background: #fff; padding: 0 10px; font-weight: bold; text-transform: lowercase; .inline_block; .border_radius(0 0 10px 10px); } } } /* Content */ #content { padding: 0 10px; margin-top: 10px; } .document { margin-bottom: 20px; .typography; } /* Misc */ .loading { display: none; position: absolute; z-index: 999; opacity: 0.7; overflow: hidden; width: 100%; height: 100%; background: #fefefe url(../_images/loading.gif) no-repeat center; } .errors { color: red; padding: 10px; }