Skip to content
Snippets Groups Projects
FloatingSidebox.vue 658 B
Newer Older
<template>
  <div class="d-flex align-items-start fixed-width-container">
    <div class="sticky-container">
      <div class="action-box sidebar bg-light">
        <slot />
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.fixed-width-container {
  width: 215px !important;
}

.sticky-container {
  position: sticky;
  top: 64px;
  width: 100%;
}

.action-box {
  padding-top: 0.01rem;
  padding-bottom: 1rem;

  box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1),
    inset -1px -1px 1px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
}

.sidebar .nav-item .feather {
  margin-right: 4px;
  color: #727272;
}
</style>