2015-09-03 23:51:10 +08:00
|
|
|
.page-editor {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: stretch;
|
2018-03-18 19:46:08 +08:00
|
|
|
overflow: hidden;
|
2019-02-04 01:53:54 +08:00
|
|
|
background-color: #FFF;
|
2019-04-07 00:43:44 +08:00
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
.edit-area {
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
2019-05-06 07:15:03 +08:00
|
|
|
z-index: 10;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2018-03-29 01:52:08 +08:00
|
|
|
|
|
|
|
.mce-tinymce {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mce-top-part::before {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
|
2019-08-04 23:21:16 +08:00
|
|
|
body.mce-fullscreen .page-editor .edit-area {
|
|
|
|
z-index: 12;
|
|
|
|
}
|
|
|
|
|
2019-05-19 22:30:58 +08:00
|
|
|
@include smaller-than($s) {
|
2019-04-14 01:30:11 +08:00
|
|
|
.page-edit-toolbar {
|
|
|
|
overflow-x: scroll;
|
|
|
|
overflow-y: visible;
|
|
|
|
}
|
|
|
|
.page-edit-toolbar .grid.third {
|
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
> div {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-19 22:30:58 +08:00
|
|
|
.page-save-mobile-button {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 30;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 56px;
|
|
|
|
height: 56px;
|
|
|
|
font-size: 24px;
|
|
|
|
right: $-m;
|
|
|
|
bottom: $-s;
|
|
|
|
box-shadow: $bs-hover;
|
|
|
|
background-color: currentColor;
|
|
|
|
text-align: center;
|
|
|
|
svg {
|
|
|
|
fill: #FFF;
|
|
|
|
margin-right: 0;
|
2019-04-14 01:30:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-03 02:26:12 +08:00
|
|
|
.draft-notification {
|
|
|
|
pointer-events: none;
|
|
|
|
transform: scale(0);
|
|
|
|
transition: transform ease-in-out 120ms;
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
&.visible {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
.page-style.editor {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-content {
|
2018-05-28 03:20:13 +08:00
|
|
|
width: 100%;
|
2015-09-03 23:51:10 +08:00
|
|
|
max-width: 840px;
|
2017-08-20 01:32:24 +08:00
|
|
|
margin: 0 auto;
|
2015-10-19 03:06:49 +08:00
|
|
|
overflow-wrap: break-word;
|
2015-10-15 05:12:46 +08:00
|
|
|
.align-left {
|
|
|
|
text-align: left;
|
2015-12-02 04:26:09 +08:00
|
|
|
}
|
|
|
|
img.align-left, table.align-left {
|
|
|
|
float: left !important;
|
2019-05-06 07:15:03 +08:00
|
|
|
margin: $-xs $-m $-m 0;
|
2015-10-15 05:12:46 +08:00
|
|
|
}
|
|
|
|
.align-right {
|
2019-03-02 17:08:01 +08:00
|
|
|
text-align: right !important;
|
2015-12-02 04:26:09 +08:00
|
|
|
}
|
|
|
|
img.align-right, table.align-right {
|
2019-03-02 17:08:01 +08:00
|
|
|
float: right !important;
|
2015-10-15 05:12:46 +08:00
|
|
|
margin: $-xs 0 $-xs $-s;
|
|
|
|
}
|
|
|
|
.align-center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-03-02 17:08:01 +08:00
|
|
|
img.align-center {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
img.align-center, table.align-center {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height:auto;
|
|
|
|
}
|
2016-07-03 16:58:45 +08:00
|
|
|
h1, h2, h3, h4, h5, h6, pre {
|
2016-05-22 16:08:37 +08:00
|
|
|
clear: left;
|
2015-10-15 05:12:46 +08:00
|
|
|
}
|
2015-10-19 03:06:49 +08:00
|
|
|
hr {
|
|
|
|
clear: both;
|
|
|
|
margin: $-m 0;
|
|
|
|
}
|
2015-11-10 03:05:52 +08:00
|
|
|
table {
|
2015-11-10 03:20:44 +08:00
|
|
|
hyphens: auto;
|
2016-09-07 03:47:34 +08:00
|
|
|
table-layout: fixed;
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto !important;
|
2015-11-10 03:05:52 +08:00
|
|
|
}
|
2016-07-08 01:42:21 +08:00
|
|
|
|
|
|
|
// diffs
|
2016-07-10 17:53:37 +08:00
|
|
|
ins,
|
|
|
|
del {
|
2016-07-08 01:42:21 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-07-10 17:53:37 +08:00
|
|
|
ins {
|
|
|
|
background: #dbffdb;
|
2016-07-08 01:42:21 +08:00
|
|
|
}
|
2016-07-10 17:53:37 +08:00
|
|
|
del {
|
|
|
|
background: #FFECEC;
|
2016-07-08 01:42:21 +08:00
|
|
|
}
|
2018-06-30 12:19:55 +08:00
|
|
|
|
|
|
|
&.page-revision {
|
|
|
|
pre code {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
|
2015-10-11 01:57:52 +08:00
|
|
|
// Page content pointers
|
|
|
|
.pointer-container {
|
|
|
|
position: relative;
|
|
|
|
display: none;
|
2015-12-31 04:48:57 +08:00
|
|
|
left: 0;
|
2015-12-31 05:38:20 +08:00
|
|
|
z-index: 10;
|
2015-10-11 01:57:52 +08:00
|
|
|
}
|
|
|
|
.pointer {
|
|
|
|
border: 1px solid #CCC;
|
2019-06-16 18:17:15 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-items: center;
|
2016-05-22 16:08:37 +08:00
|
|
|
padding: $-s $-s;
|
2015-10-11 01:57:52 +08:00
|
|
|
border-radius: 4px;
|
2019-06-16 18:17:15 +08:00
|
|
|
box-shadow: 0 0 12px 1px rgba(212, 209, 209, 0.3);
|
2015-10-11 01:57:52 +08:00
|
|
|
position: absolute;
|
|
|
|
top: -60px;
|
|
|
|
background-color:#FFF;
|
2018-06-10 19:36:23 +08:00
|
|
|
width: 275px;
|
2015-12-31 05:38:20 +08:00
|
|
|
z-index: 55;
|
2018-06-10 19:36:23 +08:00
|
|
|
|
|
|
|
&.is-page-editable {
|
|
|
|
width: 328px;
|
|
|
|
}
|
|
|
|
|
2015-10-11 01:57:52 +08:00
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
bottom: -9px;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
margin-left: -8px;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
background-color:#FFF;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
border-bottom: 1px solid #CCC;
|
|
|
|
border-right: 1px solid #CCC;
|
2015-12-31 05:38:20 +08:00
|
|
|
z-index: 56;
|
2015-10-11 01:57:52 +08:00
|
|
|
}
|
2018-06-10 19:36:23 +08:00
|
|
|
input, button, a {
|
2015-10-11 01:57:52 +08:00
|
|
|
position: relative;
|
|
|
|
border-radius: 0;
|
|
|
|
height: 28px;
|
|
|
|
font-size: 12px;
|
2015-12-31 05:38:20 +08:00
|
|
|
vertical-align: top;
|
2018-06-10 19:36:23 +08:00
|
|
|
padding: 5px 16px;
|
2015-10-11 01:57:52 +08:00
|
|
|
}
|
2019-06-16 18:17:15 +08:00
|
|
|
input {
|
|
|
|
background-color: #FFF;
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
color: #666;
|
|
|
|
width: 172px;
|
|
|
|
z-index: 40;
|
|
|
|
padding: 5px 10px;
|
2015-10-11 01:57:52 +08:00
|
|
|
}
|
2017-01-21 22:56:47 +08:00
|
|
|
span.icon {
|
2019-06-16 18:17:15 +08:00
|
|
|
fill: #444;
|
2017-01-21 22:56:47 +08:00
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
2019-06-16 18:17:15 +08:00
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
2017-01-21 22:56:47 +08:00
|
|
|
}
|
2018-06-10 19:36:23 +08:00
|
|
|
.input-group .button {
|
2015-10-11 01:57:52 +08:00
|
|
|
line-height: 1;
|
|
|
|
margin: 0 0 0 -4px;
|
|
|
|
box-shadow: none;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2018-06-10 19:36:23 +08:00
|
|
|
a.button {
|
2019-06-16 18:17:15 +08:00
|
|
|
margin: 0;
|
|
|
|
color: #FFF;
|
2018-06-10 19:36:23 +08:00
|
|
|
}
|
|
|
|
.svg-icon {
|
|
|
|
width: 1.2em;
|
|
|
|
height: 1.2em;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2015-10-11 01:57:52 +08:00
|
|
|
|
2016-05-15 17:39:17 +08:00
|
|
|
// Attribute form
|
|
|
|
.floating-toolbox {
|
|
|
|
background-color: #FFF;
|
|
|
|
border: 1px solid #DDD;
|
|
|
|
right: $-xl*2;
|
|
|
|
width: 48px;
|
|
|
|
overflow: hidden;
|
|
|
|
align-items: stretch;
|
|
|
|
flex-direction: row;
|
|
|
|
display: flex;
|
|
|
|
transition: width ease-in-out 180ms;
|
|
|
|
margin-top: -1px;
|
2018-02-18 03:49:00 +08:00
|
|
|
min-height: 0;
|
2016-05-15 17:39:17 +08:00
|
|
|
&.open {
|
|
|
|
width: 480px;
|
|
|
|
}
|
2018-02-18 03:49:00 +08:00
|
|
|
[toolbox-toggle] svg {
|
2016-05-15 17:39:17 +08:00
|
|
|
transition: transform ease-in-out 180ms;
|
|
|
|
}
|
|
|
|
[toolbox-toggle] {
|
|
|
|
transition: background-color ease-in-out 180ms;
|
|
|
|
}
|
|
|
|
&.open [toolbox-toggle] {
|
|
|
|
background-color: rgba(255, 0, 0, 0.29);
|
|
|
|
}
|
2018-02-18 03:49:00 +08:00
|
|
|
&.open [toolbox-toggle] svg {
|
2016-05-15 17:39:17 +08:00
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
> div {
|
|
|
|
flex: 1;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.tabs {
|
|
|
|
display: block;
|
|
|
|
border-right: 1px solid #DDD;
|
2016-08-13 21:54:23 +08:00
|
|
|
width: 48px;
|
|
|
|
flex: 0 1 auto;
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
2018-02-18 03:49:00 +08:00
|
|
|
.tabs svg {
|
|
|
|
fill: rgba(0, 0, 0, 0.5);
|
2016-05-15 17:39:17 +08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
.tabs > span {
|
|
|
|
display: block;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: $-s $-m;
|
2019-07-07 20:45:46 +08:00
|
|
|
font-size: 16px;
|
2016-05-15 17:39:17 +08:00
|
|
|
line-height: 1.6;
|
|
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
&.open .tabs > span.active {
|
2018-02-18 03:49:00 +08:00
|
|
|
fill: #444;
|
2016-05-15 17:39:17 +08:00
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
2016-10-24 00:55:48 +08:00
|
|
|
div[toolbox-tab-content] {
|
2016-05-15 17:39:17 +08:00
|
|
|
padding-bottom: 45px;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
2016-05-22 16:08:37 +08:00
|
|
|
min-height: 0px;
|
|
|
|
overflow-y: scroll;
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 24px;
|
|
|
|
margin: $-m 0 0 0;
|
|
|
|
padding: 0 $-l $-s $-l;
|
|
|
|
}
|
|
|
|
.tags input {
|
|
|
|
max-width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 50px;
|
|
|
|
}
|
2017-08-11 03:11:25 +08:00
|
|
|
.tags td, .tag-table > div > div > div {
|
2016-05-15 17:39:17 +08:00
|
|
|
padding-right: $-s;
|
|
|
|
padding-top: $-s;
|
2016-05-16 03:12:53 +08:00
|
|
|
position: relative;
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
|
|
|
.handle {
|
|
|
|
user-select: none;
|
|
|
|
cursor: move;
|
2018-02-18 03:49:00 +08:00
|
|
|
fill: #999;
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
|
|
|
form {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
2016-11-12 21:21:16 +08:00
|
|
|
table td, table th {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
|
|
|
|
2016-10-24 00:55:48 +08:00
|
|
|
[toolbox-tab-content] {
|
2016-05-15 17:39:17 +08:00
|
|
|
display: none;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
|
|
|
|
.tag-display {
|
2016-05-22 16:08:37 +08:00
|
|
|
position: relative;
|
2016-05-15 17:39:17 +08:00
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2016-11-28 03:37:57 +08:00
|
|
|
tr:first-child td {
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2016-08-21 20:35:22 +08:00
|
|
|
.heading th {
|
2016-05-15 17:39:17 +08:00
|
|
|
padding: $-xs $-s;
|
2016-11-28 03:37:57 +08:00
|
|
|
color: rgba(100, 100, 100, 0.7);
|
|
|
|
border: 0;
|
2016-08-21 20:35:22 +08:00
|
|
|
font-weight: 400;
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
|
|
|
td {
|
|
|
|
border: 0;
|
2016-11-28 03:37:57 +08:00
|
|
|
border-bottom: 1px solid #EEE;
|
2016-05-15 17:39:17 +08:00
|
|
|
padding: $-xs $-s;
|
|
|
|
color: #444;
|
|
|
|
}
|
2016-11-28 03:37:57 +08:00
|
|
|
tr td:first-child {
|
|
|
|
padding-left:0;
|
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
.tag-value {
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
tr:last-child td {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
.tag {
|
|
|
|
padding: $-s;
|
2016-05-16 03:12:53 +08:00
|
|
|
}
|
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
|
2016-05-16 03:12:53 +08:00
|
|
|
.suggestion-box {
|
|
|
|
position: absolute;
|
|
|
|
background-color: #FFF;
|
|
|
|
border: 1px solid #BBB;
|
|
|
|
box-shadow: $bs-light;
|
|
|
|
list-style: none;
|
|
|
|
z-index: 100;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
border-radius: 3px;
|
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
padding: $-xs $-s;
|
|
|
|
border-bottom: 1px solid #DDD;
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
&.active {
|
|
|
|
background-color: #EEE;
|
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|
2017-04-19 03:51:45 +08:00
|
|
|
}
|
|
|
|
|
2018-12-10 00:51:31 +08:00
|
|
|
.comments-container h5 {
|
|
|
|
color: #888;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-top: 0.5em;
|
2018-05-28 03:20:13 +08:00
|
|
|
}
|
|
|
|
|
2017-04-19 03:51:45 +08:00
|
|
|
.comment-editor .CodeMirror, .comment-editor .CodeMirror-scroll {
|
|
|
|
min-height: 175px;
|
2018-03-28 03:17:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* FIXME - Ugly hack to modify the media plugin for TinyMCE */
|
|
|
|
.mce-floatpanel[aria-label="Insert/edit media"] {
|
2018-03-29 01:52:08 +08:00
|
|
|
.mce-open {
|
|
|
|
display: none;
|
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
|
2019-03-17 23:07:03 +08:00
|
|
|
.entity-list-item > span:first-child, .icon-list-item > span:first-child, .chapter-expansion > .icon {
|
2018-12-02 04:28:17 +08:00
|
|
|
font-size: 0.8rem;
|
2018-10-17 01:49:16 +08:00
|
|
|
width: 1.88em;
|
|
|
|
height: 1.88em;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 1em;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
svg {
|
|
|
|
margin: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
background-color: currentColor;
|
|
|
|
opacity: 0.2;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2018-10-22 03:05:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.entity-chip {
|
|
|
|
display: inline-block;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 0.9em;
|
2019-02-17 01:13:01 +08:00
|
|
|
border-radius: 3px;
|
2018-10-22 03:05:11 +08:00
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2019-02-17 01:13:01 +08:00
|
|
|
padding: $-xs $-s;
|
2018-12-10 00:51:31 +08:00
|
|
|
fill: currentColor;
|
2019-02-17 01:13:01 +08:00
|
|
|
opacity: 0.85;
|
|
|
|
transition: opacity ease-in-out 120ms;
|
2018-10-22 03:05:11 +08:00
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
background-color: currentColor;
|
2019-02-17 01:13:01 +08:00
|
|
|
opacity: 0.15;
|
2018-10-22 03:05:11 +08:00
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2019-02-17 01:13:01 +08:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2016-05-15 17:39:17 +08:00
|
|
|
}
|