diff --git a/config.rb b/config.rb index 3ca52a80..2a27c59c 100644 --- a/config.rb +++ b/config.rb @@ -11,7 +11,7 @@ # output_style = :expanded or :nested or :compact or :compressed # To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true +relative_assets = true # To disable debugging comments that display the original location of your selectors. Uncomment: line_comments = false diff --git a/css/style.css b/css/style.css index 532c2b0c..6826c07f 100644 --- a/css/style.css +++ b/css/style.css @@ -37,7 +37,7 @@ body { body, button, input, select, textarea { font-family: sans-serif; - color: #222; + color: #e3d7bf; } ::-moz-selection { @@ -56,12 +56,12 @@ body, button, input, select, textarea { Links ========================================================================== */ a { - color: #e16734; + color: #149CD7; text-decoration: none; } a:visited { - color: #6c2b10; + color: #07364b; } a:focus { @@ -240,14 +240,11 @@ button, input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; } -input[type="checkbox"], input[type="radio"] { - box-sizing: border-box; -} - input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; + -webkit-appearance: normal; } button::-moz-focus-inner, input::-moz-focus-inner { @@ -276,8 +273,15 @@ table { Primary styles Author: Divya Manian ========================================================================== */ +* { + box-sizing: border-box; +} + html { - box-shadow: 0 0 5em #e3d7bf inset; + background-color: #232927; + color: #e3d7bf; + background: -o-radial-gradient(20% 20%, circle cover, rgba(32, 124, 202, 0.1) 10%, transparent 10%), -o-radial-gradient(30% 30%, circle cover, rgba(205, 92, 92, 0.2) 5%, transparent 5%), -o-radial-gradient(60% 40%, circle cover, rgba(255, 255, 255, 0.1) 15%, transparent 15%), -o-radial-gradient(80% 60%, circle cover, rgba(128, 128, 0, 0.2) 8%, transparent 8%), -o-radial-gradient(40% 60%, circle cover, rgba(32, 124, 202, 0.2) 5%, transparent 5%), -o-radial-gradient(40% 50%, circle cover, rgba(0, 0, 0, 0.2) 5%, transparent 5%), url('../img/denim.png?1323991851'); + background: -webkit-radial-gradient(20em 20em, circle cover, rgba(32, 124, 202, 0.1) 10em, transparent 10em), -webkit-radial-gradient(30em 30em, circle cover, rgba(205, 92, 92, 0.2) 5em, transparent 5em), -webkit-radial-gradient(60em 40em, circle cover, rgba(255, 255, 255, 0.1) 15em, transparent 15em), -webkit-radial-gradient(80em 60em, circle cover, rgba(128, 128, 0, 0.2) 8em, transparent 8em), -webkit-radial-gradient(40em 60em, circle cover, rgba(32, 124, 202, 0.2) 5em, transparent 5em), -webkit-radial-gradient(40em 50em, circle cover, rgba(0, 0, 0, 0.2) 5em, transparent 5em), url('../img/denim.png?1323991851'); min-height: 100%; max-width: 100%; } @@ -300,23 +304,21 @@ h2 { header.index h1 { font-size: 5em; text-transform: uppercase; - color: #232927; - text-shadow: 1px 1px 1px #e88860, 2px 2px 1px #e88860, 3px 3px 1px #e88860; + text-shadow: 1px 1px 1px #e88860, 2px 2px 1px #e88860, 3px 3px 1px #e88860, 4px 4px 1px #0c0d0d, 5px 5px 3px #0c0d0d; + line-height: 1.2em; + margin: 0.8em 0 0.5em 0; } header.index h1 img { vertical-align: -10%; } -header.index h1 { - line-height: 1.2em; - margin: 0; -} - header.index h1 + h2 { font-size: 1em; text-transform: lowercase; - margin: 3em 0; + margin: 0 auto; + max-width: 60%; + text-shadow: 1px 1px 1px #0c0d0d; } header.index h1, header.index h2 b { @@ -329,109 +331,86 @@ header.index h2 b { color: #e88860; } -header.index h1 b, header.index h3, article h3 b i { +header.index h1 b, +header.index h3, +article h3 b i { font-family: 'Open Sans', sans-serif; text-transform: uppercase; display: block; line-height: 1; } -header.index h3 { - background: url(../dark_mosaic.png) #232927; - color: white; - position: relative; - box-shadow: 0.05em 0.05em 0.4em 0.15em #1e2322; - padding: 1em; - font-size: 1em; - line-height: 1.5; -} - -header.index h3::before, -header.index h3::after { - content: ""; - width: 0; - height: 0; - border: 5em solid #232927; - border-width: 20px 0 20px 20px; - border-color: #1e2322 transparent #1e2322; - position: absolute; - left: -20px; - top: 50%; - margin-top: -20px; - z-index: -1; -} - -header.index h3::after { - border-width: 20px 20px 20px 0; - border-color: #1e2322 transparent #1e2322; - left: auto; - right: -20px; -} - -header.index h3 a { - color: #e88860; -} - -header.index h3 a + a::before { - content: " / "; - color: white; -} - -header.index h3 b { - word-spacing: 0.15em; - text-transform: uppercase; -} - -header.index h3, header.index h2, -article h3 b i { +header.index h3, +header.index h2 { font-weight: normal; text-transform: none; font-style: normal; } -header.index h4 { - background: #e3d7bf; - padding: 1em; - box-shadow: 0 0 1px #232927; +header.index > div { + padding: 1em 0 4em 0; } header.index input[type="search"] { width: 50%; + padding: 0.5em 1em; + background: white; + border-radius: 10em; + border: 0; + color: black; } -header.index h3, header.index h4 { +header.index h3 { margin: 0; } article h2 { color: #232927; - text-shadow: 2px 2px 1px #f5cbb9; + text-shadow: 1px 1px 1px #0b587a; + letter-spacing: 1px; } article { - overflow: hidden; min-height: 2em; - padding: 1em 0; - position: relative; - background: -webkit-gradient(radial, 50% 200%, 0, 50% 200%, 40, color-stop(0%, #e8cf11), color-stop(40%, rgba(248, 237, 155, 0))); - background: -webkit-radial-gradient(50% 200%, ellipse, #e8cf11, rgba(248, 237, 155, 0) 40%); - background: -moz-radial-gradient(50% 200%, ellipse, #e8cf11, rgba(248, 237, 155, 0) 40%); - background: -o-radial-gradient(50% 200%, ellipse, #e8cf11, rgba(248, 237, 155, 0) 40%); - background: -ms-radial-gradient(50% 200%, ellipse, #e8cf11, rgba(248, 237, 155, 0) 40%); - background: radial-gradient(50% 200%, ellipse, #e8cf11, rgba(248, 237, 155, 0) 40%); + background: white; + color: #232927; + margin-bottom: 2em; + border-radius: 0.3rem; + box-shadow: 0 0 7px #0c0d0d; } article > header { background: #e3d7bf; - border-radius: 0 0.5em 0.5em 0; + border-radius: 0.3rem; + box-shadow: 0 0 7px #d3c19c inset; + position: relative; } article > header h4, article > header h2, article > header h3, article > header a { display: inline-block; vertical-align: middle; margin: 0; } -article > header a { - float: right; +article > header > a { + position: absolute; + margin-top: 1em; + right: 1em; + width: 2em; + height: 2em; +} +article > header > a:before { + content: "+"; + font-size: 2rem; + line-height: 1.7rem; + text-align: center; + font-family: sans-serif; + color: white; + text-shadow: 1px 1px 1px #957941; + box-shadow: 0 0 7px #b49455 inset; + width: 1em; + display: block; + height: 1em; + border-radius: 1em; + background: #c4ab78; } article > header i { font-style: normal; @@ -442,11 +421,20 @@ article > header h4, article > header b, article > header h3 { article > header h4 { font-size: 0.8em; text-transform: uppercase; + position: absolute; + left: -5em; + text-align: right; + margin-top: 1.5em; + display: block; + width: 4.5em; + z-index: 1; + color: #e3d7bf; + text-shadow: 1px 1px 1px #232927; } article > header h3 { background: indianred; border-radius: 0.2rem 0 0 0.2rem; - padding: 0.5rem 0 0.5rem 1rem; + padding: 0.5rem 0.5rem 0.5rem 1rem; margin-right: 1em; color: white; text-shadow: 1px 1px black; @@ -454,31 +442,32 @@ article > header h3 { text-transform: uppercase; font-weight: bold; position: relative; + box-shadow: 4px 0px 6px #b43737 inset; } article > header h3:before, article > header h3:after { content: ""; height: 50%; - width: 1em; + width: 0.8em; position: absolute; - right: -1em; - background: -webkit-gradient(linear, 45deg, 45deg, color-stop(50%, #cd5c5c), color-stop(50%, rgba(205, 92, 92, 0))); - background: -webkit-linear-gradient(45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -moz-linear-gradient(45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -o-linear-gradient(45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -ms-linear-gradient(45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: linear-gradient(45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); + right: -0.8em; + background: -webkit-gradient(linear, 34deg, 34deg, color-stop(50%, #cd5c5c), color-stop(53%, #bc3a3a), color-stop(56%, rgba(205, 92, 92, 0))); + background: -webkit-linear-gradient(34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -moz-linear-gradient(34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -o-linear-gradient(34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -ms-linear-gradient(34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: linear-gradient(34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); } article > header h3:before { top: 0; } article > header h3:after { bottom: 0; - background: -webkit-gradient(linear, -45deg, -45deg, color-stop(50%, #cd5c5c), color-stop(50%, rgba(205, 92, 92, 0))); - background: -webkit-linear-gradient(-45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -moz-linear-gradient(-45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -o-linear-gradient(-45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: -ms-linear-gradient(-45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); - background: linear-gradient(-45deg, #cd5c5c 50%, rgba(205, 92, 92, 0) 50%); + background: -webkit-gradient(linear, -34deg, -34deg, color-stop(50%, #cd5c5c), color-stop(53%, #bc3a3a), color-stop(56%, rgba(205, 92, 92, 0))); + background: -webkit-linear-gradient(-34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -moz-linear-gradient(-34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -o-linear-gradient(-34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: -ms-linear-gradient(-34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); + background: linear-gradient(-34deg, #cd5c5c 50%, #bc3a3a 53%, rgba(205, 92, 92, 0) 56%); } article > header h3 i { font-size: 0.3em; @@ -493,119 +482,76 @@ article > header h3 i b { } article > header h3.use { background: olive; + box-shadow: 4px 0px 6px #434300 inset; } article > header h3.use:before { - background: -webkit-gradient(linear, 45deg, 45deg, color-stop(50%, #808000), color-stop(50%, rgba(128, 128, 0, 0))); - background: -webkit-linear-gradient(45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -moz-linear-gradient(45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -o-linear-gradient(45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -ms-linear-gradient(45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: linear-gradient(45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); + background: -webkit-gradient(linear, 34deg, 34deg, color-stop(50%, #808000), color-stop(53%, #666700), color-stop(56%, rgba(128, 128, 0, 0))); + background: -webkit-linear-gradient(34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -moz-linear-gradient(34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -o-linear-gradient(34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -ms-linear-gradient(34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: linear-gradient(34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); } article > header h3.use:after { - background: -webkit-gradient(linear, -45deg, -45deg, color-stop(50%, #808000), color-stop(50%, rgba(128, 128, 0, 0))); - background: -webkit-linear-gradient(-45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -moz-linear-gradient(-45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -o-linear-gradient(-45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: -ms-linear-gradient(-45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); - background: linear-gradient(-45deg, #808000 50%, rgba(128, 128, 0, 0) 50%); + background: -webkit-gradient(linear, -34deg, -34deg, color-stop(50%, #808000), color-stop(53%, #666700), color-stop(56%, rgba(128, 128, 0, 0))); + background: -webkit-linear-gradient(-34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -moz-linear-gradient(-34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -o-linear-gradient(-34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: -ms-linear-gradient(-34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); + background: linear-gradient(-34deg, #808000 50%, #666700 53%, rgba(128, 128, 0, 0) 56%); } article > header h3.caution { background: orange; + box-shadow: 4px 0 6px #c27d00 inset; } article > header h3.caution:before { - background: -webkit-gradient(linear, 45deg, 45deg, color-stop(50%, #ffa500), color-stop(50%, rgba(128, 128, 0, 0))); - background: -webkit-linear-gradient(45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -moz-linear-gradient(45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -o-linear-gradient(45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -ms-linear-gradient(45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: linear-gradient(45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); + background: -webkit-gradient(linear, 34deg, 34deg, color-stop(50%, #ffa500), color-stop(53%, #e69500), color-stop(56%, rgba(255, 165, 0, 0))); + background: -webkit-linear-gradient(34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -moz-linear-gradient(34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -o-linear-gradient(34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -ms-linear-gradient(34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: linear-gradient(34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); } article > header h3.caution:after { - background: -webkit-gradient(linear, -45deg, -45deg, color-stop(50%, #ffa500), color-stop(50%, rgba(128, 128, 0, 0))); - background: -webkit-linear-gradient(-45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -moz-linear-gradient(-45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -o-linear-gradient(-45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: -ms-linear-gradient(-45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); - background: linear-gradient(-45deg, #ffa500 50%, rgba(128, 128, 0, 0) 50%); + background: -webkit-gradient(linear, -34deg, -34deg, color-stop(50%, #ffa500), color-stop(53%, #e69500), color-stop(56%, rgba(255, 165, 0, 0))); + background: -webkit-linear-gradient(-34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -moz-linear-gradient(-34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -o-linear-gradient(-34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: -ms-linear-gradient(-34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); + background: linear-gradient(-34deg, #ffa500 50%, #e69500 53%, rgba(255, 165, 0, 0) 56%); } article div.more { max-height: 0em; overflow: hidden; - -webkit-transition: max-height 1s linear; - -o-transition: max-height 1s linear; - -moz-transition: max-height 1s linear; - -ms-transition: max-height 1s linear; -} - -article:hover div.more { - max-height: 10em; -} - -div#main, h1, header.index h2, header.index h3, header.index h4 { - -webkit-transition: all 0.6s cubic-bezier(0.83, 1.47, 0.63, 0.9); - -o-transition: all 0.6s cubic-bezier(0.83, 1.47, 0.63, 0.9); - -moz-transition: all 0.6s cubic-bezier(0.83, 1.47, 0.63, 0.9); - -ms-transition: all 0.6s cubic-bezier(0.83, 1.47, 0.63, 0.9); - -webkit-transition: all 0.6s cubic-bezier(0.83, 1, 0.63, 0.9); - -webkit-transform: translateZ(0); + box-shadow: 0 -1px 7px #232927; + -webkit-transition: max-height 0.3s ease-in; + -o-transition: max-height 0.3s ease-in; + -moz-transition: max-height 0.3s ease-in; + -ms-transition: max-height 0.3s ease-in; } - -h1, h2, h3, h4 { - -moz-transition-duration: 0.3s; - -webkit-transition-duration: 0.3s; - -o-transition-duration: 0.3s; - transition-duration: 0.3s; +article div.more .recco { + margin: 0.5em 1em; } - -.searching div#main { - -moz-transform: translate(0, -400px); - -webkit-transform: translate(0, -400px); - -o-transform: translate(0, -400px); - -ms-transform: translate(0, -400px); - transform: translate(0, -400px); - -moz-transition-duration: 0.8s; - -webkit-transition-duration: 0.8s; - -o-transition-duration: 0.8s; - transition-duration: 0.8s; +article div.more .polyfills { + margin: 0.5em 1em 1.5em; } - -.searching h1 { - -moz-transform: translate(-1200px, 0px); - -webkit-transform: translate(-1200px, 0px); - -o-transform: translate(-1200px, 0px); - -ms-transform: translate(-1200px, 0px); - transform: translate(-1200px, 0px); +article div.more .polyfills b { + font-weight: bold; } - -.searching header h2 { - -moz-transform: translate(1200px, 0px); - -webkit-transform: translate(1200px, 0px); - -o-transform: translate(1200px, 0px); - -ms-transform: translate(1200px, 0px); - transform: translate(1200px, 0px); +article div.more .polyfills p { + display: inline; } -.searching header h3 { - opacity: 0; +article.expanded > header { + border-bottom: 1px solid #91a19b; + box-shadow: 0 0 7px #d3c19c inset, 0 1px 7px #758983; } - -.searching header h4 { - -moz-transform: translate(0px, -393px); - -webkit-transform: translate(0px, -393px); - -o-transform: translate(0px, -393px); - -ms-transform: translate(0px, -393px); - transform: translate(0px, -393px); - border-radius: 0 0 20px 20px; +article.expanded > header > a:before { + content: "-"; } - -.test div#main { - -moz-transform: translate(0, -2480px); - -webkit-transform: translate(0, -2480px); - -o-transform: translate(0, -2480px); - -ms-transform: translate(0, -2480px); - transform: translate(0, -2480px); +article.expanded div.more { + max-height: 10em; } /* ============================================================================= diff --git a/img/denim.png b/img/denim.png new file mode 100644 index 00000000..3b0bb7e3 Binary files /dev/null and b/img/denim.png differ diff --git a/index.html b/index.html index 8ed0ce7b..cbed7134 100644 --- a/index.html +++ b/index.html @@ -18,9 +18,9 @@

Use the new and shiny responsibly. Look up properties and see if it is ready for use, and if so how you should use it with a polyfill, a fallback value or as it is.

-

- -

+
+ +
@@ -30,7 +30,7 @@

html

avoid

audio

- [Open] +

As with video, you need to provide your audio file in multiple formats for these to work. jPlayer also has a jQuery dependency. Sound Manager has extensive API for further customization.

@@ -43,7 +43,7 @@

audio

html

use with polyfill

canvas

- [Open] +

Canvas is definitely good to go for modern browsers. But if you are looking to use it in IE 8 and below, use FlashCanvas.

@@ -56,7 +56,7 @@

canvas

html

caution with polyfill

datalist

- [Open] +

Jeremy Keith has a graceful fallback solution that does not use a script.

@@ -69,7 +69,7 @@

datalist

html

use with polyfill

dataset

- [Open] +
@@ -82,7 +82,7 @@

dataset

html

use with polyfill

details

- [Open] +

Use detail element if you intent to show a summary which when clicked reveals detailed information.

@@ -95,7 +95,7 @@

details

html

use with fallback

Eventsource

- [Open] +

EventSource.js provides base fallback and is not dependent on jQuery.

@@ -108,7 +108,7 @@

Eventsource

html

use with polyfill

geo-location

- [Open] +

The Geolocation shim requires jQuery to work, but if you are looking for a mobile specific script, you are better off using the geo-location-javascript.

@@ -121,7 +121,7 @@

geo-location dom

use with fallback

history

- [Open] +

History.js has cross-compatibility between HTML5 browser implementations and optional hashchange fallback for HTML4 browsers. PJax (pushState + ajax = pjax) is what is used by Github for their fallback solution.

@@ -134,7 +134,7 @@

history

html

use with polyfill

menu

- [Open] +

Do note that this polyfill requires a jQuery dependency.

@@ -147,7 +147,7 @@

menu

html

use with polyfill

meter

- [Open] +
@@ -160,7 +160,7 @@

meter

html

use with polyfill

progress

- [Open] +
@@ -173,7 +173,7 @@

progress

html

use with fallback

ruby

- [Open] +

If you are using Ruby element you dont need a script-based fallback but you can provide a CSS based set of good defaults.

@@ -186,7 +186,7 @@

ruby

svg

use with polyfill

svg

- [Open] +

SVG has good support for several years in most browsers except IE. IE9 brings support, which means you can use a polyfill library like SVGWeb or Canvg or create SVG dynamically via RaphaelJS.

@@ -199,7 +199,7 @@

svg

use with polyfill

text-shadow

- [Open] +
@@ -212,7 +212,7 @@

text-shadow

html

use with polyfill

video

- [Open] +

Do note you need to supply your video in various formats to cater to all browsers and fallbacks. There is also a way to do this without any scripting as explained by Kroc Camen in his article Video for Everybody.

diff --git a/js/script.js b/js/script.js index f28c2600..f47d85d6 100644 --- a/js/script.js +++ b/js/script.js @@ -10,5 +10,21 @@ var listOptions = { featureList = new List('gfs', listOptions); document.getElementById('livesearch').addEventListener('search', function() { - featureList.search(this.value, listOptions.valueNames); -}, false); \ No newline at end of file +}, false); + +var expandfeatures = document.querySelectorAll('a.expand'), + count = expandfeatures.length; + +for(var i = 0; i < count; i++) { + expandfeatures[i].onclick = (function(e, i) { + return function(e) { + var parent = e.target.parentNode.parentNode; + console.log(parent); + if(!parent.classList.contains('expanded')) { + parent.classList.add('expanded'); + } else { + parent.classList.remove('expanded'); + } + }; + })(i); +} diff --git a/sass/style.scss b/sass/style.scss index b84fe7f0..2de4c512 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -47,7 +47,7 @@ html { font-size: 100%; overflow-y: scroll; -webkit-tap-highlight-color: rgba(0, body { margin: 0; font-size: 13px; line-height: 1.231; } -body, button, input, select, textarea { font-family: sans-serif; color: #222; } +body, button, input, select, textarea { font-family: sans-serif; color: $lightest; } ::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; } ::selection { background: #fe57a1; color: #fff; text-shadow: none; } @@ -57,8 +57,8 @@ body, button, input, select, textarea { font-family: sans-serif; color: #222; } Links ========================================================================== */ -a { color: $contrast; text-decoration: none; } -a:visited { color: darken($contrast, 30%); } +a { color: #149CD7; text-decoration: none; } +a:visited { color: darken(#149CD7, 30%); } a:focus { outline: thin dotted; } /* Improve readability when focused and hovered in all browsers: people.opera.com/patrickl/experiments/keyboard/test */ @@ -148,8 +148,7 @@ button, input { line-height: normal; *overflow: visible; } button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } -input[type="checkbox"], input[type="radio"] { box-sizing: border-box; } -input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } +input[type="search"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: normal; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } @@ -170,9 +169,32 @@ table { border-collapse: collapse; border-spacing: 0; } Primary styles Author: Divya Manian ========================================================================== */ - +* { box-sizing: border-box; } -html { box-shadow: 0 0 5em $lightest inset; min-height: 100%; max-width: 100%; } +html { + background-color: $dark; + color: $lightest; + background: -o-radial-gradient(20% 20%, circle cover, transparentize(#207cca, 0.9) 10%, transparent 10%), + -o-radial-gradient(30% 30%, circle cover, transparentize(#cd5c5c, 0.8) 5%, transparent 5%), + -o-radial-gradient(60% 40%, circle cover, transparentize(white, 0.9) 15%, transparent 15%), + -o-radial-gradient(80% 60%, circle cover, transparentize(olive, 0.8) 8%, transparent 8%), + -o-radial-gradient(40% 60%, circle cover, transparentize(#207cca, 0.8) 5%, transparent 5%), + -o-radial-gradient(40% 50%, circle cover, transparentize(black, 0.8) 5%, transparent 5%), + image-url('denim.png'); + background: -webkit-radial-gradient(20em 20em, circle cover, transparentize(#207cca, 0.9) 10em, transparent 10em), + -webkit-radial-gradient(30em 30em, circle cover, transparentize(#cd5c5c, 0.8) 5em, transparent 5em), + -webkit-radial-gradient(60em 40em, circle cover, transparentize(white, 0.9) 15em, transparent 15em), + -webkit-radial-gradient(80em 60em, circle cover, transparentize(olive, 0.8) 8em, transparent 8em), + -webkit-radial-gradient(40em 60em, circle cover, transparentize(#207cca, 0.8) 5em, transparent 5em), + -webkit-radial-gradient(40em 50em, circle cover, transparentize(black, 0.8) 5em, transparent 5em), + image-url('denim.png'); + +// background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat; + +// background-attachment: scroll, fixed, fixed, scroll, scroll, fixed, scroll; + min-height: 100%; + max-width: 100%; +} body { max-width: 70%; @@ -187,67 +209,130 @@ header.index { h2 { text-transform: uppercase; } -header.index h1{ font-size: 5em; text-transform: uppercase; color: $dark; text-shadow: 1px 1px 1px lighten($contrast, 10%), 2px 2px 1px lighten($contrast, 10%), 3px 3px 1px lighten($contrast, 10%);} +header.index h1{ + font-size: 5em; + text-transform: uppercase; + text-shadow: 1px 1px 1px lighten($contrast, 10%), + 2px 2px 1px lighten($contrast, 10%), + 3px 3px 1px lighten($contrast, 10%), + 4px 4px 1px darken($dark, 10%), + 5px 5px 3px darken($dark, 10%); + line-height: 1.2em; + margin: 0.8em 0 0.5em 0; +} + header.index h1 img { vertical-align: -10%; } -header.index h1 { line-height: 1.2em; margin: 0; } -header.index h1 + h2 { font-size: 1em; text-transform: lowercase; margin: 3em 0; } +header.index h1 + h2 { + font-size: 1em; + text-transform: lowercase; + margin: 0 auto; + max-width: 60%; + text-shadow: 1px 1px 1px darken($dark, 10%); +} header.index h1, header.index h2 b { font-family: 'Francois One', sans-serif; } header.index h2 b { font-size: 2em; display: block; color: lighten($contrast, 10%); } -header.index h1 b, header.index h3, article h3 b i { font-family: 'Open Sans', sans-serif; text-transform: uppercase; display: block; line-height: 1; } - - -header.index h3 { background: url(../dark_mosaic.png) $dark; color: white; position: relative; box-shadow: 0.05em 0.05em 0.4em 0.15em $darkest; padding: 1em; font-size: 1em; line-height: 1.5; } - -header.index h3::before, -header.index h3::after { content: ""; width: 0; height: 0; border: 5em solid $dark; border-width: 20px 0 20px 20px; border-color: $darkest transparent $darkest; position: absolute; left: -20px; top: 50%; margin-top: -20px; z-index: -1; } +header.index h1 b, +header.index h3, +article h3 b i { + font-family: 'Open Sans', sans-serif; + text-transform: uppercase; + display: block; + line-height: 1; +} -header.index h3::after { border-width: 20px 20px 20px 0; border-color: $darkest transparent $darkest; left: auto; right: -20px; } -header.index h3 a { color: lighten($contrast, 10%); } -header.index h3 a + a::before { content: " / "; color: white; } -header.index h3 b { word-spacing: 0.15em; text-transform: uppercase; } +header.index h3, +header.index h2 { + font-weight: normal; + text-transform: none; + font-style: normal; +} -header.index h3, header.index h2, -article h3 b i { font-weight: normal; text-transform: none; font-style: normal; } +header.index > div { padding: 1em 0 4em 0; } -header.index h4 { background: $lightest; padding: 1em; box-shadow: 0 0 1px $dark; } -header.index input[type="search"] { width: 50%; } +header.index input[type="search"] { + width: 50%; + padding: 0.5em 1em; + background: white; + border-radius: 10em; + border: 0; + color: darken($dark, 20%); +} -header.index h3, header.index h4 { margin: 0; } +header.index h3 { margin: 0; } -article h2 { color: $dark; text-shadow: 2px 2px 1px lighten($contrast, 30%); } +article h2 { + color: $dark; + text-shadow: 1px 1px 1px darken(#149CD7, 20%); + letter-spacing: 1px; +} article { - overflow: hidden; min-height: 2em; padding: 1em 0; position: relative; - @include background(radial-gradient(50% 200%, ellipse, hsl(53, 86%, 49%), hsla(53, 86%, 79%, 0) 40%)); + min-height: 2em; + background: white; + color: $dark; + margin-bottom: 2em; + border-radius: 0.3rem; + box-shadow: 0 0 7px darken($dark, 10%); } article > header { background: $lightest; - border-radius: 0 0.5em 0.5em 0; - + border-radius: 0.3rem; + box-shadow: 0 0 7px darken($lightest, 10%) inset; + position: relative; h4, h2, h3, a { display: inline-block; vertical-align: middle; margin: 0; } - a { float: right; } + > a { + position: absolute; + margin-top: 1em; + right: 1em; + width: 2em; + height: 2em; + &:before { + content: "+"; + font-size: 2rem; + line-height: 1.7rem; + text-align: center; + font-family: sans-serif; + color: white; + text-shadow: 1px 1px 1px darken($lightest, 40%); + box-shadow: 0 0 7px darken($lightest, 30%) inset; + width: 1em; + display: block; + height: 1em; + border-radius: 1em; + background: darken($lightest, 20%); + } + } i { font-style: normal; } h4, b, h3 { font-weight: normal; } h4 { font-size: 0.8em; - text-transform: uppercase; + text-transform: uppercase; + position: absolute; + left: -5em; + text-align: right; + margin-top: 1.5em; + display: block; + width: 4.5em; + z-index: 1; + color: $lightest; + text-shadow: 1px 1px 1px $dark; } h3 { background: indianred; border-radius: 0.2rem 0 0 0.2rem; - padding: 0.5rem 0 0.5rem 1rem; + padding: 0.5rem 0.5rem 0.5rem 1rem; margin-right: 1em; color: white; text-shadow: 1px 1px black; @@ -255,14 +340,15 @@ article > header { text-transform: uppercase; font-weight: bold; position: relative; + box-shadow: 4px 0px 6px darken(#CD5C5C, 12%) inset; &:before, &:after { content: ""; height: 50%; - width: 1em; + width: 0.8em; position: absolute; - right: -1em; - @include background(linear-gradient(45deg, #CD5C5C 50%, transparentize(#CD5C5C, 1) 50%)); + right: -0.8em; + @include background(linear-gradient(34deg, #CD5C5C 50%, darken(#CD5C5C, 10%) 53%, transparentize(#CD5C5C, 1) 56%)); } &:before { @@ -271,7 +357,7 @@ article > header { &:after { bottom: 0; - @include background(linear-gradient(-45deg, #CD5C5C 50%, transparentize(#CD5C5C, 1) 50%)); + @include background(linear-gradient(-34deg, #CD5C5C 50%, darken(#CD5C5C, 10%) 53%, transparentize(#CD5C5C, 1) 56%)); } i { @@ -288,23 +374,25 @@ article > header { &.use { background: olive; + box-shadow: 4px 0px 6px darken(olive, 12%) inset; &:before{ - @include background(linear-gradient(45deg, olive 50%, transparentize(olive, 1) 50%)); + @include background(linear-gradient(34deg, olive 50%, darken(olive, 5%) 53%, transparentize(olive, 1) 56%)); } &:after { - @include background(linear-gradient(-45deg, olive 50%, transparentize(olive, 1) 50%)); + @include background(linear-gradient(-34deg, olive 50%, darken(olive, 5%) 53%, transparentize(olive, 1) 56%)); } } &.caution { background: orange; + box-shadow: 4px 0 6px darken(#ffa500, 12%) inset; &:before{ - @include background(linear-gradient(45deg, #FFA500 50%, transparentize(olive, 1) 50%)); + @include background(linear-gradient(34deg, #FFA500 50%, darken(#ffa500, 5%) 53%, transparentize(#ffa500, 1) 56%)); } &:after { - @include background(linear-gradient(-45deg, #FFA500 50%, transparentize(olive, 1) 50%)); + @include background(linear-gradient(-34deg, #FFA500 50%, darken(#ffa500, 5%) 53%, transparentize(#ffa500, 1) 56%)); } } } @@ -313,52 +401,31 @@ article > header { } -article div.more { - max-height: 0em; - overflow: hidden; - @include our-transition("max-height 1s linear"); -} - -article:hover div.more { - max-height: 10em; -} - - - - -div#main, h1, header.index h2, header.index h3, header.index h4 { - @include our-transition(all 0.6s cubic-bezier(.83,1.47,.63,.9)); - -webkit-transition: all 0.6s cubic-bezier(0.83, 1, 0.63, 0.9); - -webkit-transform: translateZ(0); -} - -h1, h2, h3, h4 { - @include transition-duration(0.3s); -} - -.searching div#main { - @include transform(translate(0, -400px)); - @include transition-duration(0.8s); -} - -.searching h1 { @include transform(translate(-1200px, 0px)); } - -.searching header h2 { - @include transform(translate(1200px, 0px)); -} - -.searching header h3 { opacity: 0; } - -.searching header h4 { - @include transform(translate(0px, -393px)); - border-radius: 0 0 20px 20px; +article div.more { + max-height: 0em; + overflow: hidden; + box-shadow: 0 -1px 7px $dark; + @include our-transition("max-height 0.3s ease-in"); + + .recco { margin: 0.5em 1em; } + .polyfills { margin: 0.5em 1em 1.5em; } + .polyfills b { font-weight: bold; } + + .polyfills p { display: inline; } } -.test div#main { - @include transform(translate(0, -2480px)); +article.expanded { + > header { + border-bottom: 1px solid lighten($dark, 45%); + box-shadow: 0 0 7px darken($lightest, 10%) inset, 0 1px 7px lighten($dark, 35%); + } + > header > a:before { + content: "-"; + } + + div.more { max-height: 10em; } + } - - /* ============================================================================= Non-semantic helper classes Please define your styles before this section. diff --git a/template.html b/template.html index f3a5685f..bbc3ff89 100644 --- a/template.html +++ b/template.html @@ -18,9 +18,9 @@

Use the new and shiny responsibly. Look up properties and see if it is ready for use, and if so how you should use it with a polyfill, a fallback value or as it is.

-

- -

+
+ +
@@ -30,7 +30,7 @@

{{kind}}

{{status}} {{{polyfillaction tags}}}

{{{feature}}}

- [Open] +
{{{contents}}}