2023-05-15 06:58:12 +00:00
|
|
|
<button vg-attr='utils.AttributesAppend{AttrMap: c.AttrMap, Classes: "d3c-1683622560 " + c.classes}' @click="c.handleClick(event)">
|
2023-05-25 13:59:13 +00:00
|
|
|
<div class="d3c-1683622560-highlighter"></div><vg-comp expr="c.IconSlot"></vg-comp><vg-comp expr="c.DefaultSlot"></vg-comp>
|
2023-05-12 10:57:42 +00:00
|
|
|
</button>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.d3c-1683622560 {
|
2023-05-25 13:59:13 +00:00
|
|
|
position: relative;
|
2023-05-12 10:57:42 +00:00
|
|
|
display: flex;
|
2023-05-15 08:22:29 +00:00
|
|
|
align-items: center;
|
2023-05-17 10:34:48 +00:00
|
|
|
gap: 0.5em;
|
2023-05-12 10:57:42 +00:00
|
|
|
text-decoration: none;
|
2023-05-16 16:10:24 +00:00
|
|
|
padding: 0.3em 0.5em;
|
2023-05-27 21:48:57 +00:00
|
|
|
/*margin: 0.5em 0;*/
|
2023-05-12 10:57:42 +00:00
|
|
|
border-radius: 4px;
|
2023-05-18 11:55:48 +00:00
|
|
|
border: 1px solid var(--d3c-color-border);
|
|
|
|
background-color: var(--d3c-color-background);
|
|
|
|
color: var(--d3c-color-text);
|
2023-05-12 10:57:42 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2023-05-15 08:22:29 +00:00
|
|
|
font-size: 1em;
|
|
|
|
font-family: "Segoe UI", sans-serif;
|
2023-05-17 10:34:48 +00:00
|
|
|
min-height: 2em;
|
2023-05-15 09:24:25 +00:00
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2023-05-25 13:59:13 +00:00
|
|
|
.d3c-button-vertical .d3c-1683622560, .d3c-button-vertical.d3c-1683622560 {
|
2023-05-17 10:34:48 +00:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-05-25 15:44:44 +00:00
|
|
|
.d3c-button-borderless .d3c-1683622560, .d3c-button-borderless.d3c-1683622560 {
|
2023-05-15 09:24:25 +00:00
|
|
|
border: none;
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-25 13:59:13 +00:00
|
|
|
.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 {
|
2023-05-25 14:37:46 +00:00
|
|
|
background-color: var(--d3c-color-accent) !important;
|
2023-05-25 13:59:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.d3c-button-only-icon .d3c-1683622560 > *:nth-child(n+3), .d3c-button-only-icon.d3c-1683622560 > *:nth-child(n+3) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-05-12 10:57:42 +00:00
|
|
|
.d3c-1683622560:hover {
|
2023-05-18 11:55:48 +00:00
|
|
|
background-color: var(--d3c-color-hovered);
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-15 09:24:25 +00:00
|
|
|
.d3c-1683622560:active {
|
2023-05-25 13:59:13 +00:00
|
|
|
background-color: var(--d3c-color-activated);
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
|
|
|
|
2023-05-25 13:59:13 +00:00
|
|
|
.d3c-1683622560:focus-visible {
|
2023-05-25 15:22:48 +00:00
|
|
|
outline: 2px solid var(--d3c-color-accent);
|
2023-05-12 10:57:42 +00:00
|
|
|
}
|
2023-05-15 06:58:12 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<script type="application/x-go">
|
|
|
|
import (
|
|
|
|
"git.d3nexus.de/Dadido3/D3vugu-components/utils"
|
|
|
|
)
|
|
|
|
</script>
|