From 9bfbd4097de23f6cde8252d6dc281e7e74cc561f Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sun, 11 Jan 2015 16:55:54 -0500 Subject: [PATCH] Added tabs to teacher page --- chromebook-checkout-meteor/client/tabs.css | 34 +++++++++++++++++++ chromebook-checkout-meteor/client/tabs.html | 15 ++++++++ .../client/teacher.html | 24 +++++++------ chromebook-checkout-meteor/client/teacher.js | 2 +- 4 files changed, 63 insertions(+), 12 deletions(-) create mode 100644 chromebook-checkout-meteor/client/tabs.css create mode 100644 chromebook-checkout-meteor/client/tabs.html diff --git a/chromebook-checkout-meteor/client/tabs.css b/chromebook-checkout-meteor/client/tabs.css new file mode 100644 index 0000000..a165a9d --- /dev/null +++ b/chromebook-checkout-meteor/client/tabs.css @@ -0,0 +1,34 @@ +.tabs-container + .tabs-list, +.dynamicTabs-container .tabs-list { + text-align: center; + width: 100%; + margin: 0; + padding: 0; +} +.tabs-container + .tabs-list .tab-item, +.dynamicTabs-container .tabs-list .tab-item { + font-weight: 600; + font-size: 13px; + float: left; + padding: 13px 22.57%; + margin: 0; + list-style: none; + cursor: pointer; +} +.tabs-container + .tabs-list .tab-item.active, +.dynamicTabs-container .tabs-list .tab-item.active { + border-radius: top 5px; + border: 1px solid #ddd; + border-bottom: none; + margin-bottom: -1px !important; + padding: 13px 22% 14px 22% !important; + background-color: #fff; + color: #333; +} +.tabs-content-container { + padding: 12% 15px 15px 15px; +} + diff --git a/chromebook-checkout-meteor/client/tabs.html b/chromebook-checkout-meteor/client/tabs.html new file mode 100644 index 0000000..bb8fc7a --- /dev/null +++ b/chromebook-checkout-meteor/client/tabs.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/chromebook-checkout-meteor/client/teacher.html b/chromebook-checkout-meteor/client/teacher.html index 3479b0f..0542b09 100644 --- a/chromebook-checkout-meteor/client/teacher.html +++ b/chromebook-checkout-meteor/client/teacher.html @@ -1,15 +1,17 @@ \ No newline at end of file diff --git a/chromebook-checkout-meteor/client/teacher.js b/chromebook-checkout-meteor/client/teacher.js index 9ea09f4..fe859e6 100644 --- a/chromebook-checkout-meteor/client/teacher.js +++ b/chromebook-checkout-meteor/client/teacher.js @@ -1,5 +1,5 @@ ReactiveTabs.createInterface({ - template: 'basicTabs', + template: 'teacherTabs', onChange: function (slug, template) { // This callback runs every time a tab changes. // The `template` instance is unique per {{#basicTabs}} block.