stylus/vendor/codemirror/lib/codemirror.css

351 lines
8.5 KiB
CSS
Raw Normal View History

2014-10-05 17:43:05 +00:00
/* BASICS */
.CodeMirror {
2014-10-05 17:43:05 +00:00
/* Set height, width, borders, and global font properties here */
font-family: monospace;
2014-10-05 17:43:05 +00:00
height: 300px;
2015-02-25 02:42:17 +00:00
color: black;
2017-11-05 06:12:57 +00:00
direction: ltr;
2014-10-05 17:43:05 +00:00
}
/* PADDING */
.CodeMirror-lines {
padding: 4px 0; /* Vertical padding around content */
}
Add: sync database to a cloud drive (#787) * Add key * Add: a second index uuid, push changes to sync controller * Add: sync.js * Add: tokenManager * Change: log entire body for http error * Add: token flow * Fix: minor * Fix: move cleanup to stop function * Add: syncNow * Update dependencies * Fix: handle 401 error * Add: handle 401 error * Fix: then -> catch * Add: sync options to options page * Update db-to-cloud * Change: make prefs.set return a promise * Add: disble selector if connected * Add: update selector state * Fix: return promise in prefs.set * Fix: manage complex state * Fix: handle prefs change * Change: manage sync status in background * Add: show current status in the UI * Add: schedule a faster sync when db changed * Update dependencies * Add: include progress in sync status * Add: more detail status * Show status text only * Bump dependencies * Change: show loaded and total * Fix: syncTarget is undefined * Add: google and onedrive * Fix: token is not reused * Bump dependencies * Don't use minified version since it is hard to debug * Fix: expire time is incorrect * Change: switch google to code flow * Bump dependencies * Change: only modify pref if the initialization success? * Don't stop the sync if the first sync is not triggered by the user * Add: implement refresh token * Change: switch microsoft to code flow * Add: subtract expire with a latency * Add: microsoft client secret * Add: display error message * Fix: fromPref is not used * Change: try to revoke the token when log out * Add: revoke dropbox token * Fix: Google only generates one refresh token for one user by default * Bump dependencies, fix onedrive list issue * Fix: arguments sent to sync.put is wrong * Fix: don't schedule a sync on db changed if not connected * Bump dependencies. Fix issue of switching drives * Bump db-to-cloud, fix switching drive issue * Fix: only auth user on 401 error, don't display login window without user interaction * Fix: don't call revoke() if token is undefined * Add: login button to generate the access token interactively * Fix: make addMissingProperties a local * Fix: store missing props in an object * Fix: sync.getStatus should be sync * LATENCY -> NETWORK_LATENCY * Fix: cache the token forever if there is no expire time e.g. dropbox * Add some comments * Fix: i18n * Fix: i18n sync status * fixup! Fix: i18n sync status * Fix: 'sync to cloud' is displayed twice
2019-11-05 19:30:45 +00:00
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
2014-10-05 17:43:05 +00:00
padding: 0 4px; /* Horizontal padding of content */
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white; /* The little square between H and V scrollbars */
}
/* GUTTER */
.CodeMirror-gutters {
border-right: 1px solid #ddd;
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min-width: 20px;
text-align: right;
color: #999;
white-space: nowrap;
2014-10-05 17:43:05 +00:00
}
.CodeMirror-guttermarker { color: black; }
.CodeMirror-guttermarker-subtle { color: #999; }
/* CURSOR */
2017-02-08 12:35:49 +00:00
.CodeMirror-cursor {
2014-10-05 17:43:05 +00:00
border-left: 1px solid black;
2017-02-08 12:35:49 +00:00
border-right: none;
width: 0;
2014-10-05 17:43:05 +00:00
}
/* Shown when moving in bi-directional text */
.CodeMirror div.CodeMirror-secondarycursor {
border-left: 1px solid silver;
}
2017-02-08 12:35:49 +00:00
.cm-fat-cursor .CodeMirror-cursor {
2014-10-05 17:43:05 +00:00
width: auto;
2017-02-08 12:35:49 +00:00
border: 0 !important;
2014-10-05 17:43:05 +00:00
background: #7e7;
}
2017-02-08 12:35:49 +00:00
.cm-fat-cursor div.CodeMirror-cursors {
2014-10-05 17:43:05 +00:00
z-index: 1;
}
2017-11-05 06:12:57 +00:00
.cm-fat-cursor-mark {
background-color: rgba(20, 255, 20, 0.5);
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
}
2014-10-05 17:43:05 +00:00
.cm-animate-fat-cursor {
width: auto;
border: 0;
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
2015-07-29 23:36:59 +00:00
background-color: #7e7;
2014-10-05 17:43:05 +00:00
}
@-moz-keyframes blink {
2015-07-29 23:36:59 +00:00
0% {}
50% { background-color: transparent; }
100% {}
2014-10-05 17:43:05 +00:00
}
@-webkit-keyframes blink {
2015-07-29 23:36:59 +00:00
0% {}
50% { background-color: transparent; }
100% {}
2014-10-05 17:43:05 +00:00
}
@keyframes blink {
2015-07-29 23:36:59 +00:00
0% {}
50% { background-color: transparent; }
100% {}
2014-10-05 17:43:05 +00:00
}
/* Can style cursor different in overwrite (non-insert) mode */
2017-02-08 12:35:49 +00:00
.CodeMirror-overwrite .CodeMirror-cursor {}
2014-10-05 17:43:05 +00:00
2015-02-25 02:42:17 +00:00
.cm-tab { display: inline-block; text-decoration: inherit; }
2014-10-05 17:43:05 +00:00
2017-02-08 12:35:49 +00:00
.CodeMirror-rulers {
position: absolute;
Add: sync database to a cloud drive (#787) * Add key * Add: a second index uuid, push changes to sync controller * Add: sync.js * Add: tokenManager * Change: log entire body for http error * Add: token flow * Fix: minor * Fix: move cleanup to stop function * Add: syncNow * Update dependencies * Fix: handle 401 error * Add: handle 401 error * Fix: then -> catch * Add: sync options to options page * Update db-to-cloud * Change: make prefs.set return a promise * Add: disble selector if connected * Add: update selector state * Fix: return promise in prefs.set * Fix: manage complex state * Fix: handle prefs change * Change: manage sync status in background * Add: show current status in the UI * Add: schedule a faster sync when db changed * Update dependencies * Add: include progress in sync status * Add: more detail status * Show status text only * Bump dependencies * Change: show loaded and total * Fix: syncTarget is undefined * Add: google and onedrive * Fix: token is not reused * Bump dependencies * Don't use minified version since it is hard to debug * Fix: expire time is incorrect * Change: switch google to code flow * Bump dependencies * Change: only modify pref if the initialization success? * Don't stop the sync if the first sync is not triggered by the user * Add: implement refresh token * Change: switch microsoft to code flow * Add: subtract expire with a latency * Add: microsoft client secret * Add: display error message * Fix: fromPref is not used * Change: try to revoke the token when log out * Add: revoke dropbox token * Fix: Google only generates one refresh token for one user by default * Bump dependencies, fix onedrive list issue * Fix: arguments sent to sync.put is wrong * Fix: don't schedule a sync on db changed if not connected * Bump dependencies. Fix issue of switching drives * Bump db-to-cloud, fix switching drive issue * Fix: only auth user on 401 error, don't display login window without user interaction * Fix: don't call revoke() if token is undefined * Add: login button to generate the access token interactively * Fix: make addMissingProperties a local * Fix: store missing props in an object * Fix: sync.getStatus should be sync * LATENCY -> NETWORK_LATENCY * Fix: cache the token forever if there is no expire time e.g. dropbox * Add some comments * Fix: i18n * Fix: i18n sync status * fixup! Fix: i18n sync status * Fix: 'sync to cloud' is displayed twice
2019-11-05 19:30:45 +00:00
left: 0; right: 0; top: -50px; bottom: 0;
2017-02-08 12:35:49 +00:00
overflow: hidden;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-ruler {
border-left: 1px solid #ccc;
2017-02-08 12:35:49 +00:00
top: 0; bottom: 0;
2014-10-05 17:43:05 +00:00
position: absolute;
}
/* DEFAULT THEME */
2015-07-29 23:36:59 +00:00
.cm-s-default .cm-header {color: blue;}
.cm-s-default .cm-quote {color: #090;}
.cm-negative {color: #d44;}
.cm-positive {color: #292;}
.cm-header, .cm-strong {font-weight: bold;}
.cm-em {font-style: italic;}
.cm-link {text-decoration: underline;}
.cm-strikethrough {text-decoration: line-through;}
2014-10-05 17:43:05 +00:00
.cm-s-default .cm-keyword {color: #708;}
.cm-s-default .cm-atom {color: #219;}
.cm-s-default .cm-number {color: #164;}
.cm-s-default .cm-def {color: #00f;}
.cm-s-default .cm-variable,
.cm-s-default .cm-punctuation,
.cm-s-default .cm-property,
.cm-s-default .cm-operator {}
.cm-s-default .cm-variable-2 {color: #05a;}
2017-06-29 13:39:01 +00:00
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
2014-10-05 17:43:05 +00:00
.cm-s-default .cm-comment {color: #a50;}
.cm-s-default .cm-string {color: #a11;}
.cm-s-default .cm-string-2 {color: #f50;}
.cm-s-default .cm-meta {color: #555;}
.cm-s-default .cm-qualifier {color: #555;}
.cm-s-default .cm-builtin {color: #30a;}
.cm-s-default .cm-bracket {color: #997;}
.cm-s-default .cm-tag {color: #170;}
.cm-s-default .cm-attribute {color: #00c;}
.cm-s-default .cm-hr {color: #999;}
.cm-s-default .cm-link {color: #00c;}
.cm-s-default .cm-error {color: #f00;}
.cm-invalidchar {color: #f00;}
.CodeMirror-composing { border-bottom: 2px solid; }
2014-10-05 17:43:05 +00:00
/* Default styles for common addons */
2017-11-23 22:50:09 +00:00
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
2014-10-05 17:43:05 +00:00
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
.CodeMirror-activeline-background {background: #e8f2ff;}
2014-10-05 17:43:05 +00:00
/* STOP */
/* The rest of this file contains styles related to the mechanics of
the editor. You probably shouldn't touch them. */
.CodeMirror {
position: relative;
overflow: hidden;
2014-10-05 17:43:05 +00:00
background: white;
}
.CodeMirror-scroll {
2015-02-25 02:42:17 +00:00
overflow: scroll !important; /* Things will break if this is overridden */
/* 50px is the magic margin used to hide the element's real scrollbars */
2014-10-05 17:43:05 +00:00
/* See overflow: hidden in .CodeMirror */
margin-bottom: -50px; margin-right: -50px;
padding-bottom: 50px;
2014-10-05 17:43:05 +00:00
height: 100%;
outline: none; /* Prevent dragging from highlighting the element */
position: relative;
2014-10-05 17:43:05 +00:00
}
.CodeMirror-sizer {
position: relative;
border-right: 50px solid transparent;
}
2014-10-05 17:43:05 +00:00
/* The fake, visible scrollbars. Used to force redraw during scrolling
2017-02-08 12:35:49 +00:00
before actual scrolling happens, thus preventing shaking and
2014-10-05 17:43:05 +00:00
flickering artifacts. */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
position: absolute;
2014-10-05 17:43:05 +00:00
z-index: 6;
display: none;
2020-09-22 11:03:31 +00:00
outline: none;
2014-10-05 17:43:05 +00:00
}
.CodeMirror-vscrollbar {
right: 0; top: 0;
overflow-x: hidden;
overflow-y: scroll;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-hscrollbar {
bottom: 0; left: 0;
overflow-y: hidden;
overflow-x: scroll;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-scrollbar-filler {
right: 0; bottom: 0;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-gutter-filler {
left: 0; bottom: 0;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-gutters {
position: absolute; left: 0; top: 0;
2017-02-08 12:35:49 +00:00
min-height: 100%;
2014-10-05 17:43:05 +00:00
z-index: 3;
}
.CodeMirror-gutter {
white-space: normal;
height: 100%;
2014-10-05 17:43:05 +00:00
display: inline-block;
2017-02-08 12:35:49 +00:00
vertical-align: top;
margin-bottom: -50px;
}
2015-02-25 02:42:17 +00:00
.CodeMirror-gutter-wrapper {
position: absolute;
z-index: 4;
2015-07-29 23:36:59 +00:00
background: none !important;
border: none !important;
}
.CodeMirror-gutter-background {
position: absolute;
top: 0; bottom: 0;
z-index: 4;
2015-02-25 02:42:17 +00:00
}
2014-10-05 17:43:05 +00:00
.CodeMirror-gutter-elt {
position: absolute;
cursor: default;
2014-10-05 17:43:05 +00:00
z-index: 4;
}
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
2014-10-05 17:43:05 +00:00
.CodeMirror-lines {
cursor: text;
2014-10-05 17:43:05 +00:00
min-height: 1px; /* prevents collapsing before first draw */
}
Add: sync database to a cloud drive (#787) * Add key * Add: a second index uuid, push changes to sync controller * Add: sync.js * Add: tokenManager * Change: log entire body for http error * Add: token flow * Fix: minor * Fix: move cleanup to stop function * Add: syncNow * Update dependencies * Fix: handle 401 error * Add: handle 401 error * Fix: then -> catch * Add: sync options to options page * Update db-to-cloud * Change: make prefs.set return a promise * Add: disble selector if connected * Add: update selector state * Fix: return promise in prefs.set * Fix: manage complex state * Fix: handle prefs change * Change: manage sync status in background * Add: show current status in the UI * Add: schedule a faster sync when db changed * Update dependencies * Add: include progress in sync status * Add: more detail status * Show status text only * Bump dependencies * Change: show loaded and total * Fix: syncTarget is undefined * Add: google and onedrive * Fix: token is not reused * Bump dependencies * Don't use minified version since it is hard to debug * Fix: expire time is incorrect * Change: switch google to code flow * Bump dependencies * Change: only modify pref if the initialization success? * Don't stop the sync if the first sync is not triggered by the user * Add: implement refresh token * Change: switch microsoft to code flow * Add: subtract expire with a latency * Add: microsoft client secret * Add: display error message * Fix: fromPref is not used * Change: try to revoke the token when log out * Add: revoke dropbox token * Fix: Google only generates one refresh token for one user by default * Bump dependencies, fix onedrive list issue * Fix: arguments sent to sync.put is wrong * Fix: don't schedule a sync on db changed if not connected * Bump dependencies. Fix issue of switching drives * Bump db-to-cloud, fix switching drive issue * Fix: only auth user on 401 error, don't display login window without user interaction * Fix: don't call revoke() if token is undefined * Add: login button to generate the access token interactively * Fix: make addMissingProperties a local * Fix: store missing props in an object * Fix: sync.getStatus should be sync * LATENCY -> NETWORK_LATENCY * Fix: cache the token forever if there is no expire time e.g. dropbox * Add some comments * Fix: i18n * Fix: i18n sync status * fixup! Fix: i18n sync status * Fix: 'sync to cloud' is displayed twice
2019-11-05 19:30:45 +00:00
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
2014-10-05 17:43:05 +00:00
/* Reset some styles that the rest of the page might have set */
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
border-width: 0;
background: transparent;
font-family: inherit;
font-size: inherit;
2014-10-05 17:43:05 +00:00
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: inherit;
color: inherit;
2014-10-05 17:43:05 +00:00
z-index: 2;
position: relative;
overflow: visible;
2015-02-25 02:42:17 +00:00
-webkit-tap-highlight-color: transparent;
2017-02-08 12:35:49 +00:00
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
Add: sync database to a cloud drive (#787) * Add key * Add: a second index uuid, push changes to sync controller * Add: sync.js * Add: tokenManager * Change: log entire body for http error * Add: token flow * Fix: minor * Fix: move cleanup to stop function * Add: syncNow * Update dependencies * Fix: handle 401 error * Add: handle 401 error * Fix: then -> catch * Add: sync options to options page * Update db-to-cloud * Change: make prefs.set return a promise * Add: disble selector if connected * Add: update selector state * Fix: return promise in prefs.set * Fix: manage complex state * Fix: handle prefs change * Change: manage sync status in background * Add: show current status in the UI * Add: schedule a faster sync when db changed * Update dependencies * Add: include progress in sync status * Add: more detail status * Show status text only * Bump dependencies * Change: show loaded and total * Fix: syncTarget is undefined * Add: google and onedrive * Fix: token is not reused * Bump dependencies * Don't use minified version since it is hard to debug * Fix: expire time is incorrect * Change: switch google to code flow * Bump dependencies * Change: only modify pref if the initialization success? * Don't stop the sync if the first sync is not triggered by the user * Add: implement refresh token * Change: switch microsoft to code flow * Add: subtract expire with a latency * Add: microsoft client secret * Add: display error message * Fix: fromPref is not used * Change: try to revoke the token when log out * Add: revoke dropbox token * Fix: Google only generates one refresh token for one user by default * Bump dependencies, fix onedrive list issue * Fix: arguments sent to sync.put is wrong * Fix: don't schedule a sync on db changed if not connected * Bump dependencies. Fix issue of switching drives * Bump db-to-cloud, fix switching drive issue * Fix: only auth user on 401 error, don't display login window without user interaction * Fix: don't call revoke() if token is undefined * Add: login button to generate the access token interactively * Fix: make addMissingProperties a local * Fix: store missing props in an object * Fix: sync.getStatus should be sync * LATENCY -> NETWORK_LATENCY * Fix: cache the token forever if there is no expire time e.g. dropbox * Add some comments * Fix: i18n * Fix: i18n sync status * fixup! Fix: i18n sync status * Fix: 'sync to cloud' is displayed twice
2019-11-05 19:30:45 +00:00
.CodeMirror-wrap pre.CodeMirror-line,
.CodeMirror-wrap pre.CodeMirror-line-like {
word-wrap: break-word;
white-space: pre-wrap;
word-break: normal;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-linebackground {
position: absolute;
left: 0; right: 0; top: 0; bottom: 0;
z-index: 0;
}
.CodeMirror-linewidget {
position: relative;
z-index: 2;
2018-03-03 20:03:05 +00:00
padding: 0.1px; /* Force widget margins to stay inside of the container */
2014-10-05 17:43:05 +00:00
}
.CodeMirror-widget {}
.CodeMirror-rtl pre { direction: rtl; }
2015-02-25 02:42:17 +00:00
.CodeMirror-code {
outline: none;
}
/* Force content-box sizing for the elements where we expect it */
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-measure {
position: absolute;
width: 100%;
height: 0;
overflow: hidden;
visibility: hidden;
}
2017-02-08 12:35:49 +00:00
.CodeMirror-cursor {
position: absolute;
2017-02-08 12:35:49 +00:00
pointer-events: none;
}
2017-02-08 12:35:49 +00:00
.CodeMirror-measure pre { position: static; }
2014-10-05 17:43:05 +00:00
div.CodeMirror-cursors {
visibility: hidden;
position: relative;
z-index: 3;
}
2017-02-08 12:35:49 +00:00
div.CodeMirror-dragcursors {
visibility: visible;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-focused div.CodeMirror-cursors {
visibility: visible;
}
2014-10-05 17:43:05 +00:00
.CodeMirror-selected { background: #d9d9d9; }
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
.CodeMirror-crosshair { cursor: crosshair; }
2015-07-29 23:36:59 +00:00
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
2014-10-05 17:43:05 +00:00
.cm-searching {
2017-11-05 06:12:57 +00:00
background-color: #ffa;
background-color: rgba(255, 255, 0, .4);
}
2014-10-05 17:43:05 +00:00
/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }
@media print {
/* Hide the cursor when printing */
2014-10-05 17:43:05 +00:00
.CodeMirror div.CodeMirror-cursors {
visibility: hidden;
}
}
2014-10-05 17:43:05 +00:00
2015-02-25 02:42:17 +00:00
/* See issue #2901 */
.cm-tab-wrap-hack:after { content: ''; }
2014-10-05 17:43:05 +00:00
/* Help users use markselection to safely style text background */
span.CodeMirror-selectedtext { background: none; }