PluralKit/docs/content/.vuepress/components/Arg.vue

36 lines
781 B
Vue
Raw Normal View History

2020-06-10 18:11:28 +02:00
<template>
2020-06-12 15:18:51 +02:00
<span class="cmd-arg"><slot/></span>
2020-06-10 18:11:28 +02:00
</template>
<style lang="stylus">
2020-06-12 15:18:51 +02:00
.cmd-arg {
font-weight: bold;
line-height: 1.75;
2020-06-12 12:47:44 +02:00
display: inline-block;
2020-06-12 15:18:51 +02:00
padding: 0 0.6rem;
2020-06-12 12:47:44 +02:00
2020-06-12 15:18:51 +02:00
background-color: $argBgPlain;
border-radius: 3px;
2020-06-11 00:48:43 +02:00
}
2020-06-12 15:18:51 +02:00
.cmd-inline .cmd-arg {
background-color: $argBgInline;
2020-06-11 00:48:43 +02:00
}
2020-06-12 15:18:51 +02:00
.cmd-block .cmd-arg {
background-color: $argBgBlock;
2020-06-11 00:48:43 +02:00
}
2020-06-18 18:33:29 +02:00
// "Free" arguments in a standard text section needs extra margin
// might need tweaking to look good in all contexts, but this looks fine for now
p > .cmd-arg, li > .cmd-arg {
margin: 0.2rem 0.2rem 0.2rem 0.1rem;
}
2020-06-10 18:11:28 +02:00
</style>
<script>
export default {
2020-06-12 15:18:51 +02:00
props: [],
2020-06-10 18:11:28 +02:00
}
</script>