-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathExcel.css
87 lines (71 loc) · 11.1 KB
/
Excel.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
/*
Excel plugin
Colours inherit from minimal theme and various adjustments
Limitations:
- Cannot adjust spreadsheet editor colours as it is rendered in <canvas>
- Cannot set dark/light mode automatically based on minimal theme dark/light mode
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Colors */
.x-spreadsheet {
--sheet-iframe-border-color: var(--bg2);
--sheet-iframe-background-color: var(--bg1);
--sheet-toolbar-background-color: var(--bg1);
--sheet-toolbar-divider-color: var(--tab-outline-color);
--sheet-dropdown-content-background-color: var(--bg1);
--sheet-dropdown-content-color: var(--icon-color);
--sheet-dropdown-title-color: var(--icon-color);
--sheet-menu-color: var(--tx1);
--sheet-menu-active-background-color: var(--tx3);
--sheet-header-background-color: red;
--sheet-checked-before: #025492;
/* Note: Actual table is inside <canvas> so colours aren't changeable by CSS override */
}
/* Chrome */
.workspace-leaf-content[data-type=excel-view] {
.view-content {
border-top:1px solid var(--tab-outline-color);
}
.x-spreadsheet-toolbar {
padding-left:16px;
border-bottom-color: var(--divider-color);
.x-spreadsheet-dropdown-content {
border:1px solid var(--divider-color);
box-shadow: -2px 2px 6px -2px var(--divider-color);
padding-bottom:4px;
border-top: 0;
}
}
.x-spreadsheet-toolbar-btns {
margin-top:-2px;
}
.x-spreadsheet-icon-img {
background-image:none !important;
background: var(--icon-color);
opacity: 1 !important;
/*
This is a hack to colorize the toolbar icons, this property value will need to be copied
from x-spreadsheet CSS if they update it because they hardcoded it >:|
*/
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='249' height='69' viewBox='0 0 249 69' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M4.434 9.434L7 12H0V5l2.958 2.958A8.287 8.287 0 0 1 8.32 6c3.459 0 6.424 2.11 7.68 5l-2 1c-.937-2.39-3.13-3.92-5.68-4a6.572 6.572 0 0 0-3.886 1.434zM29.566 9.434L27 12h7V5l-2.958 2.958A8.287 8.287 0 0 0 25.68 6C22.22 6 19.256 8.11 18 11l2 1c.937-2.39 3.13-3.92 5.68-4 1.469.053 2.82.579 3.886 1.434zM46.114 11.226a4.778 4.778 0 0 1-3.166 1.208c-2.733 0-4.948-2.336-4.948-5.217S40.215 2 42.948 2c2.733 0 4.948 2.336 4.948 5.217 0 1.27-.43 2.433-1.145 3.338l.228.238h.71l3.59 3.794L49.94 16l-3.6-3.785v-.749l-.225-.24zm-3.166-.215c1.988 0 3.599-1.699 3.599-3.794 0-2.096-1.611-3.794-3.599-3.794-1.987 0-3.598 1.698-3.598 3.794 0 2.095 1.61 3.794 3.598 3.794zM65 2h-8c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h8c.55 0 1-.45 1-1V5h1v3h-7v8h2v-6h7V4h-3V3c0-.55-.45-1-1-1zM73.27 4.55l5.16 5.15L76 15h2.5l1.64-3.58L84.73 16 86 14.73 74.55 3.27l-1.28 1.28zM76.82 3l2 2h1.76l-.55 1.21 1.71 1.71L83.08 5H87V3H76.82zM102 6.5c0-1.93-1.57-3.5-3.5-3.5H93v12h6.25c1.79 0 3.25-1.46 3.25-3.25 0-1.3-.77-2.41-1.87-2.93.83-.58 1.37-1.44 1.37-2.32zM98 5c.83 0 1.5.67 1.5 1.5S98.83 8 98 8h-2V5h2zm-2 8v-3h2.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5H96zM114 3v2h2.58l-3.66 8H110v2h8v-2h-2.58l3.66-8H122V3z' fill='%23000'/%3E%3Cpath d='M134 15c2.76 0 5-2.24 5-5V3h-2v7c0 1.75-1.5 3-3 3s-3-1.242-3-3V3h-2v7c0 2.76 2.24 5 5 5zm-6 1v2h12v-2h-12z' fill='%23000' fill-rule='nonzero'/%3E%3Cpath d='M147.887 6.06c0-.457.098-.874.297-1.252.198-.38.476-.702.836-.968s.784-.472 1.279-.619A5.712 5.712 0 0 1 151.926 3c.608 0 1.159.083 1.654.251.495.169.919.402 1.271.705.353.3.623.657.814 1.073.191.412.285.866.285 1.357h-2.257a1.85 1.85 0 0 0-.11-.637 1.26 1.26 0 0 0-.333-.506 1.535 1.535 0 0 0-.563-.327 2.425 2.425 0 0 0-.798-.116c-.297 0-.552.034-.773.098a1.52 1.52 0 0 0-.54.27 1.144 1.144 0 0 0-.431.9c0 .36.184.663.551.907l.065.042c.262.172.739.483 1.239.983h-3s-.786-.624-.824-.691c-.191-.357-.288-.773-.288-1.249zM159 9h-14v2h7.219c.135.053.3.105.412.154.278.123.495.255.653.382.157.132.262.274.319.424.056.154.082.326.082.514 0 .176-.034.341-.101.491a1.018 1.018 0 0 1-.311.394 1.603 1.603 0 0 1-.533.258 2.71 2.71 0 0 1-.761.094c-.326 0-.623-.034-.889-.097a1.797 1.797 0 0 1-.679-.312 1.446 1.446 0 0 1-.438-.558c-.105-.229-.192-.574-.192-.744h-2.231c0 .252.06.688.176 1.025a3.15 3.15 0 0 0 1.223 1.598c.281.195.585.36.915.487.33.131.671.229 1.035.289.36.064.724.094 1.084.094.6 0 1.147-.068 1.635-.207a3.879 3.879 0 0 0 1.252-.592 2.69 2.69 0 0 0 .803-.953c.19-.378.28-.806.28-1.286 0-.45-.078-.855-.232-1.211a2.258 2.258 0 0 0-.127-.252L159 11V9z' fill='%23010101'/%3E%3Cpath d='M171 1h-2l-4.5 12h2l1.12-3h4.75l1.12 3h2L171 1zm-2.62 7L170 3.67 171.62 8h-3.24z' fill='%23000'/%3E%3Cpath d='M193.5 8.87s-1.5 1.62-1.5 2.62c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.99-1.5-2.62-1.5-2.62zm-1.79-2.08L184.91 0l-1.06 1.06 1.59 1.59-4.15 4.14a.996.996 0 0 0 0 1.41l4.5 4.5c.2.2.45.3.71.3.26 0 .51-.1.71-.29l4.5-4.5c.39-.39.39-1.03 0-1.42zm-8.5.21l3.29-3.29L189.79 7h-6.58z' fill='%23000' fill-rule='nonzero'/%3E%3Cpath d='M200 6h-2V2h7v2h-5v2zm7-2V2h7v4h-2V4h-5zm0 10h5v-2h2v4h-7v-2zm-9-2h2v2h5v2h-7v-4zm0-4h4V6l3 3-3 3v-2h-4V8zm9 1l3-3v2h4v2h-4v2l-3-3zM217 16h10v-2h-10v2zm10-10h-10v2h10V6zm-10-4v2h14V2h-14zm0 10h14v-2h-14v2zM237 14v2h10v-2h-10zm0-8v2h10V6h-10zm-2 6h14v-2h-14v2zm0-10v2h14V2h-14zM5 34h10v-2H5v2zm-4-4h14v-2H1v2zm0-10v2h14v-2H1zm4 6h10v-2H5v2zM20 20v2h12v-2H20zm2.5 7H25v7h2v-7h2.5L26 23.5 22.5 27zM47.5 21H45v-3h-2v3h-2.5l3.5 3.5 3.5-3.5zM38 26v2h12v-2H38zm2.5 7H43v3h2v-3h2.5L44 29.5 40.5 33zM65.5 27H63v-7h-2v7h-2.5l3.5 3.5 3.5-3.5zM56 32v2h12v-2H56zM87 21H73v2h14v-2zM73 33h4v-2h-4v2zm11.5-7H73v2h11.75c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5H82v-2l-3 3 3 3v-2h2.5c1.93 0 3.5-1.57 3.5-3.5S86.43 26 84.5 26zM91 21v1l6 6v5l2-1v-4l6-6v-1H91zm4 3h6l-3 3-3-3zM121 20h-10v1.8l5.5 5.2-5.5 5.2V34h10v-2h-6.9l4.9-5-4.9-5h6.9zM130 25l4 4 4-4zM150 31l4-4-4-4zM162.9 27c0-1.16.94-2.1 2.1-2.1h4V23h-4c-2.21 0-4 1.79-4 4s1.79 4 4 4h4v-1.9h-4a2.1 2.1 0 0 1-2.1-2.1zm12.1-4h-4v1.9h4a2.1 2.1 0 1 1 0 4.2h-4V31h4c2.21 0 4-1.79 4-4s-1.79-4-4-4zm-8 5h6v-2h-6v2zM195 19c.55 0 1 .45 1 1v14c0 .55-.45 1-1 1h-14c-.55 0-1-.45-1-1V20c0-.55.45-1 1-1h14zm-13 2v12h12V21h-12zm4 10h-2v-5h2v5zm3 0h-2v-8h2v8zm3 0h-2v-4h2v4z' fill='%23000'/%3E%3Cpath stroke='%23000' d='M198.5 21.5h15v12h-15z'/%3E%3Cpath fill='%23000' fill-rule='nonzero' d='M203 26h1v7h-1z'/%3E%3Cpath fill='%23D8D8D8' fill-rule='nonzero' d='M199 22h14v3h-14z'/%3E%3Cpath d='M199 25h14v1h-14v-1zm0 4h14v1h-14v-1z' fill='%23000' fill-rule='nonzero'/%3E%3Cpath d='M219 25.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm10 0c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm-5 0c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zM243 26v-4h-2v4h-4v2h4v4h2v-4h4v-2zM1 38v14h14V38H1zm6 12H3v-4h4v4zm0-6H3v-4h4v4zm6 6H9v-4h4v4zm0-6H9v-4h4v4z' fill='%23000'/%3E%3Cg fill='%23000'%3E%3Cpath d='M19 52h2v-2h-2v2zm2-11h-2v2h2v-2zm1 11h2v-2h-2v2zm8-14h-2v2h2v-2zm-9 0h-2v2h2v-2zm3 0h-2v2h2v-2zm-5 11h2v-2h-2v2zm9 3h2v-2h-2v2zm3-14v2h2v-2h-2zm0 5h2v-2h-2v2zm0 9h2v-2h-2v2zm0-3h2v-2h-2v2z' opacity='.54'/%3E%3Cpath d='M27 38h-2v6h-6v2h6v6h2v-6h6v-2h-6z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3C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h-2v2z' opacity='.54'/%3E%3Cpath d='M91 52h2V38h-2z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M112 46h2v-2h-2v2zm-3 6h2v-2h-2v2zm6 0h2v-2h-2v2zm0-3h2v-2h-2v2zm-3 3h2v-2h-2v2zm-3-3h2v-2h-2v2zm6-3h2v-2h-2v2zm-6-3h2v-2h-2v2zm0 3h2v-2h-2v2zm12 0h2v-2h-2v2zm0 3h2v-2h-2v2zm0-6h2v-2h-2v2zm-6 0h2v-2h-2v2zm3 9h2v-2h-2v2zm0-6h2v-2h-2v2zm3 6h2v-2h-2v2z' opacity='.54'/%3E%3Cpath d='M109 38v2h14v-2z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M127 40h2v-2h-2v2zm3 0h2v-2h-2v2zm0 6h2v-2h-2v2zm0 6h2v-2h-2v2zm-3-9h2v-2h-2v2zm0 3h2v-2h-2v2zm0 6h2v-2h-2v2zm0-3h2v-2h-2v2zm9-3h2v-2h-2v2zm-3 6h2v-2h-2v2zm3 0h2v-2h-2v2zm-3-12h2v-2h-2v2zm3 0h2v-2h-2v2zm-3 9h2v-2h-2v2zm0-6h2v-2h-2v2zm0 3h2v-2h-2v2z' opacity='.54'/%3E%3Cpath d='M139 38v14h2V38z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M150 38h-2v2h2v-2zm3 6h-2v2h2v-2zm0 3h-2v2h2v-2zm3-3h-2v2h2v-2zm-6 0h-2v2h2v-2zm6-6h-2v2h2v-2zm-3 3h-2v2h2v-2zm0-3h-2v2h2v-2zm-6 9h-2v2h2v-2zm10 2h2v-2h-2v2zm0-6h2v-2h-2v2zm0 3h2v-2h-2v2zm0-8v2h2v-2h-2zm-10 0h-2v2h2v-2zm0 3h-2v2h2v-2zm0 3h-2v2h2v-2z' opacity='.54'/%3E%3Cpath d='M145 52h14v-2h-14z'/%3E%3C/g%3E%3Cpath d='M169 52h2v-2h-2v2zm-3-6h2v-2h-2v2zm0-6h2v-2h-2v2zm3 9h2v-2h-2v2zm-3 3h2v-2h-2v2zm-3-9h2v-2h-2v2zm0 9h2v-2h-2v2zm0-12h2v-2h-2v2zm0 6h2v-2h-2v2zm6 0h2v-2h-2v2zm-6 3h2v-2h-2v2zm12 0h2v-2h-2v2zm0 3h2v-2h-2v2zm0-6h2v-2h-2v2zm0-3h2v-2h-2v2zm0-5v2h2v-2h-2zm-6 2h2v-2h-2v2zm3 0h2v-2h-2v2zm-3 3h2v-2h-2v2zm3 9h2v-2h-2v2zm0-6h2v-2h-2v2z' fill='%23000' opacity='.54'/%3E%3Cpath d='M189.5 39.62l-6.5 6.5V49h2.88l6.5-6.5-2.88-2.88zm5.35.4c.2-.2.2-.51 0-.71l-2.17-2.17c-.2-.2-.51-.2-.71 0l-1.35 1.36 2.88 2.88 1.35-1.36zM199 40h14v2h-14v-2zm0 4h6v2h-6v-2zm0 4h2v2h-2v-2zm8-4h6v2h-6v-2zm-4 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zM226 41l-4 4 4 4zM245.53 42.53l-1.06-1.06-2.47 2.47-2.47-2.47-1.06 1.06 2.47 2.47-2.47 2.47 1.06 1.06 2.47-2.47 2.47 2.47 1.06-1.06-2.47-2.47zM11.44 60.44L8 63.88l-3.44-3.44L3.5 61.5 8 66l4.5-4.5zM26 60l-4.5 4.5 1.06 1.06L26 62.12l3.44 3.44 1.06-1.06zM46.56 66.44L43.12 63l3.44-3.44-1.06-1.06L41 63l4.5 4.5z' fill='%23000'/%3E%3Cg fill='%23000'%3E%3Cpath d='M65 63l-4.5-4.5-1.06 1.06L62.88 63l-3.44 3.44 1.06 1.06z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M74 62h8.875l-3.935-3.94L80 57l6 6-6 6-1.06-1.06L82.875 64H74z'/%3E%3C/g%3E%3Cg fill='%23000'%3E%3Cpath d='M104 62h-8.875l3.935-3.94L98 57l-6 6 6 6 1.06-1.06L95.125 64H104z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.x-spreadsheet-icon .x-spreadsheet-icon-img.add {
left:-232px; /* icon mask fix */
}
.x-spreadsheet-scrollbar {
background:var(--bg2);
> div {
background:var(--bg2);
}
}
.x-spreadsheet-bottombar {
border-top-color:var(--tab-outline-color);
.x-spreadsheet-dropdown-content {
border:1px solid var(--divider-color);
box-shadow: -2px 0 6px -2px var(--divider-color);
padding-bottom:4px;
border-bottom: 0;
margin-bottom:-6px
}
}
}