zlx/API-mock-server

View on GitHub
lib/api-mock-server/assets/css/documents.css

Summary

Maintainability
Test Coverage
.main {
  padding-top: 60px;
}

.section {
  background-color: #e9e9e9;
  width: 90%;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.section .name {
  font-size: 25px;
  font-weight: 200;
  letter-spacing: 1px;
  padding-bottom: 10px;
}

.api {
  background-color: white;
  width: 100%;
  border-radius: 4px;
  margin: 10px auto;
}

.api .title {
  cursor: pointer;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  border-bottom: solid 1px #ddd;
}

.title .verb {
  background-color: #999;
  height: 100%;
  width: 100px;
  border-top-left-radius: 4px;
  text-align: center;
  display: inline-block;
  color: white;
}

.title .get:hover {
  background-color: #6f7ff4;
}

.title .delete:hover {
  background-color: #fd7070;
}

.title .patch:hover {
  background-color: #71dfbd;
}

.title .post:hover {
  background-color: #5dc151;
}

.title .url {
  padding-left: 5px;
  color: #06c;
}

.api .desc {
  padding: 20px 10px;
}

.example {
  border-top: dashed 1px #ddd;
}

.example .params, .example .response {
  min-height: 60px;
  margin-top: 10px;
  margin-left: 10px;
}

.params span, .response span {
  background-color: gray;
  border-radius: 4px;
  height: 20px;
  color: white;
  text-align: center;
  width: 60px;
  display: inline-block;
  margin-bottom: 20px;
}

.response span {
  width: 80px;
}

.params .code, .response .code {
  min-height: 80px;
  width: 90%;
}