-
Notifications
You must be signed in to change notification settings - Fork 133
/
Copy pathloconotion.css
176 lines (153 loc) · 5.06 KB
/
loconotion.css
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/* enables hover effect on buttons */
div[role="button"]:not(.notion-record-icon):hover {
background: rgba(55, 53, 47, 0.08);
}
/* hides loading spinners */
.loading-spinner {
display: none !important;
}
/* hides elements on the top right (search box, duplicate, notion shortcut) */
.notion-topbar > div > div:not(:first-child) {
display: none !important;
}
/* stops inline databases from overflowing horizontally */
.notion-frame {
max-width: 100%;
width: 100vw !important;
}
.notion-selectable {
max-width: 100% !important;
}
.notion-scroller .notion-collection_view-block {
width: 100% !important;
max-width: 100% !important;
}
/* Resizes inlines databases */
.notion-scroller .notion-collection_view-block > div,
.notion-scroller .notion-collection_view-block > div > div > div,
.notion-scroller .notion-collection_view-block .notion-list-view,
.notion-scroller .notion-collection_view-block .notion-gallery-view,
.notion-scroller .notion-collection_view-block .notion-table-view,
.notion-scroller .notion-collection_view-block .notion-board-view,
.notion-scroller .notion-collection_view-block .notion-calendar-view {
max-width: 100% !important;
padding-left: unset !important;
padding-right: unset !important;
}
/* pull alias arrows back inline */
svg.alias {
display: inline-block !important;
height: auto !important;
}
/* stops text from overflowing past max-width on bookmark blocks; */
.notion-bookmark-block div {
white-space: unset !important;
}
/* fixes oversized page properties on Safari */
.notion-scroller
> div:nth-child(2):not(.notion-page-content)
> div:not([data-block-id])
div:not(.notion-page-details-controls) {
height: auto !important;
}
/* fixes possible stray header on tables */
.notion-collection_view_page-block > div:first-child {
transform: unset !important;
}
/* fixes oversize icons in inline page links */
a[data-token-index] svg.page {
height: auto !important;
}
/* mobile fixes */
@media only screen and (max-width: 960px) {
/* normalizes banner / page title width */
.notion-scroller > div:not([class]),
.notion-scroller > div > div:not([class]) {
width: 100% !important;
max-width: 960px !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
/* normalizes content width */
.notion-page-content,
.notion-page-content > .notion-collection_view-block,
.notion-page-content > .notion-collection_view-block > div,
.notion-page-content > .notion-collection_view-block > .notion-scroller > div {
width: 100vw !important;
/* max-width: unset !important; */
padding-right: 0 !important;
padding-left: 0 !important;
}
/* add padding to banner, but not to image */
.notion-frame > .notion-scroller > div:first-child > div:last-child {
padding-right: 2em !important;
padding-left: 2em !important;
}
/* add padding to content */
.notion-scroller > div:not([class]):not(:first-child),
.notion-scroller > .notion-page-content,
.notion-frame > .notion-scroller > .notion-scroller > .notion-list-view,
.notion-frame > .notion-scroller > .notion-scroller > .notion-gallery-view,
.notion-frame > .notion-scroller > .notion-scroller > .notion-table-view,
.notion-frame > .notion-scroller > .notion-scroller > .notion-board-view,
.notion-frame > .notion-scroller > .notion-scroller > .notion-calendar-view {
padding-right: 2em !important;
padding-left: 2em !important;
flex-wrap: wrap
}
/* collapses flex rows into columns */
.notion-column_list-block > div {
flex-direction: column;
}
.notion-column_list-block > div > * {
width: unset !important;
}
/* forces gallery to wrap around pages */
.notion-gallery-view {
width: 100vw;
}
/* enable horizontal scroll for lists and tables on mobile */
.notion-collection-item > a {
overflow: visible !important;
}
.notion-collection-item > a > div {
width: unset !important;
}
.notion-scroller.horizontal {
overflow-x: scroll;
}
/* makes the top border on overflowing list reach the full width of the list */
.notion-list-view > .notion-collection_view_page-block {
width: fit-content;
}
.notion-scroller
> div:nth-child(2):not(.notion-page-content)
> div:not([data-block-id])
div:not(.notion-page-details-controls) {
padding-left: 0!important;
padding-right: 0!important;
}
}
.pseudoAfter:after {
color: var(--pseudoAfter--color);
content: var(--pseudoAfter--content);
border: var(--pseudoAfter--border);
width: var(--pseudoAfter--width);
height: var(--pseudoAfter--height);
display: var(--pseudoAfter--display);
background: var(--pseudoAfter--background);
}
.pseudoBefore:before {
color: var(--pseudoBefore--color);
content: var(--pseudoBefore--content);
border: var(--pseudoBefore--border);
width: var(--pseudoBefore--width);
height: var(--pseudoBefore--height);
display: var(--pseudoBefore--display) !important;
background: var(--pseudoBefore--background);
}
.pseudoSelection ::selection {
color: var(--pseudoSelection--color);
background: var(--pseudoSelection--background);
text-shadow: var(--pseudoSelection--textShadow);
}