Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion assets/scss/_kanvas-corner-popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,36 @@
}

.kanvas-corner-popup .popup {
--kanvas-top-gap:1rem;
--kanvas-bottom-gap: 3rem;
--kanvas-navbar-height: 6rem;
position: fixed;
Comment on lines +16 to 19

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the Stylelint error before merge.

Add an empty line between the custom property declarations and position. Stylelint reports declaration-empty-line-before on Line 19.

🧰 Tools
🪛 Stylelint (17.14.0)

[error] 19-19: Expected empty line before declaration (declaration-empty-line-before)

(declaration-empty-line-before)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@assets/scss/_kanvas-corner-popup.scss` around lines 16 - 19, In the custom
property block, add an empty line after --kanvas-navbar-height and before the
position declaration to satisfy Stylelint’s declaration-empty-line-before rule.

Source: Linters/SAST tools

bottom: 0;
right: 0;
margin: 0 2rem 3rem;
margin: 0 2rem var(--kanvas-bottom-gap);
width: 26rem;
max-width: calc(100vw - 4rem);
box-sizing: border-box;
overflow: visible;
z-index: 9999;
display: flex;
justify-content: center;
opacity: 0;
transform: translateY(12px);
transition: opacity 0.35s ease, transform 0.35s ease;

@media (max-height: 700px) {
--kanvas-bottom-gap: 1rem;
}

@media (max-height: 450px) {
--kanvas-bottom-gap: 0.5rem;
}

@media (max-width: 767.98px) {
--kanvas-navbar-height: 9rem;
}

@media (max-width: 1000px) {
max-width: 22rem;
}
Expand All @@ -48,7 +66,14 @@

.kanvas-corner-popup .popup-inner {
position: relative;
min-height: 0;
width: 100%;
max-height: calc(100vh - var(--kanvas-navbar-height) - var(--kanvas-bottom-gap) - var(--kanvas-top-gap));
max-height: calc(100dvh - var(--kanvas-navbar-height) - var(--kanvas-bottom-gap) - var(--kanvas-top-gap));
overflow-y: auto;
scrollbar-width: none;
-ms-overflow-style: none;
box-sizing: border-box;
background: #121212;
display: flex;
flex-direction: column;
Expand All @@ -59,6 +84,10 @@
border-radius: 5%;
box-shadow: 0 0 28px rgba($secondary, 0.55);

&::-webkit-scrollbar {
display: none;
}

@media (max-width: 640px) {
padding: 0.8rem;
gap: 0.375rem;
Expand Down Expand Up @@ -104,6 +133,8 @@
text-decoration: none;
color: inherit;
width: 100%;
max-width: 100%;
overflow-wrap: anywhere;
}

.kanvas-corner-popup .popup-text {
Expand Down Expand Up @@ -152,6 +183,8 @@
font-size: 0.95rem;
border-radius: 4px;
text-decoration: none;
width: auto;
max-width: 100%;
transition: filter 0.2s ease, box-shadow 0.2s ease;

&:hover {
Expand Down
Loading