Skip to content

Commit

Permalink
feat: add sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosirera committed Apr 25, 2021
1 parent c816c0c commit 783e159
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/ui/TheHeader.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<header class="py-5 px-3">
<header class="py-5 px-3 sticky top-0 header">
<div class="container flex justify-between items-center">
<nuxt-link to="/" class="flex items-center">
<Logo />
Expand Down Expand Up @@ -44,6 +44,11 @@ export default {
</script>

<style lang="scss" scoped>
.header {
background-color: var(--bg);
// TODO: cambiar este 64, aparece por el play de los videos en los artículos
z-index: 64;
}
.link {
color: var(--nav-links-color);
Expand Down

0 comments on commit 783e159

Please sign in to comment.