BookDetail.css

mail@pastecode.io avatar
unknown
plain_text
5 months ago
6.8 kB
1
Indexable
  .book-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-right: 40px;

  }

  .book-detail .book-image img {
    width: 350px;
    height: 500px;
    border-radius: 10px;
  }

  .contents,
  .supplier {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; 
    margin-bottom: 20px;
  }


  .label {
    color: rgb(242, 226, 174);
  }

  .book-detail .book-infos {
    display: flex;
    flex-direction: column;
  }

  .book-left-column{
    margin-left: 40px;
  } 
  
  .book-detail h1 {
    font-size: 3em;
    margin-bottom: 30px;
    color: #FFD36A;
  }

  .book-about h2,
  .recommended-books h2 {
    color: rgb(242, 226, 174);
  }

.book-about h2{
  margin-bottom: 10px;
}

  .book-detail p {
    margin-bottom: 10px;
    font-size: 20px;
    color: rgb(249, 249, 242);
  }

  .book-detail .views,
  .book-detail .rating,
  .book-detail .book-infos p strong {
    font-size: 1.2em;
  }

  .book-detail .book-actions {
    display: flex;
    gap: 10px;
    width: 400px;
    margin-top: 410px;
  }

  .book-detail .read-button,
  .book-detail .favorite-button {
    background-color: #375d86;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    margin-left: 15px;
  }

  .favorite-button .button-text {
    margin-left: 8px;
  }

  .book-detail .read-button:hover,
  .book-detail .favorite-button:hover {
    background-color: #0056b3;
  }

  .book-detail .views-rating {
    display: flex;
    align-items: center;
  }

  .book-detail .views {
    margin-right: 50px;
  }

  .book-description-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

  .book-detail .rating {
    color: yellow;
    font-weight: bold;
    margin-bottom: 18px;
  
  }

  .additional-info {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .recommended-books {
    width: 100%;
    margin-left:20px;
  }

  .recommended-books-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .book-additional-info {
    padding: 20px;
    width:100%;
    min-height: 300px;
  }

.recommended-book-item {
  flex: 1 1 calc(10% - 16px); 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
  cursor: pointer;
  max-width: 150px;
}

  .recommended-book-item img {
    width: 100px;
    height: 150px;
    margin-bottom: 10px;
  }

  .recommended-book-infos {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .recommended-book-view,
  .recommended-book-stats {
    display: flex;
  }

  .review-section {
    grid-column: span 2;
    margin-top: 10px;
    margin-left: 20px;
   
  }

  .review-section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color:rgb(242, 226, 174);
  }

  .review-section textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 1.3em;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #0f2429;
    color: #ccc;
  }

  .review-section .rating-stars {
    margin-bottom: 10px;
  }

  .review-section .rating-stars svg {
    font-size: 2em;
    color: #ffc107;
    cursor: pointer;
  }

  .review-section .submit-review-button {
    margin-top: 10px;
    background-color: #375d86;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
  }

  .review-section .submit-review-button:hover {
    background-color: #0056b3;
  }

  .review-section textarea::placeholder {
    color: #a8a3a3;
    font-style: italic;
  }

  .submitted-review-box {
    border: 1px solid #111111;
    margin-top: 20px;
    background-color: #0f2429;
    border-radius: 10px;
    max-height: 400px; /* Adjust based on your layout */
    overflow-y: auto; /* Add scrollbar when content exceeds max-height */
  }

  .submitted-review p {
    margin-left: 10px;
    color: aliceblue;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
    word-wrap: break-word; /* Break long words to avoid overflow */
    font-size:1.2em;
    margin-bottom: 10px;
  }

  .submitted-review-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    margin-left: 10px;
    color: #CAE9EB;
    margin-top: 10px;
  }

  .submitted-review {
    align-items: center;
    margin-top: 10px;
  }

  .review-stars {
    margin-left: 10px;
  }

  .review-stars .fa-star {
    font-size: 16px;
    color: #ffc107;
    margin-bottom: 10px;
  }

  .review-text {
    font-size: 20px;
    margin-left: 10px;
    color: aliceblue;
    margin-bottom: 10px;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
    word-wrap: break-word; /* Break long words to avoid overflow */
  }

  .recommended-book-item:hover {
    transform: scale(1.14);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  .existing-reviews {
    margin-top: 20px;
}

.existing-reviews h2 {
    color: rgb(242, 226, 174);
    margin-bottom: 15px;
}

.review {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #0c1f23; /* Background color */
    border-radius: 10px;
    border-bottom: 2px solid rgb(208, 208, 180);
}

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

.review .review-user {
    color: #CAE9EB;
    margin-bottom: 10px;
}


.review-stars .fa-star {
    font-size: 16px;
    color: #ffc107;
    margin-top:8px
}

.review-text {
    color: aliceblue;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.icon {
  font-size: 15px;
  border: 8px solid #505050;
  margin-right: 4px;
  background-color: #4d4b4b;
  border-radius: 50%; 
  transform: translate(1%, 25%);
}

.back-button{
  display: inline-block;
  padding: 8px 10px;
  background-color: #ffd36a;
  color: #0c2122;
  text-decoration: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 90px;
  border-bottom-left-radius: 90px;
  margin-bottom: 10px;
}

.back-button:hover {
  background-color: #d5f4f7;
}

.back-button span {
  padding-left: 8px;
}

.clock-icon {
  background-color: black;
  color: white;
  padding: 2px; /* Adjust padding to fit the icon size */
  border-radius: 50%; /* Make the background circular */
  position: relative;
}
.clock-icon .fa-clock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
Leave a Comment