Skip to content

Commit

Permalink
Add callout button to the slate
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Sep 28, 2023
1 parent 7237b4a commit 99cfd37
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions frontend/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,25 @@ export default function applyConfig(config) {
title: 'Homepage',
});

config.settings.slate.toolbarButtons = [
'bold',
'italic',
'strikethrough',
'link',
'separator',
'heading-two',
'heading-three',
'separator',
'sub',
'sup',
'separator',
'numbered-list',
'bulleted-list',
'blockquote',
'styleMenu',
'callout',
];

config.settings.asyncPropsExtenders = [
...config.settings.asyncPropsExtenders,
{
Expand Down
13 changes: 13 additions & 0 deletions frontend/theme/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,19 @@ body:not(.has-mobile-menu-open){
display: none !important;
}

#view, #page-edit{
p.callout {
font-size: 15px;
color: #777777;
margin-top: 0px;
border: none;
box-shadow: none;
padding-left: 0px;
@media screen and (max-width: 1200px) {
font-size: 12px;
}
}
}
#view #photo-credit, #page-edit #photo-credit {
p {
font-size: 15px;
Expand Down

0 comments on commit 99cfd37

Please sign in to comment.