Skip to content

Commit

Permalink
Add block name tags to single, blog and 404 views
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed May 26, 2022
1 parent 2ad136e commit 33f0950
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### 2.0.3: 2022-05-26

* Fix paddings on demo templates other than home
* Add block name tags to single, blog and 404 views

### 2.0.2: 2022-05-26

Expand Down
22 changes: 21 additions & 1 deletion air-light-demo-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Plugin URI: https://github.com/digitoimistodude/air-light-demo-content
* Description: Provides the demo CSS and Gutenberg block for Air-light starter theme as presented in airwptheme.com/demo.
* Version: 2.0.2
* Version: 2.0.3
* Author: Digitoimisto Dude Oy
* Author URI: https://www.dude.fi
* Requires at least: 5.0
Expand Down Expand Up @@ -270,6 +270,10 @@ function demo_css() { ?>
}
}

/* Tags */
.block-error-404::before,
.block-blog::before,
.block-single::before,
.block-name-tag {
left: 0;
position: absolute;
Expand All @@ -278,6 +282,9 @@ function demo_css() { ?>
z-index: 22;
}

.block-error-404::before,
.block-blog::before,
.block-single::before,
.block-name-tag p {
background-color: var(--color-black);
border-top-left-radius: 3px;
Expand All @@ -288,6 +295,19 @@ function demo_css() { ?>
margin: 0;
padding: 5px 8px;
transform: translateX(1rem);
display: inline-block;
}

.block-single::before {
content: 'single';
}

.block-blog::before {
content: 'blog';
}

.block-error-404::before {
content: 'error-404';
}

/* Blocks */
Expand Down

0 comments on commit 33f0950

Please sign in to comment.