Skip to content

Commit

Permalink
Sneridagh fixes 10 07 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored Jul 10, 2023
1 parent 31b55a0 commit ad4da17
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
10 changes: 9 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ defineMessages({

const applyConfig = (config) => {
config.settings.enableAutoBlockGroupingByBackgroundColor = true;
config.settings.navDepth = 3;

// No required blocks (eg. Title)
config.blocks.requiredBlocks = [];
Expand All @@ -49,7 +50,14 @@ const applyConfig = (config) => {
...config.settings.apiExpanders,
{
match: '',
GET_CONTENT: ['breadcrumbs', 'navigation', 'actions', 'types'],
GET_CONTENT: ['breadcrumbs', 'actions', 'types'],
},
{
match: '',
GET_CONTENT: ['navigation'],
querystring: {
'expand.navigation.depth': config.settings.navDepth,
},
},
];

Expand Down
6 changes: 6 additions & 0 deletions src/theme/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
}
}
}

.contenttype-file {
.content-area a {
text-decoration: underline;
}
}
6 changes: 0 additions & 6 deletions src/theme/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,4 @@ body.has-toolbar.has-sidebar .block .ui.basic.button.delete-button {
}
}

.contenttype-file {
a {
text-decoration: underline;
}
}

@import 'bgcolor-blocks-layout';
16 changes: 8 additions & 8 deletions src/theme/blocks/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
.block.teaser {
margin-bottom: 0;
background-color: $lightgrey;
.grid-teaser-item {
.teaser-item {
height: 100%;

.grid-image-wrapper {
.image-wrapper {
margin: 0 0 40px 0 !important;

img {
Expand Down Expand Up @@ -54,7 +54,7 @@
.block-editor-teaser {
padding: 0;
margin: 0.5rem !important;
.grid-teaser-item {
.teaser-item {
border: none !important;
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@
.block.gridBlock,
.block-editor-gridBlock {
.one {
.grid-teaser-item .content h2 {
.teaser-item .content h2 {
margin-bottom: 40px !important;
@include text-heading-h2();
}
Expand All @@ -159,7 +159,7 @@
.two,
.three {
.teaser {
.grid-teaser-item .content {
.teaser-item .content {
h2 {
margin-bottom: 20px !important;
@include text-heading-h3();
Expand Down Expand Up @@ -187,8 +187,8 @@

.four {
.teaser {
.grid-teaser-item {
.grid-image-wrapper {
.teaser-item {
.image-wrapper {
margin-bottom: 20px !important;
}
.content {
Expand Down Expand Up @@ -239,7 +239,7 @@
#page-add .block-editor-gridBlock.has--backgroundColor--grey,
#page-edit .block-editor-gridBlock.has--backgroundColor--grey {
background-color: $lightgrey;
.grid-teaser-item {
.teaser-item {
background: white;
}
.slate {
Expand Down

0 comments on commit ad4da17

Please sign in to comment.