<script>import { BEM } from '../../models/BEM';
export let theme = '';
export let isMenu = false;
export let isFixed = false;
const bm = new BEM('UI-Navbar', {
    [theme]: !!theme
});
bm.append($$props.class);
</script>

<header class={bm.toString()} class:isMenu class:isFixed>
	<slot />
</header>

<style>header {
  padding: 0.5rem;
  background: var(--ui-co-navbar);
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: var(--ui-co-navbar_radius, 6px);
  display: flex;
  align-items: center;
}

.primary {
  background-color: var(--ui-primary);
  color: var(--ui-theme-primary);
}
.primary:hover {
  opacity: 0.9;
}

.secondary {
  background-color: var(--ui-secondary);
  color: var(--ui-theme-primary);
}
.secondary:hover {
  opacity: 0.9;
}

.danger {
  background-color: var(--ui-danger);
  color: var(--ui-theme-primary);
}
.danger:hover {
  opacity: 0.9;
}

.info {
  background-color: var(--ui-info);
  color: var(--ui-theme-primary);
}
.info:hover {
  opacity: 0.9;
}

.success {
  background-color: var(--ui-success);
  color: var(--ui-theme-primary);
}
.success:hover {
  opacity: 0.9;
}

.warning {
  background-color: var(--ui-warning);
  color: var(--ui-theme-primary);
}
.warning:hover {
  opacity: 0.9;
}

.default {
  background-color: var(--ui-default);
  color: var(--ui-theme-primary);
}
.default:hover {
  opacity: 0.9;
}

.dark {
  background-color: var(--ui-dark);
  color: var(--ui-theme-primary);
}
.dark:hover {
  opacity: 0.9;
}

.white {
  background-color: var(--ui-white);
  color: var(--ui-theme-primary);
}
.white:hover {
  opacity: 0.9;
}

.isMenu {
  --ui-co-navbar_radius: 0;
}

.isFixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}</style>
