diff --git a/resources/DummyHTML/album.html b/resources/DummyHTML/album.html new file mode 100644 index 0000000..9f8ae0c --- /dev/null +++ b/resources/DummyHTML/album.html @@ -0,0 +1,55 @@ + + + + + + ImageGallery + + + + + + +
+ + + +
+
+ + + + + + + + + + + + + +
+
+ +
+ + +
+ + diff --git a/resources/DummyHTML/css/blueprint/ie.css b/resources/DummyHTML/css/blueprint/ie.css new file mode 100755 index 0000000..e70f8e2 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/ie.css @@ -0,0 +1,35 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.8 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* ie.css */ +body {text-align:center;} +.container {text-align:left;} +* html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {overflow-x:hidden;} +* html legend {margin:0px -8px 16px 0;padding:0;} +ol {margin-left:2em;} +sup {vertical-align:text-top;} +sub {vertical-align:text-bottom;} +html>body p code {*white-space:normal;} +hr {margin:-8px auto 11px;} +img {-ms-interpolation-mode:bicubic;} +.clearfix, .container {display:inline-block;} +* html .clearfix, * html .container {height:1%;} +fieldset {padding-top:0;} +input.text, input.title {background-color:#fff;border:1px solid #bbb;} +input.text:focus, input.title:focus {border-color:#666;} +input.text, input.title, textarea, select {margin:0.5em 0;} +input.checkbox, input.radio {position:relative;top:.25em;} +form.inline div, form.inline p {vertical-align:middle;} +form.inline label {position:relative;top:-0.25em;} +form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;} +button, input.button {position:relative;top:0.25em;} \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/plugins/buttons/icons/cross.png b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/cross.png new file mode 100755 index 0000000..1514d51 Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/cross.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/buttons/icons/key.png b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/key.png new file mode 100755 index 0000000..a9d5e4f Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/key.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/buttons/icons/tick.png b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/tick.png new file mode 100755 index 0000000..a9925a0 Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/buttons/icons/tick.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/buttons/readme.txt b/resources/DummyHTML/css/blueprint/plugins/buttons/readme.txt new file mode 100755 index 0000000..a8c2b57 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/buttons/readme.txt @@ -0,0 +1,32 @@ +Buttons + +* Gives you great looking CSS buttons, for both and + + + Change Password + + + + Cancel + diff --git a/resources/DummyHTML/css/blueprint/plugins/buttons/screen.css b/resources/DummyHTML/css/blueprint/plugins/buttons/screen.css new file mode 100755 index 0000000..bb66b21 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/buttons/screen.css @@ -0,0 +1,97 @@ +/* -------------------------------------------------------------- + + buttons.css + * Gives you some great CSS-only buttons. + + Created by Kevin Hale [particletree.com] + * particletree.com/features/rediscovering-the-button-element + + See Readme.txt in this folder for instructions. + +-------------------------------------------------------------- */ + +a.button, button { + display:block; + float:left; + margin: 0.7em 0.5em 0.7em 0; + padding:5px 10px 5px 7px; /* Links */ + + border:1px solid #dedede; + border-top:1px solid #eee; + border-left:1px solid #eee; + + background-color:#f5f5f5; + font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif; + font-size:100%; + line-height:130%; + text-decoration:none; + font-weight:bold; + color:#565656; + cursor:pointer; +} +button { + width:auto; + overflow:visible; + padding:4px 10px 3px 7px; /* IE6 */ +} +button[type] { + padding:4px 10px 4px 7px; /* Firefox */ + line-height:17px; /* Safari */ +} +*:first-child+html button[type] { + padding:4px 10px 3px 7px; /* IE7 */ +} +button img, a.button img{ + margin:0 3px -3px 0 !important; + padding:0; + border:none; + width:16px; + height:16px; + float:none; +} + + +/* Button colors +-------------------------------------------------------------- */ + +/* Standard */ +button:hover, a.button:hover{ + background-color:#dff4ff; + border:1px solid #c2e1ef; + color:#336699; +} +a.button:active{ + background-color:#6299c5; + border:1px solid #6299c5; + color:#fff; +} + +/* Positive */ +body .positive { + color:#529214; +} +a.positive:hover, button.positive:hover { + background-color:#E6EFC2; + border:1px solid #C6D880; + color:#529214; +} +a.positive:active { + background-color:#529214; + border:1px solid #529214; + color:#fff; +} + +/* Negative */ +body .negative { + color:#d12f19; +} +a.negative:hover, button.negative:hover { + background-color:#fbe3e4; + border:1px solid #fbc2c4; + color:#d12f19; +} +a.negative:active { + background-color:#d12f19; + border:1px solid #d12f19; + color:#fff; +} diff --git a/resources/DummyHTML/css/blueprint/plugins/fancy-type/readme.txt b/resources/DummyHTML/css/blueprint/plugins/fancy-type/readme.txt new file mode 100755 index 0000000..85f2491 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/fancy-type/readme.txt @@ -0,0 +1,14 @@ +Fancy Type + +* Gives you classes to use if you'd like some + extra fancy typography. + +Credits and instructions are specified above each class +in the fancy-type.css file in this directory. + + +Usage +---------------------------------------------------------------- + +1) Add this plugin to lib/settings.yml. + See compress.rb for instructions. diff --git a/resources/DummyHTML/css/blueprint/plugins/fancy-type/screen.css b/resources/DummyHTML/css/blueprint/plugins/fancy-type/screen.css new file mode 100755 index 0000000..028e05b --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/fancy-type/screen.css @@ -0,0 +1,71 @@ +/* -------------------------------------------------------------- + + fancy-type.css + * Lots of pretty advanced classes for manipulating text. + + See the Readme file in this folder for additional instructions. + +-------------------------------------------------------------- */ + +/* Indentation instead of line shifts for sibling paragraphs. */ + p + p { text-indent:2em; margin-top:-1.5em; } + form p + p { text-indent: 0; } /* Don't want this in forms. */ + + +/* For great looking type, use this code instead of asdf: + asdf + Best used on prepositions and ampersands. */ + +.alt { + color: #666; + font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif; + font-style: italic; + font-weight: normal; +} + + +/* For great looking quote marks in titles, replace "asdf" with: + asdf” + (That is, when the title starts with a quote mark). + (You may have to change this value depending on your font size). */ + +.dquo { margin-left: -.5em; } + + +/* Reduced size type with incremental leading + (http://www.markboulton.co.uk/journal/comments/incremental_leading/) + + This could be used for side notes. For smaller type, you don't necessarily want to + follow the 1.5x vertical rhythm -- the line-height is too much. + + Using this class, it reduces your font size and line-height so that for + every four lines of normal sized type, there is five lines of the sidenote. eg: + + New type size in em's: + 10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems) + + New line-height value: + 12px x 1.5 = 18px (old line-height) + 18px x 4 = 72px + 72px / 5 = 14.4px (new line height) + 14.4px / 10px = 1.44 (new line height in em's) */ + +p.incr, .incr p { + font-size: 10px; + line-height: 1.44em; + margin-bottom: 1.5em; +} + + +/* Surround uppercase words and abbreviations with this class. + Based on work by Jørgen Arnor GÃ¥rdsø Lom [http://twistedintellect.com/] */ + +.caps { + font-variant: small-caps; + letter-spacing: 1px; + text-transform: lowercase; + font-size:1.2em; + line-height:1%; + font-weight:bold; + padding:0 2px; +} diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/doc.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/doc.png new file mode 100755 index 0000000..834cdfa Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/doc.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/email.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/email.png new file mode 100755 index 0000000..7348aed Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/email.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/external.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/external.png new file mode 100755 index 0000000..cf1cfb4 Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/external.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/feed.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/feed.png new file mode 100755 index 0000000..315c4f4 Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/feed.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/im.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/im.png new file mode 100755 index 0000000..79f35cc Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/im.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/pdf.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/pdf.png new file mode 100755 index 0000000..8f8095e Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/pdf.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/visited.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/visited.png new file mode 100755 index 0000000..ebf206d Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/visited.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/xls.png b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/xls.png new file mode 100755 index 0000000..b977d7e Binary files /dev/null and b/resources/DummyHTML/css/blueprint/plugins/link-icons/icons/xls.png differ diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/readme.txt b/resources/DummyHTML/css/blueprint/plugins/link-icons/readme.txt new file mode 100755 index 0000000..3cb1b2c --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/link-icons/readme.txt @@ -0,0 +1,18 @@ +Link Icons +* Icons for links based on protocol or file type. + +This is not supported in IE versions < 7. + + +Credits +---------------------------------------------------------------- + +* Marc Morgan +* Olav Bjorkoy [bjorkoy.com] + + +Usage +---------------------------------------------------------------- + +1) Add this line to your HTML: + \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/plugins/link-icons/screen.css b/resources/DummyHTML/css/blueprint/plugins/link-icons/screen.css new file mode 100755 index 0000000..6d3d47f --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/link-icons/screen.css @@ -0,0 +1,40 @@ +/* -------------------------------------------------------------- + + link-icons.css + * Icons for links based on protocol or file type. + + See the Readme file in this folder for additional instructions. + +-------------------------------------------------------------- */ + +/* Use this class if a link gets an icon when it shouldn't. */ +body a.noicon { + background:transparent none !important; + padding:0 !important; + margin:0 !important; +} + +/* Make sure the icons are not cut */ +a[href^="http:"], a[href^="mailto:"], a[href^="http:"]:visited, +a[href$=".pdf"], a[href$=".doc"], a[href$=".xls"], a[href$=".rss"], +a[href$=".rdf"], a[href^="aim:"] { + padding:2px 22px 2px 0; + margin:-2px 0; + background-repeat: no-repeat; + background-position: right center; +} + +/* External links */ +a[href^="http:"] { background-image: url(icons/external.png); } +a[href^="mailto:"] { background-image: url(icons/email.png); } +a[href^="http:"]:visited { background-image: url(icons/visited.png); } + +/* Files */ +a[href$=".pdf"] { background-image: url(icons/pdf.png); } +a[href$=".doc"] { background-image: url(icons/doc.png); } +a[href$=".xls"] { background-image: url(icons/xls.png); } + +/* Misc */ +a[href$=".rss"], +a[href$=".rdf"] { background-image: url(icons/feed.png); } +a[href^="aim:"] { background-image: url(icons/im.png); } \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/plugins/rtl/readme.txt b/resources/DummyHTML/css/blueprint/plugins/rtl/readme.txt new file mode 100755 index 0000000..4c46535 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/rtl/readme.txt @@ -0,0 +1,10 @@ +RTL +* Mirrors Blueprint, so it can be used with Right-to-Left languages. + +By Ran Yaniv Hartstein, ranh.co.il + +Usage +---------------------------------------------------------------- + +1) Add this line to your HTML: + \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/plugins/rtl/screen.css b/resources/DummyHTML/css/blueprint/plugins/rtl/screen.css new file mode 100755 index 0000000..0304477 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/plugins/rtl/screen.css @@ -0,0 +1,109 @@ +/* -------------------------------------------------------------- + + rtl.css + * Mirrors Blueprint for left-to-right languages + + By Ran Yaniv Hartstein [ranh.co.il] + +-------------------------------------------------------------- */ + +body .container { direction: rtl; } +body .column { + float: right; + margin-right: 0; + margin-left: 10px; +} + +body div.last { margin-left: 0; } +body table .last { padding-left: 0; } + +body .append-1 { padding-right: 0; padding-left: 40px; } +body .append-2 { padding-right: 0; padding-left: 80px; } +body .append-3 { padding-right: 0; padding-left: 120px; } +body .append-4 { padding-right: 0; padding-left: 160px; } +body .append-5 { padding-right: 0; padding-left: 200px; } +body .append-6 { padding-right: 0; padding-left: 240px; } +body .append-7 { padding-right: 0; padding-left: 280px; } +body .append-8 { padding-right: 0; padding-left: 320px; } +body .append-9 { padding-right: 0; padding-left: 360px; } +body .append-10 { padding-right: 0; padding-left: 400px; } +body .append-11 { padding-right: 0; padding-left: 440px; } +body .append-12 { padding-right: 0; padding-left: 480px; } +body .append-13 { padding-right: 0; padding-left: 520px; } +body .append-14 { padding-right: 0; padding-left: 560px; } +body .append-15 { padding-right: 0; padding-left: 600px; } +body .append-16 { padding-right: 0; padding-left: 640px; } +body .append-17 { padding-right: 0; padding-left: 680px; } +body .append-18 { padding-right: 0; padding-left: 720px; } +body .append-19 { padding-right: 0; padding-left: 760px; } +body .append-20 { padding-right: 0; padding-left: 800px; } +body .append-21 { padding-right: 0; padding-left: 840px; } +body .append-22 { padding-right: 0; padding-left: 880px; } +body .append-23 { padding-right: 0; padding-left: 920px; } + +body .prepend-1 { padding-left: 0; padding-right: 40px; } +body .prepend-2 { padding-left: 0; padding-right: 80px; } +body .prepend-3 { padding-left: 0; padding-right: 120px; } +body .prepend-4 { padding-left: 0; padding-right: 160px; } +body .prepend-5 { padding-left: 0; padding-right: 200px; } +body .prepend-6 { padding-left: 0; padding-right: 240px; } +body .prepend-7 { padding-left: 0; padding-right: 280px; } +body .prepend-8 { padding-left: 0; padding-right: 320px; } +body .prepend-9 { padding-left: 0; padding-right: 360px; } +body .prepend-10 { padding-left: 0; padding-right: 400px; } +body .prepend-11 { padding-left: 0; padding-right: 440px; } +body .prepend-12 { padding-left: 0; padding-right: 480px; } +body .prepend-13 { padding-left: 0; padding-right: 520px; } +body .prepend-14 { padding-left: 0; padding-right: 560px; } +body .prepend-15 { padding-left: 0; padding-right: 600px; } +body .prepend-16 { padding-left: 0; padding-right: 640px; } +body .prepend-17 { padding-left: 0; padding-right: 680px; } +body .prepend-18 { padding-left: 0; padding-right: 720px; } +body .prepend-19 { padding-left: 0; padding-right: 760px; } +body .prepend-20 { padding-left: 0; padding-right: 800px; } +body .prepend-21 { padding-left: 0; padding-right: 840px; } +body .prepend-22 { padding-left: 0; padding-right: 880px; } +body .prepend-23 { padding-left: 0; padding-right: 920px; } + +body .border { + padding-right: 0; + padding-left: 4px; + margin-right: 0; + margin-left: 5px; + border-right: none; + border-left: 1px solid #eee; +} + +body .colborder { + padding-right: 0; + padding-left: 24px; + margin-right: 0; + margin-left: 25px; + border-right: none; + border-left: 1px solid #eee; +} + +body .pull-1 { margin-left: 0; margin-right: -40px; } +body .pull-2 { margin-left: 0; margin-right: -80px; } +body .pull-3 { margin-left: 0; margin-right: -120px; } +body .pull-4 { margin-left: 0; margin-right: -160px; } + +body .push-0 { margin: 0 18px 0 0; } +body .push-1 { margin: 0 18px 0 -40px; } +body .push-2 { margin: 0 18px 0 -80px; } +body .push-3 { margin: 0 18px 0 -120px; } +body .push-4 { margin: 0 18px 0 -160px; } +body .push-0, body .push-1, body .push-2, +body .push-3, body .push-4 { float: left; } + + +/* Typography with RTL support */ +body h1,body h2,body h3, +body h4,body h5,body h6 { font-family: Arial, sans-serif; } +html body { font-family: Arial, sans-serif; } +body pre,body code,body tt { font-family: monospace; } + +/* Mirror floats and margins on typographic elements */ +body p img { float: right; margin: 1.5em 0 1.5em 1.5em; } +body dd, body ul, body ol { margin-left: 0; margin-right: 1.5em;} +body td, body th { text-align:right; } \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/print.css b/resources/DummyHTML/css/blueprint/print.css new file mode 100755 index 0000000..e4a7973 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/print.css @@ -0,0 +1,30 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.8 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* print.css */ +body {line-height:1.5;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;color:#000;background:none;font-size:10pt;} +.container {background:none;} +hr {background:#ccc;color:#ccc;width:100%;height:2px;margin:2em 0;padding:0;border:none;} +hr.space {background:#fff;color:#fff;} +h1, h2, h3, h4, h5, h6 {font-family:"Helvetica Neue", Arial, "Lucida Grande", sans-serif;} +code {font:.9em "Courier New", Monaco, Courier, monospace;} +img {float:left;margin:1.5em 1.5em 1.5em 0;} +a img {border:none;} +p img.top {margin-top:0;} +blockquote {margin:1.5em;padding:1em;font-style:italic;font-size:.9em;} +.small {font-size:.9em;} +.large {font-size:1.1em;} +.quiet {color:#999;} +.hide {display:none;} +a:link, a:visited {background:transparent;font-weight:700;text-decoration:underline;} +a:link:after, a:visited:after {content:" (" attr(href) ")";font-size:90%;} \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/screen.css b/resources/DummyHTML/css/blueprint/screen.css new file mode 100755 index 0000000..d8285ab --- /dev/null +++ b/resources/DummyHTML/css/blueprint/screen.css @@ -0,0 +1,256 @@ +/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.8 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */ + +/* reset.css */ +html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} +body {line-height:1.5;} +table {border-collapse:separate;border-spacing:0;} +caption, th, td {text-align:left;font-weight:normal;} +table, td, th {vertical-align:middle;} +blockquote:before, blockquote:after, q:before, q:after {content:"";} +blockquote, q {quotes:"" "";} +a img {border:none;} + +/* typography.css */ +body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} +h1, h2, h3, h4, h5, h6 {font-weight:normal;} +h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} +h2 {font-size:2em;margin-bottom:0.75em;} +h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} +h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} +h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} +h6 {font-size:1em;font-weight:bold;} +h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} +p {margin:0 0 1.5em;} +p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} +p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} +a:focus, a:hover {color:#000;} +a {color:#009;text-decoration:underline;} +blockquote {margin:1.5em;color:#666;font-style:italic;} +strong {font-weight:bold;} +em, dfn {font-style:italic;} +dfn {font-weight:bold;} +sup, sub {line-height:0;} +abbr, acronym {border-bottom:1px dotted #666;} +address {margin:0 0 1.5em;font-style:italic;} +del {color:#666;} +pre {margin:1.5em 0;white-space:pre;} +pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} +li ul, li ol {margin:0 1.5em;} +ul, ol {margin:0 1.5em 1.5em 1.5em;} +ul {list-style-type:disc;} +ol {list-style-type:decimal;} +dl {margin:0 0 1.5em 0;} +dl dt {font-weight:bold;} +dd {margin-left:1.5em;} +table {margin-bottom:1.4em;width:100%;} +th {font-weight:bold;} +thead th {background:#c3d9ff;} +th, td, caption {padding:4px 10px 4px 5px;} +tr.even td {background:#e5ecf9;} +tfoot {font-style:italic;} +caption {background:#eee;} +.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} +.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} +.hide {display:none;} +.quiet {color:#666;} +.loud {color:#000;} +.highlight {background:#ff0;} +.added {background:#060;color:#fff;} +.removed {background:#900;color:#fff;} +.first {margin-left:0;padding-left:0;} +.last {margin-right:0;padding-right:0;} +.top {margin-top:0;padding-top:0;} +.bottom {margin-bottom:0;padding-bottom:0;} + +/* forms.css */ +label {font-weight:bold;} +fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;} +legend {font-weight:bold;font-size:1.2em;} +input[type=text], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;} +input[type=text]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;} +input[type=text], input.text, input.title, textarea, select {margin:0.5em 0;} +input.text, input.title {width:300px;padding:5px;} +input.title {font-size:1.5em;} +textarea {width:390px;height:250px;padding:5px;} +input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;} +form.inline {line-height:3;} +form.inline p {margin-bottom:0;} +.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;} +.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;} +.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;} +.success {background:#E6EFC2;color:#264409;border-color:#C6D880;} +.error a {color:#8a1f11;} +.notice a {color:#514721;} +.success a {color:#264409;} + +/* grid.css */ +.container {width:950px;margin:0 auto;} +.showgrid {background:url(src/grid.png);} +.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;} +.last, div.last {margin-right:0;} +.span-1 {width:30px;} +.span-2 {width:70px;} +.span-3 {width:110px;} +.span-4 {width:150px;} +.span-5 {width:190px;} +.span-6 {width:230px;} +.span-7 {width:270px;} +.span-8 {width:310px;} +.span-9 {width:350px;} +.span-10 {width:390px;} +.span-11 {width:430px;} +.span-12 {width:470px;} +.span-13 {width:510px;} +.span-14 {width:550px;} +.span-15 {width:590px;} +.span-16 {width:630px;} +.span-17 {width:670px;} +.span-18 {width:710px;} +.span-19 {width:750px;} +.span-20 {width:790px;} +.span-21 {width:830px;} +.span-22 {width:870px;} +.span-23 {width:910px;} +.span-24, div.span-24 {width:950px;margin:0;} +input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;} +input.span-1, textarea.span-1 {width:18px!important;} +input.span-2, textarea.span-2 {width:58px!important;} +input.span-3, textarea.span-3 {width:98px!important;} +input.span-4, textarea.span-4 {width:138px!important;} +input.span-5, textarea.span-5 {width:178px!important;} +input.span-6, textarea.span-6 {width:218px!important;} +input.span-7, textarea.span-7 {width:258px!important;} +input.span-8, textarea.span-8 {width:298px!important;} +input.span-9, textarea.span-9 {width:338px!important;} +input.span-10, textarea.span-10 {width:378px!important;} +input.span-11, textarea.span-11 {width:418px!important;} +input.span-12, textarea.span-12 {width:458px!important;} +input.span-13, textarea.span-13 {width:498px!important;} +input.span-14, textarea.span-14 {width:538px!important;} +input.span-15, textarea.span-15 {width:578px!important;} +input.span-16, textarea.span-16 {width:618px!important;} +input.span-17, textarea.span-17 {width:658px!important;} +input.span-18, textarea.span-18 {width:698px!important;} +input.span-19, textarea.span-19 {width:738px!important;} +input.span-20, textarea.span-20 {width:778px!important;} +input.span-21, textarea.span-21 {width:818px!important;} +input.span-22, textarea.span-22 {width:858px!important;} +input.span-23, textarea.span-23 {width:898px!important;} +input.span-24, textarea.span-24 {width:938px!important;} +.append-1 {padding-right:40px;} +.append-2 {padding-right:80px;} +.append-3 {padding-right:120px;} +.append-4 {padding-right:160px;} +.append-5 {padding-right:200px;} +.append-6 {padding-right:240px;} +.append-7 {padding-right:280px;} +.append-8 {padding-right:320px;} +.append-9 {padding-right:360px;} +.append-10 {padding-right:400px;} +.append-11 {padding-right:440px;} +.append-12 {padding-right:480px;} +.append-13 {padding-right:520px;} +.append-14 {padding-right:560px;} +.append-15 {padding-right:600px;} +.append-16 {padding-right:640px;} +.append-17 {padding-right:680px;} +.append-18 {padding-right:720px;} +.append-19 {padding-right:760px;} +.append-20 {padding-right:800px;} +.append-21 {padding-right:840px;} +.append-22 {padding-right:880px;} +.append-23 {padding-right:920px;} +.prepend-1 {padding-left:40px;} +.prepend-2 {padding-left:80px;} +.prepend-3 {padding-left:120px;} +.prepend-4 {padding-left:160px;} +.prepend-5 {padding-left:200px;} +.prepend-6 {padding-left:240px;} +.prepend-7 {padding-left:280px;} +.prepend-8 {padding-left:320px;} +.prepend-9 {padding-left:360px;} +.prepend-10 {padding-left:400px;} +.prepend-11 {padding-left:440px;} +.prepend-12 {padding-left:480px;} +.prepend-13 {padding-left:520px;} +.prepend-14 {padding-left:560px;} +.prepend-15 {padding-left:600px;} +.prepend-16 {padding-left:640px;} +.prepend-17 {padding-left:680px;} +.prepend-18 {padding-left:720px;} +.prepend-19 {padding-left:760px;} +.prepend-20 {padding-left:800px;} +.prepend-21 {padding-left:840px;} +.prepend-22 {padding-left:880px;} +.prepend-23 {padding-left:920px;} +div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;} +div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;} +.pull-1 {margin-left:-40px;} +.pull-2 {margin-left:-80px;} +.pull-3 {margin-left:-120px;} +.pull-4 {margin-left:-160px;} +.pull-5 {margin-left:-200px;} +.pull-6 {margin-left:-240px;} +.pull-7 {margin-left:-280px;} +.pull-8 {margin-left:-320px;} +.pull-9 {margin-left:-360px;} +.pull-10 {margin-left:-400px;} +.pull-11 {margin-left:-440px;} +.pull-12 {margin-left:-480px;} +.pull-13 {margin-left:-520px;} +.pull-14 {margin-left:-560px;} +.pull-15 {margin-left:-600px;} +.pull-16 {margin-left:-640px;} +.pull-17 {margin-left:-680px;} +.pull-18 {margin-left:-720px;} +.pull-19 {margin-left:-760px;} +.pull-20 {margin-left:-800px;} +.pull-21 {margin-left:-840px;} +.pull-22 {margin-left:-880px;} +.pull-23 {margin-left:-920px;} +.pull-24 {margin-left:-960px;} +.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;} +.push-1 {margin:0 -40px 1.5em 40px;} +.push-2 {margin:0 -80px 1.5em 80px;} +.push-3 {margin:0 -120px 1.5em 120px;} +.push-4 {margin:0 -160px 1.5em 160px;} +.push-5 {margin:0 -200px 1.5em 200px;} +.push-6 {margin:0 -240px 1.5em 240px;} +.push-7 {margin:0 -280px 1.5em 280px;} +.push-8 {margin:0 -320px 1.5em 320px;} +.push-9 {margin:0 -360px 1.5em 360px;} +.push-10 {margin:0 -400px 1.5em 400px;} +.push-11 {margin:0 -440px 1.5em 440px;} +.push-12 {margin:0 -480px 1.5em 480px;} +.push-13 {margin:0 -520px 1.5em 520px;} +.push-14 {margin:0 -560px 1.5em 560px;} +.push-15 {margin:0 -600px 1.5em 600px;} +.push-16 {margin:0 -640px 1.5em 640px;} +.push-17 {margin:0 -680px 1.5em 680px;} +.push-18 {margin:0 -720px 1.5em 720px;} +.push-19 {margin:0 -760px 1.5em 760px;} +.push-20 {margin:0 -800px 1.5em 800px;} +.push-21 {margin:0 -840px 1.5em 840px;} +.push-22 {margin:0 -880px 1.5em 880px;} +.push-23 {margin:0 -920px 1.5em 920px;} +.push-24 {margin:0 -960px 1.5em 960px;} +.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;} +.prepend-top {margin-top:1.5em;} +.append-bottom {margin-bottom:1.5em;} +.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;} +hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;} +hr.space {background:#fff;color:#fff;} +.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;} +.clearfix, .container {display:block;} +.clear {clear:both;} \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/src/forms.css b/resources/DummyHTML/css/blueprint/src/forms.css new file mode 100755 index 0000000..e1994f7 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/forms.css @@ -0,0 +1,65 @@ +/* -------------------------------------------------------------- + + forms.css + * Sets up some default styling for forms + * Gives you classes to enhance your forms + + Usage: + * For text fields, use class .title or .text + * For inline forms, use .inline (even when using columns) + +-------------------------------------------------------------- */ + +label { font-weight: bold; } +fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; } +legend { font-weight: bold; font-size:1.2em; } + + +/* Form fields +-------------------------------------------------------------- */ + +input[type=text], +input.text, input.title, +textarea, select { + background-color:#fff; + border:1px solid #bbb; +} +input[type=text]:focus, +input.text:focus, input.title:focus, +textarea:focus, select:focus { + border-color:#666; +} + +input[type=text], +input.text, input.title, +textarea, select { + margin:0.5em 0; +} + +input.text, +input.title { width: 300px; padding:5px; } +input.title { font-size:1.5em; } +textarea { width: 390px; height: 250px; padding:5px; } + +input[type=checkbox], input[type=radio], +input.checkbox, input.radio { + position:relative; top:.25em; +} + +form.inline { line-height:3; } +form.inline p { margin-bottom:0; } + + +/* Success, notice and error boxes +-------------------------------------------------------------- */ + +.error, +.notice, +.success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; } + +.error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; } +.notice { background: #FFF6BF; color: #514721; border-color: #FFD324; } +.success { background: #E6EFC2; color: #264409; border-color: #C6D880; } +.error a { color: #8a1f11; } +.notice a { color: #514721; } +.success a { color: #264409; } diff --git a/resources/DummyHTML/css/blueprint/src/grid.css b/resources/DummyHTML/css/blueprint/src/grid.css new file mode 100755 index 0000000..2eea31e --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/grid.css @@ -0,0 +1,281 @@ +/* -------------------------------------------------------------- + + grid.css + * Sets up an easy-to-use grid of 24 columns. + + By default, the grid is 950px wide, with 24 columns + spanning 30px, and a 10px margin between columns. + + If you need fewer or more columns, namespaces or semantic + element names, use the compressor script (lib/compress.rb) + + Note: Changes made in this file will not be applied when + using the compressor: make changes in lib/blueprint/grid.css.rb + +-------------------------------------------------------------- */ + +/* A container should group all your columns. */ +.container { + width: 950px; + margin: 0 auto; +} + +/* Use this class on any div.span / container to see the grid. */ +.showgrid { + background: url(src/grid.png); +} + + +/* Columns +-------------------------------------------------------------- */ + +/* Sets up basic grid floating and margin. */ +.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 { + float: left; + margin-right: 10px; +} + +/* The last column in a row needs this class. */ +.last, div.last { margin-right: 0; } + +/* Use these classes to set the width of a column. */ +.span-1 {width: 30px;} + +.span-2 {width: 70px;} +.span-3 {width: 110px;} +.span-4 {width: 150px;} +.span-5 {width: 190px;} +.span-6 {width: 230px;} +.span-7 {width: 270px;} +.span-8 {width: 310px;} +.span-9 {width: 350px;} +.span-10 {width: 390px;} +.span-11 {width: 430px;} +.span-12 {width: 470px;} +.span-13 {width: 510px;} +.span-14 {width: 550px;} +.span-15 {width: 590px;} +.span-16 {width: 630px;} +.span-17 {width: 670px;} +.span-18 {width: 710px;} +.span-19 {width: 750px;} +.span-20 {width: 790px;} +.span-21 {width: 830px;} +.span-22 {width: 870px;} +.span-23 {width: 910px;} +.span-24, div.span-24 { width:950px; margin:0; } + +/* Use these classes to set the width of an input. */ +input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 { + border-left-width: 1px!important; + border-right-width: 1px!important; + padding-left: 5px!important; + padding-right: 5px!important; +} + +input.span-1, textarea.span-1 { width: 18px!important; } +input.span-2, textarea.span-2 { width: 58px!important; } +input.span-3, textarea.span-3 { width: 98px!important; } +input.span-4, textarea.span-4 { width: 138px!important; } +input.span-5, textarea.span-5 { width: 178px!important; } +input.span-6, textarea.span-6 { width: 218px!important; } +input.span-7, textarea.span-7 { width: 258px!important; } +input.span-8, textarea.span-8 { width: 298px!important; } +input.span-9, textarea.span-9 { width: 338px!important; } +input.span-10, textarea.span-10 { width: 378px!important; } +input.span-11, textarea.span-11 { width: 418px!important; } +input.span-12, textarea.span-12 { width: 458px!important; } +input.span-13, textarea.span-13 { width: 498px!important; } +input.span-14, textarea.span-14 { width: 538px!important; } +input.span-15, textarea.span-15 { width: 578px!important; } +input.span-16, textarea.span-16 { width: 618px!important; } +input.span-17, textarea.span-17 { width: 658px!important; } +input.span-18, textarea.span-18 { width: 698px!important; } +input.span-19, textarea.span-19 { width: 738px!important; } +input.span-20, textarea.span-20 { width: 778px!important; } +input.span-21, textarea.span-21 { width: 818px!important; } +input.span-22, textarea.span-22 { width: 858px!important; } +input.span-23, textarea.span-23 { width: 898px!important; } +input.span-24, textarea.span-24 { width: 938px!important; } + +/* Add these to a column to append empty cols. */ + +.append-1 { padding-right: 40px;} +.append-2 { padding-right: 80px;} +.append-3 { padding-right: 120px;} +.append-4 { padding-right: 160px;} +.append-5 { padding-right: 200px;} +.append-6 { padding-right: 240px;} +.append-7 { padding-right: 280px;} +.append-8 { padding-right: 320px;} +.append-9 { padding-right: 360px;} +.append-10 { padding-right: 400px;} +.append-11 { padding-right: 440px;} +.append-12 { padding-right: 480px;} +.append-13 { padding-right: 520px;} +.append-14 { padding-right: 560px;} +.append-15 { padding-right: 600px;} +.append-16 { padding-right: 640px;} +.append-17 { padding-right: 680px;} +.append-18 { padding-right: 720px;} +.append-19 { padding-right: 760px;} +.append-20 { padding-right: 800px;} +.append-21 { padding-right: 840px;} +.append-22 { padding-right: 880px;} +.append-23 { padding-right: 920px;} + +/* Add these to a column to prepend empty cols. */ + +.prepend-1 { padding-left: 40px;} +.prepend-2 { padding-left: 80px;} +.prepend-3 { padding-left: 120px;} +.prepend-4 { padding-left: 160px;} +.prepend-5 { padding-left: 200px;} +.prepend-6 { padding-left: 240px;} +.prepend-7 { padding-left: 280px;} +.prepend-8 { padding-left: 320px;} +.prepend-9 { padding-left: 360px;} +.prepend-10 { padding-left: 400px;} +.prepend-11 { padding-left: 440px;} +.prepend-12 { padding-left: 480px;} +.prepend-13 { padding-left: 520px;} +.prepend-14 { padding-left: 560px;} +.prepend-15 { padding-left: 600px;} +.prepend-16 { padding-left: 640px;} +.prepend-17 { padding-left: 680px;} +.prepend-18 { padding-left: 720px;} +.prepend-19 { padding-left: 760px;} +.prepend-20 { padding-left: 800px;} +.prepend-21 { padding-left: 840px;} +.prepend-22 { padding-left: 880px;} +.prepend-23 { padding-left: 920px;} + + +/* Border on right hand side of a column. */ +div.border { + padding-right: 4px; + margin-right: 5px; + border-right: 1px solid #eee; +} + +/* Border with more whitespace, spans one column. */ +div.colborder { + padding-right: 24px; + margin-right: 25px; + border-right: 1px solid #eee; +} + + +/* Use these classes on an element to push it into the +next column, or to pull it into the previous column. */ + + +.pull-1 { margin-left: -40px; } +.pull-2 { margin-left: -80px; } +.pull-3 { margin-left: -120px; } +.pull-4 { margin-left: -160px; } +.pull-5 { margin-left: -200px; } +.pull-6 { margin-left: -240px; } +.pull-7 { margin-left: -280px; } +.pull-8 { margin-left: -320px; } +.pull-9 { margin-left: -360px; } +.pull-10 { margin-left: -400px; } +.pull-11 { margin-left: -440px; } +.pull-12 { margin-left: -480px; } +.pull-13 { margin-left: -520px; } +.pull-14 { margin-left: -560px; } +.pull-15 { margin-left: -600px; } +.pull-16 { margin-left: -640px; } +.pull-17 { margin-left: -680px; } +.pull-18 { margin-left: -720px; } +.pull-19 { margin-left: -760px; } +.pull-20 { margin-left: -800px; } +.pull-21 { margin-left: -840px; } +.pull-22 { margin-left: -880px; } +.pull-23 { margin-left: -920px; } +.pull-24 { margin-left: -960px; } + +.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;} + + +.push-1 { margin: 0 -40px 1.5em 40px; } +.push-2 { margin: 0 -80px 1.5em 80px; } +.push-3 { margin: 0 -120px 1.5em 120px; } +.push-4 { margin: 0 -160px 1.5em 160px; } +.push-5 { margin: 0 -200px 1.5em 200px; } +.push-6 { margin: 0 -240px 1.5em 240px; } +.push-7 { margin: 0 -280px 1.5em 280px; } +.push-8 { margin: 0 -320px 1.5em 320px; } +.push-9 { margin: 0 -360px 1.5em 360px; } +.push-10 { margin: 0 -400px 1.5em 400px; } +.push-11 { margin: 0 -440px 1.5em 440px; } +.push-12 { margin: 0 -480px 1.5em 480px; } +.push-13 { margin: 0 -520px 1.5em 520px; } +.push-14 { margin: 0 -560px 1.5em 560px; } +.push-15 { margin: 0 -600px 1.5em 600px; } +.push-16 { margin: 0 -640px 1.5em 640px; } +.push-17 { margin: 0 -680px 1.5em 680px; } +.push-18 { margin: 0 -720px 1.5em 720px; } +.push-19 { margin: 0 -760px 1.5em 760px; } +.push-20 { margin: 0 -800px 1.5em 800px; } +.push-21 { margin: 0 -840px 1.5em 840px; } +.push-22 { margin: 0 -880px 1.5em 880px; } +.push-23 { margin: 0 -920px 1.5em 920px; } +.push-24 { margin: 0 -960px 1.5em 960px; } + +.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: right; position:relative;} + + +/* Misc classes and elements +-------------------------------------------------------------- */ + +/* In case you need to add a gutter above/below an element */ +.prepend-top { + margin-top:1.5em; +} +.append-bottom { + margin-bottom:1.5em; +} + +/* Use a .box to create a padded box inside a column. */ +.box { + padding: 1.5em; + margin-bottom: 1.5em; + background: #E5ECF9; +} + +/* Use this to create a horizontal ruler across a column. */ +hr { + background: #ddd; + color: #ddd; + clear: both; + float: none; + width: 100%; + height: .1em; + margin: 0 0 1.45em; + border: none; +} +hr.space { + background: #fff; + color: #fff; +} + + +/* Clearing floats without extra markup + Based on How To Clear Floats Without Structural Markup by PiE + [http://www.positioniseverything.net/easyclearing.html] */ + +.clearfix:after, .container:after { + content: "\0020"; + display: block; + height: 0; + clear: both; + visibility: hidden; + overflow:hidden; +} +.clearfix, .container {display: block;} + +/* Regular clearing + apply to column that should drop below previous ones. */ + +.clear { clear:both; } diff --git a/resources/DummyHTML/css/blueprint/src/grid.png b/resources/DummyHTML/css/blueprint/src/grid.png new file mode 100755 index 0000000..885d981 Binary files /dev/null and b/resources/DummyHTML/css/blueprint/src/grid.png differ diff --git a/resources/DummyHTML/css/blueprint/src/ie.css b/resources/DummyHTML/css/blueprint/src/ie.css new file mode 100755 index 0000000..f32321e --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/ie.css @@ -0,0 +1,76 @@ +/* -------------------------------------------------------------- + + ie.css + + Contains every hack for Internet Explorer, + so that our core files stay sweet and nimble. + +-------------------------------------------------------------- */ + +/* Make sure the layout is centered in IE5 */ +body { text-align: center; } +.container { text-align: left; } + +/* Fixes IE margin bugs */ +* html .column, * html div.span-1, * html div.span-2, +* html div.span-3, * html div.span-4, * html div.span-5, +* html div.span-6, * html div.span-7, * html div.span-8, +* html div.span-9, * html div.span-10, * html div.span-11, +* html div.span-12, * html div.span-13, * html div.span-14, +* html div.span-15, * html div.span-16, * html div.span-17, +* html div.span-18, * html div.span-19, * html div.span-20, +* html div.span-21, * html div.span-22, * html div.span-23, +* html div.span-24 { overflow-x: hidden; } + + +/* Elements +-------------------------------------------------------------- */ + +/* Fixes incorrect styling of legend in IE6. */ +* html legend { margin:0px -8px 16px 0; padding:0; } + +/* Fixes incorrect placement of ol numbers in IE6/7. */ +ol { margin-left:2em; } + +/* Fixes wrong line-height on sup/sub in IE. */ +sup { vertical-align: text-top; } +sub { vertical-align: text-bottom; } + +/* Fixes IE7 missing wrapping of code elements. */ +html>body p code { *white-space: normal; } + +/* IE 6&7 has problems with setting proper
margins. */ +hr { margin: -8px auto 11px; } + +/* Explicitly set interpolation, allowing dynamically resized images to not look horrible */ +img { -ms-interpolation-mode: bicubic; } + +/* Clearing +-------------------------------------------------------------- */ + +/* Makes clearfix actually work in IE */ +.clearfix, .container {display: inline-block;} +* html .clearfix, +* html .container {height: 1%;} + + +/* Forms +-------------------------------------------------------------- */ + +/* Fixes padding on fieldset */ +fieldset {padding-top: 0;} + +/* Fixes rule that IE 6 ignores */ +input.text, input.title {background-color:#fff;border:1px solid #bbb;} +input.text:focus, input.title:focus {border-color:#666;} +input.text, input.title, textarea, select {margin:0.5em 0;} +input.checkbox, input.radio {position:relative; top:.25em;} + +/* Fixes alignment of inline form elements */ +form.inline div, form.inline p {vertical-align:middle;} +form.inline label {position:relative;top:-0.25em;} +form.inline input.checkbox, form.inline input.radio, +form.inline input.button, form.inline button { + margin:0.5em 0; +} +button, input.button {position:relative;top:0.25em;} \ No newline at end of file diff --git a/resources/DummyHTML/css/blueprint/src/print.css b/resources/DummyHTML/css/blueprint/src/print.css new file mode 100755 index 0000000..95acbc2 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/print.css @@ -0,0 +1,85 @@ +/* -------------------------------------------------------------- + + print.css + * Gives you some sensible styles for printing pages. + * See Readme file in this directory for further instructions. + + Some additions you'll want to make, customized to your markup: + #header, #footer, #navigation { display:none; } + +-------------------------------------------------------------- */ + +body { + line-height: 1.5; + font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; + color:#000; + background: none; + font-size: 10pt; +} + + +/* Layout +-------------------------------------------------------------- */ + +.container { + background: none; +} + +hr { + background:#ccc; + color:#ccc; + width:100%; + height:2px; + margin:2em 0; + padding:0; + border:none; +} +hr.space { + background: #fff; + color: #fff; +} + + +/* Text +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; } +code { font:.9em "Courier New", Monaco, Courier, monospace; } + +img { float:left; margin:1.5em 1.5em 1.5em 0; } +a img { border:none; } +p img.top { margin-top: 0; } + +blockquote { + margin:1.5em; + padding:1em; + font-style:italic; + font-size:.9em; +} + +.small { font-size: .9em; } +.large { font-size: 1.1em; } +.quiet { color: #999; } +.hide { display:none; } + + +/* Links +-------------------------------------------------------------- */ + +a:link, a:visited { + background: transparent; + font-weight:700; + text-decoration: underline; +} + +a:link:after, a:visited:after { + content: " (" attr(href) ")"; + font-size: 90%; +} + +/* If you're having trouble printing relative links, uncomment and customize this: + (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */ + +/* a[href^="/"]:after { + content: " (http://www.yourdomain.com" attr(href) ") "; +} */ diff --git a/resources/DummyHTML/css/blueprint/src/reset.css b/resources/DummyHTML/css/blueprint/src/reset.css new file mode 100755 index 0000000..fc0788c --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/reset.css @@ -0,0 +1,38 @@ +/* -------------------------------------------------------------- + + reset.css + * Resets default browser CSS. + +-------------------------------------------------------------- */ + +html, body, div, span, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, code, +del, dfn, em, img, q, dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; +} + +body { + line-height: 1.5; +} + +/* Tables still need 'cellspacing="0"' in the markup. */ +table { border-collapse: separate; border-spacing: 0; } +caption, th, td { text-align: left; font-weight: normal; } +table, td, th { vertical-align: middle; } + +/* Remove possible quote marks (") from ,
. */ +blockquote:before, blockquote:after, q:before, q:after { content: ""; } +blockquote, q { quotes: "" ""; } + +/* Remove annoying border on linked images. */ +a img { border: none; } diff --git a/resources/DummyHTML/css/blueprint/src/typography.css b/resources/DummyHTML/css/blueprint/src/typography.css new file mode 100755 index 0000000..798c721 --- /dev/null +++ b/resources/DummyHTML/css/blueprint/src/typography.css @@ -0,0 +1,105 @@ +/* -------------------------------------------------------------- + + typography.css + * Sets up some sensible default typography. + +-------------------------------------------------------------- */ + +/* Default font settings. + The font-size percentage is of 16px. (0.75 * 16px = 12px) */ +body { + font-size: 75%; + color: #222; + background: #fff; + font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; +} + + +/* Headings +-------------------------------------------------------------- */ + +h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; } + +h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; } +h2 { font-size: 2em; margin-bottom: 0.75em; } +h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; } +h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; } +h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; } +h6 { font-size: 1em; font-weight: bold; } + +h1 img, h2 img, h3 img, +h4 img, h5 img, h6 img { + margin: 0; +} + + +/* Text elements +-------------------------------------------------------------- */ + +p { margin: 0 0 1.5em; } +p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; } +p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; } + +a:focus, +a:hover { color: #000; } +a { color: #009; text-decoration: underline; } + +blockquote { margin: 1.5em; color: #666; font-style: italic; } +strong { font-weight: bold; } +em,dfn { font-style: italic; } +dfn { font-weight: bold; } +sup, sub { line-height: 0; } + +abbr, +acronym { border-bottom: 1px dotted #666; } +address { margin: 0 0 1.5em; font-style: italic; } +del { color:#666; } + +pre { margin: 1.5em 0; white-space: pre; } +pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; } + + +/* Lists +-------------------------------------------------------------- */ + +li ul, +li ol { margin:0 1.5em; } +ul, ol { margin: 0 1.5em 1.5em 1.5em; } + +ul { list-style-type: disc; } +ol { list-style-type: decimal; } + +dl { margin: 0 0 1.5em 0; } +dl dt { font-weight: bold; } +dd { margin-left: 1.5em;} + + +/* Tables +-------------------------------------------------------------- */ + +table { margin-bottom: 1.4em; width:100%; } +th { font-weight: bold; } +thead th { background: #c3d9ff; } +th,td,caption { padding: 4px 10px 4px 5px; } +tr.even td { background: #e5ecf9; } +tfoot { font-style: italic; } +caption { background: #eee; } + + +/* Misc classes +-------------------------------------------------------------- */ + +.small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; } +.large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; } +.hide { display: none; } + +.quiet { color: #666; } +.loud { color: #000; } +.highlight { background:#ff0; } +.added { background:#060; color: #fff; } +.removed { background:#900; color: #fff; } + +.first { margin-left:0; padding-left:0; } +.last { margin-right:0; padding-right:0; } +.top { margin-top:0; padding-top:0; } +.bottom { margin-bottom:0; padding-bottom:0; } diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/.gitignore b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/.gitignore new file mode 100755 index 0000000..df42b9e --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/.gitignore @@ -0,0 +1,4 @@ +*.svn +*.DS_Store +tmp/* +lib/settings.yml \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/AUTHORS.textile b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/AUTHORS.textile new file mode 100755 index 0000000..e8c3d81 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/AUTHORS.textile @@ -0,0 +1,42 @@ +h1. Blueprint CSS Framework Authors and Contributors + +Blueprint is based on the work of many talented people. It is +through their good intentions we are allowed to use many of the +techniques found in the framework. + +h2. Current Team + +Blueprint was realized and maintained through version 0.7.1 by +"Olav Bjorkoy":http://bjorkoy.com who has sinced passed the torch +to the current team. They are: + +Admins: +* "Christian Montoya":http://christianmontoya.net +* "Josh Clayton":http://jdclayton.com + +Contributors: +* "Glenn Rempe":http://blog.rempe.us/ +* "Chris Eppstein":http://twitter.com/chriseppstein +* "Sean K. Stewart":http://seankstewart.com/ + +h2. Original CSS authors + +The first iteration of Blueprint was built upon many conventions +and ideas that were developed by true CSS experts. + +The grid and typography is based on work by: +* "Jeff Croft":http://jeffcroft.com +* "Nathan Borror":http://www.playgroundblues.com +* "Christian Metts":http://mintchaos.com +* "Wilson Miner":http://www.wilsonminer.com + +The CSS reset is based on work by: +* "Eric Meyer":http://www.meyerweb.com/eric + +The Fancy Type plugin is based on work by: +* "Mark Boulton":http://www.markboulton.co.uk +* "Typogrify":http://typogrify.googlecode.com + +(However, remember that these people are not involved with the +framework, so please don't waste their or your time asking them +for support.) diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/CHANGELOG b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/CHANGELOG new file mode 100755 index 0000000..3600674 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/CHANGELOG @@ -0,0 +1,159 @@ +Blueprint CSS Framework Change Log +---------------------------------------------------------------- + +Version 0.9 - Date May 29, 2009 +-- + New features: + * Changed all conditional comments to [if lt IE 8] for IE 8 compatibility [CMM] + * Updated forms code to align inline form elements, with additions for IE 6 [CMM] + * Use
for inline forms + * Use classes "text", "button", "radio" and "checkbox" on inputs for IE 6 compatibility + + +Version 0.8 - Date November 11, 2008 +-- + New features: + * Much of the flexibility of 0.6 has been pushed back into the core [CMM] + * Plugins from 0.6 are now back in the core [CMM] + + Bug fixes: + * Lots. See http://blueprintcss.lighthouseapp.com/projects/15318-blueprint-css + + +Version 0.7.1 - Date February 21, 2008 +-- + New features: + * Rubydoc for compressor [JC] + + Bug fixes: + * Fixed bug in the compressor related to Rubygems. [JC] + * should be inline, not block. [OFB] + + +Version 0.7 - February 19, 2008 +-- + New features: + * New directory structure. [OFB] + * New compressor script. [JC] + * Ability to set custom namespace for BP classes. [JC] + * Optional custom column count and widths. [JC] + * Ability to add your own CSS files. [JC] + * Custom output paths. [JC] + * Support for multiple projects. [JC] + * Semantic class naming from CSS rules. [JC] + * Automatic compression for plugins. [JC] + * Compressed version of ie.css. [OFB] + * Alternating table row colors. [OFB] + * Added class .showgrid to see the grid of any column or container. [OFB] + * No need for .column! You now have to use divs for columns, + but you can still use span/prepend/append for other elements as well. + In other words, div.span-x now implies that the element is a .column. [OFB] + + Bug fixes: + * Sidebar alignment in tests/sample.html. [OFB] + * Line-height on sub/sup. [OFB] + * Clearfix not properly applied to container. [OFB] + * Misc validation errors in tests. [OFB] + * Proper margin on address. [OFB] + * Unwanted bottom margin on nested lists. [OFB] + * Form labels with unwanted fancy-type indentation. [OFB] + * Proper margin on all form elements. [OFB] + * No margins for images in headings. [OFB] + * Push-x bottom margin. [OFB] + * Vertical align set to middle on tables. [OFB] + * Improved .notice, .error and .success color contrast. [OFB] + * Size of input[text]. [OFB] + * Baseline alignment of

. [OFB] + + Misc: + * Improved structure in print.css. [OFB] + * Dual-licensed under MIT and GPL licenses. [OFB] + * Changed name of .clear to .clearfix, and added .clear (clear:both;). [OFB] + + +Version 0.6 - September 21, 2007 +-- + * Created a new plugin, "iepngfix", that adds support for PNG transparency in IE5.5+ [OFB] + * Added an IE stylesheet, updated the test files and the readme accordingly [OFB] + * Re-added improved support for em units [OFB] + * Lots of minor changes to typography.css and reset.css, provided by Christian Montoya [OFB] + * Extracted the fancy typography section in typography.css to a new plugin [OFB] + * Extracted the support for CSS buttons into a new plugin. [OFB] + * Added new plugin structure. [OFB] + * Changed some default fonts so that BP works better with ClearType in XP [OFB] + * Re-added the hack for clearing floats without extra markup. [OFB] + * Added Changelog.txt to track changes in each release. [GR] + * Cleaned up and rationalized SVN dir structure. [GR, OFB] + * print.css : removed reference to 'baseline.png' as it no longer exists. [GR] + * grid.css : removed reference to '.first' css class as it no longer exists. [GR] + * Added append-13 to append-23 and prepend-13 to prepend-23 to allow pushing elements + to both extreme sides of the grid. Added test cases to tests/grid.css [GR] + * Moved test sample files to blueprint/tests sub-directory so tests stay with the code. [GR] + * Consolidated all references to release version number to screen.css [OFB] + * Added ruby script (generate_compressed_css.rb) to scripts dir, and 'csstidy' binary (OS X Universal) + for generating tidied version of Blueprint (lib/compressed.css). + * Consolidated test pages into one single page (test.html). Uses compressed stylesheet by default. This ensures test of + the chain of generation. (todo) Intention is to delete other test files if single file works well. (todo) ensure singular + test file contains latest changes to other test files. [GR] + * Moved the blueprint framework to its own folder in the package, so that the tests, script, + license and readme don't clutter up our BP folder. [OFB] + * Re-saved grid.png with Photoshop to remove Fireworks data which was bloating it. + Now its about 3KB instead of 40+KB. Resolves Issue 22. [GR] + * Moved compressed files to new compressed dir [OFB] + * print.css is now also being generated by the compressor ruby script and is available for use. + * Added new script 'validate_css.rb' which will validate all css files and present a report with + a local java binary of the W3C validator. + * Created an experimental CSS classes plugin, by popular demand. [OFB] + * Improved handling of multi-line headings. [OFB] + * Improved styling of s, you may now use .span classes on
s to create tables that follow the grid. [OFB] + * Added support for indented paragraphs to the Fancy-type plugin. [OFB] + * Added a new plugin: link-icons. [OFB] + * Seperated the plugins tests into their own file. [OFB] + * Re-structured some of the tests.html sections. [OFB] + * Added class ".colborder" to grid.css. [OFB] + * Added .error, .notice and .success classes to typography.css. [OFB] + * Added tests for more elements which gets reset in reset.css [OFB, GR] + * Added forms.css, awaiting implementation. Moved form styling from typography.css [OFB] + * Updated compressor script to include forms.css [OFB] + * Improved forms.html tests for upcoming forms.css implementation. This will change based on the + markup that forms.css will use. [OFB] + * Fixed clearing image in button element bug in buttons.css [OFB] + * Fixed bug where IE6 clips pushed/pulled elements. [OFB] + * Fixed typo in grid.css formula. [OFB] + * Fixed varying formatting across core files. [OFB] + * Fixed legend element in IE6. [OFB] + * Fixed indentation in test files. [OFB] + * Removed tests for plugins not bundled with the next release. [OFB] + * Improved styling of

. [OFB] + * Fixed indentation bug in ul/ol, removed some redundant styling. [OFB] + * Fixed validation errors in tests. [OFB] + * Changed IE stylesheet condition comment to include all versions of IE. [OFB] + * Started on a new approach for the PNG plugin. Will not be included in this release. [OFB] + * Fixed incorrect rendering of ol in IE6/7. [OFB] + * Created a new, spiffier sample page. [OFB] + + +Version 0.5 - August 28, 2007 +-- + * Changed grid width from 14 to 24 columns [OFB] + * Removed 'first' CSS class and the need to apply it to the first column in a row of columns. [OFB] + * Reverted to using pixels instead of em units to specify vertical spacing due to baseline issues with + all browsers except Firefox. [OFB] + * New set of default fonts. (Experimental) [OFB] + * Added test files [OFB] + + +Version 0.4 - August 11, 2007 +-- + * All font sizes and vertical margins are now elastic, through the use of em units. + Resizing works great in every tested browser. [OFB] + * Comes with a new, compressed version of BP, which reduces the size of the core files by 60 percent. [OFB] + * Support for incremental leading, contributed by Mark Boulton. [OFB] + * Adds perfected CSS buttons, by Kevin Hale of Particletree fame. [OFB] + * Fixes all known IE bugs. [OFB] + * Loads of minor fixes and additions. [OFB] + + +Version 0.3 - March 8, 2007 +-- + * Initial release of Blueprint (versions 0.1 and 0.2 were internal only). diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/LICENSE b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/LICENSE new file mode 100755 index 0000000..b3d7647 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/LICENSE @@ -0,0 +1,314 @@ +Blueprint CSS Framework License +---------------------------------------------------------------- + +Copyright (c) 2007-2008 blueprintcss.org + +The Blueprint CSS Framework is available for use in all personal or +commercial projects, under both the (modified) MIT and the GPL license. You +may choose the one that fits your project. + + +The (modified) MIT License +---------------------------------------------------------------- + +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, sub-license, 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 every other copyright notice found in this +software, and all the attributions in every file, 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 NON-INFRINGEMENT. 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. + + +The GPL License +---------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/README.textile b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/README.textile new file mode 100755 index 0000000..f94173a --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/README.textile @@ -0,0 +1,83 @@ +h1. Blueprint CSS Framework Readme + +Welcome to Blueprint! This is a CSS framework designed to cut down on your CSS development time. It gives you a solid foundation to build your own CSS on. Here are some of the features BP provides out-of-the-box: + +* An easily customizable grid +* Sensible default typography +* A typographic baseline +* Perfected browser CSS reset +* A stylesheet for printing +* Powerful scripts for customization +* Absolutely no bloat! + +h2. Project Info + +* *Web*: "http://blueprintcss.org":http://blueprintcss.org +* *Source*: "http://github.com/joshuaclayton/blueprint-css":http://github.com/joshuaclayton/blueprint-css +* *Wiki*: "http://github.com/joshuaclayton/blueprint-css/wikis/home":http://github.com/joshuaclayton/blueprint-css/wikis/home +* *Bug/Feature Tracking*: "http://blueprintcss.lighthouseapp.com":http://blueprintcss.lighthouseapp.com + +h2. Setup Instructions + +Here's how you set up Blueprint on your site. + +# Upload the "blueprint" folder in this folder to your server, and place it in whatever folder you'd like. A good choice would be your CSS folder. +# Add the following three lines to every @@ of your site. Make sure the three @href@ paths are correct (here, BP is in my CSS folder):
+
+ 
+
+
+Remember to include trailing slashes (" />") in these lines if you're using XHTML. +# For development, add the .showgrid class to any container or column to see the underlying grid. Check out the @plugins@ directory for more advanced functionality. + + +h2. Tutorials + +* "Tutorial on BlueFlavor":http://blueflavor.com/blog/design/blueprintcss_101.php +* "How to customize BP with the compressor script":http://jdclayton.com/blueprints_compress_a_walkthrough.html +* "How to use a grid in a layout":http://subtraction.com/2007/03/18/oh-yeeaahh +* "How to use a baseline in your typography":http://alistapart.com/articles/settingtypeontheweb + +h2. Files in Blueprint + +The framework has a few files you should check out. Every file in the @src@ directory contains lots of (hopefully) clarifying comments. + +Compressed files (these go in the HTML): + +* @blueprint/screen.css@ +* @blueprint/print.css@ +* @blueprint/ie.css@ + +Source files: +* @blueprint/src/reset.css@
+This file resets CSS values that browsers tend to set for you. +* @blueprint/src/grid.css@
+This file sets up the grid (it's true). It has a lot of classes you apply to @
@ elements to set up any sort of column-based grid. +* @blueprint/src/typography.css@
+This file sets some default typography. It also has a few methods for some really fancy stuff to do with your text. +* @blueprint/src/forms.css@
+Includes some minimal styling of forms. +* @blueprint/src/print.css@
+This file sets some default print rules, so that printed versions of your site looks better than they usually would. It should be included on every page. +* @blueprint/src/ie.css@
+Includes every hack for our beloved IE6 and 7. + +Scripts: +* @lib/compress.rb@
+A Ruby script for compressing and customizing your CSS. Set a custom namespace, column count, widths, output paths, multiple projects, and semantic class names. See commenting in @compress.rb@ or run @$ruby compress.rb -h@ for more information. +* @lib/validate.rb@
+Validates the Blueprint core files with the W3C CSS validator. + +Other: +* @blueprint/plugins/@
+Contains additional functionality in the form of simple plugins for Blueprint. See individual readme files in the directory of each plugin for further instructions. +* @tests/@
+Contains html files which tests most aspects of Blueprint. Open @tests/index.html@ for further instructions. + +h2. Extra Information + +* For credits and origins, see AUTHORS. +* For license instructions, see LICENSE. +* For the latest updates, see CHANGELOG. diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/TUTORIAL.textile b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/TUTORIAL.textile new file mode 100755 index 0000000..907a8e5 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/TUTORIAL.textile @@ -0,0 +1,206 @@ +h1. Blueprint CSS Framework Tutorial + +Welcome to this tutorial on Blueprint. It will give you a thorough intro to what you can do with the framework, and a few notes on what you shouldn't do with it. Let's get started. + +h2. About Blueprint + +Blueprint is a CSS framework, designed to cut down on your development time. It gives you a solid foundation to build your CSS on top of, including some sensible default typography, a customizable grid, a print stylesheet and much more. + +However, BP is not a silver bullet, and it's best suited for websites where each page may require it's own design. Take a look at existing BP pages before deciding if the framework is right for you. You may also check out the test files in the @tests@ directory, which demonstrates most of the features in Blueprint. + +The word "framework" may be a bit misleading in this context, since BP does not make suggestions on how you should organize or write your CSS. It's more like a "css toolbox" with helpful bits and pieces, from which you may pick and choose based on your needs. + +h2. Structural Overview + +From the bottom up, here are the CSS layers in Blueprint: + +# *CSS reset*: Removes any default CSS rules set by each browser. +# *Typography*: Gives you some nice default typography and colors. +# *Grid*: Provides a set of CSS classes for making grid layouts. + +The second part of Blueprint are the scripts, which lets you customize most +aspects of the framework, from column count and widths, to output paths and +CSS class namespaces. We have two scripts: + +# *Compressor*: For compressing and customizing the source files. +# *Validator*: For validating the Blueprint core files. + +That's the quick overview, so now we can finally get into the details. First, we'll take +a look at the CSS in Blueprint. We'll then move on to the scripts, where I'll show you +how to customize the framework. + +h2. Setting Up Blueprint + +To use Blueprint, you must include three files in your HTML: + +* @blueprint/screen.css@: All CSS for screen, projection viewing. +* @blueprint/print.css@: A basic stylesheet for printing. +* @blueprint/ie.css@: A few needed corrections for Internet Explorer + +To include them, use the following HTML (make sure the href paths are correct): +
+  
+   
+  
+
+Remember to add trailing slashes if you're using XHTML (" />"). + +h2. Using the CSS in Blueprint + +As mentioned before, there's basically three layers of CSS in Blueprint. The first two layers, the browser CSS reset and the default typography, apply themselves by changing CSS of standard HTML elements. In other words, you don't need to change anything in these files. If you for instance want to change the font size, do this in your own stylesheet, so that it's easy to upgrade Blueprint when new versions arrive. + +h3. Classes for Typography + +While the typography of Blueprint mainly applies itself, there's a few classes +provided. Here's a list of their names and what they do: + +
+
@.small@
Makes the text of this element smaller.
+
@.large@
Makes the text of this element larger.
+
@.hide@
Hides an element.
+
@.quiet@
Tones down the font color for this element.
+
@.loud@
Makes this elements text black.
+
@.highlight@
Adds a yellow background to the text.
+
@.added@
Adds green background to the text.
+
@.removed@
Adds red background to the text.
+
@.first@
Removes any left sided margin/padding from the element.
+
@.last@
Removes any right sided margin/padding from the element.
+
@.top@
Removes any top margin/padding from the element.
+
@.bottom@
Removes any bottom margin/padding from the element.
+
+ +h3. Styling Forms + +To make Blueprint style your input elements, each text input element should +have the class @.text@, or @.title@, where @.text@ is the normal size, +and @.title@ gives you an input field with larger text. + +There's also a few classes you may use for success and error messages: + +
+
@div.error@
Creates an error box (red).
+
@div.notice@
Creates a box for notices (yellow).
+
@div.success@
Creates a box for success messages (green).
+
+ +h3. Creating a Grid + +The third layer is the grid CSS classes, which is the tool Blueprint gives you to create almost any kind of grid layout for your site. Keep in mind that most of the CSS behind the grid can be customized (explained below). In this section however, I'm using the default settings. + +The default grid is made up of 24 columns, each spanning 30px, with a 10px margin between each column. The total width comes to 950px, which is a good width for 1024x768 resolution displays. If you're interested in a narrower design, see the section on customizing the grid, below. + +So how do you set up a grid? By using classes provided by Blueprint. To create a column, make a new @
@, and apply one of the @.span-x@ classes to it. For instance, if you want a 3-column setup, with two narrow and one wide column, a header and a footer here's how you do it: + +
			
+  
+
+ The header +
+ +
+ The first column +
+
+ The center column +
+
+ The last column +
+ +
+ The footer +
+
+
+ +In addition to the spans, there are two important classes you need to know about. First of all, every Blueprint site needs to be wrapped in a div with the class @.container@, which is usually placed right after the body tag. + +Second, the last column in a row (which by default has 24 columns), needs the class @.last@ to remove its left hand margin. Note, however, that each @.span-24@ don't need the @.last@ class, since these always span the entire width of the page. + +To create basic grids, this is all you need to know. The grid CSS however, provides many more classes for more intricate designs. To see some of them in action, check out the files in @tests/parts/@. These files demonstrate what's possible with the grid in Blueprint. + +Here's a quick overview of the other classes you can use in to make your grid: + +
+
@.append-x@
Appends x number of empty columns after a column.
+
@.prepend-x@
Preppends x number of empty columns before a column.
+
@.push-x@
Pushes a column x columns to the left. Can be used to swap columns.
+
@.pull-x@
Pulls a column x columns to the right. Can be used to swap columns.
+
@.border@
Applies a border to the right side of the column.
+
@.colborder@
Appends one empty column, with a border down the middle.
+
@.clear@
Makes a column drop below a row, regardless of space.
+
@.showgrid@
Add to container or column to see the grid and baseline.
+
+ +In this list, @x@ is a number from 1 through 23 for append/prepend and 1 through 24 for push/pull. These numbers will of course change if you set a new number of columns in the settings file. + +Here's another example where we have four columns of equal width, with a border between the two first and the two last columns, as well as a four column gap in the middle: + +
				
+	
+
+ The first column +
+
+ The second column +
+
+ The third column +
+
+ The fourth (last) column +
+
+
+ +You may also nest columns to achieve the desired layout. Here's a setup where we want four rectangles with two on top and two below on the first half of the page, and one single column spanning the second half of the page: + +
				
+	
+
+
+ Top left +
+
+ Top right +
+
+ Bottom left +
+
+ Bottom right +
+
+
+ Second half of page +
+
+
+ +Try this code in your browser it it's difficult to understand what it would look like. To see more examples on how to use these classes, check out @/tests/parts/grid.html@. + +h2. The Scripts + +Blueprint comes with two scripts: one for compressing and customizing the CSS, and one for validating the core CSS files, which is handy if you're making changes to these files. + +h3. The Validator + +The validator has a fairly simple job - validate the CSS in the core BP files. The script uses a bundled version of the W3C CSS validator to accomplish this. To run it, you'll need to have Ruby installed on your machine. You can then run the script like so: @$ ruby validate.rb@. + +Note that there are a few validation errors shipping with Blueprint. These are known, and comes from a few CSS hacks needed to ensure consistent rendering across the vast browser field. + +h3. The Compressor + +As the files you'll include in your HTML are the compressed versions of the core CSS files, you'll have to recompress the core if you've made any changes. This is what the compressor script is for. + +In addition this is where you customize the grid. To customize the grid, a special settings file is used, and the new CSS is generated once you run the compressor. The new compressed files will then reflect your settings file. + +To recompress, you just have to run the script. This will parse the core CSS files and output new compressed files in the blueprint folder. As with the validator, Ruby has to be installed to use this script. In the @lib@ directory, run: @$ruby compress.rb@ + +Calling this file by itself will pull files from @blueprint/src@ and concatenate them into three files; @ie.css@, @print.css@, and @screen.css@. However, argument variables can be set to change how this works. Calling @$ruby compress.rb -h@ will reveal basic arguments you can pass to the script. + +h3. Custom Settings + +To learn how to use custom settings, read through the documentation within @lib/compress.rb@ \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint.html new file mode 100755 index 0000000..ac2f05d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint.html @@ -0,0 +1,278 @@ + + + + + + Module: Blueprint + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + +
+

Constants

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ROOT_PATH=File.join(File.expand_path(File.dirname(__FILE__)), "../../")  +path to the root Blueprint directory + +
BLUEPRINT_ROOT_PATH=File.join(Blueprint::ROOT_PATH, 'blueprint')  +path to where the Blueprint CSS files are +stored + +
SOURCE_PATH=File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'src')  +path to where the Blueprint CSS raw CSS files +are stored + +
TEST_PATH=File.join(Blueprint::ROOT_PATH, 'tests')  +path to where the Blueprint CSS generated test +files are stored + +
LIB_PATH=File.join(Blueprint::ROOT_PATH, 'lib', 'blueprint')  +path to the root of the Blueprint scripts + +
PLUGINS_PATH=File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'plugins')  +path to where Blueprint plugins are stored + +
SETTINGS_FILE=File.join(Blueprint::ROOT_PATH, 'lib', 'settings.yml')  +settings YAML file where custom user settings are saved + +
VALIDATOR_FILE=File.join(Blueprint::LIB_PATH, 'validate', 'css-validator.jar')  +path to validator jar file to validate generated CSS files + +
CSS_FILES={ 'screen.css' => ['reset.css', 'typography.css', 'grid.css', 'forms.css'], 'print.css' => ['print.css'], 'ie.css' => ['ie.css']  +hash of compressed and source CSS files + +
COLUMN_COUNT=24  +default number of columns for Blueprint layout + +
COLUMN_WIDTH=30  +default column width (in pixels) for Blueprint +layout + +
GUTTER_WIDTH=10  +default gutter width (in pixels) for Blueprint +layout + +
+
+
+ + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.html new file mode 100755 index 0000000..a5f5837 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.html @@ -0,0 +1,226 @@ + + + + + + Class: Blueprint::CSSParser + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::CSSParser
In: + + lib/blueprint/css_parser.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ +
+

+Strips out most whitespace and can return a hash or string of parsed data +

+ +
+ + +
+ +
+

Methods

+ +
+ new   + parse   + to_s   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + +
css_output [R] 
namespace [RW] 
raw_data [R] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

Options

+
    +
  • css_string String of CSS data + +
  • +
  • options + +
      +
    • :namespaceNamespace to use +when generating output + +
    • +
    +
  • +
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+returns a hash of all CSS data passed +

+

Options

+
    +
  • data — CSS string; defaults to string passed into the +constructor + +
  • +
+
+
+ +
+ + + + +
+

+returns string of CSS which can be saved to a file or otherwise +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000011.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000011.html new file mode 100755 index 0000000..7d02d28 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000011.html @@ -0,0 +1,20 @@ + + + + + + new (Blueprint::CSSParser) + + + + +
# File lib/blueprint/css_parser.rb, line 11
+    def initialize(css_string = "", options = {})
+      @raw_data     = css_string
+      @namespace    = options[:namespace] || ""
+      compress(@raw_data)
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000012.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000012.html new file mode 100755 index 0000000..75d4288 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000012.html @@ -0,0 +1,18 @@ + + + + + + to_s (Blueprint::CSSParser) + + + + +
# File lib/blueprint/css_parser.rb, line 18
+    def to_s
+      @css_output
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000013.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000013.html new file mode 100755 index 0000000..8293e20 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CSSParser.src/M000013.html @@ -0,0 +1,47 @@ + + + + + + parse (Blueprint::CSSParser) + + + + +
# File lib/blueprint/css_parser.rb, line 26
+    def parse(data = nil)
+      data ||= @raw_data
+    
+      # wrapper array holding hashes of css tags/rules
+      css_out = []
+      # clear initial spaces
+      data.strip_side_space!.strip_space!
+    
+      # split on end of assignments
+      data.split('}').each_with_index do |assignments, index|
+        # split again to separate tags from rules
+        tags, styles = assignments.split('{').map{|a| a.strip_side_space!}
+      
+        # clean up tags and apply namespaces as needed
+        tags.strip_selector_space!
+        tags.gsub!(/\./, ".#{namespace}") unless namespace.blank?
+      
+        # split on semicolon to iterate through each rule
+        rules = []
+        styles.split(';').each do |key_val_pair|
+          unless key_val_pair.nil?
+            # split by property/val and append to rules array with correct declaration
+            property, value = key_val_pair.split(':').map{|kv| kv.strip_side_space!}
+            break unless property && value
+            rules << "#{property}:#{value};"
+          end
+        end
+        # now keeps track of index as hashes don't keep track of position (which will be fixed in Ruby 1.9)
+        css_out << {:tags => tags, :rules => rules.to_s, :idx => index} unless tags.blank? || rules.to_s.blank?
+      end
+      css_out
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.html new file mode 100755 index 0000000..236433b --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.html @@ -0,0 +1,251 @@ + + + + + + Class: Blueprint::Compressor + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::Compressor
In: + + lib/blueprint/compressor.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ +
+ destination_path=   + generate!   + new   +
+
+ +
+ + + + +
+ + +
+

Constants

+ +
+ + + + + + +
TEST_FILES=['index.html', 'parts/elements.html', 'parts/forms.html', 'parts/grid.html', 'parts/sample.html']
+
+
+ + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
custom_css [RW] 
custom_layout [RW] 
custom_path [R] 
destination_path [R] 
loaded_from_settings [R] 
namespace [RW] 
plugins [RW] 
project_name [RW] 
script_name [R] 
semantic_classes [RW] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

+constructor +

+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+overridden setter method for destination_path also sets custom_path flag on +Blueprint::Compressor instance +

+
+
+ +
+ + + + +
+

+generates output CSS based on any args passed in overwrites any existing +CSS, as well as grid.png and tests +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000027.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000027.html new file mode 100755 index 0000000..8452adb --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000027.html @@ -0,0 +1,19 @@ + + + + + + destination_path= (Blueprint::Compressor) + + + + +
# File lib/blueprint/compressor.rb, line 16
+    def destination_path=(path)
+      @destination_path = path
+      @custom_path = @destination_path != Blueprint::BLUEPRINT_ROOT_PATH
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000028.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000028.html new file mode 100755 index 0000000..52bde7e --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000028.html @@ -0,0 +1,30 @@ + + + + + + new (Blueprint::Compressor) + + + + +
# File lib/blueprint/compressor.rb, line 22
+    def initialize
+      # set up defaults
+      @script_name = File.basename($0) 
+      @loaded_from_settings = false
+      self.namespace = ""
+      self.destination_path = Blueprint::BLUEPRINT_ROOT_PATH
+      self.custom_layout = CustomLayout.new
+      self.project_name = nil
+      self.custom_css = {}
+      self.semantic_classes = {}
+      self.plugins = []
+    
+      self.options.parse!(ARGV)
+      initialize_project_from_yaml(self.project_name)
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000029.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000029.html new file mode 100755 index 0000000..3045fa3 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Compressor.src/M000029.html @@ -0,0 +1,21 @@ + + + + + + generate! (Blueprint::Compressor) + + + + +
# File lib/blueprint/compressor.rb, line 40
+    def generate!
+      output_header       # information to the user (in the console) describing custom settings
+      generate_css_files  # loops through Blueprint::CSS_FILES to generate output CSS
+      generate_tests      # updates HTML with custom namespaces in order to test the generated library.  TODO: have tests kick out to custom location
+      output_footer       # informs the user that the CSS generation process is complete
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.html new file mode 100755 index 0000000..110f1da --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.html @@ -0,0 +1,318 @@ + + + + + + Class: Blueprint::CustomLayout + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::CustomLayout
In: + + lib/blueprint/custom_layout.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ +
+

+Generates a custom grid file, using ERB to evaluate custom settings +

+ +
+ + +
+ +
+

Methods

+ +
+ column_count   + column_width   + default?   + generate_grid_css   + gutter_width   + new   + page_width   +
+
+ +
+ + + + +
+ + +
+

Constants

+ +
+ + + + + + + + +
CSS_ERB_FILE=File.join(Blueprint::LIB_PATH, 'grid.css.erb')  +path to ERB file used for CSS template + +
+
+
+ + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + +
column_count [W] 
column_width [W] 
gutter_width [W] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

Options

+
    +
  • options + +
      +
    • :column_count — Sets +the column count of generated CSS + +
    • +
    • :column_width — Sets +the column width (in pixels) of generated CSS + +
    • +
    • :gutter_width — Sets +the gutter width (in pixels) of generated CSS + +
    • +
    +
  • +
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+Column count of generated CSS. Returns itself or Blueprint‘s default +

+
+
+ +
+ + + + +
+

+Column width (in pixels) of generated CSS. Returns itself or Blueprint‘s default +

+
+
+ +
+ + + + +
+

+Boolean value if current settings are Blueprint‘s defaults +

+
+
+ +
+ + + + +
+

+Loads grid.css.erb file, binds it to current instance, and returns output +

+
+
+ +
+ + + + +
+

+Gutter width (in pixels) of generated CSS. Returns itself or Blueprint‘s default +

+
+
+ +
+ + + + +
+

+Returns page width (in pixels) +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000020.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000020.html new file mode 100755 index 0000000..1862dc3 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000020.html @@ -0,0 +1,18 @@ + + + + + + column_count (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 11
+    def column_count
+      (@column_count || Blueprint::COLUMN_COUNT).to_i
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000021.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000021.html new file mode 100755 index 0000000..3dd449a --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000021.html @@ -0,0 +1,18 @@ + + + + + + column_width (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 16
+    def column_width
+      (@column_width || Blueprint::COLUMN_WIDTH).to_i
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000022.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000022.html new file mode 100755 index 0000000..3dcfa8f --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000022.html @@ -0,0 +1,18 @@ + + + + + + gutter_width (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 21
+    def gutter_width
+      (@gutter_width || Blueprint::GUTTER_WIDTH).to_i
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000023.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000023.html new file mode 100755 index 0000000..3313ec6 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000023.html @@ -0,0 +1,18 @@ + + + + + + page_width (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 26
+    def page_width
+      column_count * (column_width + gutter_width) - gutter_width
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000024.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000024.html new file mode 100755 index 0000000..91c624c --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000024.html @@ -0,0 +1,20 @@ + + + + + + new (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 35
+    def initialize(options = {})
+      @column_count = options[:column_count]
+      @column_width = options[:column_width]
+      @gutter_width = options[:gutter_width]
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000025.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000025.html new file mode 100755 index 0000000..4c167d9 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000025.html @@ -0,0 +1,18 @@ + + + + + + default? (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 42
+    def default?
+      self.column_width == Blueprint::COLUMN_WIDTH && self.column_count == Blueprint::COLUMN_COUNT && self.gutter_width == Blueprint::GUTTER_WIDTH
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000026.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000026.html new file mode 100755 index 0000000..26167e2 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/CustomLayout.src/M000026.html @@ -0,0 +1,22 @@ + + + + + + generate_grid_css (Blueprint::CustomLayout) + + + + +
# File lib/blueprint/custom_layout.rb, line 47
+    def generate_grid_css
+      # loads up erb template to evaluate custom widths
+      css = ERB::new(File.path_to_string(CustomLayout::CSS_ERB_FILE))
+    
+      # bind it to this instance
+      css.result(binding)
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.html new file mode 100755 index 0000000..e7c455a --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.html @@ -0,0 +1,216 @@ + + + + + + Class: Blueprint::GridBuilder + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::GridBuilder
In: + + lib/blueprint/grid_builder.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ +
+

+Uses ImageMagick and RMagick to generate grid.png file +

+ +
+ + +
+ +
+

Methods

+ +
+ generate!   + new   +
+
+ +
+ + + +
+

Included Modules

+ +
+ Magick +
+
+ +
+ + + + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + + + + + + +
able_to_generate [R] 
column_width [R] 
gutter_width [R] 
output_path [R] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

Options

+
    +
  • options + +
      +
    • :column_width — Width (in pixels) of current grid column + +
    • +
    • :gutter_width — Width (in pixels) of current grid gutter + +
    • +
    • :output_path — Output path of grid.png file + +
    • +
    +
  • +
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+generates (overwriting if necessary) grid.png image to be tiled in +background +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000014.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000014.html new file mode 100755 index 0000000..37c3f51 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000014.html @@ -0,0 +1,22 @@ + + + + + + new (Blueprint::GridBuilder) + + + + +
# File lib/blueprint/grid_builder.rb, line 23
+    def initialize(options={})
+      @able_to_generate = Magick::Long_version rescue false
+      return unless @able_to_generate
+      @column_width = options[:column_width] || Blueprint::COLUMN_WIDTH
+      @gutter_width = options[:gutter_width] || Blueprint::GUTTER_WIDTH
+      @output_path  = options[:output_path]  || Blueprint::SOURCE_PATH
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000015.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000015.html new file mode 100755 index 0000000..dafd346 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/GridBuilder.src/M000015.html @@ -0,0 +1,36 @@ + + + + + + generate! (Blueprint::GridBuilder) + + + + +
# File lib/blueprint/grid_builder.rb, line 32
+    def generate!
+      return false unless self.able_to_generate
+      total_width = self.column_width + self.gutter_width
+      height = 20
+      RVG::dpi = 100
+
+      rvg = RVG.new((total_width.to_f/RVG::dpi).in, (height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, height) do |canvas|
+        canvas.background_fill = 'white'
+
+        canvas.g do |column|
+          column.rect(self.column_width, height).styles(:fill => "#e8effb")
+        end
+
+        canvas.g do |baseline|
+          baseline.line(0, (height - 1), total_width, (height- 1)).styles(:fill => "#e9e9e9")
+        end
+      end
+      
+      FileUtils.mkdir self.output_path unless File.exists? self.output_path
+      rvg.draw.write(File.join(self.output_path, "grid.png"))
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.html new file mode 100755 index 0000000..235e148 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.html @@ -0,0 +1,197 @@ + + + + + + Class: Blueprint::Namespace + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::Namespace
In: + + lib/blueprint/namespace.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ + +
+ +
+ + + + +
+ + + + + + + + + +
+

Public Class methods

+ +
+ + + + +
+

+Read html to string, remove namespace if any, set the new namespace, and update the test file. +

+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+adds namespace to BP classes in a html file +

+
+
+ +
+ + + + +
+

+returns current namespace in test files based on container class +

+
+
+ +
+ + + + +
+

+removes a namespace from a string of html +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000016.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000016.html new file mode 100755 index 0000000..930092d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000016.html @@ -0,0 +1,21 @@ + + + + + + new (Blueprint::Namespace) + + + + +
# File lib/blueprint/namespace.rb, line 6
+    def initialize(path, namespace)
+      html = File.path_to_string(path)
+      remove_current_namespace(html)
+      add_namespace(html, namespace)
+      File.string_to_file(html, path)
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000017.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000017.html new file mode 100755 index 0000000..a9814d5 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000017.html @@ -0,0 +1,23 @@ + + + + + + add_namespace (Blueprint::Namespace) + + + + +
# File lib/blueprint/namespace.rb, line 14
+    def add_namespace(html, namespace)    
+      html.gsub!(/(class=")([a-zA-Z0-9\-_ ]*)(")/) do |m|
+        classes = m.to_s.split('"')[1].split(' ')
+        classes.map! { |c| c = namespace + c }
+        'class="' + classes.join(' ') + '"'
+      end
+      html
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000018.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000018.html new file mode 100755 index 0000000..777500d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000018.html @@ -0,0 +1,20 @@ + + + + + + remove_current_namespace (Blueprint::Namespace) + + + + +
# File lib/blueprint/namespace.rb, line 24
+    def remove_current_namespace(html)
+      current = current_namespace(html)
+      html.gsub!(current, '')
+      html
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000019.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000019.html new file mode 100755 index 0000000..d5dee62 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Namespace.src/M000019.html @@ -0,0 +1,20 @@ + + + + + + current_namespace (Blueprint::Namespace) + + + + +
# File lib/blueprint/namespace.rb, line 32
+    def current_namespace(html)
+      html =~ /class="([\S]+)container/
+      current_namespace = $1 if $1
+      current_namespace || ''
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.html new file mode 100755 index 0000000..b91bed3 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.html @@ -0,0 +1,216 @@ + + + + + + Class: Blueprint::SemanticClassNames + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::SemanticClassNames
In: + + lib/blueprint/semantic_class_names.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ +
+

+parses a hash of key/value pairs, key being output CSS selectors, value +being a list of CSS selectors to draw from +

+ +
+ + +
+ +
+

Methods

+ +
+ css_from_assignments   + new   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + +
class_assignments [RW] 
namespace [R] 
source_file [R] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

Options

+
    +
  • options + +
      +
    • :namespaceNamespace to be +used when matching CSS selectors to draw from + +
    • +
    • :source_file — Source file to use as reference of CSS +selectors. Defaults to Blueprint‘s +generated screen.css + +
    • +
    • :class_assignments — Hash of key/value pairs, key being +output CSS selectors, value being a list of CSS selectors to draw from + +
    • +
    +
  • +
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+Returns a CSS string of semantic selectors and associated styles +

+

Options

+
    +
  • assignments — Hash of key/value pairs, key being output CSS +selectors, value being a list of CSS selectors to draw from; defaults to +what was passed in constructor or empty hash + +
  • +
+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000009.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000009.html new file mode 100755 index 0000000..2c00167 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000009.html @@ -0,0 +1,20 @@ + + + + + + new (Blueprint::SemanticClassNames) + + + + +
# File lib/blueprint/semantic_class_names.rb, line 12
+    def initialize(options = {})
+      @namespace = options[:namespace] || ""
+      @source_file = options[:source_file] || File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'screen.css')
+      self.class_assignments = options[:class_assignments] || {}
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000010.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000010.html new file mode 100755 index 0000000..9945d36 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/SemanticClassNames.src/M000010.html @@ -0,0 +1,50 @@ + + + + + + css_from_assignments (Blueprint::SemanticClassNames) + + + + +
# File lib/blueprint/semantic_class_names.rb, line 21
+    def css_from_assignments(assignments = {})
+      assignments ||= self.class_assignments
+    
+      # define a wrapper hash to hold all the new CSS assignments
+      output_css = {}
+    
+      #loads full stylesheet into an array of hashes
+      blueprint_assignments = CSSParser.new(File.path_to_string(self.source_file)).parse
+    
+      # iterates through each class assignment ('#footer' => '.span-24 div.span-24', '#header' => '.span-24 div.span-24')
+      assignments.each do |semantic_class, blueprint_classes|
+        # gathers all BP classes we're going to be mimicing
+        blueprint_classes = blueprint_classes.split(/,|\s/).find_all {|c| !c.blank? }.flatten.map {|c| c.strip }
+        classes = []
+        # loop through each BP class, grabbing the full hash (containing tags, index, and CSS rules)
+        blueprint_classes.each do |bp_class|
+          match = bp_class.include?('.') ? bp_class.gsub(".", ".#{self.namespace}") : ".#{self.namespace}#{bp_class}"
+          classes << blueprint_assignments.find_all {|line| line[:tags] =~ Regexp.new(/^([\w\.\-]+, ?)*#{match}(, ?[\w\.\-]+)*$/) }.uniq
+        end
+      
+        # clean up the array
+        classes = classes.flatten.uniq
+      
+        # set the semantic class to the rules gathered in classes, sorted by index
+        # this way, the styles will be applied in the correct order from top of file to bottom
+        output_css[semantic_class] = "#{classes.sort_by {|i| i[:idx]}.map {|i| i[:rules]}}"
+      end
+    
+      # return the css in proper format
+      css = ""
+      output_css.each do |tags, rules|
+        css += "#{tags} {#{rules}}\n"
+      end
+      css
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.html new file mode 100755 index 0000000..b6a2802 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.html @@ -0,0 +1,176 @@ + + + + + + Class: Blueprint::Validator + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassBlueprint::Validator
In: + + lib/blueprint/validator.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ +
+

+Validates generated CSS against the W3 using Java +

+ +
+ + +
+ +
+

Methods

+ +
+ new   + validate   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + +
error_count [R] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

+Validates all three CSS files +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000007.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000007.html new file mode 100755 index 0000000..7ce54cd --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000007.html @@ -0,0 +1,18 @@ + + + + + + new (Blueprint::Validator) + + + + +
# File lib/blueprint/validator.rb, line 6
+    def initialize
+      @error_count = 0
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000008.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000008.html new file mode 100755 index 0000000..4dcb8b5 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/Blueprint/Validator.src/M000008.html @@ -0,0 +1,30 @@ + + + + + + validate (Blueprint::Validator) + + + + +
# File lib/blueprint/validator.rb, line 11
+    def validate
+      java_path = `which java`.rstrip
+      raise "You do not have a Java installed, but it is required." if java_path.blank?
+    
+      output_header
+    
+      Blueprint::CSS_FILES.keys.each do |file_name|
+        css_output_path = File.join(Blueprint::BLUEPRINT_ROOT_PATH, file_name)
+        puts "\n\n  Testing #{css_output_path}"
+        puts "  Output ============================================================\n\n"
+        @error_count += 1 if !system("#{java_path} -jar '#{Blueprint::VALIDATOR_FILE}' -e '#{css_output_path}'")
+      end
+    
+      output_footer
+    end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.html new file mode 100755 index 0000000..fe8c34b --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.html @@ -0,0 +1,158 @@ + + + + + + Class: File + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassFile
In: + + lib/blueprint/core_ext.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ + +
+ +
+ + + + +
+ + + + + + + + + +
+

Public Class methods

+ +
+ + + + +
+

+string output from file +

+
+
+ +
+ + + + +
+

+saves a string to a specified file path +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000001.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000001.html new file mode 100755 index 0000000..525c704 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000001.html @@ -0,0 +1,18 @@ + + + + + + path_to_string (File) + + + + +
# File lib/blueprint/core_ext.rb, line 23
+  def self.path_to_string(path)
+    File.new(path).read
+  end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000002.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000002.html new file mode 100755 index 0000000..9d872c4 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/File.src/M000002.html @@ -0,0 +1,19 @@ + + + + + + string_to_file (File) + + + + +
# File lib/blueprint/core_ext.rb, line 28
+  def self.string_to_file(string, path)
+    FileUtils.mkdir_p path unless File.directory?(File.dirname(path))
+    File.open(path, 'w') { |f| f << string }
+  end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.html new file mode 100755 index 0000000..545e085 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.html @@ -0,0 +1,196 @@ + + + + + + Class: String + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassString
In: + + lib/blueprint/core_ext.rb + +
+
Parent: + Object +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ + +
+ +
+ + + + +
+ + + + + + + + + +
+

Public Instance methods

+ +
+ + + + +
+

+see if string has any content +

+
+
+ +
+ + + + +
+

+remove newlines, insert space after comma, replace two spaces with one +space after comma +

+
+
+ +
+ + + + +
+

+remove leading whitespace, remove end whitespace +

+
+
+ +
+ + + + +
+

+strip space after :, remove newlines, replace multiple spaces with only one +space, remove comments +

+
+
+ + +
+ + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000003.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000003.html new file mode 100755 index 0000000..8bd76fe --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000003.html @@ -0,0 +1,16 @@ + + + + + + blank? (String) + + + + +
# File lib/blueprint/core_ext.rb, line 3
+  def blank?; self.length.zero?; end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000004.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000004.html new file mode 100755 index 0000000..d2581b8 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000004.html @@ -0,0 +1,18 @@ + + + + + + strip_space! (String) + + + + +
# File lib/blueprint/core_ext.rb, line 6
+  def strip_space!
+    replace self.gsub(/:\s*/, ':').gsub(/\n/, '').gsub(/\s+/, ' ').gsub(/(\/\*).*?(\*\/)/, '')
+  end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000005.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000005.html new file mode 100755 index 0000000..3a728dd --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000005.html @@ -0,0 +1,18 @@ + + + + + + strip_selector_space! (String) + + + + +
# File lib/blueprint/core_ext.rb, line 11
+  def strip_selector_space!
+    replace self.gsub(/(\n)/, '').gsub(',', ', ').gsub(',  ', ', ')
+  end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000006.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000006.html new file mode 100755 index 0000000..50695f8 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/classes/String.src/M000006.html @@ -0,0 +1,18 @@ + + + + + + strip_side_space! (String) + + + + +
# File lib/blueprint/core_ext.rb, line 16
+  def strip_side_space!
+    replace self.gsub(/^\s+/, '').gsub(/\s+$/, $/)
+  end
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/created.rid b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/created.rid new file mode 100755 index 0000000..ee9e17c --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/created.rid @@ -0,0 +1 @@ +Thu, 21 Feb 2008 20:15:33 -0500 diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/blueprint_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/blueprint_rb.html new file mode 100755 index 0000000..b019d71 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/blueprint_rb.html @@ -0,0 +1,108 @@ + + + + + + File: blueprint.rb + + + + + + + + + + +
+

blueprint.rb

+ + + + + + + + + +
Path:lib/blueprint/blueprint.rb +
Last Update:Wed Feb 20 23:47:35 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ fileutils   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/compressor_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/compressor_rb.html new file mode 100755 index 0000000..e77e0f1 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/compressor_rb.html @@ -0,0 +1,109 @@ + + + + + + File: compressor.rb + + + + + + + + + + +
+

compressor.rb

+ + + + + + + + + +
Path:lib/blueprint/compressor.rb +
Last Update:Thu Feb 21 20:02:09 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ yaml   + optparse   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/core_ext_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/core_ext_rb.html new file mode 100755 index 0000000..f7ad4ca --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/core_ext_rb.html @@ -0,0 +1,101 @@ + + + + + + File: core_ext.rb + + + + + + + + + + +
+

core_ext.rb

+ + + + + + + + + +
Path:lib/blueprint/core_ext.rb +
Last Update:Thu Feb 21 20:03:32 -0500 2008
+
+ + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/css_parser_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/css_parser_rb.html new file mode 100755 index 0000000..f5e1073 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/css_parser_rb.html @@ -0,0 +1,101 @@ + + + + + + File: css_parser.rb + + + + + + + + + + +
+

css_parser.rb

+ + + + + + + + + +
Path:lib/blueprint/css_parser.rb +
Last Update:Thu Feb 21 20:05:19 -0500 2008
+
+ + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/custom_layout_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/custom_layout_rb.html new file mode 100755 index 0000000..8c42ea1 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/custom_layout_rb.html @@ -0,0 +1,108 @@ + + + + + + File: custom_layout.rb + + + + + + + + + + +
+

custom_layout.rb

+ + + + + + + + + +
Path:lib/blueprint/custom_layout.rb +
Last Update:Thu Feb 21 17:34:18 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ erb   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/grid_builder_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/grid_builder_rb.html new file mode 100755 index 0000000..e180ace --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/grid_builder_rb.html @@ -0,0 +1,109 @@ + + + + + + File: grid_builder.rb + + + + + + + + + + +
+

grid_builder.rb

+ + + + + + + + + +
Path:lib/blueprint/grid_builder.rb +
Last Update:Thu Feb 21 20:05:42 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ rubygems   + rvg/rvg   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/namespace_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/namespace_rb.html new file mode 100755 index 0000000..7775751 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/namespace_rb.html @@ -0,0 +1,101 @@ + + + + + + File: namespace.rb + + + + + + + + + + +
+

namespace.rb

+ + + + + + + + + +
Path:lib/blueprint/namespace.rb +
Last Update:Wed Feb 20 23:46:08 -0500 2008
+
+ + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/semantic_class_names_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/semantic_class_names_rb.html new file mode 100755 index 0000000..fbf6e36 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/semantic_class_names_rb.html @@ -0,0 +1,101 @@ + + + + + + File: semantic_class_names.rb + + + + + + + + + + +
+

semantic_class_names.rb

+ + + + + + + + + +
Path:lib/blueprint/semantic_class_names.rb +
Last Update:Thu Feb 21 20:07:48 -0500 2008
+
+ + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/validator_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/validator_rb.html new file mode 100755 index 0000000..60d5b12 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/blueprint/validator_rb.html @@ -0,0 +1,101 @@ + + + + + + File: validator.rb + + + + + + + + + + +
+

validator.rb

+ + + + + + + + + +
Path:lib/blueprint/validator.rb +
Last Update:Thu Feb 21 20:06:11 -0500 2008
+
+ + +
+ + + +
+ + + +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/compress_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/compress_rb.html new file mode 100755 index 0000000..6937868 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/compress_rb.html @@ -0,0 +1,108 @@ + + + + + + File: compress.rb + + + + + + + + + + +
+

compress.rb

+ + + + + + + + + +
Path:lib/compress.rb +
Last Update:Wed Feb 20 23:25:52 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ blueprint/blueprint   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/validate_rb.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/validate_rb.html new file mode 100755 index 0000000..6f04b9d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/files/lib/validate_rb.html @@ -0,0 +1,109 @@ + + + + + + File: validate.rb + + + + + + + + + + +
+

validate.rb

+ + + + + + + + + +
Path:lib/validate.rb +
Last Update:Wed Feb 20 23:27:06 -0500 2008
+
+ + +
+ + + +
+ + +
+

Required files

+ +
+ blueprint/blueprint   + blueprint/validator   +
+
+ +
+ + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_class_index.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_class_index.html new file mode 100755 index 0000000..f29db8e --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_class_index.html @@ -0,0 +1,36 @@ + + + + + + + + Classes + + + + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_file_index.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_file_index.html new file mode 100755 index 0000000..00f4c7c --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_file_index.html @@ -0,0 +1,37 @@ + + + + + + + + Files + + + + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_method_index.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_method_index.html new file mode 100755 index 0000000..2b0113b --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/fr_method_index.html @@ -0,0 +1,55 @@ + + + + + + + + Methods + + + + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/index.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/index.html new file mode 100755 index 0000000..d8e23e3 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/index.html @@ -0,0 +1,24 @@ + + + + + + + RDoc Documentation + + + + + + + + + + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/rdoc-style.css b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/rdoc-style.css new file mode 100755 index 0000000..44c7b3d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/doc/rdoc-style.css @@ -0,0 +1,208 @@ + +body { + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: 90%; + margin: 0; + margin-left: 40px; + padding: 0; + background: white; +} + +h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; } +h1 { font-size: 150%; } +h2,h3,h4 { margin-top: 1em; } + +a { background: #eef; color: #039; text-decoration: none; } +a:hover { background: #039; color: #eef; } + +/* Override the base stylesheet's Anchor inside a table cell */ +td > a { + background: transparent; + color: #039; + text-decoration: none; +} + +/* and inside a section title */ +.section-title > a { + background: transparent; + color: #eee; + text-decoration: none; +} + +/* === Structural elements =================================== */ + +div#index { + margin: 0; + margin-left: -40px; + padding: 0; + font-size: 90%; +} + + +div#index a { + margin-left: 0.7em; +} + +div#index .section-bar { + margin-left: 0px; + padding-left: 0.7em; + background: #ccc; + font-size: small; +} + + +div#classHeader, div#fileHeader { + width: auto; + color: white; + padding: 0.5em 1.5em 0.5em 1.5em; + margin: 0; + margin-left: -40px; + border-bottom: 3px solid #006; +} + +div#classHeader a, div#fileHeader a { + background: inherit; + color: white; +} + +div#classHeader td, div#fileHeader td { + background: inherit; + color: white; +} + + +div#fileHeader { + background: #057; +} + +div#classHeader { + background: #048; +} + + +.class-name-in-header { + font-size: 180%; + font-weight: bold; +} + + +div#bodyContent { + padding: 0 1.5em 0 1.5em; +} + +div#description { + padding: 0.5em 1.5em; + background: #efefef; + border: 1px dotted #999; +} + +div#description h1,h2,h3,h4,h5,h6 { + color: #125;; + background: transparent; +} + +div#validator-badges { + text-align: center; +} +div#validator-badges img { border: 0; } + +div#copyright { + color: #333; + background: #efefef; + font: 0.75em sans-serif; + margin-top: 5em; + margin-bottom: 0; + padding: 0.5em 2em; +} + + +/* === Classes =================================== */ + +table.header-table { + color: white; + font-size: small; +} + +.type-note { + font-size: small; + color: #DEDEDE; +} + +.xxsection-bar { + background: #eee; + color: #333; + padding: 3px; +} + +.section-bar { + color: #333; + border-bottom: 1px solid #999; + margin-left: -20px; +} + + +.section-title { + background: #79a; + color: #eee; + padding: 3px; + margin-top: 2em; + margin-left: -30px; + border: 1px solid #999; +} + +.top-aligned-row { vertical-align: top } +.bottom-aligned-row { vertical-align: bottom } + +/* --- Context section classes ----------------------- */ + +.context-row { } +.context-item-name { font-family: monospace; font-weight: bold; color: black; } +.context-item-value { font-size: small; color: #448; } +.context-item-desc { color: #333; padding-left: 2em; } + +/* --- Method classes -------------------------- */ +.method-detail { + background: #efefef; + padding: 0; + margin-top: 0.5em; + margin-bottom: 1em; + border: 1px dotted #ccc; +} +.method-heading { + color: black; + background: #ccc; + border-bottom: 1px solid #666; + padding: 0.2em 0.5em 0 0.5em; +} +.method-signature { color: black; background: inherit; } +.method-name { font-weight: bold; } +.method-args { font-style: italic; } +.method-description { padding: 0 0.5em 0 0.5em; } + +/* --- Source code sections -------------------- */ + +a.source-toggle { font-size: 90%; } +div.method-source-code { + background: #262626; + color: #ffdead; + margin: 1em; + padding: 0.5em; + border: 1px dashed #999; + overflow: hidden; +} + +div.method-source-code pre { color: #ffdead; overflow: hidden; } + +/* --- Ruby keyword styles --------------------- */ + +.standalone-code { background: #221111; color: #ffdead; overflow: hidden; } + +.ruby-constant { color: #7fffd4; background: transparent; } +.ruby-keyword { color: #00ffff; background: transparent; } +.ruby-ivar { color: #eedd82; background: transparent; } +.ruby-operator { color: #00ffee; background: transparent; } +.ruby-identifier { color: #ffdead; background: transparent; } +.ruby-node { color: #ffa07a; background: transparent; } +.ruby-comment { color: #b22222; font-weight: bold; background: transparent; } +.ruby-regexp { color: #ffa07a; background: transparent; } +.ruby-value { color: #7fffd4; background: transparent; } \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/blueprint.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/blueprint.rb new file mode 100755 index 0000000..3c57f36 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/blueprint.rb @@ -0,0 +1,39 @@ +require 'fileutils' +module Blueprint + # path to the root Blueprint directory + ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "../../") + # path to where the Blueprint CSS files are stored + BLUEPRINT_ROOT_PATH = File.join(Blueprint::ROOT_PATH, 'blueprint') + # path to where the Blueprint CSS raw CSS files are stored + SOURCE_PATH = File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'src') + # path to where the Blueprint CSS generated test files are stored + TEST_PATH = File.join(Blueprint::ROOT_PATH, 'tests') + # path to the root of the Blueprint scripts + LIB_PATH = File.join(Blueprint::ROOT_PATH, 'lib', 'blueprint') + # path to where Blueprint plugins are stored + PLUGINS_PATH = File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'plugins') + # settings YAML file where custom user settings are saved + SETTINGS_FILE = File.join(Blueprint::ROOT_PATH, 'lib', 'settings.yml') + # path to validator jar file to validate generated CSS files + VALIDATOR_FILE = File.join(Blueprint::LIB_PATH, 'validate', 'css-validator.jar') + # hash of compressed and source CSS files + CSS_FILES = { + 'screen.css' => ['reset.css', 'typography.css', 'forms.css', 'grid.css'], + 'print.css' => ['print.css'], + 'ie.css' => ['ie.css'] + } + + # default number of columns for Blueprint layout + COLUMN_COUNT = 24 + # default column width (in pixels) for Blueprint layout + COLUMN_WIDTH = 30 + # default gutter width (in pixels) for Blueprint layout + GUTTER_WIDTH = 10 + + INPUT_PADDING = 5 + INPUT_BORDER = 1 +end + +Dir["#{File.join(Blueprint::LIB_PATH)}/*"].each do |file| + require "#{file}" if file =~ /\.rb$/ && file !~ /blueprint.rb/ +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/compressor.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/compressor.rb new file mode 100755 index 0000000..d02f07a --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/compressor.rb @@ -0,0 +1,261 @@ +require 'yaml' +require 'optparse' +module Blueprint + class Compressor + TEST_FILES = ['index.html', + 'parts/elements.html', + 'parts/forms.html', + 'parts/grid.html', + 'parts/sample.html'] + + attr_accessor :namespace, :custom_css, :custom_layout, :semantic_classes, :project_name, :plugins + attr_reader :custom_path, :loaded_from_settings, :destination_path, :script_name + + # overridden setter method for destination_path + # also sets custom_path flag on Blueprint::Compressor instance + def destination_path=(path) + @destination_path = path + @custom_path = @destination_path != Blueprint::BLUEPRINT_ROOT_PATH + end + + # constructor + def initialize + # set up defaults + @script_name = File.basename($0) + @loaded_from_settings = false + self.namespace = "" + self.destination_path = Blueprint::BLUEPRINT_ROOT_PATH + self.custom_layout = CustomLayout.new + self.project_name = nil + self.custom_css = {} + self.semantic_classes = {} + self.plugins = [] + + self.options.parse!(ARGV) + initialize_project_from_yaml(self.project_name) + end + + # generates output CSS based on any args passed in + # overwrites any existing CSS, as well as grid.png and tests + def generate! + output_header # information to the user (in the console) describing custom settings + generate_css_files # loops through Blueprint::CSS_FILES to generate output CSS + generate_tests # updates HTML with custom namespaces in order to test the generated library. TODO: have tests kick out to custom location + output_footer # informs the user that the CSS generation process is complete + end + + def options #:nodoc:# + OptionParser.new do |o| + o.set_summary_indent(' ') + o.banner = "Usage: #{@script_name} [options]" + o.define_head "Blueprint Compressor" + o.separator "" + o.separator "options" + o.on( "-oOUTPUT_PATH", "--output_path=OUTPUT_PATH", String, + "Define a different path to output generated CSS files to.") { |path| self.destination_path = path } + o.on( "-nBP_NAMESPACE", "--namespace=BP_NAMESPACE", String, + "Define a namespace prepended to all Blueprint classes (e.g. .your-ns-span-24)") { |ns| self.namespace = ns } + o.on( "-pPROJECT_NAME", "--project=PROJECT_NAME", String, + "If using the settings.yml file, PROJECT_NAME is the project name you want to export") {|project| @project_name = project } + o.on( "--column_width=COLUMN_WIDTH", Integer, + "Set a new column width (in pixels) for the output grid") {|cw| self.custom_layout.column_width = cw } + o.on( "--gutter_width=GUTTER_WIDTH", Integer, + "Set a new gutter width (in pixels) for the output grid") {|gw| self.custom_layout.gutter_width = gw } + o.on( "--column_count=COLUMN_COUNT", Integer, + "Set a new column count for the output grid") {|cc| self.custom_layout.column_count = cc } + #o.on("-v", "--verbose", "Turn on verbose output.") { |$verbose| } + o.on("-h", "--help", "Show this help message.") { puts o; exit } + end + end + + private + + # attempts to load output settings from settings.yml + def initialize_project_from_yaml(project_name = nil) + # ensures project_name is set and settings.yml is present + return unless (project_name && File.exist?(Blueprint::SETTINGS_FILE)) + + # loads yaml into hash + projects = YAML::load(File.path_to_string(Blueprint::SETTINGS_FILE)) + + if (project = projects[project_name]) # checks to see if project info is present + self.namespace = project['namespace'] || "" + self.destination_path = (self.destination_path == Blueprint::BLUEPRINT_ROOT_PATH ? project['path'] : self.destination_path) || Blueprint::BLUEPRINT_ROOT_PATH + self.custom_css = project['custom_css'] || {} + self.semantic_classes = project['semantic_classes'] || {} + self.plugins = project['plugins'] || [] + + if (layout = project['custom_layout']) + self.custom_layout = CustomLayout.new(:column_count => layout['column_count'], :column_width => layout['column_width'], :gutter_width => layout['gutter_width'], :input_padding => layout['input_padding'], :input_border => layout['input_border']) + end + @loaded_from_settings = true + end + end + + def generate_css_files + Blueprint::CSS_FILES.each do |output_file_name, css_source_file_names| + css_output_path = File.join(destination_path, output_file_name) + puts "\n Assembling to #{custom_path ? css_output_path : "default blueprint path"}" + + # CSS file generation + css_output = css_file_header # header included on all three Blueprint-generated files + css_output += "\n\n" + + # Iterate through src/ .css files and compile to individual core compressed file + css_source_file_names.each do |css_source_file| + puts " + src/#{css_source_file}" + css_output += "/* #{css_source_file} */\n" if css_source_file_names.any? + + source_options = if self.custom_layout && css_source_file == 'grid.css' + self.custom_layout.generate_grid_css + else + File.path_to_string File.join(Blueprint::SOURCE_PATH, css_source_file) + end + + css_output += Blueprint::CSSParser.new(source_options, :namespace => namespace).to_s + css_output += "\n" + end + + # append CSS from custom files + css_output = append_custom_css(css_output, output_file_name) + + #append CSS from plugins + css_output = append_plugin_css(css_output, output_file_name) + + #save CSS to correct path, stripping out any extra whitespace at the end of the file + File.string_to_file(css_output.rstrip, css_output_path) + end + + # append semantic class names if set + append_semantic_classes + + #attempt to generate a grid.png file + if (grid_builder = GridBuilder.new(:column_width => self.custom_layout.column_width, :gutter_width => self.custom_layout.gutter_width, :output_path => File.join(self.destination_path, 'src'))) + grid_builder.generate! + end + end + + def append_custom_css(css, current_file_name) + # check to see if a custom (non-default) location was used for output files + # if custom path is used, handle custom CSS, if any + return css unless self.custom_path and self.custom_css[current_file_name] + + self.custom_css[current_file_name].each do |custom_css| + overwrite_path = File.join(destination_path, (custom_css || "my-#{current_file_name}")) + overwrite_css = File.exists?(overwrite_path) ? File.path_to_string(overwrite_path) : "" + + # if there's CSS present, add it to the CSS output + unless overwrite_css.blank? + puts " + custom styles (#{custom_css})\n" + css += "/* #{overwrite_path} */\n" + css += CSSParser.new(overwrite_css).to_s + "\n" + end + end + + css + end + + def append_plugin_css(css, current_file_name) + return css unless self.plugins.any? + + plugin_css = "" + + self.plugins.each do |plugin| + plugin_file_specific = File.join(Blueprint::PLUGINS_PATH, plugin, current_file_name) + plugin_file_generic = File.join(Blueprint::PLUGINS_PATH, plugin, "#{plugin}.css") + + file = if File.exists?(plugin_file_specific) + plugin_file_specific + elsif File.exists?(plugin_file_generic) && current_file_name =~ /^screen|print/ + plugin_file_generic + end + + if file + puts " + #{plugin} plugin\n" + plugin_css += "/* #{plugin} */\n" + plugin_css += CSSParser.new(File.path_to_string(file)).to_s + "\n" + + Dir.glob(File.join(File.dirname(file), "**", "**")).each do |cp| + short_path = cp.gsub(/#{File.dirname(file)}./ , '') + # make directory if it doesn't exist + directory = File.dirname(short_path) + FileUtils.mkdir_p(File.join(destination_path, directory)) unless directory == "." + FileUtils.cp cp, File.join(destination_path, short_path) unless File.directory?(File.join(File.dirname(file), short_path)) || cp == file + end + end + end + + css += plugin_css + end + + def append_semantic_classes + screen_output_path = File.join(self.destination_path, "screen.css") + semantic_styles = SemanticClassNames.new(:namespace => self.namespace, :source_file => screen_output_path).css_from_assignments(self.semantic_classes) + return if semantic_styles.blank? + + css = File.path_to_string(screen_output_path) + css += "\n\n/* semantic class names */\n" + css += semantic_styles + File.string_to_file(css.rstrip, screen_output_path) + end + + def generate_tests + puts "\n Updating namespace to \"#{namespace}\" in test files:" + test_files = Compressor::TEST_FILES.map {|f| File.join(Blueprint::TEST_PATH, *f.split(/\//))} + + test_files.each do |file| + puts " + #{file}" + Namespace.new(file, namespace) + end + end + + def output_header + puts "\n" + puts " #{"*" * 100}" + puts " **" + puts " ** Blueprint CSS Compressor" + puts " **" + puts " ** Builds compressed files from the source directory." + puts " **" + puts " ** Loaded from settings.yml" if loaded_from_settings + puts " ** Namespace: '#{namespace}'" unless namespace.blank? + puts " ** Output to: #{destination_path}" + puts " ** Grid Settings:" + puts " ** - Column Count: #{self.custom_layout.column_count}" + puts " ** - Column Width: #{self.custom_layout.column_width}px" + puts " ** - Gutter Width: #{self.custom_layout.gutter_width}px" + puts " ** - Total Width : #{self.custom_layout.page_width}px" + puts " **" + puts " #{"*" * 100}" + end + + def output_footer + puts "\n\n" + puts " #{"*" * 100}" + puts " **" + puts " ** Done!" + puts " ** Your compressed files and test files are now up-to-date." + puts " **" + puts " #{"*" * 100}\n\n" + end + + def css_file_header +%(/* ----------------------------------------------------------------------- + + + Blueprint CSS Framework 0.8 + http://blueprintcss.org + + * Copyright (c) 2007-Present. See LICENSE for more info. + * See README for instructions on how to use Blueprint. + * For credits and origins, see AUTHORS. + * This is a compressed file. See the sources in the 'src' directory. + +----------------------------------------------------------------------- */) + end + + def putsv(str) + puts str if $verbose + end + end +end diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/core_ext.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/core_ext.rb new file mode 100755 index 0000000..70659b6 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/core_ext.rb @@ -0,0 +1,39 @@ +class String + # see if string has any content + def blank?; self.length.zero?; end + + # strip space after :, remove newlines, replace multiple spaces with only one space, remove comments + def strip_space! + replace self.gsub(/:\s*/, ':').gsub(/\n/, '').gsub(/\s+/, ' ').gsub(/(\/\*).*?(\*\/)/, '') + end + + # remove newlines, insert space after comma, replace two spaces with one space after comma + def strip_selector_space! + replace self.gsub(/(\n)/, '').gsub(',', ', ').gsub(', ', ', ') + end + + # remove leading whitespace, remove end whitespace + def strip_side_space! + replace self.gsub(/^\s+/, '').gsub(/\s+$/, $/) + end +end + +class NilClass + def blank? + true + end +end + +class File + # string output from file + def self.path_to_string(path) + File.new(path).read + end + + # saves a string to a specified file path + def self.string_to_file(string, path) + directory = File.dirname(path) + FileUtils.mkdir_p directory unless File.directory?(directory) + File.open(path, 'w') { |f| f << string } + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/css_parser.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/css_parser.rb new file mode 100755 index 0000000..e06e6d9 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/css_parser.rb @@ -0,0 +1,69 @@ +module Blueprint + # Strips out most whitespace and can return a hash or string of parsed data + class CSSParser + attr_accessor :namespace + attr_reader :css_output, :raw_data + + # ==== Options + # * css_string String of CSS data + # * options + # * :namespace -- Namespace to use when generating output + def initialize(css_string = "", options = {}) + @raw_data = css_string + @namespace = options[:namespace] || "" + compress(@raw_data) + end + + # returns string of CSS which can be saved to a file or otherwise + def to_s + @css_output + end + + # returns a hash of all CSS data passed + # + # ==== Options + # * data -- CSS string; defaults to string passed into the constructor + def parse(data = nil) + data ||= @raw_data + + # wrapper array holding hashes of css tags/rules + css_out = [] + # clear initial spaces + data.strip_side_space!.strip_space! + + # split on end of assignments + data.split('}').each_with_index do |assignments, index| + # split again to separate tags from rules + tags, styles = assignments.split('{').map{|a| a.strip_side_space!} + unless styles.blank? + # clean up tags and apply namespaces as needed + tags.strip_selector_space! + tags.gsub!(/\./, ".#{namespace}") unless namespace.blank? + + # split on semicolon to iterate through each rule + rules = [] + styles.split(';').each do |key_val_pair| + unless key_val_pair.nil? + # split by property/val and append to rules array with correct declaration + property, value = key_val_pair.split(':').map{|kv| kv.strip_side_space!} + break unless property && value + rules << "#{property}:#{value};" + end + end + # now keeps track of index as hashes don't keep track of position (which will be fixed in Ruby 1.9) + css_out << {:tags => tags, :rules => rules.to_s, :idx => index} unless tags.blank? || rules.to_s.blank? + end + end + css_out + end + + private + + def compress(data) + @css_output = "" + parse(data).flatten.sort_by {|i| i[:idx]}.each do |line| + @css_output += "#{line[:tags]} {#{line[:rules]}}\n" + end + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/custom_layout.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/custom_layout.rb new file mode 100755 index 0000000..71b34d4 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/custom_layout.rb @@ -0,0 +1,71 @@ +require 'erb' +module Blueprint + # Generates a custom grid file, using ERB to evaluate custom settings + class CustomLayout + # path to ERB file used for CSS template + CSS_ERB_FILE = File.join(Blueprint::LIB_PATH, 'grid.css.erb') + + attr_writer :column_count, :column_width, :gutter_width, :input_padding, :input_border + + # Column count of generated CSS. Returns itself or Blueprint's default + def column_count + (@column_count || Blueprint::COLUMN_COUNT).to_i + end + + # Column width (in pixels) of generated CSS. Returns itself or Blueprint's default + def column_width + (@column_width || Blueprint::COLUMN_WIDTH).to_i + end + + # Gutter width (in pixels) of generated CSS. Returns itself or Blueprint's default + def gutter_width + (@gutter_width || Blueprint::GUTTER_WIDTH).to_i + end + + def input_padding + (@input_padding || Blueprint::INPUT_PADDING).to_i + end + + def input_border + (@input_border || Blueprint::INPUT_BORDER).to_i + end + + # Returns page width (in pixels) + def page_width + column_count * (column_width + gutter_width) - gutter_width + end + + # ==== Options + # * options + # * :column_count -- Sets the column count of generated CSS + # * :column_width -- Sets the column width (in pixels) of generated CSS + # * :gutter_width -- Sets the gutter width (in pixels) of generated CSS + # * :input_padding -- Sets the input padding width (in pixels) of generated CSS + # * :input_border -- Sets the border width (in pixels) of generated CSS + def initialize(options = {}) + @column_count = options[:column_count] + @column_width = options[:column_width] + @gutter_width = options[:gutter_width] + @input_padding = options[:input_padding] + @input_border = options[:input_border] + end + + # Boolean value if current settings are Blueprint's defaults + def default? + self.column_width == Blueprint::COLUMN_WIDTH && + self.column_count == Blueprint::COLUMN_COUNT && + self.gutter_width == Blueprint::GUTTER_WIDTH && + self.input_padding == Blueprint::INPUT_PADDING && + self.input_border == Blueprint::INPUT_BORDER + end + + # Loads grid.css.erb file, binds it to current instance, and returns output + def generate_grid_css + # loads up erb template to evaluate custom widths + css = ERB::new(File.path_to_string(CustomLayout::CSS_ERB_FILE)) + + # bind it to this instance + css.result(binding) + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid.css.erb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid.css.erb new file mode 100755 index 0000000..a17f33e --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid.css.erb @@ -0,0 +1,136 @@ +/* -------------------------------------------------------------- + grid.css - mirror version of src/grid.css +-------------------------------------------------------------- */ + +/* A container should group all your columns. */ +.container { + width: <%= page_width %>px; + margin: 0 auto; +} + +/* Use this class on any div.span / container to see the grid. */ +.showgrid { + background: url(src/grid.png); +} + + +/* Columns +-------------------------------------------------------------- */ + +/* Sets up basic grid floating and margin. */ +.column, <%= (1..column_count).map {|c| "div.span-#{c}" }.join(", ") %> { + float: left; + margin-right: <%= gutter_width %>px; +} + +/* The last column in a row needs this class. */ +.last, div.last { margin-right: 0; } + +/* Use these classes to set the width of a column. */ +.span-1 {width: <%= column_width %>px;} +<% (2..column_count-1).each do |column| %> +.span-<%= column %> {width: <%= (column_width + ((column - 1) * (column_width + gutter_width))).to_i %>px;<%= "margin: 0;" if column == column_count %>}<% end %> +.span-<%= column_count %>, div.span-<%= column_count %> { width:<%= page_width %>px; margin:0; } + +/* Use these classes to set the width of an input. */ +<%= (1..column_count).map {|column| "input.span-#{column}, textarea.span-#{column}"}.join(", ") %> { + border-left-width: <%= input_border %>px!important; + border-right-width: <%= input_border %>px!important; + padding-left: <%= input_padding %>px!important; + padding-right: <%= input_padding %>px!important; +} +<% (1..column_count).each do |column| %> +input.span-<%= column %>, textarea.span-<%= column %> { width: <%= ((column_width + gutter_width) * (column - 1) + column_width - 2*(input_padding + input_border))%>px!important; }<% end %> + +/* Add these to a column to append empty cols. */ +<% (1..(column_count-1)).each do |column| %> +.append-<%= column %> { padding-right: <%= (column * (column_width + gutter_width)).to_i %>px;}<% end %> + +/* Add these to a column to prepend empty cols. */ +<% (1..(column_count-1)).each do |column| %> +.prepend-<%= column %> { padding-left: <%= (column * (column_width + gutter_width)).to_i %>px;}<% end %> + + +/* Border on right hand side of a column. */ +div.border { + padding-right: <%= (gutter_width * 0.5 - 1).to_i %>px; + margin-right: <%= (gutter_width * 0.5).to_i %>px; + border-right: 1px solid #eee; +} + +/* Border with more whitespace, spans one column. */ +div.colborder { + padding-right: <%= (column_width + 2*gutter_width - 1)/2.to_i %>px; + margin-right: <%= (column_width + 2 * gutter_width)/2.to_i %>px; + border-right: 1px solid #eee; +} + + +/* Use these classes on an element to push it into the +next column, or to pull it into the previous column. */ + +<% (1..column_count).each do |column| %> +.pull-<%= column %> { margin-left: -<%= (column * (column_width + gutter_width)).to_i %>px; }<% end %> + +<%= (1..column_count).map {|c| ".pull-#{c}" }.join(", ") %> {float: left; position:relative;} + +<% (1..(column_count)).each do |column| %> +.push-<%= column %> { margin: 0 -<%= (column * (column_width + gutter_width)).to_i %>px 1.5em <%= (column * (column_width + gutter_width)).to_i %>px; }<% end %> + +<%= (1..column_count).map {|c| ".push-#{c}" }.join(", ") %> {float: right; position:relative;} + + +/* Misc classes and elements +-------------------------------------------------------------- */ + +/* In case you need to add a gutter above/below an element */ +.prepend-top { + margin-top:1.5em; +} +.append-bottom { + margin-bottom:1.5em; +} + +/* Use a .box to create a padded box inside a column. */ +.box { + padding: 1.5em; + margin-bottom: 1.5em; + background: #E5ECF9; +} + +/* Use this to create a horizontal ruler across a column. */ +hr { + background: #ddd; + color: #ddd; + clear: both; + float: none; + width: 100%; + height: .1em; + margin: 0 0 1.45em; + border: none; +} + +hr.space { + background: #fff; + color: #fff; +} + + +/* Clearing floats without extra markup + Based on How To Clear Floats Without Structural Markup by PiE + [http://www.positioniseverything.net/easyclearing.html] */ + +.clearfix:after, .container:after { + content: "\0020"; + display: block; + height: 0; + clear: both; + visibility: hidden; + overflow:hidden; +} +.clearfix, .container {display: block;} + +/* Regular clearing + apply to column that should drop below previous ones. */ + +.clear { clear:both; } diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid_builder.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid_builder.rb new file mode 100755 index 0000000..c72aaea --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/grid_builder.rb @@ -0,0 +1,54 @@ +begin + require 'rubygems' + gem 'rmagick' + require 'rvg/rvg' +rescue Exception => e +end + +module Blueprint + # Uses ImageMagick and RMagick to generate grid.png file + class GridBuilder + begin + include Magick + rescue Exception => e + end + + attr_reader :column_width, :gutter_width, :output_path, :able_to_generate + + # ==== Options + # * options + # * :column_width -- Width (in pixels) of current grid column + # * :gutter_width -- Width (in pixels) of current grid gutter + # * :output_path -- Output path of grid.png file + def initialize(options={}) + @able_to_generate = Magick::Long_version rescue false + return unless @able_to_generate + @column_width = options[:column_width] || Blueprint::COLUMN_WIDTH + @gutter_width = options[:gutter_width] || Blueprint::GUTTER_WIDTH + @output_path = options[:output_path] || Blueprint::SOURCE_PATH + end + + # generates (overwriting if necessary) grid.png image to be tiled in background + def generate! + return false unless self.able_to_generate + total_width = self.column_width + self.gutter_width + height = 18 + RVG::dpi = 100 + + rvg = RVG.new((total_width.to_f/RVG::dpi).in, (height.to_f/RVG::dpi).in).viewbox(0, 0, total_width, height) do |canvas| + canvas.background_fill = 'white' + + canvas.g do |column| + column.rect(self.column_width, height).styles(:fill => "#e8effb") + end + + canvas.g do |baseline| + baseline.line(0, (height - 1), total_width, (height- 1)).styles(:fill => "#e9e9e9") + end + end + + FileUtils.mkdir self.output_path unless File.exists? self.output_path + rvg.draw.write(File.join(self.output_path, "grid.png")) + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/namespace.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/namespace.rb new file mode 100755 index 0000000..632f206 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/namespace.rb @@ -0,0 +1,38 @@ +module Blueprint + class Namespace + + # Read html to string, remove namespace if any, + # set the new namespace, and update the test file. + def initialize(path, namespace) + html = File.path_to_string(path) + remove_current_namespace(html) + add_namespace(html, namespace) + File.string_to_file(html, path) + end + + # adds namespace to BP classes in a html file + def add_namespace(html, namespace) + html.gsub!(/(class=")([a-zA-Z0-9\-_ ]*)(")/) do |m| + classes = m.to_s.split('"')[1].split(' ') + classes.map! { |c| c = namespace + c } + 'class="' + classes.join(' ') + '"' + end + html + end + + # removes a namespace from a string of html + def remove_current_namespace(html) + current = current_namespace(html) + html.gsub!(current, '') + html + end + + # returns current namespace in test files + # based on container class + def current_namespace(html) + html =~ /class="([\S]+)container/ + current_namespace = $1 if $1 + current_namespace || '' + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/semantic_class_names.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/semantic_class_names.rb new file mode 100755 index 0000000..c17af1d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/semantic_class_names.rb @@ -0,0 +1,57 @@ +module Blueprint + # parses a hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from + class SemanticClassNames + attr_accessor :class_assignments + attr_reader :namespace, :source_file + + # ==== Options + # * options + # * :namespace -- Namespace to be used when matching CSS selectors to draw from + # * :source_file -- Source file to use as reference of CSS selectors. Defaults to Blueprint's generated screen.css + # * :class_assignments -- Hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from + def initialize(options = {}) + @namespace = options[:namespace] || "" + @source_file = options[:source_file] || File.join(Blueprint::BLUEPRINT_ROOT_PATH, 'screen.css') + self.class_assignments = options[:class_assignments] || {} + end + + # Returns a CSS string of semantic selectors and associated styles + # ==== Options + # * assignments -- Hash of key/value pairs, key being output CSS selectors, value being a list of CSS selectors to draw from; defaults to what was passed in constructor or empty hash + def css_from_assignments(assignments = {}) + assignments ||= self.class_assignments + + # define a wrapper hash to hold all the new CSS assignments + output_css = {} + + #loads full stylesheet into an array of hashes + blueprint_assignments = CSSParser.new(File.path_to_string(self.source_file)).parse + + # iterates through each class assignment ('#footer' => '.span-24 div.span-24', '#header' => '.span-24 div.span-24') + assignments.each do |semantic_class, blueprint_classes| + # gathers all BP classes we're going to be mimicing + blueprint_classes = blueprint_classes.split(/,|\s/).find_all {|c| !c.blank? }.flatten.map {|c| c.strip } + classes = [] + # loop through each BP class, grabbing the full hash (containing tags, index, and CSS rules) + blueprint_classes.each do |bp_class| + match = bp_class.include?('.') ? bp_class.gsub(".", ".#{self.namespace}") : ".#{self.namespace}#{bp_class}" + classes << blueprint_assignments.find_all {|line| line[:tags] =~ Regexp.new(/^([\w\.\-\:]+, ?)*#{match}(, ?[\w\.\-\:]+)*$/) }.uniq + end + + # clean up the array + classes = classes.flatten.uniq + + # set the semantic class to the rules gathered in classes, sorted by index + # this way, the styles will be applied in the correct order from top of file to bottom + output_css[semantic_class] = "#{classes.sort_by {|i| i[:idx]}.map {|i| i[:rules]}}" + end + + # return the css in proper format + css = "" + output_css.each do |tags, rules| + css += "#{tags} {#{rules}}\n" + end + css + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/COPYRIGHT.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/COPYRIGHT.html new file mode 100755 index 0000000..f9d0b6f --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/COPYRIGHT.html @@ -0,0 +1,93 @@ + + + + + +W3C IPR SOFTWARE NOTICE + + +

W3C® SOFTWARE NOTICE AND LICENSE

+ +

Copyright © 1997-2002 World +Wide Web Consortium, (Massachusetts Institute of +Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All Rights +Reserved. http://www.w3.org/Consortium/Legal/

+ +

This W3C work (including software, documents, or other related +items) is being provided by the copyright holders under the +following license. By obtaining, using and/or copying this work, +you (the licensee) agree that you have read, understood, and will +comply with the following terms and conditions:

+ +

Permission to use, copy, modify, and distribute this software +and its documentation, with or without modification,  for any +purpose and without fee or royalty is hereby granted, provided that +you include the following on ALL copies of the software and +documentation or portions thereof, including modifications, that +you make:

+ +
    +
  1. The full text of this NOTICE in a location viewable to users of +the redistributed or derivative work.
  2. + +
  3. Any pre-existing intellectual property disclaimers, notices, or +terms and conditions. If none exist, a short notice of the +following form (hypertext is preferred, text is permitted) should +be used within the body of any redistributed or derivative code: +"Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of +Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All Rights +Reserved. http://www.w3.org/Consortium/Legal/"
  4. + +
  5. Notice of any changes or modifications to the W3C files, +including the date changes were made. (We recommend you provide +URIs to the location from which the code is derived.)
  6. +
+ +

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND +COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF +MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE +USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD +PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.

+ +

COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, +SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE +SOFTWARE OR DOCUMENTATION.

+ +

The name and trademarks of copyright holders may NOT be used in +advertising or publicity pertaining to the software without +specific, written prior permission. Title to copyright in this +software and any associated documentation will at all times remain +with copyright holders.

+ +

____________________________________

+ +

This formulation of W3C's notice and license became active on +August 14 1998 so as to improve compatibility with GPL. This +version ensures that W3C software licensing terms are no more +restrictive than GPL and consequently W3C software may be +distributed in GPL packages. See the older formulation for +the policy prior to this date. Please see our Copyright FAQ for common questions about +using materials from our site, including specific terms and +conditions for packages like libwww, Amaya, and Jigsaw. Other +questions about this notice can be directed to site-policy@w3.org.

+ +

 

+ +
webmaster
+ (last updated $Date: 2004/05/29 04:04:36 $)
+ + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/JIGSAW_COPYRIGHT b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/JIGSAW_COPYRIGHT new file mode 100755 index 0000000..9108b47 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/JIGSAW_COPYRIGHT @@ -0,0 +1,64 @@ +W3C IPR SOFTWARE NOTICE + +Copyright © 1995-1998 World Wide Web Consortium, (Massachusetts Institute of +Technology, Institut National de Recherche en Informatique et en +Automatique, Keio University). All Rights Reserved. +http://www.w3.org/Consortium/Legal/ + +This W3C work (including software, documents, or other related items) is +being provided by the copyright holders under the following license. By +obtaining, using and/or copying this work, you (the licensee) agree that you +have read, understood, and will comply with the following terms and +conditions: + +Permission to use, copy, and modify this software and its documentation, +with or without modification, for any purpose and without fee or royalty is +hereby granted, provided that you include the following on ALL copies of the +software and documentation or portions thereof, including modifications, +that you make: + + 1. The full text of this NOTICE in a location viewable to users of the + redistributed or derivative work. + 2. Any pre-existing intellectual property disclaimers, notices, or terms + and conditions. If none exist, a short notice of the following form + (hypertext is preferred, text is permitted) should be used within the + body of any redistributed or derivative code: "Copyright © World Wide + Web Consortium, (Massachusetts Institute of Technology, Institut + National de Recherche en Informatique et en Automatique, Keio + University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" + 3. Notice of any changes or modifications to the W3C files, including the + date changes were made. (We recommend you provide URIs to the location + from which the code is derived). + +In addition, creators of derivitive works must include the full text of this +NOTICE in a location viewable to users of the derivitive work. + +THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS +MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR +PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE +ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR +DOCUMENTATION. + +The name and trademarks of copyright holders may NOT be used in advertising +or publicity pertaining to the software without specific, written prior +permission. Title to copyright in this software and any associated +documentation will at all times remain with copyright holders. + +____________________________________ + +This formulation of W3C's notice and license became active on August 14 +1998. See the older formulation for the policy prior to this date. Please +see our Copyright FAQ for common questions about using materials from our +site, including specific terms and conditions for packages like libwww, +Amaya, and Jigsaw. Other questions about this notice can be directed to +site-policy@w3.org . + + + + +webmaster +(last updated 14-Aug-1998) diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/README.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/README.html new file mode 100755 index 0000000..4071e58 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/README.html @@ -0,0 +1,83 @@ + + + + CSS Validator Binary Distribution - Illumit + + + +

CSS Validator Binary Distribution

+

This a binary distribution of W3C CSS Validator. + It was built from the source on June 25, 2006. + No modifications were made.

+ +

This distribution is provided as is to make testing a large number of CSS files easier.

+ + +

Requirements

+

A Java 2 Virtual Machine is required to use the validator. + You can download one from Sun if you do not have one installed.

+ +

Usage

+

Summary

+

java -jar ~/css-validator/css-validator.jar [-options] files URLs

+

Sample

+
+    java -jar ~/css-validator/css-validator.jar f1.css http://illumit.com/
+    
+

Options

+
+
-e
Show errors only.
+
-html
Output HTML.
+
-css1 | -css2 | -css21 | -css3 | -svg | -svgbasic | -svgtiny
+
Specify CSS version. CSS2 is the default.
+
+ +

Support

+ +

If you have questions about how this distribution is built or packaged, + mailto:contact@illumit.com.

+ +

Use the CSS Validator Feedback + page if you have any questions or problems with the validator itself.

+ +

Updates are announced on via + RSS

+ + + +

Download

+ +

Download the css validator binary distribution css-validator.zip. Extract the files (OS X and *ix users can use unzip).

+ + +

License Agreement

+ +

This is a binary distribution of W3C CSS Validator Version 2.0 + It was built from the source on June 25, 2006. + No modifications were made to the source.

+ +

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND +ILLUMIT L.L.C AND THE COPYRIGHT HOLDERS (W3C) MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF +MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE +USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD +PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.

+ +

ILLUMIT L.L.C AND THE COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, +SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE +SOFTWARE OR DOCUMENTATION.

+ + + diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/XERCES_COPYING.txt b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/XERCES_COPYING.txt new file mode 100755 index 0000000..183b52c --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/XERCES_COPYING.txt @@ -0,0 +1,56 @@ +/* + * The Apache Software License, Version 1.1 + * + * + * Copyright (c) 1999 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Xerces" and "Apache Software Foundation" must + * not be used to endorse or promote products derived from this + * software without prior written permission. For written + * permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * nor may "Apache" appear in their name, without prior written + * permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation and was + * originally based on software copyright (c) 1999, International + * Business Machines, Inc., http://www.ibm.com. For more + * information on the Apache Software Foundation, please see + * . + */ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator-javadoc.jar b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator-javadoc.jar new file mode 100755 index 0000000..ed3d030 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator-javadoc.jar differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator.jar b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator.jar new file mode 100755 index 0000000..592b040 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/css-validator.jar differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/jigsaw.jar b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/jigsaw.jar new file mode 100755 index 0000000..53419d6 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/jigsaw.jar differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/xerces.jar b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/xerces.jar new file mode 100755 index 0000000..f470895 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validate/xerces.jar differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validator.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validator.rb new file mode 100755 index 0000000..07b14db --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/blueprint/validator.rb @@ -0,0 +1,49 @@ +module Blueprint + # Validates generated CSS against the W3 using Java + class Validator + attr_reader :error_count + + def initialize + @error_count = 0 + end + + # Validates all three CSS files + def validate + java_path = `which java`.rstrip + raise "You do not have a Java installed, but it is required." if java_path.blank? + + output_header + + Blueprint::CSS_FILES.keys.each do |file_name| + css_output_path = File.join(Blueprint::BLUEPRINT_ROOT_PATH, file_name) + puts "\n\n Testing #{css_output_path}" + puts " Output ============================================================\n\n" + @error_count += 1 if !system("#{java_path} -jar '#{Blueprint::VALIDATOR_FILE}' -e '#{css_output_path}'") + end + + output_footer + end + + private + + def output_header + puts "\n\n" + puts " ************************************************************" + puts " **" + puts " ** Blueprint CSS Validator" + puts " ** Validates output CSS files" + puts " **" + puts " ************************************************************" + end + + def output_footer + puts "\n\n" + puts " ************************************************************" + puts " **" + puts " ** Done!" + puts " ** Your CSS files are#{" not" if error_count > 0} valid.#{" You had #{error_count} error(s) within your files" if error_count > 0}" + puts " **" + puts " ************************************************************" + end + end +end \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/compress.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/compress.rb new file mode 100755 index 0000000..52731e8 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/compress.rb @@ -0,0 +1,149 @@ +#!/usr/bin/env ruby +require File.join(File.dirname(__FILE__), "blueprint", "blueprint") + +# **Basic +# +# Calling this file by itself will pull files from blueprint/src and concatenate them into three files; ie.css, print.css, and screen.css. +# +# ruby compress.rb +# +# However, argument variables can be set to change how this works. +# +# Calling +# +# ruby compress.rb -h +# +# will reveal basic arguments you can pass to the compress.rb file. +# +# **Custom Settings +# +# To use custom settings, the file need to be stored in settings.yml within this directory. An example YAML file has been included. +# +# Another ability is to use YAML (spec is at http://www.yaml.org/spec/1.1/) for project settings in a predefined structure and +# store all pertinent information there. The YAML file has multiple keys (usually a named project) with a set of data that defines +# that project. A sample structure can be found in settings.example.yml. +# +# The basic structure is this: +# +# Root nodes are project names. You use these when calling compress.rb as such: +# +# ruby compress.rb -p PROJECTNAME +# +# A sample YAML with only roots and output paths would look like this: +# +# project1: +# path: /path/to/my/project/stylesheets +# project2: +# path: /path/to/different/stylesheets +# project3: +# path: /path/to/another/projects/styles +# +# You can then call +# +# ruby compress.rb -p project1 +# +# or +# +# ruby compress.rb -p project3 +# +# This would compress and export Blueprints CSS to the respective directory, checking for my-(ie|print|screen).css and +# appending it if present +# +# A more advanced structure would look like this: +# +# project1: +# path: /path/to/my/project/stylesheets +# namespace: custom-namespace-1- +# custom_css: +# ie.css: +# - custom-ie.css +# print.css: +# - docs.css +# - my-print-styles.css +# screen.css: +# - subfolder-of-stylesheets/sub_css.css +# custom_layout: +# column_count: 12 +# column_width: 70 +# gutter_width: 10 +# project2: +# path: /path/to/different/stylesheets +# namespace: different-namespace- +# custom_css: +# screen.css: +# - custom_screen.css +# semantic_classes: +# "#footer, #header": column span-24 last +# "#content": column span-18 border +# "#extra-content": last span-6 column +# "div#navigation": last span-24 column +# "div.section, div.entry, .feeds": span-6 column +# plugins: +# - fancy-type +# - buttons +# - validations +# project3: +# path: /path/to/another/projects/styles +# +# In a structure like this, a lot more assignment is occurring. Custom namespaces are being set for two projects, while +# the third (project3) is just a simple path setting. +# +# Also, custom CSS is being used that is appended at the end of its respective file. So, in project1, print.css will have docs.css +# and my-print-styles.css instead of the default my-print.css. Note that these files are relative to the path that you defined above; +# you can use subdirectories from the default path if you would like. +# +# Another thing to note here is the custom_layout; if not defined, your generated CSS will default to the 24 column, 950px wide grid that +# has been standard with Blueprint for quite some time. However, you can specify a custom grid setup if you would like. The three options +# are column_count (the number of columns you want your grid to have), column width (the width in pixels that you want your columns to be), and +# gutter_width (the width in pixels you want your gutters - space between columns - to be). To use the Blueprint default, do not define this +# in your settings file. +# +# Semantic classes are still in the works within Blueprint, but a simple implementation has been created. +# +# Defining semantic_classes, with nodes underneath, will generate a class for each node which has rules of each class assigned to it. For example, +# in project2 above, for '#footer, #header', elements with id's of footer and header will be assigned all the rules from the +# classes 'span-24, column, and last', while divs with classes either entry or section, as well as any element with class of feed, is +# assigned all the rules from 'span-6 and column'. Although it is a crude way do accomplish this, it keeps the generated CSS separate from the core BP CSS. +# +# Also supported is plugins. The compressor looks within BLUEPRINT_DIR/blueprint/plugins to match against what's passed. If the plugin name +# matches, it will append PLUGIN/(screen|print|ie).css to the corresponding CSS file. It will append the plugin CSS to all three CSS files if +# there is a CSS file present named as the plugin (e.g. the fancy-type plugin with a fancy-type.css file found within the plugin directory) +# +# In Ruby, the structure would look like this: +# +# { +# 'project1' => { +# 'path' => '/path/to/my/project/stylesheets', +# 'namespace' => 'custom-namespace-1-', +# 'custom_css' => { +# 'ie.css' => ['custom-ie.css'], +# 'print.css' => ['docs.css', 'my-print-styles.css'], +# 'screen.css' => ['subfolder-of-stylesheets/sub_css.css'] +# }, +# 'custom_layout' => { +# 'column_count' => 12, +# 'column_width' => 70, +# 'gutter_width' => 10 +# } +# }, +# 'project2' => { +# 'path' => '/path/to/different/stylesheets', +# 'namespace' => 'different-namespace-', +# 'custom_css' => { +# 'screen.css' => ['custom_screen.css'] +# }, +# 'semantic_classes' => { +# '#footer, #header' => 'column span-24 last', +# '#content' => 'column span-18 border', +# '#extra-content' => 'last span-6 column', +# 'div#navigation' => 'last span-24 column', +# 'div.section, div.entry, .feeds' => 'span-6 column' +# }, +# 'plugins' => ['fancy-type', 'buttons', 'validations'] +# }, +# 'project3' => { +# 'path' => '/path/to/another/projects/styles' +# } +# } + +Blueprint::Compressor.new.generate! \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/settings.example.yml b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/settings.example.yml new file mode 100755 index 0000000..7d39bbd --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/settings.example.yml @@ -0,0 +1,33 @@ +# refer to http://www.yaml.org/spec/1.1/ for clarification on YAML collections +project1: + path: /path/to/my/project/stylesheets + namespace: custom-namespace-1- + custom_css: + ie.css: + - custom-ie.css + print.css: + - docs.css + - my-print-styles.css + screen.css: + - subfolder-of-stylesheets/sub_css.css + custom_layout: + column_count: 12 + column_width: 70 + gutter_width: 10 + plugins: + - fancy-type + - buttons +project2: + path: /path/to/different/stylesheets + namespace: different-namespace- + custom_css: + screen.css: + - custom_screen.css + semantic_classes: + "#footer, #header": ".span-24, div.span-24" + "#content": ".span-17, div.span-17, div.colborder" + "#extra-content": ".span-6, div.span-6" + "div#navigation": "div.span_24, .span-24" + "div.section, div.entry, .feeds": ".span-6 div.span-6" +project3: + path: /path/to/another/projects/styles \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/validate.rb b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/validate.rb new file mode 100755 index 0000000..452241f --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/lib/validate.rb @@ -0,0 +1,15 @@ +#!/usr/bin/env ruby + +require 'blueprint/blueprint' +require 'blueprint/validator' + +# This script will validate the core Blueprint files. +# +# The files are not completely valid. This has to do +# with a small number of CSS hacks needed to ensure +# consistent rendering across browsers. +# +# To add your own CSS files for validation, see +# /lib/blueprint/validator.rb + +Blueprint::Validator.new.validate \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/index.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/index.html new file mode 100755 index 0000000..bb6446d --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/index.html @@ -0,0 +1,83 @@ + + + + + + Blueprint test pages + + + + + + + + + +
+

Blueprint test pages

+
+ +

Welcome to the Blueprint test pages. The HTML files below tests most HTML elements, and especially classes provided + by Blueprint.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test pageMain files testedDescription
Sample page + grid.css, + typography.css + A simple sample page, with common elements.
Grid + grid.css + Tests classes provided by grid.css.
Typography + typography.css + Tests HTML elements which gets set in typography.css.
Forms + forms.css + Tests classes and default look provided by forms.css.
+ +

Note about the compressed versions: + These test files utilize the compressed files. In other words, if you change any of the source files, + you'll have to re-compress them with the ruby script in the scripts folder to see any changes.

+ +
+

For more information and help, try these resources:

+ +
+ +

+ Valid HTML 4.01 Strict

+ +
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/elements.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/elements.html new file mode 100755 index 0000000..3dd8a8f --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/elements.html @@ -0,0 +1,246 @@ + + + + + + Blueprint HTML Elements Tests + + + + + + + + + +
+

Tests for common HTML elements

+
+ +
PARAGRAPHS & BOXES
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor sub text ut labore et sup text magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +
+ +
+

Aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+
+ +
+
+ +
LISTS
+ +
+
    +
  • Unordered list test
  • +
  • Another list element. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  • +
  • Yet another element in the list
  • +
  • Some long text. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
  • +
+
    +
  1. Ordered list test
  2. +
  3. Another list element
  4. +
  5. Yet another element in the list
  6. +
+
+ +
+
    +
  1. Ordered list
  2. +
  3. Here's a nested unordered list +
      +
    • Nested Unordered list
    • +
    • Nested ordered list +
        +
      1. The first
      2. +
      3. And the second
      4. +
      +
    • +
    +
  4. +
  5. Ordered List item
  6. +
  7. Nested Ordered list +
      +
    1. Some point
    2. +
    3. Nested Unordered list +
        +
      • The first
      • +
      • And the second
      • +
      +
    4. +
    +
  8. +
+
+ +
+
+
definition list dt
+
definition list dd
+
definition list dt
+
definition list dd
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
+
+
+ +
HEADINGS
+ +
+

H1: Lorem ipsum dolor sit amet

+

H2: Lorem ipsum dolor sit amet, consectetur elit

+

H3: Lorem ipsum dolor sit amet, consectetur adipisicing elit

+

H4: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipis

+
H5: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
H6: Lorem ipsum dolor sit amet, consectetur adipisicing elit adipisicing elit adipisicing elit
+
+ +
+

Heading 1


+

Heading 2


+

Heading 3


+

Heading 4


+
Heading 5

+
Heading 6
+
+ +
+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+
+
+ +
MISC ELEMENTS
+ +
+

+ <strong>
+ <del> deleted
+ <dfn> dfn
+ <em> emphasis +

+

+ <a> anchor
+ <a> a + href +

+

+ <abbr> abbr - extended text when mouseover.
+ <acronym> acronym - extended text when mouseover. +

+
+ <address>
+ Donald Duck
+ Box 555
+ Disneyland +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore dolore.

+
+ +
+ + + + + + + + + + + + + +
A standard test table with a caption, tr, td elements
Table Header OneTable Header Two
TD OneTD Two
TD colspan 2
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
A test table with a thead, tfoot, and tbody elements
Table Header OneTable Header Two
tfoot footer
TD OneTD Two
TD OneTD Two
TD OneTD Two
TD OneTD Two
+
+ +
+ +
<pre>
+pre  space1
+pre  space1
+pre    space2
+pre    space2
+pre	tab
+pre	tab
+ +<code> +Not indented + indent1 + indent1 + indent2 + indent3 + + <tt> + This tt text should be monospaced + and + wrap as if + one line of text + even though the code has newlines, spaces, and tabs. + It should be the same size as <p> text. + +
+
+ +

+ Valid HTML 4.01 Strict

+ +
+ + diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/forms.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/forms.html new file mode 100755 index 0000000..49c1f4c --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/forms.html @@ -0,0 +1,186 @@ + + + + + + Blueprint Forms Tests + + + + + + + +
+

Forms

+
+ +
+ + + +
+ Simple sample form +

+
+ +

+ +

+
+ +

+ +

+
+ +

+ +

+ + +

+ +
+ + +
+
+ +
+ This is a <div> with the class .error. Link. +
+
+ This is a <div> with the class .notice. Link. +
+
+ This is a <div> with the class .success. Link. +
+ +
+ Select, checkboxes, lists + +

+
+ +

+ +

+
+ +

+ +


+ Radio one
+ Radio two
+ Radio three
+

+ +


+ Check one
+ Check two
+ Check three
+

+ +
+ +
+ +
+ +
+ Alignment + +

+ + +

+ +

+ + +

+ +

+ + + + +

+ +
+ +
+ +
+
+
+ A form with class "inline" +
+ + +
+
+ some text +
+
+ checkbox one +
+
+ + +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +

+ + Valid HTML 4.01 Strict +

+ +
+ + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/grid.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/grid.html new file mode 100755 index 0000000..e20e61e --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/grid.html @@ -0,0 +1,206 @@ + + + + + + Blueprint Grid Tests + + + + + + + + +
+

Blueprint Tests: grid.css

+ + +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+ + +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+ + +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

+
+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+
+ +

1

+

2

+

3

+

4

+

5

+

3

+ +

1

+

2

+

3

+

4

+

5

+

3

+ +

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+

11

+

12

+

13

+

14

+

15

+

16

+

17

+

18

+

19

+

20

+

21

+

22

+

23

+

24

+ + +

1

+

2

+

3

+

4

+

5

+

6

+ + +

24

+ + +

2

+

23

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+
+ + +
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+
+ +
+
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod.

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+
+ + +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+
+ +
+
TESTING .PUSH-1 TO .PUSH-5
+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+ +
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+ +
+ +
+
TESTING .PULL-1 TO .PULL-5
+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

+
+ +
+ + + + + +
+

+ Valid HTML 4.01 Strict

+
+ +
+ + diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/sample.html b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/sample.html new file mode 100755 index 0000000..ae2cba6 --- /dev/null +++ b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/sample.html @@ -0,0 +1,87 @@ + + + + + + Blueprint Sample Page + + + + + + + + + + + + +
+

A simple sample page

+
+

This sample page demonstrates a tiny fraction of what you get with Blueprint.

+
+ +
+
Here's a box
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.

+
+ +
+
And another box
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat laboris nisi ut aliquip.

+
+ +
+
This box is aligned with the sidebar
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.

+
+
+
+ +
+

testLorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc congue ipsum vestibulum libero. Aenean vitae justo. Nam eget tellus. Etiam convallis, est eu lobortis mattis, lectus tellus tempus felis, a ultricies erat ipsum at metus.

+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi et risus. Aliquam nisl. Nulla facilisi. Cras accumsan vestibulum ante. Vestibulum sed tortor. Praesent SMALL CAPS tempus fringilla elit. Ut elit diam, sagittis in, nonummy in, gravida non, nunc. Ut orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Nam egestas, orci eu imperdiet malesuada, nisl purus fringilla odio, quis commodo est orci vitae justo. Aliquam placerat odio tincidunt nulla. Cras in libero. Aenean rutrum, magna non tristique posuere, erat odio eleifend nisl, non convallis est tortor blandit ligula. Nulla id augue.

+

Nullam mattis, odio ut tempus facilisis, metus nisl facilisis metus, auctor consectetuer felis ligula nec mauris. Vestibulum odio erat, fermentum at, commodo vitae, ultrices et, urna. Mauris vulputate, mi pulvinar sagittis condimentum, sem nulla aliquam velit, sed imperdiet mi purus eu magna. Nulla varius metus ut eros. Aenean aliquet magna eget orci. Class aptent taciti sociosqu ad litora.

+

Vivamus euismod. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse vel nibh ut turpis dictum sagittis. Aliquam vel velit a elit auctor sollicitudin. Nam vel dui vel neque lacinia pretium. Quisque nunc erat, venenatis id, volutpat ut, scelerisque sed, diam. Mauris ante. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec mattis. Morbi dignissim sollicitudin libero. Nulla lorem.

+
+

Integer cursus ornare mauris. Praesent nisl arcu, imperdiet eu, ornare id, scelerisque ut, nunc. Praesent sagittis erat sed velit tempus imperdiet. Ut tristique, ante in interdum hendrerit, erat enim faucibus felis, quis rutrum mauris lorem quis sem. Vestibulum ligula nisi, mattis nec, posuere et, blandit eu, ligula. Nam suscipit placerat odio. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Pellentesque tortor libero, venenatis vitae, rhoncus eu, placerat ut, mi. Nulla nulla.

+
+

Maecenas vel metus quis magna pharetra fermentum. Integer sit amet tortor. Maecenas porttitor, pede sed gravida auctor, nulla augue aliquet elit, at pretium urna orci ut metus. Aliquam in dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed aliquam, tellus id ornare posuere, quam nunc accumsan turpis, at convallis tellus orci et nisl. Phasellus congue neque a lorem.

+ +
+
+
This is a nested column
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

+
+
+
This is another nested column
+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

+
+ +
+
+ +

A Simple Sidebar

+ +

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+

Mauris a lectus. Aliquam erat volutpat. Phasellus ultrices mi a sapien. Nunc rutrum egestas lorem. Duis ac sem sagittis elit tincidunt gravida. Mauris a lectus. Aliquam erat volutpat. Phasellus ultrices mi a sapien. Nunc rutrum egestas lorem. Duis ac sem sagittis elit tincidunt gravida.

+

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+ +
Incremental leading
+

Vestibulum ante ipsum primis in faucibus orci luctus vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus.

+

Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Cras ornare mattis nunc. Mauris venenatis, pede sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue. sed aliquet vehicula, lectus tellus pulvinar neque, non cursus sem nisi vel augue.

+ +
+ +
+

You may pick and choose amongst these and many more features, so be bold.

+
+ +

+ Valid HTML 4.01 Strict

+
+ + + \ No newline at end of file diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test-small.jpg b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test-small.jpg new file mode 100755 index 0000000..aa599d9 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test-small.jpg differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test.jpg b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test.jpg new file mode 100755 index 0000000..0107be2 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/test.jpg differ diff --git a/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/valid.png b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/valid.png new file mode 100755 index 0000000..dd20e49 Binary files /dev/null and b/resources/DummyHTML/css/joshuaclayton-blueprint-css-05312a805eca539ab85e435cfd94bdedfd12ab2e/tests/parts/valid.png differ diff --git a/resources/DummyHTML/css/style.css b/resources/DummyHTML/css/style.css new file mode 100644 index 0000000..aeb082e --- /dev/null +++ b/resources/DummyHTML/css/style.css @@ -0,0 +1,194 @@ +/* @group Reset */ + +html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} +body {line-height:1.5;} +table {border-collapse:separate;border-spacing:0;} +caption, th, td {text-align:left;font-weight:normal;} +table, td, th {vertical-align:middle;} +blockquote:before, blockquote:after, q:before, q:after {content:"";} +blockquote, q {quotes:"" "";} +a img {border:none;} + + + +/* @end */ + +/* @group Typography */ + +body {font-size:75%;color:#222;background:#fff;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;} +h1, h2, h3, h4, h5, h6 {font-weight:normal;} +h1 {font-size:3em;line-height:1;margin-bottom:0.5em;} +h2 {font-size:2em;margin-bottom:0.75em;} +h3 {font-size:1.5em;line-height:1;margin-bottom:1em;} +h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;} +h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;} +h6 {font-size:1em;font-weight:bold;} +h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;} +p {margin:0 0 1.5em;} +p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;} +p img.right {float:right;margin:1.5em 0 1.5em 1.5em;} +a:focus, a:hover {color:#000;} +a {color:#009;text-decoration:underline;} +blockquote {margin:1.5em;color:#666;font-style:italic;} +strong {font-weight:bold;} +em, dfn {font-style:italic;} +dfn {font-weight:bold;} +sup, sub {line-height:0;} +abbr, acronym {border-bottom:1px dotted #666;} +address {margin:0 0 1.5em;font-style:italic;} +del {color:#666;} +pre {margin:1.5em 0;white-space:pre;} +pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} +li ul, li ol {margin:0 1.5em;} +ul, ol {margin:0 1.5em 1.5em 1.5em;} +ul {list-style-type:disc;} +ol {list-style-type:decimal;} +dl {margin:0 0 1.5em 0;} +dl dt {font-weight:bold;} +dd {margin-left:1.5em;} +table {margin-bottom:1.4em;width:100%;} +th {font-weight:bold;} +thead th {background:#c3d9ff;} +th, td, caption {padding:4px 10px 4px 5px;} +tr.even td {background:#e5ecf9;} +tfoot {font-style:italic;} +caption {background:#eee;} +.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;} +.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;} +.hide {display:none;} +.quiet {color:#666;} +.loud {color:#000;} +.highlight {background:#ff0;} +.added {background:#060;color:#fff;} +.removed {background:#900;color:#fff;} +.first {margin-left:0;padding-left:0;} +.last {margin-right:0;padding-right:0;} +.top {margin-top:0;padding-top:0;} +.bottom {margin-bottom:0;padding-bottom:0;} + + + +/* @end */ + +#container { + width: 950px; + margin: 0 auto; +} + +div#header h1 { + text-transform: uppercase; + font-weight: bold; + letter-spacing: 10px; + margin: 10px 0 0 0; + float: left; +} + +div#header { + padding: 10px 0; +} +div#content { + clear: both; +} +div#footer { + clear: both; +} +form#search { + margin: 5px 0; + padding: 5px 10px; + float: right; +} +form#search input { + padding: 5px 5px 5px; + font-size: 13px; +} +form#search input.textfield { + width: 400px; + border: 1px solid black; +} +p.links { + margin: 5px 0; + text-transform: uppercase; +} +p.links a { + text-decoration: none; +} +p.links a:hover { + text-decoration: underline; +} +hr.seperator { + clear: both; + border: none; + background-color: #ddd; + height: 1px; +} +div.thumb { + background-color: #eee; + float: left; + padding: 10px; + margin-right: 10px; + margin-bottom: 10px; +} +div.thumb h3 { + text-transform: uppercase; + font-weight: bold; + font-size: 13px; +} +div.thumb h3 a { + color: black; + text-decoration: none; +} +div.thumb h3 a:hover { + border-bottom: 1px solid #999;} +div.thumb img { + width: 200px; + height: 200px; +} +div.thumb p { + text-align: center; + margin: 0; +} +.row { + clear: both; + padding-bottom: 40px; +} + +img { + + +} +.row div.image { + margin: 10px 0 0; + float: left; +} +.row div.image img { + margin: 0 0 0 10px; +} +div.title { + margin: 10px 0 0; + border-right: 1px solid #bbb; + display: block; + float: left; + width: 240px; +} +.row div.title img, .row div.image img { + width: 100px; + height: 100px; +} +div.title img { + float: right; + padding-right: 10px; + width: 100px; +} +div.title p { + font-weight: bold; + font-size: 18px; +} +div#header h1 p { + display: inline; + font-size: 12px; + letter-spacing: normal; + font-weight: normal; +} +td { + vertical-align: bottom; +} \ No newline at end of file diff --git a/resources/DummyHTML/images/project.jpg b/resources/DummyHTML/images/project.jpg new file mode 100644 index 0000000..90100ef Binary files /dev/null and b/resources/DummyHTML/images/project.jpg differ diff --git a/resources/DummyHTML/images/project2.jpg b/resources/DummyHTML/images/project2.jpg new file mode 100644 index 0000000..4e5c270 Binary files /dev/null and b/resources/DummyHTML/images/project2.jpg differ diff --git a/resources/DummyHTML/images/project3.jpg b/resources/DummyHTML/images/project3.jpg new file mode 100644 index 0000000..1ddbacd Binary files /dev/null and b/resources/DummyHTML/images/project3.jpg differ diff --git a/resources/DummyHTML/images/project4.jpg b/resources/DummyHTML/images/project4.jpg new file mode 100644 index 0000000..1681681 Binary files /dev/null and b/resources/DummyHTML/images/project4.jpg differ diff --git a/resources/DummyHTML/images/test.jpg b/resources/DummyHTML/images/test.jpg new file mode 100644 index 0000000..36b074b Binary files /dev/null and b/resources/DummyHTML/images/test.jpg differ diff --git a/resources/DummyHTML/images/test2.jpg b/resources/DummyHTML/images/test2.jpg new file mode 100644 index 0000000..a220b2a Binary files /dev/null and b/resources/DummyHTML/images/test2.jpg differ diff --git a/resources/DummyHTML/images/test3.jpg b/resources/DummyHTML/images/test3.jpg new file mode 100644 index 0000000..91f8d63 Binary files /dev/null and b/resources/DummyHTML/images/test3.jpg differ diff --git a/resources/DummyHTML/images/test4.jpg b/resources/DummyHTML/images/test4.jpg new file mode 100644 index 0000000..5ba31e8 Binary files /dev/null and b/resources/DummyHTML/images/test4.jpg differ diff --git a/resources/DummyHTML/index.html b/resources/DummyHTML/index.html new file mode 100644 index 0000000..84664f1 --- /dev/null +++ b/resources/DummyHTML/index.html @@ -0,0 +1,52 @@ + + + + + + ImageGallery + + + + + + +
+ + + +
+
+ + +

Outdoor

+

Indoor

+

Clubbing

+

Urban

+

Rural

+

Live

+

Exotic

+

Future

+

Traditional

+
+ +
+ + +
+ + diff --git a/resources/DummyHTML/projects.html b/resources/DummyHTML/projects.html new file mode 100644 index 0000000..57d2a72 --- /dev/null +++ b/resources/DummyHTML/projects.html @@ -0,0 +1,132 @@ + + + + + + ImageGallery + + + + + + +
+ + + +
+ +
+
+ +

Prosjekt 1

+
+
+ + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + + + +
+
+ + +
+
+ +

Prosjekt 1

+
+
+ + + + +
+
+ +
+ + +
+ + diff --git a/resources/DummyHTML/single.html b/resources/DummyHTML/single.html new file mode 100644 index 0000000..63cbed5 --- /dev/null +++ b/resources/DummyHTML/single.html @@ -0,0 +1,38 @@ + + + + + + ImageGallery + + + + + + +
+ + + +
+
+
+ + +
+ +