Permalink
Browse files

add csss sources from repo

  • Loading branch information...
geraldb committed Oct 27, 2011
1 parent 3ae85d9 commit ea1f17b86671d7248b7af40cf588e6f9fbb33520
Showing with 2,052 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +43 −0 README.markdown
  3. +17 −0 changes.txt
  4. +116 −0 classList.js
  5. +21 −0 csss.license.txt
  6. +34 −0 csss.txt
  7. +52 −0 logo.svg
  8. +114 −0 plugins/code-highlight.js
  9. +40 −0 plugins/css-controls.js
  10. +132 −0 plugins/css-edit.js
  11. +89 −0 plugins/css-snippets.js
  12. +94 −0 plugins/incrementable.js
  13. +10 −0 prefixfree.min.js
  14. +118 −0 reusable.css
  15. +90 −0 slides.html.erb
  16. +282 −0 slideshow.css
  17. +508 −0 slideshow.js
  18. +43 −0 talk.css.erb
  19. +247 −0 theme.css
View
@@ -0,0 +1,2 @@
+# ignore komodo project files
+*.kpf
View
@@ -0,0 +1,43 @@
+# Slide Show (S9) Template Pack - CSSS
+
+The [CSSS](https://github.com/LeaVerou/CSSS) package by Lea Verou bundled up into
+a Slide Show (S9) template pack.
+
+Note, the package is configured to use the following headers in `slides.html.erb`:
+
+ author: Your Name Here
+ title: Your Slide Show Title Here
+
+## Try It Yourself - How To Use the Template Pack
+
+If you want to try it yourself, install (fetch) the new template pack. Issue the command:
+
+ $ slideshow -f https://github.com/geraldb/slideshow-csss/raw/master/csss.txt
+
+To check if the new template got installed, use the `-l/--list` switch/command:
+
+ $ slideshow -l
+
+Listing something like:
+
+ Installed templates include:
+ csss.txt (/home/gerald/.slideshow/templates/csss/csss.txt)
+
+Now you're ready to use it using the `-t/--template` switch. Example:
+
+ $ slideshow -t csss.txt tutorial
+
+That's it.
+
+
+## Questions? Comments?
+
+Questions? Comments?
+Send them along to the [Free Web Slide Show Alternatives (S5, S6, S9, Slidy And Friends) Forum/Mailing List](http://groups.google.com/group/webslideshow).
+Thanks!
+
+## What's Slide Show (S9)?
+
+A Ruby gem that lets you create slide shows and author slides in plain text
+using a wiki-style markup language that's easy-to-write and easy-to-read.
+More [Slide Show (S9) Project Site »](http://slideshow.rubyforge.org)
View
@@ -0,0 +1,17 @@
+
+Notes on changes to original CSSS repo made by GB
+
+## talk.css
+
+- comment out line-height, color, background style in #intro .attribute rule
+
+## theme.css
+
+- change background-image in html to linear black to silver gradient
+ (that is, remove rainbow-wood.jpg image)
+- font-size changed to 0.8in (was 1.2in) for rule slide h2
+
+## misc
+
+- add prefixfree.min.js in repo and change link in template
+- removed img/rainbow-wood.jpg (replace w/ css3 gradient)
View
@@ -0,0 +1,116 @@
+/*
+ * classList.js: Implements a cross-browser element.classList getter.
+ * 2010-09-06
+ *
+ * By Eli Grey, http://eligrey.com
+ * Public Domain.
+ * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
+ */
+
+"use strict";
+
+if (typeof Element !== "undefined") {
+
+(function () {
+
+var
+ classListProp = "classList"
+ , protoProp = "prototype"
+ , elemCtrProto = Element[protoProp]
+ , objCtr = Object
+;
+if (!objCtr.hasOwnProperty.call(elemCtrProto, classListProp)) {
+ var
+ strTrim = String[protoProp].trim || function () {
+ return this.replace(/^\s+|\s+$/g, "");
+ }
+ , arrIndexOf = Array[protoProp].indexOf || function (item) {
+ for (var i = 0, len = this.length; i < len; i++) {
+ if (i in this && this[i] === item) {
+ return i;
+ }
+ }
+ return -1;
+ }
+ , checkTokenAndGetIndex = function (classList, token) {
+ if (token === "") {
+ throw "SYNTAX_ERR";
+ }
+ if (/\s/.test(token)) {
+ throw "INVALID_CHARACTER_ERR";
+ }
+ return arrIndexOf.call(classList, token);
+ }
+ , ClassList = function (elem) {
+ var
+ trimmedClasses = strTrim.call(elem.className)
+ , classes = trimmedClasses ? trimmedClasses.split(/\s+/) : []
+ ;
+ for (var i = 0, len = classes.length; i < len; i++) {
+ this.push(classes[i]);
+ }
+ this.updateClassName = function () {
+ elem.className = this.toString();
+ };
+ }
+ , classListProto = ClassList[protoProp] = []
+ , classListGetter = function () {
+ return new ClassList(this);
+ }
+ ;
+ classListProto.item = function (i) {
+ return this[i] || null;
+ };
+ classListProto.contains = function (token) {
+ token += "";
+ return checkTokenAndGetIndex(this, token) !== -1;
+ };
+ classListProto.add = function (token) {
+ token += "";
+ if (checkTokenAndGetIndex(this, token) === -1) {
+ this.push(token);
+ this.updateClassName();
+ }
+ };
+ classListProto.remove = function (token) {
+ token += "";
+ var index = checkTokenAndGetIndex(this, token);
+ if (index !== -1) {
+ this.splice(index, 1);
+ this.updateClassName();
+ }
+ };
+ classListProto.toggle = function (token) {
+ token += "";
+ if (checkTokenAndGetIndex(this, token) === -1) {
+ this.add(token);
+ } else {
+ this.remove(token);
+ }
+ };
+ classListProto.toString = function () {
+ return this.join(" ");
+ };
+
+ if (objCtr.defineProperty) {
+ var classListDescriptor = {
+ get: classListGetter
+ , enumerable: true
+ , configurable: true
+ };
+ try {
+ objCtr.defineProperty(elemCtrProto, classListProp, classListDescriptor);
+ } catch (ex) { // IE 8 doesn't support enumerable:true
+ if (ex.number === -0x7FF5EC54) {
+ classListDescriptor.enumerable = false;
+ objCtr.defineProperty(elemCtrProto, classListProp, classListDescriptor);
+ }
+ }
+ } else if (objCtr[protoProp].__defineGetter__) {
+ elemCtrProto.__defineGetter__(classListProp, classListGetter);
+ }
+}
+
+}());
+
+}
View
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010 Lea Verou
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -0,0 +1,34 @@
+#####################
+# Sample Slide Show (S9) template package manifest using CSSS
+# - CSSS by Lea Verou; see https://github.com/LeaVerou/CSSS
+#
+# Change as desired/needed
+#
+# Configured to use the following headers in slides.html.erb:
+#
+# author: Your Name Here
+# title: Your Slide Show Title Here
+#
+# Questions? Comments?
+# Send them along to the Free Web Slide Show Alternatives (S5, S6, S9 And Friends) Forum/Mailing List.
+# http://groups.google.com/group/webslideshow
+
+
+__file__.html slides.html.erb
+__file__.css talk.css.erb
+
+
+# js machinery
+
+classList.js
+slideshow.js
+prefixfree.min.js
+
+# styles
+
+slideshow.css
+theme.css
+
+# graphics
+
+logo.svg
Oops, something went wrong.

0 comments on commit ea1f17b

Please sign in to comment.