HEX
Server: nginx/1.24.0
System: Linux nowruzgan 6.8.0-57-generic #59-Ubuntu SMP PREEMPT_DYNAMIC Sat Mar 15 17:40:59 UTC 2025 x86_64
User: babak (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/nowruzgan.com/vis/cafe-baladieh/css/style.scss
@font-face {
  font-family: 'droid';
  font-style: normal;
  font-weight: 400;
  src: url(../font/DroidNaskh-Regular.eot?#iefix) format('embedded-opentype'),
       url(../font/DroidNaskh-Regular.woff) format('woff'),
       url(../font/DroidNaskh-Regular.ttf) format('truetype');
}
@font-face {
  font-family: 'droid';
  font-style: normal;
  font-weight: 700;
  src: url(../font/DroidNaskh-Bold.eot?#iefix) format('embedded-opentype'),
       url(../font/DroidNaskh-Bold.woff) format('woff'),
       url(../font/DroidNaskh-Bold.ttf) format('truetype');
}

::backdrop,
html {
  background-color: #FFFFFF;
}

body {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  font-family: droid;
  background-image: url(../images/dark-stripes-light.png);
  overflow: hidden;

  &:before {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../images/header-shadow-alt.png);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: 0 0;
    z-index: 2000;
    pointer-events: none;
  }

  &:fullscreen {
    background-color: rgba(255,255,255,0);
  }
  &:-webkit-full-screen {
    background-color: rgba(255,255,255,0);
  }
  &:-moz-full-screen {
    background-color: rgba(255,255,255,0);
  }
}

.fullscreen {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-image: url(../images/fullscreen.png);
  background-size: 100%;

  &.hidden {
    display: none;
  }
}

.scrapboard {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  .doc {
    --z: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: var(--a);
    box-shadow: rgba(0, 0, 0, 0.2) 3px 5px 7px 0px;
    z-index: var(--z);
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
    transition: transform 1s, opacity 0.4s, box-shadow 1s;

    &.lightbox {
      z-index: calc(1000 + var(--z));
    }

    &.spotlight {
      box-shadow: none;
      transform: translate(0, -10vh) scale(var(--ss));
      z-index: calc(3000 + var(--z));

      img.thumb {
        opacity: 0;
        transition: opacity 1s;
      }
    }

    &.panning {
      transition: none;
    }

    &.invisible {
      --a: 0;
    }

    img {
      position: absolute;
      top: 0;
      left: 0;
      max-width: 100%;
      max-height: 100%;
      pointer-events: none;
      transition: opacity 1s;

      &.thumb {
        opacity: 1;
        transition: none;
      }

      &.hires{
        opacity: 0;

        &.visible {
          opacity: 1;
        }
      }
    }
  }
}

@keyframes from-left {
  0% {
    left: -10vw;
  }

  100% {
    left: 0;
  }
}
@keyframes to-right {
  0% {
    left: 0;
  }

  100% {
    left: 10vw;
  }
}
@keyframes to-left {
  0% {
    left: 0vw;
  }

  100% {
    left: -10vw;
  }
}
@keyframes from-right {
  0% {
    left: 10vw;
  }

  100% {
    left: 0;
  }
}

.timeline-wrapper {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 2000;
  -webkit-mask-image: linear-gradient(to left, transparent 2%, black 10%, black 90%, transparent 98%);
  mask-image: linear-gradient(to left, transparent 2%, black 10%, black 90%, transparent 98%);
  background-image: url(../images/gesture.png);
  background-position: 50% 100%;
  background-size: 40px;
  background-repeat: no-repeat;

  .timeline-sections {
    display: flex;
    direction: ltr;

    .timeline-section {
      position: relative;
      // width: calc((var(--year-factor) / 47) * 100%);
      width: 50%;
      text-align: center;

      &:before {
        content: ' ';
        position: absolute;
        bottom: 32px;
        left: 10px;
        right: 10px;
        border-top: 1px solid #82C5E1;
        z-index: -1;
      }

      &:last-child:before {
        right: 0px;
      }

      img {
        pointer-events: none;
      }
    }
  }

  .timeline {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 200%;
    height: 100px;
    direction: ltr;

    .time-spans {
      position: relative;
      display: flex;
      height: 60px;

      .time-span {
        position: relative;
        width: calc((var(--year-factor) / 47) * 100%);

        &:before {
          content: ' ';
          position: absolute;
          top: 12px;
          height: 16px;
          left: 0;
          width: 0;
          border-left: 1px solid #505050;
        }

        &.last:after {
          content: ' ';
          position: absolute;
          top: 12px;
          height: 16px;
          right: -1px;
          width: 0;
          border-right: 1px solid #505050;
        }

        .line {
          position: absolute;
          top: 20px;
          left: 0;
          right: 0;
          border-top: 1px solid #505050;
        }

        &.empty .line {
          border-top: 1px dashed #A0A0A0;
        }

        .date {
          position: absolute;
          bottom: 0px;
          left: -15px;
          width: 30px;
          text-align: center;
          color: #505050;
        }
      }

      .selected-time-span {
        position: absolute;
        top: 10px;
        height: 20px;
        left: 0;
        width: 100px;
        background-color: rgba(44, 114, 144, .75);
        // border-right: 1px solid #A0A0A0;
        // border-left: 1px solid #A0A0A0;
        border-radius: 5px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);

        &.visible {
          opacity: 1;
        }
      }
    }
  }
}

.spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 3000;
  pointer-events: none;
  transition: opacity 0.5s;

  .spotlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 64, 64, .85);
  }
  .spotlight-desc {
    position: absolute;
    bottom: 100px;
    right: 0;
    left: 0;
    text-align: center;
    pointer-events: none;

    .doc-text {
      display: inline-block;
      max-width: 80%;
      margin-bottom: 5px;
      padding: 10px 20px;
      color: white;
      background: #2C7290;
      border-radius: 5px;
    }

    .img-text {
      display: inline-block;
      max-width: 80%;
      padding: 10px 20px;
      color: white;
      background: #2C7290;
      border-radius: 5px;
    }
  }
  .spotlight-pagination {
    position: absolute;
    bottom: 250px;
    left: 0;
    width: 100%;
    text-align: center;

    .bullets {
      // display: inline-block;
      position: relative;
      max-width: 440px;
      margin: 0 auto;
      direction: ltr;

      &.hidden {
        display: none;
      }

      .bullet-index {
        position: absolute;
        top: 8px;
        left: 50%;
        width: 12px;
        height: 12px;
        border-radius: 10px;
        background-color: white;
        transition: left 1s, top 1s;
      }

      .bullet {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin-right: 10px;
        border: 1px solid white;
        border-radius: 10px;
      }
    }
  }
}
.in-spotlight {
  .spotlight {
    opacity: 1;
    pointer-events: initial;
  }
}

.lightbox-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, .8);
  background-image: url(../images/dark-stripes-light.png);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.5s;
}
.in-lightbox .lightbox-bg {
  opacity: 1;
  pointer-events: initial;
}