Path: blob/master/web-gui/buildyourownbotnet/assets/js/codemirror/lib/codemirror.css
1293 views
/* BASICS */12.CodeMirror {3/* Set height, width, borders, and global font properties here */4font-family: monospace;5height: 300px;6}7.CodeMirror-scroll {8/* Set scrolling behaviour here */9overflow: auto;10}1112/* PADDING */1314.CodeMirror-lines {15padding: 4px 0; /* Vertical padding around content */16}17.CodeMirror pre {18padding: 0 4px; /* Horizontal padding of content */19}2021.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {22background-color: white; /* The little square between H and V scrollbars */23}2425/* GUTTER */2627.CodeMirror-gutters {28border-right: 1px solid #ddd;29background-color: #f7f7f7;30white-space: nowrap;31}32.CodeMirror-linenumbers {}33.CodeMirror-linenumber {34padding: 0 3px 0 5px;35min-width: 20px;36text-align: right;37color: #999;38}3940/* CURSOR */4142.CodeMirror div.CodeMirror-cursor {43border-left: 1px solid black;44z-index: 3;45}46/* Shown when moving in bi-directional text */47.CodeMirror div.CodeMirror-secondarycursor {48border-left: 1px solid silver;49}50.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {51width: auto;52border: 0;53background: #7e7;54z-index: 1;55}56/* Can style cursor different in overwrite (non-insert) mode */57.CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}5859.cm-tab { display: inline-block; }6061/* DEFAULT THEME */6263.cm-s-default .cm-keyword {color: #708;}64.cm-s-default .cm-atom {color: #219;}65.cm-s-default .cm-number {color: #164;}66.cm-s-default .cm-def {color: #00f;}67.cm-s-default .cm-variable {color: black;}68.cm-s-default .cm-variable-2 {color: #05a;}69.cm-s-default .cm-variable-3 {color: #085;}70.cm-s-default .cm-property {color: black;}71.cm-s-default .cm-operator {color: black;}72.cm-s-default .cm-comment {color: #a50;}73.cm-s-default .cm-string {color: #a11;}74.cm-s-default .cm-string-2 {color: #f50;}75.cm-s-default .cm-meta {color: #555;}76.cm-s-default .cm-qualifier {color: #555;}77.cm-s-default .cm-builtin {color: #30a;}78.cm-s-default .cm-bracket {color: #997;}79.cm-s-default .cm-tag {color: #170;}80.cm-s-default .cm-attribute {color: #00c;}81.cm-s-default .cm-header {color: blue;}82.cm-s-default .cm-quote {color: #090;}83.cm-s-default .cm-hr {color: #999;}84.cm-s-default .cm-link {color: #00c;}8586.cm-negative {color: #d44;}87.cm-positive {color: #292;}88.cm-header, .cm-strong {font-weight: bold;}89.cm-em {font-style: italic;}90.cm-link {text-decoration: underline;}9192.cm-s-default .cm-error {color: #f00;}93.cm-invalidchar {color: #f00;}9495div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}96div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}97.CodeMirror-activeline-background {background: #e8f2ff;}9899/* STOP */100101/* The rest of this file contains styles related to the mechanics of102the editor. You probably shouldn't touch them. */103104.CodeMirror {105line-height: 1;106position: relative;107overflow: hidden;108background: white;109color: black;110}111112.CodeMirror-scroll {113/* 30px is the magic margin used to hide the element's real scrollbars */114/* See overflow: hidden in .CodeMirror */115margin-bottom: -30px; margin-right: -30px;116padding-bottom: 30px; padding-right: 30px;117height: 100%;118outline: none; /* Prevent dragging from highlighting the element */119position: relative;120-moz-box-sizing: content-box;121box-sizing: content-box;122}123.CodeMirror-sizer {124position: relative;125}126127/* The fake, visible scrollbars. Used to force redraw during scrolling128before actuall scrolling happens, thus preventing shaking and129flickering artifacts. */130.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {131position: absolute;132z-index: 6;133display: none;134}135.CodeMirror-vscrollbar {136right: 0; top: 0;137overflow-x: hidden;138overflow-y: scroll;139}140.CodeMirror-hscrollbar {141bottom: 0; left: 0;142overflow-y: hidden;143overflow-x: scroll;144}145.CodeMirror-scrollbar-filler {146right: 0; bottom: 0;147}148.CodeMirror-gutter-filler {149left: 0; bottom: 0;150}151152.CodeMirror-gutters {153position: absolute; left: 0; top: 0;154padding-bottom: 30px;155z-index: 3;156}157.CodeMirror-gutter {158white-space: normal;159height: 100%;160-moz-box-sizing: content-box;161box-sizing: content-box;162padding-bottom: 30px;163margin-bottom: -32px;164display: inline-block;165/* Hack to make IE7 behave */166*zoom:1;167*display:inline;168}169.CodeMirror-gutter-elt {170position: absolute;171cursor: default;172z-index: 4;173}174175.CodeMirror-lines {176cursor: text;177}178.CodeMirror pre {179/* Reset some styles that the rest of the page might have set */180-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;181border-width: 0;182background: transparent;183font-family: inherit;184font-size: inherit;185margin: 0;186white-space: pre;187word-wrap: normal;188line-height: inherit;189color: inherit;190z-index: 2;191position: relative;192overflow: visible;193}194.CodeMirror-wrap pre {195word-wrap: break-word;196white-space: pre-wrap;197word-break: normal;198}199.CodeMirror-code pre {200border-right: 30px solid transparent;201width: -webkit-fit-content;202width: -moz-fit-content;203width: fit-content;204}205.CodeMirror-wrap .CodeMirror-code pre {206border-right: none;207width: auto;208}209.CodeMirror-linebackground {210position: absolute;211left: 0; right: 0; top: 0; bottom: 0;212z-index: 0;213}214215.CodeMirror-linewidget {216position: relative;217z-index: 2;218overflow: auto;219}220221.CodeMirror-widget {}222223.CodeMirror-wrap .CodeMirror-scroll {224overflow-x: hidden;225}226227.CodeMirror-measure {228position: absolute;229width: 100%;230height: 0;231overflow: hidden;232visibility: hidden;233}234.CodeMirror-measure pre { position: static; }235236.CodeMirror div.CodeMirror-cursor {237position: absolute;238visibility: hidden;239border-right: none;240width: 0;241}242.CodeMirror-focused div.CodeMirror-cursor {243visibility: visible;244}245246.CodeMirror-selected { background: #d9d9d9; }247.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }248249.cm-searching {250background: #ffa;251background: rgba(255, 255, 0, .4);252}253254/* IE7 hack to prevent it from returning funny offsetTops on the spans */255.CodeMirror span { *vertical-align: text-bottom; }256257@media print {258/* Hide the cursor when printing */259.CodeMirror div.CodeMirror-cursor {260visibility: hidden;261}262}263264265