Skip to content

The free and privacy-friendly screen recorder with no limits 🎥

15.9 KB
Raw Blame
@use "./variables.scss" as *;
@use "sass:color";

body {
  background: $color-light-grey;
  font-family: $font-medium;
  font-size: $font-size-normal;
  height: 100vh;
  overflow-y: hidden;
  margin: 0px;
}

// max width 900px
@media (max-width: 900px) {
  body {
    overflow-y: unset !important;
  }
}

/* Button component */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: none;
  padding: 8px 16px;
  gap: 6px;
  text-align: center;
  box-sizing: border-box;
  border-radius: $container-border-radius;
  font-family: $font-bold;
  font-weight: 500;

  &.primaryButton:disabled,
  &.secondaryButton:disabled {
    background-color: $color-light-grey !important;
    color: $color-icon !important;
    cursor: not-allowed !important;
    border: 1px solid transparent !important;

    svg {
      color: $color-icon !important;
      margin-top: 5px;
    }
  }

  &.simpleButton:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
  }

  &.primaryButton {
    color: $color-text-contrast;
    background-color: $color-primary;
    height: 40px;

    svg {
      margin-top: 5px;
      color: $color-text-contrast;
    }
    &:hover {
      background-color: color.adjust($color-primary, $lightness: -10%);
      cursor: pointer;
    }
  }

  &.secondaryButton {
    color: $color-text-primary;
    background-color: #fff;
    border: 1px solid $color-border;
    height: 40px;
    svg {
      margin-top: 5px;
      color: $color-icon;
    }
    &:hover {
      background-color: $color-light-grey;
      cursor: pointer;
    }
  }

  &.simpleButton {
    color: $color-text-secondary;
    background: none;

    svg {
      margin-top: 5px;
    }

    &:hover {
      background-color: $color-light-grey;
      cursor: pointer;
    }
  }

  &.blueButton {
    color: $color-primary;
  }

  &.blackButton {
    color: $color-text-primary !important;
  }
}

/* Define variables for handle size, border width, and margin */
$handle-size: 15px;
$border-width: 4px;
$margin-offset: 8px;

/* Disable transitions for Cropper */
.cropper,
.advanced-cropper-artificial-transition,
.advanced-cropper-background-image,
.advanced-cropper-wrapper,
.advanced-cropper,
.CropperBackgroundWrapper,
.cropper * {
  transition: none !important;
}

.cropper {
  max-width: 80%;
  height: 80%;
  border-radius: 15px;
  margin: auto !important;
  position: absolute !important;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px !important;
  display: block;
  transition: none !important;
  padding-left: 40px;
  padding-right: 40px;
}
.advanced-cropper-artificial-transition {
  transition: none !important;
}

.advanced-cropper-background-image {
  transition: none !important;
}

.advanced-cropper-wrapper,
.advanced-cropper,
.CropperBackgroundWrapper {
  /* tile background image svg */
  background-image: url("chrome-extension://__MSG_@@extension_id__/assets/editor/transparenttile.png") !important;
  background-repeat: repeat !important;
  background-size: 20px !important;
  transition: none !important;
}
/* Custom styles for the handles */
.advanced-cropper-simple-handler {
  width: $handle-size !important; /* Adjust the handle width */
  height: $handle-size !important; /* Adjust the handle height */
  background-color: transparent !important;
  position: absolute;
  border-style: solid; /* Specify the border style as solid */
  border-width: 0 !important; /* Initialize border width to 0 */
  border-radius: 2px;

  &--west-north,
  &--west-south {
    margin-left: $margin-offset !important; /* Offset from the left */
  }

  &--west-north,
  &--east-north {
    margin-top: $margin-offset !important; /* Offset from the top */
  }

  &--west-south,
  &--east-south {
    margin-bottom: $margin-offset !important; /* Offset from the bottom */
  }

  &--east {
    margin-right: $margin-offset !important;
    border-right-width: $border-width !important; /* Border on the right */
  }

  &--west {
    margin-left: $margin-offset;
    border-left-width: $border-width !important; /* Border on the left */
  }

  &--north {
    margin-top: $margin-offset;
    border-top-width: $border-width !important; /* Border on the top */
  }

  &--south {
    margin-bottom: $margin-offset;
    border-bottom-width: $border-width !important; /* Border on the bottom */
  }
}

/* reset */
button {
  all: unset;
}

.AlertDialogOverlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999999999;
}

.AlertDialogContent {
  background-color: white;
  border-radius: 30px;
  box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
    hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 500px;
  max-height: 85vh;
  padding: 35px 25px;
  animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: $z-index-max;
}
.AlertDialogContent:focus {
  outline: none;
}

.AlertDialogTitle {
  margin: 0;
  color: $color-text-primary;
  font-size: $font-size-normal;
  font-family: $font-bold;
  font-weight: 700;
}

.AlertDialogDescription {
  margin-bottom: 20px;
  color: $color-text-secondary;
  font-size: $font-size-normal;
  line-height: 1.5;

  a {
    color: $color-primary !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer;
  }
}

.Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  height: 35px;
}
.Button.blue {
  background-color: rgba(48, 128, 248, 0.1);
  color: $color-primary;

  &:hover {
    background-color: rgba(48, 128, 248, 0.15);
    cursor: pointer;
  }
  &:focus {
    box-shadow: $focus-border;
  }
}
.Button.red {
  background-color: rgba(247, 56, 90, 0.1);
  color: rgba(247, 56, 90, 1);
}
.Button.red:hover {
  background-color: rgba(247, 56, 90, 0.15);
  cursor: pointer;
}
.Button.red:focus {
  box-shadow: $focus-border;
}
.Button.grey {
  background: rgba(110, 118, 132, 0.1);
  color: $color-text-secondary;
}
.Button.grey:hover {
  background: rgba(110, 118, 132, 0.15);
  cursor: pointer;
}
.Button.grey:focus {
  box-shadow: $focus-border;
}

@keyframes overlayShow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes contentShow {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.SideButtonModal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  height: 35px;
  color: $color-text-secondary;
  font-family: $font-medium;

  &:hover {
    cursor: pointer;
    background: rgba(110, 118, 132, 0.05);
  }
}
.pro-banner {
  background-color: $color-background;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 110px;
  max-height: 150px;
  border: 1px solid $color-border;
  border-bottom: 0 !important;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 990px;
  width: 80%;
  font-size: 13px;
  padding: 12px;
  gap: 8px;
}

.pro-banner-content {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.pro-banner-left {
  height: 100%;
  width: 80px;
  min-width: 80px;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 640 / 480;
}

.pro-banner-left video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.pro-banner-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.pro-banner-title {
  font-family: $font-bold;
  color: $color-text-primary;
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pro-banner-description {
  color: $color-text-secondary;
  font-family: $font-medium;
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pro-banner-cta {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

// Compact, toast-like review ask floating at the bottom-center of the
// editor. Light surface with a soft shadow so it reads as a transient
// prompt, not a permanent banner.
.review-toast {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  background: $color-background;
  border: 1px solid $color-border;
  border-radius: 30px;
  padding: 8px 12px 8px 18px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
  z-index: 20;
  transform-origin: bottom center;
  animation: reviewToastIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

// Slide up from below with a gentle overshoot + settle, so it pops into view
// instead of appearing silently.
@keyframes reviewToastIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.92);
  }
  55% {
    opacity: 1;
    transform: translateY(-5px) scale(1.02);
  }
  78% {
    transform: translateY(1px) scale(0.996);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.review-toast-text {
  font-family: $font-bold;
  color: $color-text-primary;
  font-size: 14px;
  white-space: nowrap;
}

.review-toast-divider {
  width: 1px;
  height: 22px;
  background: $color-border;
  flex-shrink: 0;
  // Left/right margins differ to offset the thumb buttons' internal
  // padding, so the line looks evenly spaced from the text and the emojis.
  margin: 0 6px 0 14px;
}

.review-toast-thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.review-toast-thumb {
  border: none;
  background: transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  &:hover {
    background: $color-light-grey;
  }
}

// Expanded card for the happy / feedback branches.
.review-toast--card {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 360px;
  border-radius: 18px;
  padding: 20px;
}

.review-toast-title {
  font-family: $font-bold;
  color: $color-text-primary;
  font-size: 15px;
  margin-bottom: 7px;
}

.review-toast-message {
  font-family: $font-medium;
  color: $color-text-secondary;
  font-size: 13px;
  line-height: 1.5;
}

.review-toast-paragraph {
  margin: 0;

  & + & {
    margin-top: 10px;
  }
}

.review-toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.review-toast-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 30px;
  font-size: 13px;
  font-family: $font-bold;
  cursor: pointer;
  white-space: nowrap;
}

.review-toast-btn--ghost {
  background: transparent;
  border: 1px solid transparent;
  color: $color-text-primary;

  &:hover {
    background: $color-light-grey;
  }
}

.review-toast-btn--primary {
  background: $color-text-primary;
  color: $color-text-contrast;
  border: none;

  &:hover {
    background: #000;
  }
}

.altButton {
  background: transparent !important;
  color: $color-text-primary;
  font-family: $font-bold;
  height: 37px !important;
  white-space: nowrap !important;
  padding: 0 12px;
  border-radius: 30px;
  border: 1px solid transparent;
  font-size: 13px;

  &:hover {
    background: $color-light-grey !important;
    cursor: pointer;
  }
}

.primaryDarkButton {
  background: $color-text-primary !important;
  color: $color-text-contrast !important;
  height: 37px !important;
  white-space: nowrap !important;
  padding: 0 12px;
  border-radius: 30px;
  border: none;
  font-size: 13px;
  font-family: $font-bold;

  &:hover {
    background: #000 !important;
    cursor: pointer;
  }
}

@media (max-width: 1400px) {
  .pro-banner {
    width: 100%;
    border-radius: 0px !important;
    min-height: 100px;
    max-height: 140px;
    border-right: none !important;
  }

  .pro-banner-title,
  .pro-banner-description {
    font-size: 12px;
  }

  .pro-banner-cta {
    gap: 6px;
  }

  .altButton,
  .primaryDarkButton {
    height: 32px !important;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 1020px) {
  .pro-banner {
    flex-direction: column;
    justify-content: flex-end;
  }
  .pro-banner-cta {
    width: 100%;
    justify-content: right;
    text-align: right;
  }
}

@media (max-width: 900px) {
  .pro-banner {
    position: fixed;
    bottom: 0;
    z-index: 99999999999;
    flex-direction: row !important;
    justify-content: center !important;
  }
  .pro-banner-cta {
    width: auto !important;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 300px) {
  .pro-banner {
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    width: 100%;
    height: auto !important;
    border-right: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 12px;
    gap: 10px;
  }

  .pro-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .pro-banner-left {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .pro-banner-left video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .pro-banner-right {
    width: 100%;
    align-items: flex-start;
  }

  .pro-banner-title,
  .pro-banner-description {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .pro-banner-cta {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
  }

  .altButton,
  .primaryDarkButton {
    height: 32px !important;
    padding: 0 12px;
    font-size: 12px;
    flex: 1;
    min-width: 100px;
  }
}

.ToastViewport {
  --viewport-padding: 25px;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto !important;
  display: flex;
  flex-direction: column;
  padding: var(--viewport-padding);
  gap: 14px;
  max-width: 100vw;
  width: fit-content;
  list-style: none;
  z-index: 2147483647;
  outline: none;
  pointer-events: none;
}

.ToastRoot {
  background-color: $color-text-primary;
  color: $color-text-contrast;
  border-radius: $container-border-radius;
  box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
    hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  max-width: min(480px, calc(100vw - 50px));
  overflow: hidden;
  justify-content: center;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  pointer-events: all;
}

.ToastRoot[data-state="open"] {
  animation: screenitySandboxToastIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ToastRoot[data-state="closed"] {
  animation: screenitySandboxToastOut 100ms ease-in;
}

.ToastTitle {
  color: $color-text-contrast;
  font-family: $font-medium;
}

@keyframes screenitySandboxToastIn {
  from {
    transform: translateY(calc(100% + var(--viewport-padding)));
  }
  to {
    transform: translateY(0);
  }
}
@keyframes screenitySandboxToastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.ToastAction {
  color: $color-text-contrast;
  font-family: $font-medium;
  text-align: right;
}

.ToastEscButton {
  font-family: $font-medium;
  color: $color-text-contrast;
  background-color: #51515F;
  border: none;
  border-radius: $container-border-radius;
  padding: 0 12px;
  height: 24px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms ease;
}
.ToastEscButton:hover {
  background-color: #6B6B79;
}