openfoodfoundation/openfoodnetwork

View on GitHub
app/webpacker/css/admin/connected_apps.scss

Summary

Maintainability
Test Coverage
#connected_apps_panel {
  max-width: 615px;
}

.connected_app {
  margin-bottom: 2rem;

  &:not(:first-of-type) {
    border-top: 1px solid $color-border;
  }
}

.connected-app__head {
  display: flex;
  justify-content: space-between;
  margin: 1em 0;

  h3 {
    margin-bottom: 1em;
  }
}

.connected-app__description {
  p {
    margin-bottom: 1em;
  }
}

.connected-app__note {
  display: flex;
  justify-content: space-between;

  background-color: $color-14;
  border: none;
  border-left: $border-radius solid $color-3;
  border-radius: $border-radius;
  box-shadow:
    0px 1px 0px rgba(0, 0, 0, 0.05),
    0px 2px 2px rgba(0, 0, 0, 0.07);
  margin: 2em 0;
  padding: 0.5em 1em;

  align-items: center;
  gap: 1em;
  * {
    flex-shrink: 0;
  }
  p {
    flex-shrink: 1;
  }
}

.connected-app__vine {
  margin: 1em 0;

  .connected-app__vine-content {
    display: flex;
    justify-content: space-between;
    align-items: end;

    .vine-api-key {
      width: 100%;
      margin-right: 1em;
    }

    .vine-disable {
      margin-left: auto;
    }
  }
}