2020-04-02 14:36:49 +02:00
|
|
|
/*
|
|
|
|
These CSS rules are included in both the outer and inner ACE iframe (pad editor)
|
2011-07-19 17:53:54 +02:00
|
|
|
*/
|
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
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
html.inner-editor {
|
|
|
|
height: auto !important;
|
2020-04-03 16:11:25 +02:00
|
|
|
background-color: transparent !important;
|
2020-04-02 14:36:49 +02:00
|
|
|
}
|
|
|
|
#outerdocbody {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2020-04-06 14:46:15 +02:00
|
|
|
justify-content: center;
|
2020-04-02 14:36:49 +02:00
|
|
|
min-height: 100vh; /* take at least full height */
|
|
|
|
}
|
|
|
|
#outerdocbody iframe {
|
|
|
|
flex: 1 auto;
|
|
|
|
display: flex;
|
2020-04-20 15:51:02 +02:00
|
|
|
width: 100%;
|
2020-04-02 14:36:49 +02:00
|
|
|
}
|
|
|
|
#outerdocbody #sidediv {
|
|
|
|
order: -1; /* display it on the first row positionning, i.e. on the left */
|
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
/* ACE-PAD Container (i.e. where the text is displayed) */
|
|
|
|
#innerdocbody {
|
|
|
|
padding: 10px;
|
|
|
|
overflow: hidden;
|
2020-04-03 16:11:25 +02:00
|
|
|
background-color: white;
|
2012-05-20 15:37:03 +02:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#innerdocbody, #sidediv {
|
|
|
|
padding-top: 10px; /* Both must have same top padding, so line number are aligned with the rows */
|
|
|
|
padding-bottom: 10px; /* some space when we scroll to the bottom */
|
2012-05-20 15:37:03 +02:00
|
|
|
}
|
|
|
|
|
2020-04-30 14:24:02 +02:00
|
|
|
#innerdocbody a {
|
|
|
|
color: #2e96f3;
|
|
|
|
}
|
|
|
|
#innerdocbody.authorColors [class^='author-'] a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2020-05-12 16:04:17 +02:00
|
|
|
#innerdocbody span {
|
|
|
|
line-height: 125%;
|
|
|
|
padding: 6px 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
option {
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
|
|
|
|
#innerdocbody h1,
|
|
|
|
#innerdocbody h2,
|
|
|
|
#innerdocbody h3,
|
|
|
|
#innerdocbody h4 {
|
|
|
|
margin-bottom: .5em;
|
|
|
|
}
|
2020-04-30 14:24:02 +02:00
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
/* --------------------- */
|
|
|
|
/* -- BROWSER SUPPORT -- */
|
|
|
|
/* --------------------- */
|
|
|
|
|
|
|
|
body.mozilla, body.safari {
|
|
|
|
display: table-cell; /* cause "body" area (e.g. where clicks are heard) to grow horizontally with text */
|
2015-03-04 18:46:49 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
.safari div {
|
|
|
|
padding-right: 1px; /* prevents the caret from disappearing on the longest line of the doc */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* -------------- */
|
|
|
|
/* -- WRAPPING -- */
|
|
|
|
/* -------------- */
|
2011-07-19 17:53:54 +02:00
|
|
|
|
|
|
|
body {
|
|
|
|
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
|
|
|
body.doesWrap {
|
2020-04-02 14:36:49 +02:00
|
|
|
display: block !important;
|
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;
|
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
body.doesWrap:not(.noprewrap) > div {
|
2018-04-07 19:11:24 +02:00
|
|
|
/* Related to #1766 */
|
|
|
|
white-space: pre-wrap;
|
2015-04-08 10:24:19 +02:00
|
|
|
}
|
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
|
|
|
|
/* ------------------------------------------ */
|
|
|
|
/* -- SIDEDIV (line number, text author..) -- */
|
|
|
|
/* ------------------------------------------ */
|
2011-07-19 17:53:54 +02:00
|
|
|
|
|
|
|
#sidediv {
|
2020-04-03 16:11:25 +02:00
|
|
|
background-color: transparent;
|
2020-04-02 14:36:49 +02:00
|
|
|
border-right: 1px solid #ccc;
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
2020-05-01 17:48:43 +02:00
|
|
|
#sidediv .line-number {
|
|
|
|
font-size: 9px;
|
|
|
|
padding: 0 10px;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
#sidedivinner {
|
|
|
|
text-align: right;
|
2020-04-06 14:31:07 +02:00
|
|
|
opacity: .9;
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
#sidediv:not(.sidedivdelayed) { /* before sidediv get initialized, hide text */
|
|
|
|
color: transparent;
|
2011-07-19 17:53:54 +02:00
|
|
|
}
|
2020-05-01 16:43:25 +02:00
|
|
|
.line-numbers-hidden #sidediv .line-number {
|
|
|
|
display: none;
|
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
#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 */
|
|
|
|
}
|
2020-04-29 12:51:48 +02:00
|
|
|
@media (max-width: 800px) {
|
2020-04-02 14:36:49 +02:00
|
|
|
#sidediv {
|
|
|
|
/* Do not use display: none to hide the sidediv, otherwise the parent container does not
|
|
|
|
get its height properly calculated by flexboxes */
|
|
|
|
visibility: hidden;
|
|
|
|
width: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
2011-07-19 17:53:54 +02:00
|
|
|
|
2020-04-02 14:36:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------- */
|
|
|
|
/* -- OTHER -- */
|
|
|
|
/* ----------- */
|
|
|
|
|
|
|
|
::selection {
|
|
|
|
background: #acf;
|
2013-02-12 01:08:44 +01:00
|
|
|
}
|
2020-04-02 14:36:49 +02:00
|
|
|
::-moz-selection {
|
|
|
|
background: #acf;
|
|
|
|
}
|
2020-04-06 14:31:07 +02:00
|
|
|
#innerdocbody a {
|
2020-04-02 14:36:49 +02:00
|
|
|
cursor: pointer !important;
|
|
|
|
white-space:pre-wrap;
|
|
|
|
}
|
|
|
|
body.grayedout {
|
|
|
|
background-color: #eee !important
|
|
|
|
}
|