From 04c902a7eaad3405dddc33b139eecdd26f4e2025 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 16 Feb 2017 15:33:34 +0100 Subject: Add toggle between edit only/edit with preview/preview only Fixes https://github.com/icewind1991/files_markdown/issues/24 Signed-off-by: Robin Appelman --- css/style.css | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'css') diff --git a/css/style.css b/css/style.css index b1fad6f..1e01385 100644 --- a/css/style.css +++ b/css/style.css @@ -202,3 +202,36 @@ small.unsaved-star { #sidebar_editor .ace_scrollbar.ace_scrollbar-h { display: none; } + +#preview_editor_controls { + float: right; +} + +#preview_editor_controls button { + height: 42px; + width: 42px; + background-position: center center; + background-repeat: no-repeat; + background-size: 32px 32px; + margin: 0; + margin-top: 2px; + border-radius: 0; + border-left-width: 0; +} + +#preview_editor_controls button:hover, +#preview_editor_controls button.active { + background-color: #eee; + border-left-width: 1px; +} + +#preview_editor_controls button:first-child { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + border-left-width: 1px; +} + +#preview_editor_controls button:last-child { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} -- cgit v1.2.3