-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOneBoard.user.css
More file actions
142 lines (118 loc) · 4.18 KB
/
OneBoard.user.css
File metadata and controls
142 lines (118 loc) · 4.18 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* OneBoard - full screen whiteboard with OneNote Online
Copyright (C) 2020-25 Vincenzo Mantova <v.l.mantova@leeds.ac.uk>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/* ==UserStyle==
@name OneBoard
@namespace github.com/vlmantova
@version 0.3.3
@description Whiteboard skin for OneNote Online
@author Vincenzo Mantova <v.l.mantova@leeds.ac.uk>
@homepageURL https://vlmantova.github.io/OneBoard
@supportURL https://github.com/vlmantova/OneBoard/issues
@updateURL https://vlmantova.github.io/OneBoard/OneBoard.user.css
@license MIT
@preprocessor stylus
@var select mode "Mode" [ "presentation:Presentation", "draw:Draw", "type:Type", "normal:Normal" ]
@var checkbox hide-navigation "Hide navigation panel" 1
@var checkbox hide-scrollbars "Hide scrollbars" 1
@var checkbox hide-background "Hide background" 1
@var range laser-size "Laser pointer size" [16, 4, 64, 4]
@var checkbox prevent-scroll-x "Prevent horizontal scrolling (read warning)" 0
==/UserStyle== */
@-moz-document domain("onenote.officeapps.live.com"), domain("euc-onenote.officeapps.live.com"), domain("ukc-onenote.officeapps.live.com"), domain("usc-onenote.officeapps.live.com") {
#AppHeaderPanel {
display: none;
}
if hide-navigation {
#applicationWACNavigationPanel {
display: none;
}
}
if mode==presentation {
/* Hide the ribbon */
#WACRibbonPanel {
/* Ribbon still visible if missing !important */
display: none !important;
}
/* Set the cursor to a transparent led circle */
#WACViewPanel,
#WACViewPanel * {
cursor: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='" + laser-size + "' height='" + laser-size + "'%3E%3Ccircle cx='" + (laser-size/2) + "' cy='" + (laser-size/2) + "' r='" + (laser-size/2 - 1) + "' fill='rgba(256,0,0,0.5)'/%3E%3C/svg%3E") (laser-size/2) (laser-size/2), pointer !important;
user-select: none;
}
}
if mode==presentation or mode==draw {
/* Hide the border around note containers that appears on selection and
hover */
.ContentSelected,
.OutlineHover {
border-color: transparent !important;
}
/* Hide the bar on top of note containers and the triangular drag
handles */
.OutlineTitleArea,
.ShowDragHandle {
display: none !important;
}
/* Hide the insertion caret */
#WACViewPanel {
caret-color: transparent;
}
/* Hide selected text */
.Selected,
.Selected p,
.Selected p * {
background-color: transparent !important;
}
.Selected .EOP,
.EOP.Selected,
.LineBreakBlob.Selected,
.TabRun.Selected,
.TextRun .Selected {
border-color: transparent !important;
}
/* Hide spelling errors */
span.SpellingError {
background-image: none !important;
border-bottom: inherit !important;
}
}
if mode==presentation or mode==draw or mode==type {
#WACRibbonPanel div[data-automation-type="RibbonTopBarContainer"] {
display: none !important;
}
}
if hide-scrollbars {
/* WebKit browsers */
#WACViewPanel::-webkit-scrollbar {
display: none;
}
/* Firefox */
#WACViewPanel {
scrollbar-width: none;
}
}
if hide-background {
#WACViewPanel {
background: #fff !important;
}
}
if prevent-scroll-x {
#WACViewPanel {
/* Not recommended yet - clicking on the page causes "programmatic"
scrolling. `overflow-x: clip` implements the desired behaviour, but it
is experimental and not supported yet by any browser.*/
overflow-x: hidden;
}
}
}