From c538c151c7462ad0395ff2c15c5e11e89e362aa8 Mon Sep 17 00:00:00 2001
From: Striven <sg.striven@cutecat.club>
Date: Sat, 04 Apr 2026 19:47:16 +0000
Subject: [PATCH] Initial commit
---
quartz/components/styles/graph.scss | 37 +++++++++++++++++++++----------------
1 files changed, 21 insertions(+), 16 deletions(-)
diff --git a/quartz/components/styles/graph.scss b/quartz/components/styles/graph.scss
index 76323bb..cb1b7b4 100644
--- a/quartz/components/styles/graph.scss
+++ b/quartz/components/styles/graph.scss
@@ -1,7 +1,9 @@
+@use "../../styles/variables.scss" as *;
+
.graph {
& > h3 {
font-size: 1rem;
- margin: 0
+ margin: 0;
}
& > .graph-outer {
@@ -9,60 +11,63 @@
border: 1px solid var(--lightgray);
box-sizing: border-box;
height: 250px;
- width: 300px;
margin: 0.5em 0;
position: relative;
+ overflow: hidden;
- & > #global-graph-icon {
+ & > .global-graph-icon {
+ cursor: pointer;
+ background: none;
+ border: none;
color: var(--dark);
opacity: 0.5;
- width: 18px;
- height: 18px;
+ width: 24px;
+ height: 24px;
position: absolute;
padding: 0.2rem;
margin: 0.3rem;
top: 0;
right: 0;
border-radius: 4px;
- background-color: transparent;
+ background-color: transparent;
transition: background-color 0.5s ease;
cursor: pointer;
&:hover {
background-color: var(--lightgray);
}
}
-
- & > #graph-container > svg {
- margin-bottom: -5px;
- }
}
- & > #global-graph-outer {
+ & > .global-graph-outer {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100vw;
height: 100%;
- overflow: scroll;
backdrop-filter: blur(4px);
display: none;
+ overflow: hidden;
&.active {
display: inline-block;
}
- & > #global-graph-container {
+ & > .global-graph-container {
border: 1px solid var(--lightgray);
- background-color: var(--light);
+ background-color: var(--light);
border-radius: 5px;
box-sizing: border-box;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
- height: 60vh;
- width: 50vw;
+ height: 80vh;
+ width: 80vw;
+
+ @media all and not ($desktop) {
+ width: 90%;
+ }
}
}
}
--
Gitblit v1.10.0