Skip to content

Commit f8ad4d3

Browse files
author
Agus Makmun
committed
fix: issue #168 (dark mode looks horrible)
1 parent b72bec2 commit f8ad4d3

9 files changed

+110
-53
lines changed

martor/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = "1.6.18"
4-
__RELEASE_DATE__ = "15-Feb-2023"
3+
__VERSION__ = "1.6.19"
4+
__RELEASE_DATE__ = "02-Mar-2023"
55
__AUTHOR__ = "Agus Makmun (Summon Agus)"
66
__AUTHOR_EMAIL__ = "summon.agus@gmail.com"

martor/static/martor/css/martor-admin.css

Lines changed: 93 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,58 +22,74 @@ body {
2222
}
2323

2424
#branding h1 {
25-
margin: 0!important;
26-
}
27-
28-
body, h1, h2, h3, h4, h5,
29-
button, input, optgroup, select {
30-
font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
31-
}
32-
33-
h1, h2, h3, h4, h5 {
34-
font-weight: bold!important;
35-
line-height: unset!important;
25+
margin: 0 !important;
26+
}
27+
28+
body,
29+
h1,
30+
h2,
31+
h3,
32+
h4,
33+
h5,
34+
button,
35+
input,
36+
optgroup,
37+
select {
38+
font-family: "Roboto", "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans", Verdana, Arial, sans-serif;
39+
}
40+
41+
h1,
42+
h2,
43+
h3,
44+
h4,
45+
h5 {
46+
font-weight: bold !important;
47+
line-height: unset !important;
3648
}
3749

3850
h1 {
39-
margin: 0 0 20px!important;
40-
font-weight: 300!important;
41-
font-size: 20px!important;
42-
color: #333!important;
51+
margin: 0 0 20px !important;
52+
font-weight: 300 !important;
53+
font-size: 20px !important;
54+
color: #333 !important;
4355
}
4456

4557
h2 {
46-
font-size: 16px!important;
47-
margin: 1em 0 .5em 0!important;
58+
font-size: 16px !important;
59+
margin: 1em 0 .5em 0 !important;
4860
}
4961

5062
h2.subhead {
51-
font-weight: normal!important;
52-
margin-top: 0!important;
63+
font-weight: normal !important;
64+
margin-top: 0 !important;
5365
}
5466

5567
h3 {
56-
font-size: 14px!important;
57-
margin: .8em 0 .3em 0!important;
58-
color: #333!important;
59-
font-weight: bold!important;
68+
font-size: 14px !important;
69+
margin: .8em 0 .3em 0 !important;
70+
color: #333 !important;
71+
font-weight: bold !important;
6072
}
6173

6274
h4 {
63-
font-size: 12px!important;
64-
margin: 1em 0 .8em 0!important;
65-
padding-bottom: 3px!important;
75+
font-size: 12px !important;
76+
margin: 1em 0 .8em 0 !important;
77+
padding-bottom: 3px !important;
6678
}
6779

6880
h5 {
69-
font-size: 10px!important;
70-
margin: 1.5em 0 .5em 0!important;
71-
color: #333!important;
72-
text-transform: uppercase!important;
73-
letter-spacing: 1px!important;
74-
}
75-
76-
.button, input[type=submit], input[type=button], .submit-row input, a.button {
81+
font-size: 10px !important;
82+
margin: 1.5em 0 .5em 0 !important;
83+
color: #333 !important;
84+
text-transform: uppercase !important;
85+
letter-spacing: 1px !important;
86+
}
87+
88+
.button,
89+
input[type=submit],
90+
input[type=button],
91+
.submit-row input,
92+
a.button {
7793
padding: 5px 15px;
7894
}
7995

@@ -89,8 +105,9 @@ nav.sticky caption {
89105
fieldset .form-row>div {
90106
width: 100%;
91107
}
108+
92109
fieldset .form-row .main-martor {
93-
display: grid!important;
110+
display: grid !important;
94111
}
95112

96113
.submit-row a.deletelink {
@@ -102,10 +119,50 @@ fieldset .form-row .main-martor {
102119
background: none;
103120
color: unset;
104121
padding: 0;
105-
font-weight: 300!important;
122+
font-weight: 300 !important;
106123
}
107124

108125
/* fix issue: #152 */
109126
.js-inline-admin-formset .form-row:not(.empty-form) {
110127
display: revert;
111128
}
129+
130+
/* fix issue: #168 */
131+
@media (prefers-color-scheme: dark) {
132+
body {
133+
color: #fff;
134+
background: #121212 !important;
135+
}
136+
137+
h1,
138+
h3,
139+
h5 {
140+
color: #fff !important;
141+
}
142+
143+
/* bootstrap */
144+
.modal-help-guide .modal-content {
145+
background: #121212 !important;
146+
}
147+
148+
.modal-help-guide .modal-title {
149+
color: #333 !important;
150+
font-size: unset !important;
151+
margin: 0 !important;
152+
}
153+
154+
.modal-help-guide .table.markdown-reference {
155+
background: #fff;
156+
color: #fff;
157+
}
158+
159+
/* semantic-ui */
160+
.modal-help-guide .content {
161+
background: #121212 !important;
162+
}
163+
164+
.tab-martor-menu .item,
165+
.martor-toolbar .ui.basic.buttons .button {
166+
color: #fff !important;
167+
}
168+
}

martor/static/martor/css/martor-admin.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.semantic.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.18
2+
* Name : Martor v1.6.19
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 15-Feb-2023
4+
* Release date : 02-Mar-2023
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.6.18
2+
* Name : Martor v1.6.19
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 15-Feb-2023
4+
* Release date : 02-Mar-2023
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

martor/static/martor/js/martor.semantic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)