Tweak design of notices
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable no-irregular-whitespace */
|
/* eslint-disable no-irregular-whitespace */
|
||||||
import { lighten } from "polished";
|
import { lighten, transparentize } from "polished";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
const EditorStyles = styled.div<{
|
const EditorStyles = styled.div<{
|
||||||
@@ -431,10 +431,12 @@ const EditorStyles = styled.div<{
|
|||||||
.notice-block {
|
.notice-block {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: ${(props) => props.theme.noticeInfoBackground};
|
background: ${(props) =>
|
||||||
|
transparentize(0.9, props.theme.noticeInfoBackground)};
|
||||||
|
border-left: 4px solid ${(props) => props.theme.noticeInfoBackground};
|
||||||
color: ${(props) => props.theme.noticeInfoText};
|
color: ${(props) => props.theme.noticeInfoText};
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 8px 16px;
|
padding: 8px 10px 8px 8px;
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -464,21 +466,34 @@ const EditorStyles = styled.div<{
|
|||||||
height: 24px;
|
height: 24px;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
margin-${(props) => (props.rtl ? "left" : "right")}: 4px;
|
margin-${(props) => (props.rtl ? "left" : "right")}: 4px;
|
||||||
|
color: ${(props) => props.theme.noticeInfoBackground};
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-block.tip {
|
.notice-block.tip {
|
||||||
background: ${(props) => props.theme.noticeTipBackground};
|
background: ${(props) =>
|
||||||
|
transparentize(0.9, props.theme.noticeTipBackground)};
|
||||||
|
border-left: 4px solid ${(props) => props.theme.noticeTipBackground};
|
||||||
color: ${(props) => props.theme.noticeTipText};
|
color: ${(props) => props.theme.noticeTipText};
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
color: ${(props) => props.theme.noticeTipBackground};
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: ${(props) => props.theme.noticeTipText};
|
color: ${(props) => props.theme.noticeTipText};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-block.warning {
|
.notice-block.warning {
|
||||||
background: ${(props) => props.theme.noticeWarningBackground};
|
background: ${(props) =>
|
||||||
|
transparentize(0.9, props.theme.noticeWarningBackground)};
|
||||||
|
border-left: 4px solid ${(props) => props.theme.noticeWarningBackground};
|
||||||
color: ${(props) => props.theme.noticeWarningText};
|
color: ${(props) => props.theme.noticeWarningText};
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
color: ${(props) => props.theme.noticeWarningBackground};
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: ${(props) => props.theme.noticeWarningText};
|
color: ${(props) => props.theme.noticeWarningText};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,11 +81,11 @@ export const base = {
|
|||||||
codePlaceholder: "#3d8fd1",
|
codePlaceholder: "#3d8fd1",
|
||||||
codeInserted: "#202746",
|
codeInserted: "#202746",
|
||||||
codeImportant: "#c94922",
|
codeImportant: "#c94922",
|
||||||
noticeInfoBackground: colors.warmGrey,
|
noticeInfoBackground: colors.primary,
|
||||||
noticeInfoText: colors.almostBlack,
|
noticeInfoText: colors.almostBlack,
|
||||||
noticeTipBackground: "#fce5bb",
|
noticeTipBackground: "#F5BE31",
|
||||||
noticeTipText: colors.almostBlack,
|
noticeTipText: colors.almostBlack,
|
||||||
noticeWarningBackground: "#ffadbf",
|
noticeWarningBackground: "#d73a49",
|
||||||
noticeWarningText: colors.almostBlack,
|
noticeWarningText: colors.almostBlack,
|
||||||
breakpoints,
|
breakpoints,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user