|
1 | 1 | @use "@nationalarchives/frontend/nationalarchives/tools/typography";
|
2 | 2 |
|
3 |
| -.clover-iiif { |
4 |
| - .c-PJLV { |
5 |
| - font-weight: $font-weight-bold; |
| 3 | +.clover-viewer { |
| 4 | + &-content { |
| 5 | + background-color: $color__grey-200; |
| 6 | + padding: 6em 2em 2em; |
| 7 | + } |
| 8 | + |
| 9 | + &-header { |
| 10 | + label { |
| 11 | + font-weight: $font-weight-bold; |
| 12 | + } |
| 13 | + } |
| 14 | + |
| 15 | + // viewer slider / thumbnail preview container |
| 16 | + .c-loOuxq { |
| 17 | + padding: 4em 0 0; |
| 18 | + } |
| 19 | + |
| 20 | + // viewer control buttons |
| 21 | + .c-jPOUPf { |
| 22 | + right: 0; |
| 23 | + top: -4em; |
| 24 | + } |
| 25 | + |
| 26 | + .c-byCwCq, |
| 27 | + .c-jPOUPf { |
| 28 | + background-color: $color__grey-200; |
| 29 | + border: 1px solid $color__black; |
| 30 | + border-radius: 0; |
| 31 | + color: $color__black; |
| 32 | + padding: 0.5rem; |
| 33 | + filter: none; |
| 34 | + |
| 35 | + svg { |
| 36 | + fill: $color__black; |
| 37 | + stroke: $color__black; |
| 38 | + filter: none; |
| 39 | + } |
| 40 | + |
| 41 | + &:hover { |
| 42 | + background-color: $color__white; |
| 43 | + } |
| 44 | + |
| 45 | + &:hover, |
| 46 | + &:focus { |
| 47 | + // override default !important |
| 48 | + background-color: $color__white !important; |
| 49 | + } |
| 50 | + } |
| 51 | + |
| 52 | + // image viewer controls |
| 53 | + .c-fmGDRW { |
| 54 | + position: relative; |
| 55 | + right: 0; |
| 56 | + top: -4em; |
| 57 | + } |
| 58 | + |
| 59 | + // visible viewer area with controls |
| 60 | + .c-heKnQH { |
| 61 | + overflow: visible; |
| 62 | + } |
| 63 | + |
| 64 | + // zoom/close button |
| 65 | + .c-fXBHMl:hover .c-byCwCq:where(.c-jPOUPf) { |
| 66 | + background-color: $color__white; |
| 67 | + } |
| 68 | + |
| 69 | + // next/previous pagination & search |
| 70 | + .c-iZqOLP { |
| 71 | + background-color: $color__grey-200; |
| 72 | + box-shadow: none; |
| 73 | + border-radius: 0; |
| 74 | + color: $color__black; |
| 75 | + |
| 76 | + svg { |
| 77 | + background-color: $color__grey-200; |
| 78 | + fill: $color__black; |
| 79 | + } |
| 80 | + } |
| 81 | + |
| 82 | + .c-bwRbCV { |
| 83 | + border-radius: 0; |
| 84 | + border: 1px solid $color__black; |
| 85 | + background-color: $color__grey-200; |
| 86 | + color: $color__black; |
| 87 | + |
| 88 | + svg { |
| 89 | + background-color: $color__grey-200; |
| 90 | + filter: none; |
| 91 | + fill: $color__black; |
| 92 | + stroke: $color__black; |
| 93 | + } |
| 94 | + } |
| 95 | + |
| 96 | + // search input |
| 97 | + .c-hvuDBt { |
| 98 | + background-color: $color__white; |
| 99 | + border: 1px solid $color__black; |
| 100 | + border-radius: 0; |
| 101 | + box-shadow: none; |
| 102 | + } |
| 103 | + |
| 104 | + // information panel styles |
| 105 | + .c-csuXsr { |
| 106 | + border-bottom-width: 1px; |
| 107 | + } |
| 108 | + |
| 109 | + // mobile styles |
| 110 | + .c-crBlHK { |
| 111 | + border: 1px solid $color__black; |
| 112 | + border-radius: 0; |
| 113 | + background-color: $color__grey-300; |
| 114 | + } |
| 115 | + |
| 116 | + // headings |
| 117 | + .c-fhxfFQ { |
| 118 | + padding: 0.5rem 0; |
| 119 | + |
| 120 | + &::after { |
| 121 | + height: 1px; |
| 122 | + |
| 123 | + [data-state="active"] { |
| 124 | + background-color: $color__black; |
| 125 | + } |
| 126 | + } |
6 | 127 | }
|
7 | 128 | }
|
0 commit comments