summaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
Diffstat (limited to 'public/css')
-rw-r--r--public/css/extra.css18
-rw-r--r--public/css/index.css25
-rw-r--r--public/css/slide-preview.css61
-rw-r--r--public/css/ui/toolbar.css33
4 files changed, 117 insertions, 20 deletions
diff --git a/public/css/extra.css b/public/css/extra.css
index 3954c046..d5945ba9 100644
--- a/public/css/extra.css
+++ b/public/css/extra.css
@@ -384,6 +384,24 @@ small .dropdown a:focus, small .dropdown a:hover {
color: #eee;
}
+
+/* Prevent linked heading from being hidden underneath navbar.
+ * Example: http://localhost:3000/features#Editor-Modes would open and
+ * hide the headline "Editor Modes" underneath the navbar without this CSS rule.
+ */
+.markdown-body h1[id]:before,
+.markdown-body h2[id]:before,
+.markdown-body h3[id]:before,
+.markdown-body h4[id]:before,
+.markdown-body h5[id]:before,
+.markdown-body h6[id]:before {
+ display: block;
+ content: " ";
+ margin-top: -55px;
+ height: 55px;
+ visibility: hidden;
+}
+
@media print {
div, table, img, pre, blockquote {
page-break-inside: avoid !important;
diff --git a/public/css/index.css b/public/css/index.css
index d9ebf6de..d266ad88 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -20,24 +20,6 @@ body.night{
background: #333 !important;
}
-.toolbar {
- background-color: #1c1c1e;
- border: 1px solid #343434;
-}
-
-.toolbar > .btn-toolbar > .btn-group > .btn {
- background-color: #1c1c1e;
- padding: 5px;
- font-size: 1em;
-}
-
-.toolbar > .btn-toolbar > .btn-group > .btn:hover {
- background-color: #383a3e;
-
- padding: 5px;
-}
-
-
.CodeMirror {
font-family: "Source Code Pro", Consolas, monaco, monospace;
letter-spacing: 0.025em;
@@ -124,7 +106,10 @@ body.night{
color: #78B2F2 !important;
}
.CodeMirror-sizer {
- margin-bottom: 0px !important;
+ /* Make sure CodeMirror doesn't hide text under the status bar
+ * 26px is the height of the status bar.
+ */
+ margin-bottom: 26px !important;
}
.CodeMirror-insert-match {
background: lawngreen;
@@ -385,7 +370,7 @@ div[contenteditable]:empty:not(:focus):before{
color: #eee;
}
-.night .btn.btn-default.ui-view.active{
+.night .btn.btn-default.active{
background: #202020;
}
diff --git a/public/css/slide-preview.css b/public/css/slide-preview.css
index 1f8288c7..963ee340 100644
--- a/public/css/slide-preview.css
+++ b/public/css/slide-preview.css
@@ -56,3 +56,64 @@
height: 1.5em;
border: 3px solid #777;
}
+
+.markdown-body.slides aside.notes {
+ display: none;
+}
+
+.markdown-body.slides ul, .markdown-body.slides ol {
+ display: inline-block;
+ text-align: left;
+ margin: 0 0 0 1em;
+ padding: 0;
+}
+
+.markdown-body.slides table {
+ width: 50%;
+ margin: 0 auto;
+ border-collapse: collapse;
+ border-spacing: 0;
+ display: table;
+}
+
+.markdown-body.slides table th, .markdown-body.slides table td {
+ text-align: left;
+ padding: 0.2em 0.5em 0.2em 0.5em;
+ border:none;
+ border-bottom: 1px solid;
+}
+
+.markdown-body.slides table tr {
+ border-top: 0;
+ background-color: #fff;
+}
+
+.markdown-body.slides table tr:nth-child(2n) {
+ background-color: inherit;
+}
+
+.markdown-body.slides table tbody tr:last-child th, .markdown-body.slides table tbody tr:last-child td {
+ border-bottom: none;
+}
+
+.markdown-body.slides h1, .markdown-body.slides h2 {
+ border-bottom: 0;
+}
+
+.night .markdown-body.slides h1,
+.night .markdown-body.slides h2,
+.night .markdown-body.slides h3,
+.night .markdown-body.slides h4,
+.night .markdown-body.slides h5,
+.night .markdown-body.slides h6 {
+ color: black;
+}
+
+.markdown-body section > section:last-child {
+ margin-bottom: 1.5em !important;
+}
+
+/* slides previews get a black background, controlled by js */
+.ui-view-area.black {
+ background-color: black !important;;
+}
diff --git a/public/css/ui/toolbar.css b/public/css/ui/toolbar.css
new file mode 100644
index 00000000..fa51e1cb
--- /dev/null
+++ b/public/css/ui/toolbar.css
@@ -0,0 +1,33 @@
+.toolbar {
+ background-color: #fafafa;
+ border: 1px solid #ededed;
+}
+
+.toolbar > .btn-toolbar > .btn-group > .btn {
+ background-color: #fafafa;
+ padding: 5px;
+ font-size: 1em;
+ color: #555;
+}
+
+.toolbar > .btn-toolbar > .btn-group > .btn:hover {
+ background-color: #e1e1e1;
+ padding: 5px;
+}
+
+body.night .toolbar {
+ background-color: #1c1c1e;
+ border: 1px solid #353538;
+}
+
+body.night .toolbar > .btn-toolbar > .btn-group > .btn {
+ background-color: #1c1c1e;
+ padding: 5px;
+ font-size: 1em;
+ color: #5EB7E0;
+}
+
+body.night .toolbar > .btn-toolbar > .btn-group > .btn:hover {
+ background-color: #37373b;
+ padding: 5px;
+}