Skip to content

Commit

Permalink
Rename from asblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Jul 22, 2021
1 parent 1e03b0b commit 5f972cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/components/formats/collab-caret/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import classnames from 'classnames';
import { applyFormat, registerFormatType } from '@wordpress/rich-text';
import './style.css';

const FORMAT_NAME = 'asblocks/caret';
const FORMAT_NAME = 'isolated/collab-caret';

/**
* Applies given carets to the given record.
Expand Down Expand Up @@ -31,7 +31,7 @@ export function applyCarets( record, carets = [] ) {
{
type: FORMAT_NAME,
attributes: {
id: 'asblocks-caret-' + id,
id: 'iso-editor-collab-caret-' + id,
class: classnames( {
'is-collapsed': isCollapsed,
'is-shifted': isShifted,
Expand Down Expand Up @@ -64,9 +64,9 @@ const getCarets = memoize( ( peers, richTextIdentifier, blockClientId ) => {
} );

export const settings = {
title: 'AsBlocks caret',
title: 'Collaboration peer caret',
tagName: 'mark',
className: 'asblocks-caret',
className: 'iso-editor-collab-caret',
attributes: {
id: 'id',
className: 'class',
Expand Down
16 changes: 8 additions & 8 deletions src/components/formats/collab-caret/style.css
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
mark.asblocks-caret {
mark.iso-editor-collab-caret {
position: relative;
background: #eee;
}

mark.asblocks-caret.is-collapsed {
mark.iso-editor-collab-caret.is-collapsed {
background: none;
}

mark.asblocks-caret::before {
mark.iso-editor-collab-caret::before {
left: -1px;
top: 0;
bottom: 0;
position: absolute;
content: "";
content: '';
font-size: 1em;
width: 2px;
background: #2e3d48;
}

mark.asblocks-caret.is-shifted::before {
mark.iso-editor-collab-caret.is-shifted::before {
left: auto;
right: -1px;
}

mark.asblocks-caret::after {
mark.iso-editor-collab-caret::after {
position: absolute;
top: -8px;
left: -4px;
width: 8px;
height: 8px;
content: "";
content: '';
background-color: #2e3d48;
}

mark.asblocks-caret.is-shifted::after {
mark.iso-editor-collab-caret.is-shifted::after {
left: auto;
right: -4px;
}

0 comments on commit 5f972cd

Please sign in to comment.