@metacensus/library-ui 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/css/pdf.css CHANGED
@@ -86,6 +86,56 @@
86
86
  transform: translate(-100%, -100%);
87
87
  }
88
88
 
89
+ /* The reader: a toolbar over a box that scrolls both ways, so the page
90
+ * around it never does. */
91
+ .mc-pdf-reader {
92
+ display: flex;
93
+ flex-direction: column;
94
+ min-width: 0;
95
+ min-height: 0;
96
+ overflow: hidden;
97
+ }
98
+ .mc-pdf-toolbar {
99
+ display: flex;
100
+ flex-wrap: wrap;
101
+ align-items: center;
102
+ gap: 0.5rem;
103
+ padding: 0.5rem;
104
+ border-bottom: 1px solid var(--mc-hairline);
105
+ }
106
+ .mc-pdf-toolbar .mc-control {
107
+ width: 4em;
108
+ }
109
+ .mc-pdf-scroll {
110
+ flex: 1;
111
+ min-height: 0;
112
+ overflow: auto;
113
+ overflow-anchor: none;
114
+ scrollbar-gutter: stable;
115
+ touch-action: pan-x pan-y;
116
+ background: var(--mc-surface);
117
+ }
118
+ .mc-pdf-pages {
119
+ display: flex;
120
+ flex-direction: column;
121
+ align-items: center;
122
+ box-sizing: border-box;
123
+ width: max-content;
124
+ min-width: 100%;
125
+ }
126
+ .mc-pdf-slot {
127
+ flex: none;
128
+ background: var(--mc-card);
129
+ }
130
+ .mc-pdf-said {
131
+ position: absolute;
132
+ width: 1px;
133
+ height: 1px;
134
+ overflow: hidden;
135
+ clip-path: inset(50%);
136
+ white-space: nowrap;
137
+ }
138
+
89
139
  @media (forced-colors: active) {
90
140
  .mc-pdf-shape,
91
141
  .mc-pdf-fill .mc-pdf-shape {