From 8cf3e3001f2cbd18da73fcc92ae5f4b76d3ecf21 Mon Sep 17 00:00:00 2001
From: Patsagorn Y. <49602385+ptsgrn@users.noreply.github.com>
Date: Thu, 16 Jan 2025 20:44:33 +0000
Subject: [PATCH] feat(i18n): Thai translations (#1722)
---
quartz/components/styles/graph.scss | 30 ++++++++++++++++++------------
1 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/quartz/components/styles/graph.scss b/quartz/components/styles/graph.scss
index 244f2e4..1b19f13 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 {
@@ -11,29 +13,29 @@
height: 250px;
margin: 0.5em 0;
position: relative;
+ overflow: hidden;
& > #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 {
@@ -43,9 +45,9 @@
top: 0;
width: 100vw;
height: 100%;
- overflow: scroll;
backdrop-filter: blur(4px);
display: none;
+ overflow: hidden;
&.active {
display: inline-block;
@@ -53,15 +55,19 @@
& > #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