From 10fb57cc1af45badca1fc4e9f91562fffc7ac0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 10 Jul 2023 17:42:43 +0300 Subject: [PATCH] Convert p-link to px-link --- assets/styles/layout/_core.scss | 23 +++++++++ assets/styles/layout/_doc.scss | 4 +- components/doc/DocSectionNav.vue | 4 +- layouts/AppConfigurator.vue | 80 +++++++++++++++---------------- layouts/AppMenuItem.vue | 2 +- layouts/AppTopBar.vue | 8 ++-- pages/landing/DesignerSection.vue | 8 ++-- pages/landing/ThemeSection.vue | 2 +- 8 files changed, 77 insertions(+), 54 deletions(-) diff --git a/assets/styles/layout/_core.scss b/assets/styles/layout/_core.scss index e35431d8c..ba0147d94 100644 --- a/assets/styles/layout/_core.scss +++ b/assets/styles/layout/_core.scss @@ -73,4 +73,27 @@ input[type="number"] { .p-toast.p-toast-top-right, .p-toast.p-toast-top-left { top: 7rem; +} + +.px-link { + font-size: 1rem; + font-family: var(--font-family); + border-radius: var(--border-radius); + text-align: left; + background-color: transparent; + margin: 0; + padding: 0; + border: none; + cursor: pointer; + user-select: none; +} + +.px-link:focus { + outline: 0 none; + outline-offset: 0; + box-shadow: var(--focus-ring); +} + +.px-link:disabled { + cursor: default; } \ No newline at end of file diff --git a/assets/styles/layout/_doc.scss b/assets/styles/layout/_doc.scss index f9f1d9950..24186eb9e 100644 --- a/assets/styles/layout/_doc.scss +++ b/assets/styles/layout/_doc.scss @@ -160,7 +160,7 @@ > .navbar-item-content { display: flex; - .p-link { + .px-link { padding: 0.25rem 1rem 0.25rem 1rem; color: var(--text-color); white-space: nowrap; @@ -178,7 +178,7 @@ > .navbar-item-content { border-color: var(--primary-color); - .p-link { + .px-link { font-weight: 700; color: var(--primary-color); } diff --git a/components/doc/DocSectionNav.vue b/components/doc/DocSectionNav.vue index 0f0b8a57f..2683171f3 100644 --- a/components/doc/DocSectionNav.vue +++ b/components/doc/DocSectionNav.vue @@ -2,14 +2,14 @@