c-object-label changes brought over from topic-conditionals (#2823)

- SCSS mods;
- Markup in select objects
This commit is contained in:
Charles Hacskaylo 2020-03-30 17:30:53 -07:00 committed by GitHub
parent 3ca9e9ae56
commit 7b060509f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 19 deletions

View File

@ -40,10 +40,10 @@
> >
<div <div
v-if="currentTab" v-if="currentTab"
class="c-tabs-view__object-name l-browse-bar__object-name--w" class="c-tabs-view__object-name c-object-label l-browse-bar__object-name--w"
:class="currentTab.type.definition.cssClass" :class="currentTab.type.definition.cssClass"
> >
<div class="l-browse-bar__object-name"> <div class="l-browse-bar__object-name c-object-label__name">
{{ currentTab.domainObject.name }} {{ currentTab.domainObject.name }}
</div> </div>
</div> </div>

View File

@ -28,12 +28,12 @@
}" }"
> >
<div class="c-so-view__header"> <div class="c-so-view__header">
<div <div class="c-object-label"
class="c-so-view__header__icon" :class="cssClass"
:class="cssClass" >
></div> <div class="c-object-label__name">
<div class="c-so-view__header__name"> {{ domainObject && domainObject.name }}
{{ domainObject && domainObject.name }} </div>
</div> </div>
<context-menu-drop-down <context-menu-drop-down
:object-path="objectPath" :object-path="objectPath"

View File

@ -1,28 +1,42 @@
.c-object-label { .c-object-label {
// <a> tag and draggable element that holds type icon and name. // <a> tag and draggable element that holds type icon and name.
// Used mostly in trees and lists // Used mostly in trees and lists
border-radius: $controlCr;
display: flex; display: flex;
align-items: center; align-items: center;
flex: 1 1 auto; flex: 0 1 auto;
overflow: hidden; overflow: hidden;
padding: $interiorMarginSm 1px;
white-space: nowrap; white-space: nowrap;
&__name { &__name {
@include ellipsize(); @include ellipsize();
display: inline; display: inline;
color: $colorItemTreeFg; }
&__type-icon,
&:before {
// Type icon. Must be an HTML entity to allow inclusion of alias indicator.
display: block;
flex: 0 0 auto;
font-size: 1.1em;
opacity: 0.6;
margin-right: $interiorMargin;
}
}
.c-tree .c-object-label {
border-radius: $controlCr;
padding: $interiorMarginSm 1px;
&__name {
display: inline;
width: 100%; width: 100%;
} }
&__type-icon { &__type-icon {
// Type icon. Must be an HTML entity to allow inclusion of alias indicator.
display: block;
flex: 0 0 auto;
font-size: 1.3em;
margin-right: $interiorMarginSm;
color: $colorItemTreeIcon; color: $colorItemTreeIcon;
font-size: 1.25em;
margin-right: $interiorMarginSm;
opacity: 1;
width: $treeTypeIconW; width: $treeTypeIconW;
} }
} }

View File

@ -7,11 +7,11 @@
@click="goToParent" @click="goToParent"
></button> ></button>
<div <div
class="l-browse-bar__object-name--w" class="l-browse-bar__object-name--w c-object-label"
:class="type.cssClass" :class="type.cssClass"
> >
<span <span
class="l-browse-bar__object-name c-input-inline" class="l-browse-bar__object-name c-object-label__name c-input-inline"
contenteditable contenteditable
@blur="updateName" @blur="updateName"
@keydown.enter.prevent @keydown.enter.prevent