Karan6124 commited on
Commit
595b85a
Β·
1 Parent(s): d3e4d51

fix: re-position book close button inside the outer folder cover with neat hover transitions

Browse files
Files changed (1) hide show
  1. frontend/src/App.css +14 -8
frontend/src/App.css CHANGED
@@ -2710,21 +2710,27 @@ input[type=number] {
2710
  /* ─── Navigation Buttons ───────────────────── */
2711
  .book-close-x {
2712
  position: absolute;
2713
- top: -46px;
2714
- right: 0px;
2715
- background: rgba(255,255,255,0.08);
2716
- border: 1px solid rgba(255,255,255,0.15);
2717
  border-radius: 50%;
2718
- width: 36px;
2719
- height: 36px;
2720
  display: flex;
2721
  align-items: center;
2722
  justify-content: center;
2723
- color: rgba(255,255,255,0.55);
2724
  cursor: pointer;
 
2725
  transition: all 0.2s ease;
2726
  }
2727
- .book-close-x:hover { background: rgba(255,255,255,0.15); color: white; }
 
 
 
 
 
2728
 
2729
  .book-page-turn-btn {
2730
  position: absolute;
 
2710
  /* ─── Navigation Buttons ───────────────────── */
2711
  .book-close-x {
2712
  position: absolute;
2713
+ top: 18px;
2714
+ right: 22px;
2715
+ background: rgba(0, 0, 0, 0.45);
2716
+ border: 1px solid rgba(255, 255, 255, 0.15);
2717
  border-radius: 50%;
2718
+ width: 32px;
2719
+ height: 32px;
2720
  display: flex;
2721
  align-items: center;
2722
  justify-content: center;
2723
+ color: rgba(255, 255, 255, 0.7);
2724
  cursor: pointer;
2725
+ z-index: 200;
2726
  transition: all 0.2s ease;
2727
  }
2728
+ .book-close-x:hover {
2729
+ background: #7a1515;
2730
+ border-color: #9a1a1a;
2731
+ color: white;
2732
+ transform: rotate(90deg);
2733
+ }
2734
 
2735
  .book-page-turn-btn {
2736
  position: absolute;