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 {
|
2020-09-15 06:35:59 +02:00
|
|
|
padding-left: 15px;
|
|
|
|
padding-right: 15px;
|
2020-04-02 14:36:49 +02:00
|
|
|
overflow: hidden;
|
2020-04-03 16:11:25 +02:00
|
|
|
background-color: white;
|
2020-06-02 11:25:43 +02:00
|
|
|
line-height: 1.6;
|
2020-05-14 17:08:04 +02:00
|
|
|
|
|
|
|
/* Be careful editing following rules. Longs words should not overflow, ep_align justify should work,
|
|
|
|
Test on chrome, firefox and safari... Copy / Paste a word inside a sentence should not add line-breaks
|
|
|
|
and preserve the style */
|
|
|
|
display: block; /* for safari and firefox, otherwise the break-word does not work */
|
|
|
|
white-space: normal;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: break-word;
|
2012-05-20 15:37:03 +02:00
|
|
|
}
|
|
|
|
|
2020-09-15 06:35:59 +02:00
|
|
|
#innerdocbody, #sidediv {
|
|
|
|
/* Both must have the same top padding to line up line numbers */
|
|
|
|
padding-top: 15px;
|
|
|
|
/* Some space when we scroll to the bottom */
|
|
|
|
padding-bottom: 15px;
|
|
|
|
}
|
|
|
|
|
2020-04-30 14:24:02 +02:00
|
|
|
#innerdocbody a {
|
|
|
|
color: #2e96f3;
|
|
|
|
}
|
|
|
|
#innerdocbody.authorColors [class^='author-'] a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2020-06-02 11:25:43 +02:00
|
|
|
#innerdocbody.authorColors span {
|
|
|
|
padding-top: 3px;
|
|
|
|
padding-bottom: 4px;
|
2020-05-12 16:04:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
option {
|
|
|
|
text-transform: capitalize;
|
|
|
|
}
|
|
|
|
|
|
|
|
#innerdocbody h1,
|
|
|
|
#innerdocbody h2,
|
|
|
|
#innerdocbody h3,
|
|
|
|
#innerdocbody h4 {
|
2020-06-02 11:25:43 +02:00
|
|
|
line-height: 1.2;
|
2020-05-12 16:04:17 +02:00
|
|
|
margin-bottom: .5em;
|
|
|
|
}
|
2020-06-02 11:25:43 +02:00
|
|
|
#innerdocbody h1 span,
|
|
|
|
#innerdocbody h2 span,
|
|
|
|
#innerdocbody h3 span,
|
|
|
|
#innerdocbody h4 span {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
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 */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* ------------------------------------------ */
|
|
|
|
/* -- 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;
|
2020-06-02 11:25:43 +02:00
|
|
|
padding: 0 14px 0 10px;
|
2020-05-01 17:48:43 +02:00
|
|
|
font-family: monospace;
|
|
|
|
}
|
2020-06-02 11:25:43 +02:00
|
|
|
.plugin-ep_author_neat #sidedivinner.authorColors .line-number {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
body.grayedout {
|
|
|
|
background-color: #eee !important
|
2020-09-15 06:35:59 +02:00
|
|
|
}
|