D3vugu-components/components/navigation/sidebar-entry.vugu

70 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

<button vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683622560 " + c.classes}' @click="c.handleClick(event)">
<div class="d3c-1683622560-highlighter"></div><vg-comp expr="c.IconSlot"></vg-comp><vg-comp expr="c.DefaultSlot"></vg-comp>
</button>
<style>
.d3c-1683622560 {
position: relative;
display: flex;
align-items: center;
gap: 0.5em;
text-decoration: none;
padding: 0.3em 0.5em;
/*margin: 0.5em 0;*/
border-radius: 4px;
border: 1px solid var(--d3c-color-border);
background-color: var(--d3c-color-background);
color: var(--d3c-color-text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 1em;
font-family: "Segoe UI", sans-serif;
min-height: 2em;
user-select: none;
}
.d3c-button-vertical .d3c-1683622560, .d3c-button-vertical.d3c-1683622560 {
flex-direction: column;
}
.d3c-button-borderless .d3c-1683622560, .d3c-button-borderless.d3c-1683622560 {
border: none;
}
.d3c-1683622560-highlighter {
position: absolute;
border-radius: 2px;
width: 4px;
top: 0.5em;
bottom: 0.5em;
left: 0;
}
.d3c-button-highlight .d3c-1683622560-highlighter, .d3c-button-highlight.d3c-1683622560-highlighter {
background-color: var(--d3c-color-accent) !important;
}
.d3c-button-only-icon .d3c-1683622560 > *:nth-child(n+3), .d3c-button-only-icon.d3c-1683622560 > *:nth-child(n+3) {
display: none;
}
.d3c-1683622560:hover {
background-color: var(--d3c-color-hovered);
}
.d3c-1683622560:active {
background-color: var(--d3c-color-activated);
}
.d3c-1683622560:focus-visible {
2023-05-25 15:22:48 +00:00
outline: 2px solid var(--d3c-color-accent);
}
</style>
<script type="application/x-go">
import (
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
)
</script>