From cfd2ad181255833c8ca51bc20796b7e92f2958bc Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Mon, 22 Jul 2024 12:53:23 +0300 Subject: [PATCH] feat: migrate plugins to their own repo --- src/styles/index.scss | 2 +- src/styles/plugins/_full-width-navbar.scss | 16 -------- src/styles/plugins/_index.scss | 3 -- src/styles/plugins/_numeric-headings.scss | 45 ---------------------- src/styles/plugins/_sticky-navbar.scss | 8 ---- 5 files changed, 1 insertion(+), 73 deletions(-) delete mode 100644 src/styles/plugins/_full-width-navbar.scss delete mode 100644 src/styles/plugins/_index.scss delete mode 100644 src/styles/plugins/_numeric-headings.scss delete mode 100644 src/styles/plugins/_sticky-navbar.scss diff --git a/src/styles/index.scss b/src/styles/index.scss index 6f39410..b23dcec 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -23,7 +23,7 @@ /* Plugins */ -@import "plugins/index"; +@import url("https://raw.githubusercontent.com/aplosdev/plugins/main/index.scss"); :root { --content-width: 58rem; diff --git a/src/styles/plugins/_full-width-navbar.scss b/src/styles/plugins/_full-width-navbar.scss deleted file mode 100644 index 454148f..0000000 --- a/src/styles/plugins/_full-width-navbar.scss +++ /dev/null @@ -1,16 +0,0 @@ -.full-width-navbar { - header nav { - width: 100%; - top: 0; - margin-top: 0; - padding: 0.3125rem 0.625rem; - border-top: 0; - border-radius: 0; - - margin-right: calc((-100vw + 100%) / 2); - margin-bottom: 1rem; - margin-left: calc((-100vw + 100%) / 2); - width: 100vw; - max-width: 100vw; - } -} diff --git a/src/styles/plugins/_index.scss b/src/styles/plugins/_index.scss deleted file mode 100644 index 17d8cc1..0000000 --- a/src/styles/plugins/_index.scss +++ /dev/null @@ -1,3 +0,0 @@ -@import "full-width-navbar"; -@import "sticky-navbar"; -@import "numeric-headings"; diff --git a/src/styles/plugins/_numeric-headings.scss b/src/styles/plugins/_numeric-headings.scss deleted file mode 100644 index 739b459..0000000 --- a/src/styles/plugins/_numeric-headings.scss +++ /dev/null @@ -1,45 +0,0 @@ -.numeric { - counter-reset: h2; - - @mixin numeric($counter, $content, $reset) { - counter-reset: $reset; - &:before { - counter-increment: $counter; - content: $content; - } - } - - h1, - h2, - h3, - h4, - h5, - h6 { - &::before { - margin-right: 0.5rem; - color: var(--color-text-secondary); - font-weight: 800; - font-size: 70%; - } - } - - h2 { - @include numeric(h2, ". ", h3); - } - - h3 { - @include numeric(h3, counter(h2) "." counter(h3) ". ", h4); - } - - h4 { - @include numeric(h4, counter(h2) "." counter(h3) "." counter(h4) ". ", h5); - } - - h5 { - @include numeric( - h5, - counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ", - h6 - ); - } -} diff --git a/src/styles/plugins/_sticky-navbar.scss b/src/styles/plugins/_sticky-navbar.scss deleted file mode 100644 index a78742c..0000000 --- a/src/styles/plugins/_sticky-navbar.scss +++ /dev/null @@ -1,8 +0,0 @@ -.sticky-navbar { - header nav { - margin-top: 0; - border-top: 0; - top: 0; - border-radius: 0 0 var(--rounded) var(--rounded); - } -}