2023-02-26 10:03:51 +01:00
|
|
|
diff --git a/app/editor/menus/block.tsx b/app/editor/menus/block.tsx
|
2023-09-29 07:01:51 +02:00
|
|
|
index f795fc56d..a4dc4e17a 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/app/editor/menus/block.tsx
|
|
|
|
+++ b/app/editor/menus/block.tsx
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -21,6 +21,7 @@ import {
|
2023-02-26 10:03:51 +01:00
|
|
|
MathIcon,
|
2023-05-04 09:55:08 +02:00
|
|
|
DoneIcon,
|
2023-09-29 07:01:51 +02:00
|
|
|
EmbedIcon,
|
2023-02-26 10:03:51 +01:00
|
|
|
+ BookmarkedIcon,
|
|
|
|
} from "outline-icons";
|
|
|
|
import * as React from "react";
|
|
|
|
import styled from "styled-components";
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -203,6 +204,13 @@ export default function blockMenuItems(dictionary: Dictionary): MenuItem[] {
|
2023-02-26 10:03:51 +01:00
|
|
|
keywords: "notice card suggestion",
|
|
|
|
attrs: { style: "tip" },
|
|
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name: "container_notice",
|
|
|
|
+ title: dictionary.bibleNotice,
|
|
|
|
+ icon: <BookmarkedIcon />,
|
|
|
|
+ keywords: "notice card bible",
|
|
|
|
+ attrs: { style: "bible" },
|
|
|
|
+ },
|
|
|
|
{
|
|
|
|
name: "separator",
|
|
|
|
},
|
|
|
|
diff --git a/app/hooks/useDictionary.ts b/app/hooks/useDictionary.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
index 6472c88cc..8bedb092d 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/app/hooks/useDictionary.ts
|
|
|
|
+++ b/app/hooks/useDictionary.ts
|
2023-05-04 09:55:08 +02:00
|
|
|
@@ -78,6 +78,8 @@ export default function useDictionary() {
|
2023-02-26 10:03:51 +01:00
|
|
|
warningNotice: t("Warning notice"),
|
2023-05-04 09:55:08 +02:00
|
|
|
success: t("Success"),
|
|
|
|
successNotice: t("Success notice"),
|
2023-02-26 10:03:51 +01:00
|
|
|
+ bible: t("Bible"),
|
|
|
|
+ bibleNotice: t("Bible quote"),
|
|
|
|
insertDate: t("Current date"),
|
|
|
|
insertTime: t("Current time"),
|
|
|
|
insertDateTime: t("Current date and time"),
|
|
|
|
diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx
|
2023-09-29 07:01:51 +02:00
|
|
|
index 8e3542d40..8a7c461af 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/app/scenes/Document/components/Document.tsx
|
|
|
|
+++ b/app/scenes/Document/components/Document.tsx
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -552,11 +552,6 @@ class DocumentScene extends React.Component<Props> {
|
2023-02-26 10:03:51 +01:00
|
|
|
</Flex>
|
|
|
|
</React.Suspense>
|
|
|
|
</MaxWidth>
|
|
|
|
- {isShare &&
|
|
|
|
- !parseDomain(window.location.origin).custom &&
|
|
|
|
- !auth.user && (
|
|
|
|
- <Branding href="//www.getoutline.com?ref=sharelink" />
|
|
|
|
- )}
|
|
|
|
</Container>
|
|
|
|
{!isShare && (
|
|
|
|
<Footer>
|
|
|
|
diff --git a/app/typings/styled-components.d.ts b/app/typings/styled-components.d.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
index f30b74449..406e1fcde 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/app/typings/styled-components.d.ts
|
|
|
|
+++ b/app/typings/styled-components.d.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -54,6 +54,8 @@ declare module "styled-components" {
|
2023-02-26 10:03:51 +01:00
|
|
|
noticeWarningText: string;
|
2023-05-04 09:55:08 +02:00
|
|
|
noticeSuccessBackground: string;
|
|
|
|
noticeSuccessText: string;
|
2023-02-26 10:03:51 +01:00
|
|
|
+ noticeBibleBackground: string;
|
|
|
|
+ noticeBibleText: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Colors {
|
|
|
|
diff --git a/shared/editor/components/Styles.ts b/shared/editor/components/Styles.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
index 056826ddc..1ada51a1f 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/shared/editor/components/Styles.ts
|
|
|
|
+++ b/shared/editor/components/Styles.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -851,6 +851,18 @@ h6 {
|
2023-02-26 10:03:51 +01:00
|
|
|
|
2023-05-04 09:55:08 +02:00
|
|
|
a {
|
|
|
|
color: ${props.theme.noticeSuccessText};
|
|
|
|
+
|
2023-02-26 10:03:51 +01:00
|
|
|
+.notice-block.bible {
|
|
|
|
+ background: ${transparentize(0.9, props.theme.noticeBibleBackground)};
|
|
|
|
+ border-left: 4px solid ${props.theme.noticeBibleBackground};
|
|
|
|
+ color: ${props.theme.noticeBibleText};
|
|
|
|
+
|
|
|
|
+ .icon {
|
|
|
|
+ color: ${props.theme.noticeBibleBackground};
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ a {
|
|
|
|
+ color: ${props.theme.noticeBibleText};
|
2023-05-04 09:55:08 +02:00
|
|
|
}
|
|
|
|
}
|
2023-09-29 07:01:51 +02:00
|
|
|
|
2023-02-26 10:03:51 +01:00
|
|
|
diff --git a/shared/editor/nodes/Notice.tsx b/shared/editor/nodes/Notice.tsx
|
2023-09-29 07:01:51 +02:00
|
|
|
index bd976e69b..9ee40b8d5 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/shared/editor/nodes/Notice.tsx
|
|
|
|
+++ b/shared/editor/nodes/Notice.tsx
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
import Token from "markdown-it/lib/token";
|
2023-05-04 09:55:08 +02:00
|
|
|
-import { WarningIcon, InfoIcon, StarredIcon, DoneIcon } from "outline-icons";
|
|
|
|
+import { WarningIcon, InfoIcon, StarredIcon, BookmarkedIcon, DoneIcon } from "outline-icons";
|
2023-02-26 10:03:51 +01:00
|
|
|
import { wrappingInputRule } from "prosemirror-inputrules";
|
|
|
|
import { NodeSpec, Node as ProsemirrorNode, NodeType } from "prosemirror-model";
|
|
|
|
import * as React from "react";
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -44,6 +44,8 @@ export default class Notice extends Node {
|
2023-02-26 10:03:51 +01:00
|
|
|
? "warning"
|
2023-05-04 09:55:08 +02:00
|
|
|
: dom.className.includes("success")
|
|
|
|
? "success"
|
2023-02-26 10:03:51 +01:00
|
|
|
+ : dom.className.includes("bible")
|
|
|
|
+ ? "bible"
|
|
|
|
: undefined,
|
|
|
|
}),
|
|
|
|
},
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -93,6 +95,8 @@ export default class Notice extends Node {
|
2023-05-04 09:55:08 +02:00
|
|
|
component = <WarningIcon />;
|
|
|
|
} else if (node.attrs.style === "success") {
|
|
|
|
component = <DoneIcon />;
|
2023-02-26 10:03:51 +01:00
|
|
|
+ } else if (node.attrs.style === "bible") {
|
2023-06-29 16:59:33 +02:00
|
|
|
+ component = <BookmarkedIcon />;
|
2023-02-26 10:03:51 +01:00
|
|
|
} else {
|
2023-05-04 09:55:08 +02:00
|
|
|
component = <InfoIcon />;
|
2023-02-26 10:03:51 +01:00
|
|
|
}
|
|
|
|
diff --git a/shared/styles/theme.ts b/shared/styles/theme.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
index f76e9c6a2..850aa1525 100644
|
2023-02-26 10:03:51 +01:00
|
|
|
--- a/shared/styles/theme.ts
|
|
|
|
+++ b/shared/styles/theme.ts
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -96,6 +96,8 @@ const buildBaseTheme = (input: Partial<Colors>) => {
|
2023-05-04 09:55:08 +02:00
|
|
|
noticeSuccessBackground: colors.brand.green,
|
|
|
|
noticeSuccessText: colors.almostBlack,
|
|
|
|
tableSelectedBackground: transparentize(0.8, colors.accent),
|
2023-02-26 10:03:51 +01:00
|
|
|
+ noticeBibleBackground: "#996633",
|
|
|
|
+ noticeBibleText: colors.almostBlack,
|
|
|
|
breakpoints,
|
|
|
|
...colors,
|
|
|
|
...spacing,
|
2023-09-29 07:01:51 +02:00
|
|
|
@@ -234,6 +236,7 @@ export const buildDarkTheme = (input: Partial<Colors>): DefaultTheme => {
|
2023-02-26 10:03:51 +01:00
|
|
|
noticeTipText: colors.white,
|
|
|
|
noticeWarningText: colors.white,
|
2023-05-04 09:55:08 +02:00
|
|
|
noticeSuccessText: colors.white,
|
2023-02-26 10:03:51 +01:00
|
|
|
+ noticeBibleText: colors.white,
|
|
|
|
progressBarBackground: colors.slate,
|
|
|
|
scrollbarBackground: colors.black,
|
|
|
|
scrollbarThumb: colors.lightBlack,
|