mekasu0124

Untitled

Jul 26th, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.83 KB | None | 0 0
  1. .library-container {
  2.     width: 90vw;
  3.     height: 37rem;
  4.     border: 1px solid var(--accent-color);
  5.     border-radius: 10px;
  6.     display: flex;
  7.     flex-wrap: wrap;
  8.     justify-content: space-evenly;
  9.     align-items: flex-start;
  10.     padding: 20px;
  11.     margin-left: auto;
  12.     margin-right: auto;
  13.     margin-top: 2rem;
  14.     overflow-y: auto;
  15. }
  16.  
  17. .card {
  18.     width: 30%;
  19.     height: 333px;
  20.     display: flex;
  21.     justify-content: flex-start;
  22.     align-items: flex-start;
  23.     flex-direction: column;
  24.     border: 1px solid var(--accent-color);
  25.     border-radius: 10px;
  26.     padding: 15px;
  27.     color: white;
  28.     margin-top: 1rem;
  29.     margin-right: 0.2rem;
  30.     overflow-y: auto;
  31.     position: relative;
  32.     z-index: 1;
  33. }
  34.  
  35. .card::before {
  36.     content: "";
  37.     position: absolute;
  38.     top: 0;
  39.     left: 0;
  40.     right: 0;
  41.     bottom: 0;
  42.     background-image: inherit;
  43.     background-size: cover;
  44.     background-position: center;
  45.     opacity: 0.5;
  46.     z-index: -1;
  47.     border-radius: inherit;
  48. }
  49.  
  50. .card > * {
  51.     position: relative;
  52.     z-index: 2;
  53. }
  54.  
  55. .row {
  56.     border: 1px solid white;
  57.     min-width: 50%;
  58.     align-self: center;
  59.     margin-bottom: 15px;
  60. }
  61.  
  62. #card-title {
  63.     text-align: center;
  64.     margin-top: 0;
  65. }
  66.  
  67. #card-text {
  68.     text-align: left;
  69.     margin-bottom: 1rem;
  70. }
  71.  
  72. /* Scrollbar styles remain the same */
  73. .library-container::-webkit-scrollbar,
  74. .card::-webkit-scrollbar {
  75.     width: 12px;
  76. }
  77.  
  78. .library-container::-webkit-scrollbar-track,
  79. .card::-webkit-scrollbar-track {
  80.     background: transparent;
  81.     border: 1px solid var(--accent-color);
  82.     border-radius: 6px;
  83. }
  84.  
  85. .library-container::-webkit-scrollbar-thumb,
  86. .card::-webkit-scrollbar-thumb {
  87.     background-color: var(--secondary-color);
  88.     border-radius: 6px;
  89.     border: 3px solid transparent;
  90.     background-clip: content-box;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment