Skip to content

Commit

Permalink
Merge pull request #266 from lblod/feature/style-live-marks
Browse files Browse the repository at this point in the history
Rework styling of mark-highlight-manual and codelist highlight
  • Loading branch information
abeforgit authored May 10, 2022
2 parents 23249ce + 5a49d7b commit 9686e66
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 6 deletions.
65 changes: 61 additions & 4 deletions app/styles/ember-rdfa-editor/_c-annotation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,71 @@ $say-annotation-background-color: var(--au-gray-100) !default;
background-color: rgba($au-gray-100, 0.5);
}



// Highlighting
span.mark-highlight-manual {
color: var(--au-gray-700);
background-color: var(--au-gray-100);
font-style: italic;
border-radius: .3rem;
color: var(--au-orange-700);
background-color: var(--au-orange-300);
margin-right: .5rem !important;
padding: 0 .2rem !important;
line-height: 1.2rem !important;
transition: border .1s ease-in-out, background-color .1s ease-in-out;

&[data-editor-position-level='1'],
&:hover {
color: rgba($au-gray-700, 0.7);
&:hover,
&:focus,
&:focus-within {
opacity: .75;
}
}

[typeof="ext:Mapping"] + [typeof="ext:Mapping"] {
margin-left: .3rem;
}

[typeof="ext:Mapping"] {
border-bottom: 0 !important;

[property],
.mark-highlight-manual {
border-bottom: 0;
}

[property="ext:content"] {
border-radius: .3rem;
padding: 0 .3rem;
line-height: 1.2rem;
margin-bottom: .3rem;
}

[property="dct:type"] + [property="ext:content"],
[property="ext:codelist"] + [property="ext:content"] {
color: var(--vl-picton-120);
border-radius: .3rem;
background-color: rgba(#16465B,.15);
transition: border .1s ease-in-out, background-color .1s ease-in-out;

&:hover,
&:focus,
&:focus-within {
background-color: rgba(#16465B,.1);
}
}

[property="dct:type"] + [property="ext:content"]:after,
[property="ext:codelist"] + [property="ext:content"]:after {
position: relative;
top: -.2rem;
content: "" !important;
display: inline-block !important;
width: 1rem;
height: 1rem;
margin-left: .3rem;
background-size: contain;
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdC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OC41MjEyMDAzLDQuMDE1NzExOCAxOS4wMzU1MDAzLDQuMjIyOTExOCAxOS40MjExMDAzLDQuNTkzODQxOCBMMTkuNDIxMTAwMyw0LjYzMzg0MTggWiIvPjwvc3ZnPgo=")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/styles/ember-rdfa-editor/_c-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ $say-smaller-font-size: 1.4rem !default;
$say-smallest-font-size: 1.2rem !default;
$say-typography-margin: $au-unit-small !default;
$say-editor-private-color: var(--au-gray-900) !default;
$say-editor-highlight-color: var(--au-yellow-200) !default;
$say-editor-highlight-hover-color: var(--au-yellow-100) !default;
$say-editor-highlight-color: var(--au-gray-100) !default;
$say-editor-highlight-hover-color: var(--au-gray-200) !default;

/* Component
========================================================================== */
Expand Down

0 comments on commit 9686e66

Please sign in to comment.