From 2ec88e029226ccea8b20d5e921d733a68cc49664 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 29 Dec 2016 23:44:42 +0000 Subject: [PATCH] Apply fixes for Foundation --- templates/default/css/notebox.css | 54 ++++++++++++++++++++++++++++++ templates/default/js/foundation.js | 4 +++ templates/default/page.tem | 36 ++++++++++++++------ 3 files changed, 83 insertions(+), 11 deletions(-) create mode 100755 templates/default/css/notebox.css create mode 100644 templates/default/js/foundation.js diff --git a/templates/default/css/notebox.css b/templates/default/css/notebox.css new file mode 100755 index 0000000..881a38f --- /dev/null +++ b/templates/default/css/notebox.css @@ -0,0 +1,54 @@ +table.notebox { + border: 1px solid #aaa; + border-left: 10px solid #1e90ff; /* Default "notice" blue */ + background: #fbfbfb; + display: block; + text-align: left; + border-radius: 1px; + -moz-box-shadow: 3px 3px 4px rgba(0,0,0,0.1); + -webkit-box-shadow: 3px 3px 4px rgba(0,0,0,0.1); + box-shadow: 3px 3px 4px rgba(0,0,0,0.1); + margin-bottom: 4px; +} + +table.notebox.hidden { + display: none; +} + +table.ienotebox { + border: 1px solid #aaa; + border-left: 10px solid #1e90ff; /* Default "notice" blue */ + background: #fbfbfb; +} + +table.notebox + table.notebox { /* Single border between stacked boxes. */ + margin-top: -5px; +} +th.nbox-text, +td.nbox-text { /* The message body cell(s) */ + padding: 0.25em 0.5em; /* 0.5em left/right */ +} +td.nbox-image { /* The left image cell */ + padding: 2px 0 2px 0.5em; /* 0.5em left, 0px right */ +} +td.nbox-image img { + max-width: none; /* foundation sets 100%, which breaks horribly */ +} +td.nbox-imageright { /* The right image cell */ + padding: 2px 0.5em 2px 0; /* 0px left, 0.5em right */ +} + +table.notebox-notice { + border-left: 10px solid #1e90ff; /* Blue */ +} +table.notebox-warning { + border-left: 10px solid #e1b416; /* Orange */ +} +table.notebox-error { + border-left: 10px solid #b22222; /* Red */ + background-color: #FFF5F5; +} + +table.notebox-error tr, table.notebox-error td { + background-color: #FFF5F5; +} diff --git a/templates/default/js/foundation.js b/templates/default/js/foundation.js new file mode 100644 index 0000000..b70dc88 --- /dev/null +++ b/templates/default/js/foundation.js @@ -0,0 +1,4 @@ +Foundation.Reveal.defaults.closeOnClick = false; +Foundation.Reveal.defaults.closeOnEsc = false; + +$(document).foundation(); diff --git a/templates/default/page.tem b/templates/default/page.tem index 3373b36..9cee8cc 100755 --- a/templates/default/page.tem +++ b/templates/default/page.tem @@ -4,26 +4,40 @@ %(title)s - + + + + %(extrahead)s - + +
+%(leftmenu)s + + +
+ %(userbar)s - -
- -
+ +
+ +
%(content)s -
- +
+ + +
+
+ - - + + + +