Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

2.2 KB
Raw Blame
@import '@/styles/media-queries.scss';

/* Fancy scrollbar */
.scroll-bar {
  &::-webkit-scrollbar {
      width: var(--scroll-bar-width);
      height: var(--scroll-bar-width);
  }
  &::-webkit-scrollbar-track {
      border-radius: var(--curve-factor);
      background-color: var(--scroll-bar-background);
  }
  &::-webkit-scrollbar-thumb {
      background: var(--scroll-bar-color);
      border-radius: var(--curve-factor);
  }
}

.svg-button {
    color: var(--primary);
    svg {
        color: var(--settings-text-color);
        width: 1rem;
        height: 1rem;
        margin: 0.2rem;
        padding: 0.2rem;
        text-align: center;
        background: var(--background);
        border: 1px solid var(--primary);
        border-radius: var(--curve-factor);
        cursor: pointer;
        &:hover, &.selected {
            background: var(--settings-text-color);
            color: var(--background);
        }
        &.disabled {
            opacity: var(--dimming-factor);
            cursor: not-allowed;
            &:hover {
                border: 1px solid var(--primary);
                background: var(--background);
                color: var(--settings-text-color);
            }
        }
    }
}

/* Custom highlight color */
.highlight {
    ::selection {
        background-color: var(--highlight-background);
        color: var(--highlight-color);
    }
    ::-moz-selection, ::-o-selection, ::-ms-selection, ::-webkit-selection {
        background-color: var(--highlight-background);
        color: var(--highlight-color);
  }
}

/* Modal container shared by the interactive-editor modals */
.interactive-editor-inner {
  padding: 1rem;
  height: 100%;
  overflow-y: auto;
  background: var(--interactive-editor-background);
  color: var(--interactive-editor-color);
  @extend .scroll-bar;
  h3 {
    font-size: 1.4rem;
    margin: 0.5rem;
  }
}

/* Single-style helpers */
.bold { font-weight: bold; }
.light { font-weight: lighter; }
.text-left { text-align: left;}
.text-right { text-align: right;}
.text-center { text-align: center;}
.horizontal-center { margin: 0 auto; }
.border-box { box-sizing: border-box; }