2020-06-10 18:11:28 +02:00
|
|
|
|
<template>
|
2020-06-12 12:47:44 +02:00
|
|
|
|
<span class="command-argument"><slot/></span>
|
2020-06-10 18:11:28 +02:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
|
|
.command-argument {
|
2020-06-12 12:47:44 +02:00
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
2020-06-10 23:19:43 +02:00
|
|
|
|
font-size: $exampleFontSize;
|
|
|
|
|
|
font-family: $exampleFontFamily;
|
2020-06-12 12:47:44 +02:00
|
|
|
|
border-bottom: 1px solid darken($exampleArgColor, 15%);
|
2020-06-10 23:19:43 +02:00
|
|
|
|
color: $exampleTextColor;
|
|
|
|
|
|
|
2020-06-10 18:11:28 +02:00
|
|
|
|
padding: 0 0.5rem;
|
2020-06-11 00:48:43 +02:00
|
|
|
|
background-color: $exampleArgColor;
|
2020-06-10 18:11:28 +02:00
|
|
|
|
border-radius: 4px;
|
2020-06-12 12:47:44 +02:00
|
|
|
|
|
2020-06-10 23:19:43 +02:00
|
|
|
|
line-height: 1.7;
|
2020-06-10 18:11:28 +02:00
|
|
|
|
}
|
2020-06-12 12:47:44 +02:00
|
|
|
|
|
2020-06-11 00:48:43 +02:00
|
|
|
|
.custom-block.tip .command-argument {
|
2020-06-11 15:57:45 +02:00
|
|
|
|
background-color: $exampleArgColorInTip;
|
2020-06-11 00:48:43 +02:00
|
|
|
|
}
|
2020-06-12 12:47:44 +02:00
|
|
|
|
|
2020-06-11 00:48:43 +02:00
|
|
|
|
.command-example .command-argument {
|
2020-06-11 15:57:45 +02:00
|
|
|
|
background-color: $exampleArgColorInExample;
|
2020-06-11 00:48:43 +02:00
|
|
|
|
}
|
2020-06-12 12:47:44 +02:00
|
|
|
|
|
2020-06-11 00:48:43 +02:00
|
|
|
|
.custom-block.tip .command-example .command-argument {
|
2020-06-11 15:57:45 +02:00
|
|
|
|
background-color: $exampleArgColorInBoth;
|
2020-06-11 00:48:43 +02:00
|
|
|
|
}
|
2020-06-10 18:11:28 +02:00
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
props: ["optional", "name", "edit", "value"],
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|