-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathdocumentViewerIcons.scss
More file actions
63 lines (57 loc) · 1.58 KB
/
documentViewerIcons.scss
File metadata and controls
63 lines (57 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@use "sass:map";
@font-face {
font-family: "DocViewer";
src: url("../assets/DocViewer.woff2") format("woff2");
}
$icons: (
Download: "\e903",
Right: "\e906",
Left: "\e902",
ZoomIn: "\e901",
ZoomOut: "\e900",
FitToWidth: "\e904",
Search: "\e905"
);
.icons.btn {
background-color: transparent;
&[disabled] {
background-color: transparent;
cursor: not-allowed;
}
}
// Apply DocViewer font to all .icons elements anywhere in the widget
div.widget-document-viewer {
&-controls {
button {
margin-left: var(--spacing-smaller, 4px);
}
}
.icons {
font-family: "DocViewer" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
padding: var(--spacing-smallest) var(--spacing-small);
@each $name, $code in $icons {
&.icon-#{$name}:before {
content: $code;
}
}
}
}
// Search toggle button — pressed state via aria-pressed so Atlas hover/focus work normally
// .widget-document-viewer-search-toggle {
// &[aria-pressed="true"] {
// background-color: var(--brand-primary, #264ae5);
// color: #fff;
// border-radius: var(--border-radius-default);
// &:hover,
// &:focus-visible {
// background-color: var(--brand-primary-dark, #1a36c4);
// color: #fff;
// }
// }
// }
// }