Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
264ea0b
css: split base CSS code into subfiles (without modifications)
seballot Mar 22, 2020
51174c4
css: remove no more used element
seballot Mar 21, 2020
f1d91e7
css: Improve toolbar icon positionning
seballot Mar 30, 2020
8af1773
fix colibris skin after refactor
seballot Mar 31, 2020
bcc86e9
css: disable changing opacity of chatbox when writing on bottom of page
seballot Apr 2, 2020
b1ec65e
css: refactor element positioning
seballot Apr 2, 2020
9e27f26
css: add skin scrollbar
seballot Mar 26, 2020
10892c3
css: refactor timeslider
seballot Apr 3, 2020
8e9257a
css: make all editor containers use the same background color
seballot Apr 3, 2020
6f3f496
css: add new icons (mic, video, mic slash, video slash, cancel)
seballot Mar 29, 2020
2918032
css: fix Colibris timeslider
seballot Apr 3, 2020
cc7f3c7
colibris: improve toolbar
seballot Apr 4, 2020
32c709f
mobile: ability to display hidden toolbar buttons
seballot Apr 4, 2020
79851b6
mobile: fix toolbar popup
seballot Apr 4, 2020
1a1a85d
css: fix colorpicker
seballot Apr 4, 2020
d504f05
mobile: timeslider and small adjustements
seballot Apr 4, 2020
4201b4c
mobile: fix colibris skin
seballot Apr 4, 2020
d6f245e
colibris: clean no more used code since refactor
seballot Apr 4, 2020
cc15d6d
css: minor improvements
seballot Apr 4, 2020
23480f2
css: upgrade icons to fontawesome 5
seballot Apr 6, 2020
5333191
css: improve popup opening animation
seballot Apr 6, 2020
6914f0e
css: make box-sizing border-box by default everywhere
seballot Apr 5, 2020
59b8dab
css: add normalizer, and fix previous rules
seballot Apr 6, 2020
cda4925
css: layout, restrict innerdoc width instead of outerdoc width
seballot Apr 6, 2020
28558cb
css: Clear old comments code, we gonna write it from scratch
seballot Apr 6, 2020
739a24a
gritter: Improve animations
seballot Apr 6, 2020
38409fd
css: fix popup broken by new animation
seballot Apr 6, 2020
44029bf
css: style checkboxes
seballot Apr 7, 2020
c545b61
css: minor improvements
seballot Apr 6, 2020
bf41a4a
css: fix broken popup colorpicker chatAndUsers
seballot Apr 7, 2020
8c4dbb2
css: style scroll bars
seballot Apr 7, 2020
3c73cba
css: introduce css variables in Colibris skin
seballot Apr 7, 2020
34407b0
colibris: Improve table of content
seballot Apr 7, 2020
c308ef8
colibris: introduce skin variants, in order to customize the rendering
seballot Apr 7, 2020
900f1b0
css: various improvements
seballot Apr 7, 2020
9d48de9
css: add chat animation on opening
seballot Apr 8, 2020
b8d8664
fonts: improve default fonts & font picker
seballot Apr 9, 2020
b2e1618
css: minor improvements
seballot Apr 6, 2020
3f2ac57
css: fix default skin after all the changes made to Colibris
seballot Apr 9, 2020
deedd4d
css: adds UI skin variants builder (only for colibris skin)
seballot Apr 9, 2020
c4a9adc
css: Still some adjustements to handle all variants properly
seballot Apr 8, 2020
a5eb68a
css: style select with nice-select library
seballot Apr 14, 2020
691c75c
colibris: style ep_comments
seballot Apr 14, 2020
cf3e894
css: simplify input coloring
seballot Apr 14, 2020
02531a1
css: small fixes
seballot Apr 14, 2020
4b162f8
css: fix comment style
seballot Apr 15, 2020
ac627f6
css: use default cursor
seballot Apr 15, 2020
f02f687
prevent sticky chat and chatAndUsers for mobile
seballot Apr 15, 2020
f79668b
colibris: fix coloring text when authorship background color is activ…
seballot Apr 16, 2020
bcb0e64
colibris: adjust commented text color
seballot Apr 16, 2020
f56e7b1
pad_editor: fix manage show authorship on both pad and chat
seballot Apr 16, 2020
3424ff3
css: simplify new theme and variants
seballot Apr 16, 2020
72e305a
css: various improvements
seballot Apr 16, 2020
2bb210d
css: add default color/variable for browsers non supporting css varia…
seballot Apr 16, 2020
7a28131
colibris: Fix skin variant builder after introducing nice-select
seballot Apr 17, 2020
9be6e8c
colibris: fixs skin variants background
seballot Apr 17, 2020
77259b5
colibris: adds toolbar border when editor is scrolling
seballot Apr 17, 2020
df5aedb
no-skin: fix toolbar icons position
seballot Apr 17, 2020
4511ec7
chat: fix coloring with dark background, and scrolling chattext when …
seballot Apr 17, 2020
ad4b8fb
css: improve gritters
seballot Apr 18, 2020
61f40e3
test: fix pad_modal test with new popups
seballot Apr 18, 2020
1a6d7f2
tests: fix change_ser_color, force color author to be on
seballot Apr 18, 2020
05b7ecf
test: fix layout so pad is 820px large, so is not considered as mobile
seballot Apr 18, 2020
352d6be
test: fix chat
seballot Apr 18, 2020
099cf2b
colibris: small improvement on chat and sidediv
seballot Apr 18, 2020
f2b2f2f
colibris: full-width-editor fix padding property which was overwritten
seballot Apr 18, 2020
9ac43af
users: remove hardcoded color for editempty. Use opacity instead
seballot Apr 18, 2020
e4077b1
css: fix toolbar overlay so it cover only toolbar and not the whole s…
seballot Apr 18, 2020
acedb0a
formatting: remove trailing whitespaces on files Sebastian is going t…
muxator Apr 18, 2020
ed8b58b
css: improve gritter
seballot Mar 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions settings.json.docker
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,32 @@
*/
"skinName": "${SKIN_NAME:colibris}",

/*
* Skin Variants
*
* Use the UI skin variants builder at /p/test#skinvariantsbuilder
*
* For the colibris skin only, you can choose how to render the three main
* containers:
* - toolbar (top menu with icons)
* - editor (containing the text of the pad)
* - background (area outside of editor, mostly visible when using page style)
*
* For each of the 3 containers you can choose 4 color combinations:
* super-light, light, dark, super-dark.
*
* For example, to make the toolbar dark, you will include "dark-toolbar" into
* skinVariants.
*
* You can provide multiple skin variants separated by spaces. Default
* skinVariant is "super-light-toolbar super-light-editor light-background".
*
* For the editor container, you can also make it full width by adding
* "full-width-editor" variant (by default editor is rendered as a page, with
* a max-width of 900px).
*/
"skinVariants": "super-light-toolbar super-light-editor light-background",

/*
* IP and port which Etherpad should bind at.
*
Expand Down
26 changes: 26 additions & 0 deletions settings.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,32 @@
*/
"skinName": "colibris",

/*
* Skin Variants
*
* Use the UI skin variants builder at /p/test#skinvariantsbuilder
*
* For the colibris skin only, you can choose how to render the three main
* containers:
* - toolbar (top menu with icons)
* - editor (containing the text of the pad)
* - background (area outside of editor, mostly visible when using page style)
*
* For each of the 3 containers you can choose 4 color combinations:
* super-light, light, dark, super-dark.
*
* For example, to make the toolbar dark, you will include "dark-toolbar" into
* skinVariants.
*
* You can provide multiple skin variants separated by spaces. Default
* skinVariant is "super-light-toolbar super-light-editor light-background".
*
* For the editor container, you can also make it full width by adding
* "full-width-editor" variant (by default editor is rendered as a page, with
* a max-width of 900px).
*/
"skinVariants": "super-light-toolbar super-light-editor light-background",

/*
* IP and port which Etherpad should bind at.
*
Expand Down
21 changes: 0 additions & 21 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,6 @@
"pad.settings.rtlcheck": "Read content from right to left?",
"pad.settings.fontType": "Font type:",
"pad.settings.fontType.normal": "Normal",
"pad.settings.fontType.opendyslexic": "Open Dyslexic",
"pad.settings.fontType.monospaced": "Monospace",
"pad.settings.fontType.montserrat": "Montserrat",
"pad.settings.fontType.comicsans": "Comic Sans",
"pad.settings.fontType.couriernew": "Courier New",
"pad.settings.fontType.georgia": "Georgia",
"pad.settings.fontType.impact": "Impact",
"pad.settings.fontType.lucida": "Lucida",
"pad.settings.fontType.lucidasans": "Lucida Sans",
"pad.settings.fontType.palatino": "Palatino",
"pad.settings.fontType.robotomono": "RobotoMono",
"pad.settings.fontType.tahoma": "Tahoma",
"pad.settings.fontType.timesnewroman": "Times New Roman",
"pad.settings.fontType.trebuchet": "Trebuchet",
"pad.settings.fontType.verdana": "Verdana",
"pad.settings.fontType.symbol": "Symbol",
"pad.settings.fontType.webdings": "Webdings",
"pad.settings.fontType.wingdings": "Wingdings",
"pad.settings.fontType.sansserif": "Sans Serif",
"pad.settings.fontType.serif": "Serif",
"pad.settings.globalView": "Global View",
"pad.settings.language": "Language:",

"pad.importExport.import_export": "Import/Export",
Expand Down
1 change: 1 addition & 0 deletions src/node/handler/PadMessageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ async function handleClientReady(client, message)
// mile wide...
var clientVars = {
"skinName": settings.skinName,
"skinVariants": settings.skinVariants,
"accountPrivs": {
"maxRevisions": 100
},
Expand Down
2 changes: 2 additions & 0 deletions src/node/utils/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ exports.faviconTimeslider = "../../" + exports.favicon;
*/
exports.skinName = null;

exports.skinVariants = "super-light-toolbar super-light-editor light-background";

/**
* The IP ep-lite should listen to
*/
Expand Down
185 changes: 89 additions & 96 deletions src/static/css/iframe_editor.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,62 @@
/* These CSS rules are included in both the outer and inner ACE iframe.
Also see inner.css, included only in the inner one.
/*
These CSS rules are included in both the outer and inner ACE iframe (pad editor)
*/

@import url('./lists_and_indents.css');

html { cursor: text; } /* in Safari, produces text cursor for whole doc (inc. below body) */
span { cursor: auto; }
html.inner-editor {
height: auto !important;
background-color: transparent !important;
}
#outerdocbody {
display: flex;
flex-direction: row;
justify-content: center;
min-height: 100vh; /* take at least full height */
}
#outerdocbody iframe {
flex: 1 auto;
display: flex;
}
#outerdocbody #sidediv {
order: -1; /* display it on the first row positionning, i.e. on the left */
}

::selection {
background: #acf;
/* ACE-PAD Container (i.e. where the text is displayed) */
#innerdocbody {
padding: 10px;
overflow: hidden;
background-color: white;
}
::-moz-selection {
background: #acf;
#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 */
}

a {
cursor: pointer !important;
white-space:pre-wrap;
/* --------------------- */
/* -- BROWSER SUPPORT -- */
/* --------------------- */

body.mozilla, body.safari {
display: table-cell; /* cause "body" area (e.g. where clicks are heard) to grow horizontally with text */
}
.safari div {
padding-right: 1px; /* prevents the caret from disappearing on the longest line of the doc */
}
span { line-height: 125%; }


/* -------------- */
/* -- WRAPPING -- */
/* -------------- */

body {
margin: 0;
white-space: nowrap;
word-wrap: normal;
}

#outerdocbody {
background-color: #fff;
}
body.grayedout { background-color: #eee !important }

#innerdocbody {
font-size: 12px; /* overridden by body.style */
font-family:Arial, sans-serif; /* overridden by body.style */
line-height: 16px; /* overridden by body.style */
background-color: white;
color: black;
}

body.doesWrap {
display: block !important;
/* white-space: pre-wrap; */

/*
Must be pre-wrap to keep trailing spaces. Otherwise you get a zombie caret,
walking around your screen (see #1766).
Expand All @@ -53,86 +69,41 @@ body.doesWrap {
*/
word-wrap: break-word; /* fix for issue #1648 - firefox not wrapping long lines (without spaces) correctly */
}

.noprewrap{
white-space: normal;
}

body.doesWrap:not(.noprewrap) > div{
body.doesWrap:not(.noprewrap) > div {
/* Related to #1766 */
white-space: pre-wrap;
}

#innerdocbody {
padding-top: 1px; /* important for some reason? */
padding-right: 10px;
padding-bottom: 8px;
padding-left: 1px /* prevents characters from looking chopped off in FF3 -- Removed because it added too much whitespace */;
overflow: hidden;
/* blank 1x1 gif, so that IE8 doesn't consider the body transparent */
background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==);
}

/* ------------------------------------------ */
/* -- SIDEDIV (line number, text author..) -- */
/* ------------------------------------------ */

#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;
padding-right: 5px;
padding-left: 12px;
background-color: transparent;
border-right: 1px solid #ccc;
}

#sidedivinner {
text-align: right;
opacity: .9;
}

.sidedivdelayed { /* class set after sizes are set */
background-color: #eee;
color: #888 !important;
border-right: 1px solid #ccc;
}
.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;
#sidediv:not(.sidedivdelayed) { /* before sidediv get initialized, hide text */
color: transparent;
}

body.doesWrap {
display: block !important;
#sidediv.sidedivhidden {
/* 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;
}

.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;
Expand All @@ -142,11 +113,33 @@ p {
font-size: 12px; /* overridden by lineMetricsDiv.style */
font-family: monospace; /* overridden by lineMetricsDiv.style */
}
@media (max-width: 720px) {
#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;
}
}

/* 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. */
/*
.ace-line{
overflow:hidden;



/* ----------- */
/* -- OTHER -- */
/* ----------- */

::selection {
background: #acf;
}
*/
::-moz-selection {
background: #acf;
}
#innerdocbody a {
cursor: pointer !important;
white-space:pre-wrap;
}
body.grayedout {
background-color: #eee !important
}
Loading