Skip to content

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

9.6 KB
Raw Blame
@use "../../../styles/_variables" as *;

/* Radix tabs navigation */
/* reset */
button,
fieldset,
input {
  all: unset;
}

.TabsRoot {
  width: 100%;
  margin: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.TabsList {
  margin: auto;
  flex-shrink: 0;
  display: flex;
  width: fit-content;
  align-items: center;
}
.hiddenTabs {
  display: none !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  transition: opacity 0.3s ease !important;
}
.TabsTrigger {
  padding-left: 14px;
  padding-right: 14px;
  color: $color-text-secondary;
  user-select: none;
  cursor: pointer;
}
.TabsTrigger[data-state="active"] {
  color: $color-text-primary;
}
.TabsTrigger:focus-visible {
  position: relative;
  box-shadow: $focus-border !important;
}
.TabsTriggerSpacer {
  height: 50px;
  width: 1px;
  background: $color-border;
  flex-shrink: 0;
  margin-left: 8px;
  margin-right: 8px;
}

/* Content of the Radix tabs */
.TabsContent {
  width: 100%;
  display: block;
  height: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;

  &::after {
    content: "";
    display: block;
    clear: both;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.5) 100%
    );
    pointer-events: none; /* Allow content behind the gradient to be clickable */
  }
}
.TabsContent:focus {
  outline: none;
}
.TabsContent:focus-visible {
  box-shadow: $focus-inner-border;
}
.TabsContent[data-state="inactive"] {
  display: none;
}

/* Pill animation */
.pill-anim {
  position: absolute;
  height: 32px;
  top: 0px;
  bottom: 0px;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 30px;
  background: $color-background;
  box-shadow: $container-shadow-focus;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/*
.TabsList[data-value="record"] {
	.pill-anim {
		left: $spacing-03;
		width: 102px;
	}
}
.TabsList[data-value="dashboard"] {
	.pill-anim {
		left: 109px;
		width: 132px;
	}
}
*/

/* Specific to the top level tabs */
.TabsRoot.tl {
  height: calc(100% - 40px);
  margin-top: 40px;
}
.TabsList.tl {
  border-radius: 30px;
  background: $color-light-grey;
  padding: 6px;
  font-family: $font-bold;
  position: relative;
}
.TabsTrigger.tl {
  border-radius: 30px;
  background: transparent;
  height: 32px;
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 17px;
  z-index: 2;
  position: relative;
}
.TabsTrigger.tl[data-state="inactive"]:hover :before {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
  height: 100%;
  width: calc(100% - 10px);
  margin-left: 5px;
  background: #edeef3;
  z-index: -2;
  left: 0px;
  border-radius: $container-border-radius;
}
.TabsTriggerIcon {
  width: 20px;
  height: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  margin-right: $spacing-02;
}

/* Specific to recording tab context */
.recording-ui {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;

  .TabsRoot {
    margin-top: $spacing-03;
  }
  .TabsList {
    width: 100%;
    border-bottom: $container-border;
    margin: auto;
    justify-content: center;
  }
  .TabsTrigger {
    padding-top: $spacing-03;
    padding-bottom: $spacing-04;
    box-sizing: border-box;
    position: relative;
    display: block;
    padding-left: 16px;
    padding-right: 16px;
  }
  .TabsTrigger:hover {
    background: $color-light-grey;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
  }
  .TabsTrigger:focus-visible {
    border-radius: 10px 10px 0px 0px !important;
  }
  .TabsTrigger[data-state="active"]::after {
    content: "";
    display: block;
    position: absolute;
    width: 80%;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
    height: 2px;
    border-radius: 30px;
    background: $color-primary;
  }
  .TabsTrigger[data-state="active"] > .TabsTriggerLabel {
    color: $color-text-primary !important;
  }

  .TabsTriggerLabel {
    text-align: center;
  }
  .TabsTriggerIcon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    margin-bottom: $spacing-03;
    border-radius: 30px;
  }
  .TabsContent {
    background: $color-light-grey;
    padding: $spacing-05;
    border-bottom-left-radius: $container-border-radius;
    border-bottom-right-radius: $container-border-radius;
    max-height: calc(95vh - 200px);
    overflow-y: overlay;
  }
  span {
    display: block;
  }
}

.video-ui {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;

  .TabsRoot {
    margin-top: $spacing-03;
  }
  .TabsList {
    width: 100%;
    border-bottom: $container-border;
    margin: auto;
    justify-content: space-between;
    padding-left: $spacing-04;
    padding-right: $spacing-04;
    box-sizing: border-box;
  }
  .TabsTriggerWrap {
    display: flex !important;
    align-items: center;
    flex-direction: row;
    justify-content: left;
    position: relative;
    display: block;
    box-sizing: border-box;
  }
  .TabsTrigger {
    padding-top: $spacing-03;
    padding-bottom: $spacing-04;
    box-sizing: border-box;
    position: relative;
    display: block;
    padding-left: 20px;
    padding-right: 20px;
  }
  .TabsTrigger:hover {
    background: $color-light-grey;
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
  }
  .TabsTrigger:focus-visible {
    border-radius: 10px 10px 0px 0px !important;
  }
  .TabsTrigger[data-state="active"]::after {
    content: "";
    display: block;
    position: absolute;
    width: 80%;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
    height: 2px;
    border-radius: 30px;
    background: $color-primary;
  }
  .TabsTrigger[data-state="active"] > .TabsTriggerLabel {
    color: $color-text-primary !important;
  }
  .TabsTriggerLabel {
    text-align: center;
  }

  .TabsContent {
    background: $color-light-grey;
    border-bottom-left-radius: $container-border-radius;
    border-bottom-right-radius: $container-border-radius;
  }
  span {
    display: block;
  }

  // Fixed height so swapping the sort control for the search field cannot
  // resize the header row.
  .TabsListActions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    min-width: 0;
    height: 32px;
    margin-bottom: 5px;
  }
  .TabsListActions.searching {
    flex: 1 1 auto;
    margin-left: $spacing-04;
  }
  .TabsSort {
    display: flex;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    border-radius: $container-border-radius;
    padding-left: $spacing-03;
    padding-right: $spacing-02;
  }
  .TabsSort:hover {
    cursor: pointer;
    background: $color-light-grey;
  }
  .TabsSortLabel {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    color: $color-text-secondary;
    white-space: nowrap;
  }
  .TabsSortLabel img {
    margin-left: $spacing-03;
  }
  .TabsSort:focus-visible {
    box-shadow: $focus-border;
    outline: none !important;
  }
  .TabsIconButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .TabsIconButton:hover {
    cursor: pointer;
    background: $color-light-grey;
  }
  .TabsIconButton:focus-visible {
    box-shadow: $focus-border;
    outline: none !important;
  }
  .TabsSearchInline {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: $spacing-03;
    height: 100%;
    min-width: 0;
    padding-left: $spacing-04;
    padding-right: $spacing-02;
    border-radius: $container-border-radius;
    background: $color-light-grey;
    box-sizing: border-box;

    > img {
      flex-shrink: 0;
      width: 14px;
      height: 14px;
    }
    .TabsIconButton {
      margin-bottom: 0;
      width: 24px;
      height: 24px;
    }
    .TabsIconButton:hover {
      background: rgba(41, 41, 47, 0.08);
    }
    .TabsIconButton img {
      width: 12px;
      height: 12px;
    }
  }
  .TabsSearchInput {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    color: $color-text-primary;
    font-size: $font-size-normal;

    &::placeholder {
      color: $color-text-secondary;
    }
  }

  // The global TabsContent white veil washes out the dashboard button; the
  // videos list uses its own fade over the grey panel instead.
  .TabsContent::after {
    display: none;
  }
}

.projectActiveBanner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #29292f; /* dark background */
  color: white;
  border-radius: 100px; /* pill shape */
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  max-width: 80%;
  user-select: none;
  cursor: default;
  gap: 16px;
  top: 41px;
  z-index: 999999;
  margin: auto;
  left: 0;
  right: 0;
  position: absolute;
}

.projectActiveBannerLeft {
  /* text container */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projectActiveBannerRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projectActiveBannerDivider {
  width: 1px;
  height: 24px;
  background-color: #44444d; /* subtle divider color */
}

.projectActiveBannerClose {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectActiveBannerClose img {
  width: 14px;
  height: 14px;
  opacity: 0.6;

  &:hover {
    opacity: 1;
  }
}