Write out "element" in HTML element classes
Write out "representation" too.
This commit is contained in:
parent
882286c0e3
commit
3f3c1739cb
@ -66,28 +66,28 @@ summary > div, .constraint {
|
|||||||
padding-bottom: 4px;
|
padding-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elt, .constraint {
|
.element, .constraint {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elt-switch {
|
.element-switch {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
details:has(li) .elt-switch::after {
|
details:has(li) .element-switch::after {
|
||||||
content: '▸';
|
content: '▸';
|
||||||
}
|
}
|
||||||
|
|
||||||
details[open]:has(li) .elt-switch::after {
|
details[open]:has(li) .element-switch::after {
|
||||||
content: '▾';
|
content: '▾';
|
||||||
}
|
}
|
||||||
|
|
||||||
.elt-label {
|
.element-label {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,11 +95,11 @@ details[open]:has(li) .elt-switch::after {
|
|||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elt-rep {
|
.element-representation {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elt-rep > div {
|
.element-representation > div {
|
||||||
padding: 2px 0px 0px 0px;
|
padding: 2px 0px 0px 0px;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
|
@ -115,11 +115,11 @@ fn ElementOutlineItem(key: ElementKey, element: assembly::Element) -> View {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
div(
|
div(
|
||||||
class="elt-switch",
|
class="element-switch",
|
||||||
on:click=|event: MouseEvent| event.stop_propagation()
|
on:click=|event: MouseEvent| event.stop_propagation()
|
||||||
)
|
)
|
||||||
div(
|
div(
|
||||||
class="elt",
|
class="element",
|
||||||
on:click={
|
on:click={
|
||||||
move |event: MouseEvent| {
|
move |event: MouseEvent| {
|
||||||
if event.shift_key() {
|
if event.shift_key() {
|
||||||
@ -139,8 +139,8 @@ fn ElementOutlineItem(key: ElementKey, element: assembly::Element) -> View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
div(class="elt-label") { (label) }
|
div(class="element-label") { (label) }
|
||||||
div(class="elt-rep") {
|
div(class="element-representation") {
|
||||||
Indexed(
|
Indexed(
|
||||||
list=rep_components,
|
list=rep_components,
|
||||||
view=|coord_str| view! {
|
view=|coord_str| view! {
|
||||||
|
Loading…
Reference in New Issue
Block a user