@import 'theme';
/* You can add global styles to this file, and also import other style files */
html {
  font-size: 13px;
}

body {
  margin: 0;
  user-select: none;
  cursor: default;
  color: var(--font-color);
}

//jquery-ui tooltip
.light {
  .ui-tooltip {
    white-space: pre-wrap;
  }
}
.dark {
  .ui-tooltip {
    white-space: pre-wrap;
    background-color: var(--main-bg-color);
    color: var(--font-color);
  }
}

input,
textarea,
select {
  font-size: 1rem;
  font-family: unset;
}


.icon {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

.tips_bg {
  width: 8rem;
}

a {
  text-decoration: none;
  color: unset;
  cursor: pointer;
  color: var(--activityColor);
}

[hidden] {
  display: none !important;
}

[tabindex] {
  outline: none;
}

button {
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  border: none;
  font-size: 1rem;
  white-space: nowrap;
  height: 2rem;
  line-height: 2rem;
  &:hover {
    outline: 0;
  }
}

dialog {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 5px;
  color: var(--main-color);
  border: 1px solid var(--main-title-hr-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 16px 40px rgba(0, 0, 0, 0.4);
  background-color: var(--main-bg-color);
  z-index: 9999;
  body {
    background-color: red;
  }
  &::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
  }
}

img {
  cursor: pointer;
}

.cursor {
  cursor: pointer;
}

.select {
  user-select: auto;
}

@media (max-width: 600px) {
  .co-star {
    display: none;
  }
}

.loadingContainer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.paginatorContainer {
  height: calc(3rem - 4px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

//进度条
progress[value] {
  /* Reset the default appearance */
  -webkit-appearance: none;
  appearance: none;
  &::-webkit-progress-bar {
    height: 6px;
    border-radius: 4px;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    background-color: var(--main-title-hr-color);
  }
  &::-webkit-progress-value {
    background-color: #2ca7f8;
    border: solid 1px #378cfa;
    border-radius: 4px;
  }
}

//storeTips
.dstore_directive_tips {
  background-color: var(--primary-color);
  word-break: break-all;
  color: #fff;
  padding: 0.3rem;
  border-radius: 0.3rem;
}

//off outline
button,input,textarea,select {
  outline: none;
}
