wiki/quartz/components/styles/graph.scss

74 lines
1.4 KiB
SCSS
Raw Permalink Normal View History

2023-07-10 02:32:24 +00:00
@use "../../styles/variables.scss" as *;
2023-06-18 17:47:07 +00:00
.graph {
& > h3 {
font-size: 1rem;
2023-07-23 00:27:41 +00:00
margin: 0;
2023-06-18 17:47:07 +00:00
}
& > .graph-outer {
border-radius: 5px;
border: 1px solid var(--lightgray);
box-sizing: border-box;
height: 250px;
margin: 0.5em 0;
position: relative;
2023-07-02 20:08:29 +00:00
overflow: hidden;
2023-06-18 17:47:07 +00:00
& > #global-graph-icon {
cursor: pointer;
background: none;
border: none;
2023-06-18 17:47:07 +00:00
color: var(--dark);
opacity: 0.5;
width: 24px;
height: 24px;
2023-06-18 17:47:07 +00:00
position: absolute;
padding: 0.2rem;
margin: 0.3rem;
top: 0;
right: 0;
border-radius: 4px;
2023-07-23 00:27:41 +00:00
background-color: transparent;
2023-06-18 17:47:07 +00:00
transition: background-color 0.5s ease;
cursor: pointer;
&:hover {
background-color: var(--lightgray);
}
}
}
& > #global-graph-outer {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100vw;
height: 100%;
backdrop-filter: blur(4px);
display: none;
overflow: hidden;
2023-06-18 17:47:07 +00:00
&.active {
display: inline-block;
}
& > #global-graph-container {
border: 1px solid var(--lightgray);
2023-07-23 00:27:41 +00:00
background-color: var(--light);
2023-06-18 17:47:07 +00:00
border-radius: 5px;
box-sizing: border-box;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 80vh;
width: 80vw;
2023-07-10 02:32:24 +00:00
2024-10-18 03:50:48 +00:00
@media all and not ($desktop) {
2023-07-10 02:32:24 +00:00
width: 90%;
}
2023-06-18 17:47:07 +00:00
}
}
}