1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-23 10:38:54 +00:00
awesome-cheatsheets/components/BaseDivider.vue
2018-09-09 22:49:49 +02:00

56 lines
1.1 KiB
Vue

<!-- *************************************************************************
TEMPLATE
************************************************************************* -->
<template lang="pug">
.c-base-divider
span.c-base-divider__category {{ category }}
hr.c-base-divider__line
</template>
<!-- *************************************************************************
SCRIPT
************************************************************************* -->
<script>
export default {
props: {
category: {
name: String,
required: true
}
}
};
</script>
<!-- *************************************************************************
STYLE
************************************************************************* -->
<style lang="scss">
$c: ".c-base-divider";
#{$c} {
display: flex;
align-items: center;
#{$c}__category {
margin-right: 40px;
color: #ffffff;
text-align-last: left;
text-transform: uppercase;
font-weight: bold;
font-size: 18px;
}
#{$c}__line {
flex: 1;
display: block;
height: 1px;
border: 0;
border-top: 1px solid #313d4f;
}
}
</style>