_layout.svelte 863 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <script>
  2. import Nav from "../../components/Nav.svelte";
  3. export let segment;
  4. </script>
  5. <style lang="css">
  6. .frame {
  7. @apply w-screen h-screen m-auto .flex .items-center .justify-center;
  8. & > div {
  9. @apply w-full h-full;
  10. }
  11. }
  12. @screen xl {
  13. .frame {
  14. & > div {
  15. @apply .w-10/12;
  16. height: calc(10 / 12 * 100%);
  17. }
  18. }
  19. }
  20. .button {
  21. @apply .bg-gray-800 .px-2 .py-1 .rounded-sm .font-medium;
  22. &:hover {
  23. @apply .bg-gray-700;
  24. }
  25. &[data-active="true"] {
  26. @apply .bg-blue-800;
  27. }
  28. }
  29. .main-view {
  30. @apply .bg-gray-700 .w-10/12 .overflow-y-auto .rounded-r-sm .p-2;
  31. }
  32. </style>
  33. <div class="frame">
  34. <div class="flex shadow-big">
  35. <Nav {segment} />
  36. <section class="main-view ">
  37. <slot />
  38. </section>
  39. </div>
  40. </div>