2011-07-19 17:53:54 +02:00
|
|
|
/* These CSS rules are included in both the outer and inner ACE iframe.
|
|
|
|
Also see inner.css, included only in the inner one.
|
|
|
|
*/
|
2016-09-09 21:33:46 +02:00
|
|
|
|
2016-09-09 21:59:02 +02:00
|
|
|
@import url('./lists_and_indents.css');
|
2016-09-09 21:33:46 +02:00
|
|
|
|
2011-07-19 17:53:54 +02:00
|
|
|
html { cursor: text; } /* in Safari, produces text cursor for whole doc (inc. below body) */
|
|
|
|
span { cursor: auto; }
|
|
|
|
|
2012-05-20 15:37:03 +02:00
|
|
|
::selection {
|
|
|
|
background: #acf;
|
|
|
|
}
|
|
|
|
::-moz-selection {
|
|
|
|
background: #acf;
|
|
|
|
}
|
|
|
|
|
2016-09-09 21:33:46 +02:00
|
|
|
a {
|
|
|
|
cursor: pointer !important;
|
2015-03-04 18:46:49 +01:00
|
|
|
white-space:pre-wrap;
|
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
white-space: nowrap;
|
2013-03-20 23:39:10 +01:00
|
|
|
word-wrap: normal;
|
2013-12-05 08:41:29 +01:00
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
|
|
|
|
#outerdocbody {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
body.grayedout { background-color: #eee !important }
|
|
|
|
|
|
|
|
#innerdocbody {
|
2018-04-13 18:32:39 +02:00
|
|
|
font-size: 12px; /* overridden by body.style */
|
2014-06-28 16:19:28 +02:00
|
|
|
font-family:Arial, sans-serif; /* overridden by body.style */
|
2018-04-13 18:32:39 +02:00
|
|
|
line-height: 16px; /* overridden by body.style */
|
2016-01-23 01:42:06 +01:00
|
|
|
background-color: white;
|
|
|
|
color: black;
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body.doesWrap {
|
2015-04-02 14:16:49 +02:00
|
|
|
/* white-space: pre-wrap; */
|
|
|
|
|
2016-09-09 21:33:46 +02:00
|
|
|
/*
|
|
|
|
Must be pre-wrap to keep trailing spaces. Otherwise you get a zombie caret,
|
2015-04-02 14:16:49 +02:00
|
|
|
walking around your screen (see #1766).
|
|
|
|
WARNING: Enabling this causes Paste as plain text in Chrome to remove line breaks
|
2016-09-09 21:33:46 +02:00
|
|
|
this is probably undesirable
|
2015-04-02 14:16:49 +02:00
|
|
|
WARNING: This causes copy & paste events to lose bold etc. attributes
|
|
|
|
NOTE: The walking-zombie caret issue seems to have been fixed in FF upstream
|
|
|
|
so let's try diabling pre-wrap and see how we get on now.
|
|
|
|
For more details see: https://github.com/ether/etherpad-lite/issues/2574
|
|
|
|
*/
|
2014-06-24 19:46:41 +02:00
|
|
|
word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
|
|
|
|
2015-05-01 21:44:36 +02:00
|
|
|
.noprewrap{
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
2018-04-07 19:11:24 +02:00
|
|
|
body.doesWrap:not(.noprewrap) > div{
|
|
|
|
/* Related to #1766 */
|
|
|
|
white-space: pre-wrap;
|
2015-04-08 10:24:19 +02:00
|
|
|
}
|
|
|
|
|
2011-07-19 17:53:54 +02:00
|
|
|
#innerdocbody {
|
|
|
|
padding-top: 1px; /* important for some reason? */
|
|
|
|
padding-right: 10px;
|
|
|
|
padding-bottom: 8px;
|
2012-01-15 18:59:19 +01:00
|
|
|
padding-left: 1px /* prevents characters from looking chopped off in FF3 -- Removed because it added too much whitespace */;
|
2011-07-19 17:53:54 +02:00
|
|
|
overflow: hidden;
|
|
|
|
/* blank 1x1 gif, so that IE8 doesn't consider the body transparent */
|
|
|
|
background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidediv {
|
|
|
|
font-size: 11px;
|
|
|
|
font-family: monospace;
|
|
|
|
line-height: 16px; /* overridden by sideDiv.style */
|
|
|
|
padding-top: 8px; /* EDIT_BODY_PADDING_TOP */
|
|
|
|
padding-right: 3px; /* LINE_NUMBER_PADDING_RIGHT - 1 */
|
|
|
|
position: absolute;
|
|
|
|
width: 20px; /* MIN_LINEDIV_WIDTH */
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
cursor: default;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidedivinner {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidedivdelayed { /* class set after sizes are set */
|
|
|
|
background-color: #eee;
|
|
|
|
color: #888 !important;
|
2012-11-13 12:42:52 +01:00
|
|
|
border-right: 1px solid #ccc;
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
|
|
|
.sidedivhidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#outerdocbody iframe {
|
|
|
|
display: block; /* codemirror says it suppresses bugs */
|
|
|
|
position: relative;
|
|
|
|
left: 32px; /* MIN_LINEDIV_WIDTH + LINE_NUMBER_PADDING_RIGHT + EDIT_BODY_PADDING_LEFT */
|
|
|
|
top: 7px; /* EDIT_BODY_PADDING_TOP - 1*/
|
|
|
|
border: 0;
|
|
|
|
width: 1px; /* changed programmatically */
|
|
|
|
height: 1px; /* changed programmatically */
|
|
|
|
}
|
|
|
|
|
|
|
|
#outerdocbody .hotrect {
|
|
|
|
border: 1px solid #999;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* cause "body" area (e.g. where clicks are heard) to grow horizontally with text */
|
|
|
|
body.mozilla, body.safari {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.doesWrap {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.safari div {
|
|
|
|
/* prevents the caret from disappearing on the longest line of the doc */
|
|
|
|
padding-right: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#linemetricsdiv {
|
|
|
|
position: absolute;
|
|
|
|
left: -1000px;
|
|
|
|
top: -1000px;
|
|
|
|
color: white;
|
|
|
|
z-index: -1;
|
|
|
|
font-size: 12px; /* overridden by lineMetricsDiv.style */
|
|
|
|
font-family: monospace; /* overridden by lineMetricsDiv.style */
|
|
|
|
}
|
|
|
|
|
2013-02-17 18:13:02 +01:00
|
|
|
/* Stops super long lines without being spaces such as aaaaaaaaaaaaaa*100 breaking the editor
|
|
|
|
Commented out because it stops IE from being able to render the document, crazy IE bug is crazy. */
|
|
|
|
/*
|
2013-02-12 01:08:44 +01:00
|
|
|
.ace-line{
|
2016-09-09 21:33:46 +02:00
|
|
|
overflow:hidden;
|
2013-02-12 01:08:44 +01:00
|
|
|
}
|
2013-02-17 18:13:02 +01:00
|
|
|
*/
|