diff --git a/config/config.ini.example b/config/config.ini.example index 77233f1e..7c3b7be9 100644 --- a/config/config.ini.example +++ b/config/config.ini.example @@ -203,5 +203,5 @@ views.root = "themes/twentysixteen" ; Framework config. No need to edit. views.layout = "layout" -; Admin theme: light or dark mode -admin.theme = "dark" \ No newline at end of file +; Admin theme mode: light or dark +admin.theme = "light" \ No newline at end of file diff --git a/lang/en_US.ini b/lang/en_US.ini index 452b2475..0c988f3a 100644 --- a/lang/en_US.ini +++ b/lang/en_US.ini @@ -321,4 +321,6 @@ msg_error_field_req_feedurl = "You need to specify the feed url." rss_feeds_description_select = "RSS Description" rss_description_body = "Post Body" rss_description_meta = "Post Meta Description" -admin_theme = "Admin theme" \ No newline at end of file +admin_theme = "Admin theme" +admin_theme_light = "Light" +admin_theme_dark = "Dark" \ No newline at end of file diff --git a/system/admin/editor/css/editor.css b/system/admin/editor/css/editor.css index e1ad6803..580172f0 100644 --- a/system/admin/editor/css/editor.css +++ b/system/admin/editor/css/editor.css @@ -18,10 +18,14 @@ blockquote { margin-bottom: 10px; width: 100%; border: 1px solid #CFDAE5; + border-radius:5px; display: block; float: left; } - +.dark-mode .wmd-button-bar { + background-color: #292d32; + border-color: #292d32 !important; +} .wmd-button-bar:hover { border: 1px solid #CCCCCC; } @@ -77,10 +81,19 @@ blockquote { .wmd-button > span { background-repeat: no-repeat; background-position: 0px 0px; - display: inline-block; } +.dark-mode .wmd-button > span.btn-light { + color: #fff; + background-color: #292d32; + border-color: #292d32; + box-shadow: none; +} +.dark-mode .wmd-button > span.btn-light:not(.disabled):hover { + background-color: #171a1d; + border-color: #343a40; +} .wmd-spacer1 { left: 50px; } diff --git a/system/admin/views/add-content.html.php b/system/admin/views/add-content.html.php index 68c19375..a36b9806 100644 --- a/system/admin/views/add-content.html.php +++ b/system/admin/views/add-content.html.php @@ -88,7 +88,7 @@ function extractLast( term ) {