Jacky Zhao
2023-08-07 cd9dc6ecb570c08291e73d9db001e6068df4d88a
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,6 +13,7 @@
    height: 250px;
    margin: 0.5em 0;
    position: relative;
    overflow: hidden;
    & > #global-graph-icon {
      color: var(--dark);
@@ -23,17 +26,13 @@
      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 +42,10 @@
    top: 0;
    width: 100vw;
    height: 100%;
    overflow: scroll;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    overflow: hidden;
    &.active {
      display: inline-block;
@@ -53,7 +53,7 @@
    & > #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;
@@ -62,6 +62,10 @@
      transform: translate(-50%, -50%);
      height: 60vh;
      width: 50vw;
      @media all and (max-width: $fullPageWidth) {
        width: 90%;
      }
    }
  }
}