Skip to content

Commit 5cc335a

Browse files
authored
Merge pull request #685 from zdhoward/develop
Adding support for Docmost App
2 parents fae84f8 + 983cbf7 commit 5cc335a

File tree

1 file changed

+191
-0
lines changed

1 file changed

+191
-0
lines changed

css/base/docmost/docmost-base.css

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
@import url("/css/defaults/placeholders.css");
2+
@import url("/css/defaults/transparent.css");
3+
4+
:root {
5+
--scheme-main-ter: var(--main-bg-color);
6+
--text-strong-color: var(--button-text-hover);
7+
--border-color: var(--transparency-light-25);
8+
--logo-color: rgb(var(--accent-color));
9+
--body-background-color: var(--main-bg-color);
10+
--border-hover-color: rgb(var(--accent-color));
11+
--header-button-color: var(--button-color); /* Docmost overrider --button-color in some fields so I make a copy of --button-color at the start */
12+
}
13+
14+
* {
15+
outline: none;
16+
}
17+
18+
html,
19+
body,
20+
.mantine-Modal-content,
21+
.mantine-Spotlight-content {
22+
background: var(--main-bg-color) !important;
23+
background-repeat: repeat, no-repeat;
24+
background-attachment: fixed, fixed;
25+
background-position: center center, center center;
26+
background-size: auto, cover;
27+
-webkit-background-size: auto, cover;
28+
-moz-background-size: auto, cover;
29+
-o-background-size: auto, cover;
30+
color: var(--text);
31+
}
32+
33+
[class^="_header"] .mantine-UnstyledButton-root,
34+
[class^="_header"] .mantine-Button-root,
35+
nav .mantine-Group-root .mantine-UnstyledButton-root {
36+
background: var(--header-button-color) !important;
37+
color: var(--button-text) !important;
38+
}
39+
40+
[class^="_header"] .mantine-UnstyledButton-root:hover,
41+
[class^="_header"] .mantine-Button-root:hover,
42+
nav .mantine-Group-root .mantine-UnstyledButton-root:hover {
43+
background: var(--button-color-hover) !important;
44+
color: var(--button-text-hover) !important;
45+
}
46+
47+
header [class^="_link"]:hover,
48+
nav a.isSelected,
49+
nav [class^="_actions"] {
50+
background: var(--transparency-light-10) !important;
51+
color: rgb(var(--accent-color)) !important;
52+
}
53+
54+
nav a.isSelected:hover,
55+
nav a:hover,
56+
nav button:hover,
57+
nav [class^="_actions"] {
58+
background: var(--transparency-dark-25) !important;
59+
color: var(--button-text-hover) !important;
60+
}
61+
62+
.mantine-Tabs-tab {
63+
border-color: rgb(var(--accent-color)) ;
64+
}
65+
66+
header,
67+
.mantine-Group-root,
68+
.mantine-Divider-root,
69+
.mantine-Select-input,
70+
.mantine-Switch-trackLabel,
71+
.mantine-Paper-root,
72+
.mantine-Table-table,
73+
.mantine-TextInput-input,
74+
.mantine-Menu-dropdown,
75+
.mantine-Menu-divider,
76+
.mantine-Tabs-root .mantine-Table-tr,
77+
nav .mantine-Group-root .mantine-ActionIcon-root,
78+
nav [class^="_section"] {
79+
border-color: var(--transparency-light-10) !important;
80+
}
81+
82+
.mantine-Badge-root {
83+
background: rgb(var(--accent-color));
84+
color: var(--button-text);
85+
}
86+
87+
[class^="_editor"] .ProseMirror,
88+
[class^="_card"] .mantine-Card-section {
89+
background: transparent;
90+
}
91+
92+
svg,
93+
nav a.isSelected:hover svg {
94+
stroke: rgb(var(--accent-color));
95+
}
96+
97+
[class^="_header"] .mantine-UnstyledButton-root svg,
98+
nav .mantine-Group-root .mantine-UnstyledButton-root svg {
99+
stroke: var(--button-text);
100+
}
101+
102+
.mantine-Menu-dropdown,
103+
.mantine-Popover-dropdown {
104+
background: var(--drop-down-menu-bg);
105+
color: var(--text);
106+
}
107+
108+
label:has(input:checked) .mantine-Switch-track {
109+
background: rgb(var(--accent-color));
110+
color: var(--button-text);
111+
}
112+
113+
.mantine-Menu-item:hover,
114+
.mantine-SegmentedControl-indicator {
115+
background: var(--transparency-light-10);
116+
color: var(--text-hover);
117+
}
118+
119+
a[class*="_activeButton"],
120+
a[class^="_link"][data-active] {
121+
background: var(--transparency-light-10) !important;
122+
color: var(--text-hover) !important;
123+
}
124+
125+
[class^="_header"],
126+
.mantine-Table-tr:hover,
127+
.mantine-Tabs-tab:hover{
128+
background: var(--transparency-dark-10);
129+
color: var(--text);
130+
}
131+
132+
.mantine-SegmentedControl-root,
133+
[class^="_card"],
134+
.mantine-Table-th,
135+
.mantine-Paper-root {
136+
background: var(--transparency-dark-25);
137+
color: var(--text);
138+
}
139+
140+
header,
141+
nav,
142+
[class^="_editor"] .tableWrapper tr th,
143+
.mantine-Input-input,
144+
.mantine-Table-td .mantine-Button-root,
145+
.mantine-AppShell-aside{
146+
background: var(--transparency-dark-25) !important;
147+
color: var(--text) !important;
148+
}
149+
150+
h1,
151+
h2,
152+
h3,
153+
h4,
154+
h5,
155+
h6,
156+
p,
157+
section header,
158+
.menu-label,
159+
.mantine-Menu-label {
160+
color: var(--text-hover) !important;
161+
}
162+
163+
.mantine-Input-input,
164+
a[class^="_link"],
165+
a[class^="_link"][data-active],
166+
.mantine-SegmentedControl-innerLabel,
167+
.mantine-Menu-item,
168+
nav * {
169+
color: var(--text);
170+
}
171+
172+
a.mantine-Anchor-root {
173+
color: var(--text) !important; /* Replace with your desired color */
174+
}
175+
176+
.mantine-Alert-root {
177+
background: rgb(var(--accent-color));
178+
}
179+
180+
.mantine-Alert-message {
181+
color: var(--text-hover);
182+
}
183+
184+
.mantine-Alert-root svg {
185+
stroke: var(--text-hover);
186+
}
187+
188+
a[class^="_link"][data-active] span:hover {
189+
background: transparent !important;
190+
color: inherit;
191+
}

0 commit comments

Comments
 (0)