crane-cloud/frontend

View on GitHub
src/pages/AppMetricsPage/AppMetricsPage.module.css

Summary

Maintainability
Test Coverage
.ContentSection {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.MetricsCardsSection {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  padding-bottom: 1rem;
}

.CardSizeDimensions {
  min-width: 15rem;
  display: flex;
  /* we dont set values the height
       is a pre-requiste for the line
       component, try removing or editing
       it and you will see why it matters.
    */
  height: 18rem;
  color: initial;
}

.SummaryCardDimentions {
  min-width: 100%;
  display: flex;
  border-radius: 15px;
}

.SummarySectionArea {
  padding: 3rem 0 3rem 0;
}

.TopBarSection {
  background-color: black;
}

.Page {
  margin: 0;
  background: var(--gray-bg-light-color);
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* overflow: hidden; */
}

.SideBarSection {
  overflow: hidden;
  overflow-y: scroll;
  height: calc(100vh - 5rem);
}

.SideBarSection::-webkit-scrollbar {
  display: none;
  min-width: fit-content;
}

.SideBarSection {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.MainContentSection {
  /* divided into two rows */
  display: grid;
  grid-template-rows: 80px 4fr;
  overflow: hidden;
}

.ContentSection {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.SummaryCardContainer {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid #cccccc;
}

.CardHeaderSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #cccccc;
  gap: 1rem;
  flex-grow: 1;
}

.CardTitle {
  width: 100%;
}

.InnerCard {
  display: grid;
  grid-template-columns: 7fr 1fr 7fr 1fr 7fr;
  grid-template-rows: auto;
  grid-gap: 1rem;
  overflow-x: auto;
  width: -webkit-fill-available;
}

.InnerCardSections {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 1fr 1fr;
  gap: 0.2rem;
}

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

.InnerContentLeftSection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.CardBodySection {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  align-items: center;
  padding: 1rem 2rem;
  min-height: 10rem;
}

.SummaryCardContainer:hover {
  border: 1px solid var(--secondary-color);
}

.verticalLine {
  border-left: 1px solid #cccccc;
  height: 80%;
  width: 1px;
  ;
  padding: 1rem;
}

.InnerTitlesStart {
  color: #000;
  font-weight: bold;
  text-align: start;
  padding: 1rem 1rem 0rem 0rem;
}

.InnerItemCopy:hover {
  cursor: pointer;
  color: var(--primary-color);
}

.InnerItemCopy .TooltipWordPlaceholder {
  font-weight: normal;
}

.InnerTitlesMiddle {
  color: #000;
  font-weight: bold;
  text-align: center;
  padding-top: 1rem;
}

.InnerTitlesEnd {
  color: #000;
  font-weight: bold;
  text-align: end;
  padding-top: 1rem;
}

.InnerContentGrid {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 1fr 1fr;
  grid-gap: 0.3rem;
}

.InnerContentEnd {
  text-align: end;
}

.InnerContentStatus {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
  color: #555;
  font-size: 0.9rem;
}

.InnerContentAge {
  text-align: center;
}

.InnerContentLinkText {
  white-space: nowrap;
  overflow: hidden;
  color: var(--primary-color);
  text-overflow: ellipsis;
}

.InnerContentLinkText a {
  color: inherit;
  text-decoration: none;
}

.InnerContentWarnText {
  overflow: hidden;
  color: #fb0c0c;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: underline;
}

.InnerContentLink {
  display: grid;
  grid-template-columns: auto 20%;
  gap: 0.5rem;
}

.Icons {
  display: grid;
  grid-auto-flow: column;
  gap: 0.5rem;
  cursor: pointer;
  align-items: center;
}

.CopierDiv {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.MetricCardsSection {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.Redeploy {
  display: flex;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
}

.DeployText {
  color: #fb0c0c;
}

@media only screen and (max-width: 650px) {
  .MetricCardsSection {
    grid-template-columns: repeat(1, 1fr);
  }

  .ContentSection {
    padding-top: 2.5rem;
  }
}

@media only screen and (max-width: 900px) and (min-width: 481px) {
  .MetricCardsSection {
    grid-template-columns: repeat(2, 1fr);
  }
}