All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.lib.components.code-quarkus.scss Maven / Gradle / Ivy

There is a newer version: 37
Show newest version
@import "config";

body {
  margin: 0;
  padding: 0;
  background: var(--background);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
  monospace;
}

.responsive-container {
  max-width: 1200px;

  @media screen and (max-width: $tabletWidth) {
    max-width: 900px;
  }

  @media screen and (max-width: $mobileWidth) {
    max-width: 100%;
  }
}

.mobile-only {
  @media screen and (min-width: $mobileWidth) {
    display: none !important;
  }
}

.desktop-only {
  @media screen and (max-width: $mobileWidth) {
    display: none !important;
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  backdrop-filter: none;
}

button.btn, a.btn {
  outline: none;
}

.loader-or-error {
  svg {
    color: var(--loaderColor);
  }
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 550px;
  }
}

.code-quarkus-modal {

  .modal-dialog {
    margin: 150px auto;
    border: 3px solid var(--modalBorderColor);
  }

  .modal-content {
    background-color: var(--modalBg);
    color: var(--modalTextColor);
  }

  &.error-modal .modal-dialog {
    border-color: var(--warningColor);
  }

  .modal-body {
    color: var(--modalTextColor);

    a {
      color: var(--modalLinkColor);
    }

    h3 {
      margin-top: 10px;
    }

  }

  .modal-header {
    color: var(--modalTitleColor);
    font-weight: bold;
    border: none;
  }

  a.action-button, button.action-button {
    cursor: pointer;
    display: inline-block;
    background-color: var(--nextStepsModalDownloadButtonBg);
    border: 1px solid var(--nextStepsModalDownloadButtonBg);
    color: var(--nextStepsModalDownloadButtonTextColor);
    border-radius: 0;
    text-transform: uppercase;
    padding: 10px;
    text-decoration: none;
    margin-bottom: 20px;
    line-height: 20px;
    &:hover {
      border: 1px solid var(--nextStepsModalDownloadButtonBorderColorOnHover);
    }
    svg {
      margin-right: 10px;
      vertical-align: middle;
    }

    span {
      vertical-align: middle;
    }

    &.github {
      background-color: transparent;
    }
  }


  .modal-footer {
    border: none;
    button.btn {
      cursor: pointer;
      background-color: var(--modalFooterButtonBg);
      color: var(--modalFooterButtonTextColor);
      border-radius: 0;
      border: 1px solid var(--modalFooterButtonBg);

      &:hover {
        border: 1px solid var(--modalFooterButtonTextColor);
      }

      &::after {
        display: none;
      }
    }
  }
}

code.code {
  background-color: var(--codeBg);
  color: var(--codeTextColor);
}

button.btn.btn-base {
  border: 1px solid var(--buttonBorderColor);
  cursor: pointer;
  border-radius: 0;
  background-color: transparent;
  color: var(--linkTextColor);

  svg {
    margin-top: 2px;
    margin-right: 5px;
    font-size: 0.8rem;
  }
}

.alert {
  border-radius: 0;
}

.alert-danger {
  background-color: var(--errorColor);
  color: white;
}

.alert-warning {
  background-color: var(--warningColor);
  color: white;
}

.alert-info {
  background-color: #444444;
  color: white;
  border: none;
}

.quarkus-project-edition-form .dropdown-menu {
  background-color: var(--dropdownMenuBg);
  padding: 0;

  .dropdown-item {
    display: flex;
    height: 30px;
    border: none;
    line-height: 30px;
    font-weight: bold;
    width: 100%;
    padding: 0 0 0 20px;
    color: var(--dropdownMenuTextColor);
    background-color: var(--dropdownMenuBg);
    border-left: 1px solid var(--dropdownMenuBg);
    cursor: pointer;

    .store-app-config {
      display: flex;
      width: 100%;

      span {
        flex: 1;
        text-align: start;
      }
    }
    
    svg {
      height: 30px;
      margin-right: 20px;
    }

    svg.reset-to-default {
      transition: 0.3s;
    }

    svg.reset-to-default:hover {
      color: var(--resetToDefaultButtonColor);
    }
  }

  .dropdown-item:hover {
    text-decoration: none;
    border-left: 1px solid var(--dropdownMenuTextColor);
  }
}

.popover.copy-to-clipboard-popover {
  width: auto;
  max-width: none;
  color: var(--dropdownMenuTextColor);
  background-color: var(--copyToClipboardBackgroundColor);
  margin: 9px;
  border: none;
  border-radius: 6px;
  outline: none;
  .arrow {
    outline: none;
  }
  .popover-header {
    font-size: 1rem;
    padding: 10px;
    margin-bottom: 0;
    font-weight: 100;
    background-color: transparent;
    border: none;
    color: var(--copyToClipboardHeaderTextColor);

    svg {
      margin-right: 5px;
    }
  }

  &.bs-popover-left .arrow {
    position: absolute;
    top: 50%;
    right: -5px;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--copyToClipboardBackgroundColor);
    width: 0;
    height: 0;
    box-shadow: none;
  }

  &.bs-popover-right .arrow {
    position: absolute;
    top: 50%;
    left: -5px;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--copyToClipboardBackgroundColor);
    width: 0;
    height: 0;
  }

  &.bs-popover-bottom .arrow {
    position: absolute;
    left: 50%;
    top: -11px;
    margin-top: -6px;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 6px solid transparent;
    border-bottom: 6px solid var(--copyToClipboardBackgroundColor);
    width: 0;
    height: 0;
  }

  &.bs-popover-top .arrow {
    position: absolute;
    left: 50%;
    bottom: -11px;
    margin-bottom: -6px;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-top: 6px solid var(--copyToClipboardBackgroundColor);
    width: 0;
    height: 0;
  }

  .popover-body {
    background-color: var(--copyToClipboardBodyBackgroundColor);
    border-left: 3px solid var(--copyToClipboardBodyTextColor);
    padding: 10px;
    margin: 10px;
    margin-top: 0;
    text-align: left;
    font-size: 0.8rem;
    color: var(--copyToClipboardBodyTextColor);
  }
}

.popover.copy-to-clipboard-popover.with-content {
  width: 600px;
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy