simple_front_end 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5ebed70cc532deee85027e54894e74498106858
4
+ data.tar.gz: c9590466b19c35654601bf8725f59d404d078870
5
+ SHA512:
6
+ metadata.gz: b70a108639c82094759c2715da1dcb75e7bbfea3be8fdb496289ed3b03ef4aef59063d284c9a5f5e979b2b068167ffb92988b5762ec67a07ade6d2d05afc3e55
7
+ data.tar.gz: 405385dec7b0af3902b6311ac4022f184966498edc149857e2f36d0e2bc34d54629333ac4efa3944901910766785fece1b4626393e5c52cba5812abdd84a1a62
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at cassaram09@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in simple_front_end.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 cassaram09
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # SimpleFrontEnd
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/simple_front_end`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'simple_front_end'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install simple_front_end
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/simple_front_end. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "simple_front_end"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ module SimpleFrontEnd
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "simple_front_end/version"
2
+
3
+ module SimpleFrontEnd
4
+ class Engine < ::Rails::Engine; end
5
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'simple_front_end/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "simple_front_end"
8
+ spec.version = SimpleFrontEnd::VERSION
9
+ spec.authors = ["cassaram09"]
10
+ spec.email = ["cassaram09@gmail.com"]
11
+ spec.summary = "A simple gem for useful CSS / JS files"
12
+ spec.homepage = "https://github.com/cassaram09/simple_front_end"
13
+ spec.license = "MIT"
14
+
15
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
16
+ # delete this section to allow pushing this gem to any host.
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = "https://rubygems.org/"
19
+ else
20
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
21
+ end
22
+
23
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.11"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ spec.add_development_dependency "rspec", "~> 3.0"
31
+ end
@@ -0,0 +1 @@
1
+ window.Modernizr=function(e,t,n){function r(e){b.cssText=e}function o(e,t){return r(S.join(e+";")+(t||""))}function a(e,t){return typeof e===t}function i(e,t){return!!~(""+e).indexOf(t)}function c(e,t){for(var r in e){var o=e[r];if(!i(o,"-")&&b[o]!==n)return"pfx"==t?o:!0}return!1}function s(e,t,r){for(var o in e){var i=t[e[o]];if(i!==n)return r===!1?e[o]:a(i,"function")?i.bind(r||t):i}return!1}function u(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+k.join(r+" ")+r).split(" ");return a(t,"string")||a(t,"undefined")?c(o,t):(o=(e+" "+T.join(r+" ")+r).split(" "),s(o,t,n))}function l(){p.input=function(n){for(var r=0,o=n.length;o>r;r++)j[n[r]]=!!(n[r]in E);return j.list&&(j.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),j}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),p.inputtypes=function(e){for(var r,o,a,i=0,c=e.length;c>i;i++)E.setAttribute("type",o=e[i]),r="text"!==E.type,r&&(E.value=x,E.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&E.style.WebkitAppearance!==n?(g.appendChild(E),a=t.defaultView,r=a.getComputedStyle&&"textfield"!==a.getComputedStyle(E,null).WebkitAppearance&&0!==E.offsetHeight,g.removeChild(E)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?E.checkValidity&&E.checkValidity()===!1:E.value!=x)),P[e[i]]=!!r;return P}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d,f,m="2.8.3",p={},h=!0,g=t.documentElement,v="modernizr",y=t.createElement(v),b=y.style,E=t.createElement("input"),x=":)",w={}.toString,S=" -webkit- -moz- -o- -ms- ".split(" "),C="Webkit Moz O ms",k=C.split(" "),T=C.toLowerCase().split(" "),N={svg:"http://www.w3.org/2000/svg"},M={},P={},j={},$=[],D=$.slice,F=function(e,n,r,o){var a,i,c,s,u=t.createElement("div"),l=t.body,d=l||t.createElement("body");if(parseInt(r,10))for(;r--;)c=t.createElement("div"),c.id=o?o[r]:v+(r+1),u.appendChild(c);return a=["&#173;",'<style id="s',v,'">',e,"</style>"].join(""),u.id=v,(l?u:d).innerHTML+=a,d.appendChild(u),l||(d.style.background="",d.style.overflow="hidden",s=g.style.overflow,g.style.overflow="hidden",g.appendChild(d)),i=n(u,e),l?u.parentNode.removeChild(u):(d.parentNode.removeChild(d),g.style.overflow=s),!!i},z=function(t){var n=e.matchMedia||e.msMatchMedia;if(n)return n(t)&&n(t).matches||!1;var r;return F("@media "+t+" { #"+v+" { position: absolute; } }",function(t){r="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r},A=function(){function e(e,o){o=o||t.createElement(r[e]||"div"),e="on"+e;var i=e in o;return i||(o.setAttribute||(o=t.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(e,""),i=a(o[e],"function"),a(o[e],"undefined")||(o[e]=n),o.removeAttribute(e))),o=null,i}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),L={}.hasOwnProperty;f=a(L,"undefined")||a(L.call,"undefined")?function(e,t){return t in e&&a(e.constructor.prototype[t],"undefined")}:function(e,t){return L.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=D.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var a=new o,i=t.apply(a,n.concat(D.call(arguments)));return Object(i)===i?i:a}return t.apply(e,n.concat(D.call(arguments)))};return r}),M.flexbox=function(){return u("flexWrap")},M.flexboxlegacy=function(){return u("boxDirection")},M.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},M.canvastext=function(){return!(!p.canvas||!a(t.createElement("canvas").getContext("2d").fillText,"function"))},M.webgl=function(){return!!e.WebGLRenderingContext},M.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:F(["@media (",S.join("touch-enabled),("),v,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},M.geolocation=function(){return"geolocation"in navigator},M.postmessage=function(){return!!e.postMessage},M.websqldatabase=function(){return!!e.openDatabase},M.indexedDB=function(){return!!u("indexedDB",e)},M.hashchange=function(){return A("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},M.history=function(){return!(!e.history||!history.pushState)},M.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},M.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},M.rgba=function(){return r("background-color:rgba(150,255,150,.5)"),i(b.backgroundColor,"rgba")},M.hsla=function(){return r("background-color:hsla(120,40%,100%,.5)"),i(b.backgroundColor,"rgba")||i(b.backgroundColor,"hsla")},M.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(b.background)},M.backgroundsize=function(){return u("backgroundSize")},M.borderimage=function(){return u("borderImage")},M.borderradius=function(){return u("borderRadius")},M.boxshadow=function(){return u("boxShadow")},M.textshadow=function(){return""===t.createElement("div").style.textShadow},M.opacity=function(){return o("opacity:.55"),/^0.55$/.test(b.opacity)},M.cssanimations=function(){return u("animationName")},M.csscolumns=function(){return u("columnCount")},M.cssgradients=function(){var e="background-image:",t="gradient(linear,left top,right bottom,from(#9f9),to(white));",n="linear-gradient(left top,#9f9, white);";return r((e+"-webkit- ".split(" ").join(t+e)+S.join(n+e)).slice(0,-e.length)),i(b.backgroundImage,"gradient")},M.cssreflections=function(){return u("boxReflect")},M.csstransforms=function(){return!!u("transform")},M.csstransforms3d=function(){var e=!!u("perspective");return e&&"webkitPerspective"in g.style&&F("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){e=9===t.offsetLeft&&3===t.offsetHeight}),e},M.csstransitions=function(){return u("transition")},M.fontface=function(){var e;return F('@font-face {font-family:"font";src:url("https://")}',function(n,r){var o=t.getElementById("smodernizr"),a=o.sheet||o.styleSheet,i=a?a.cssRules&&a.cssRules[0]?a.cssRules[0].cssText:a.cssText||"":"";e=/src/i.test(i)&&0===i.indexOf(r.split(" ")[0])}),e},M.generatedcontent=function(){var e;return F(["#",v,"{font:0/0 a}#",v,':after{content:"',x,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){e=t.offsetHeight>=3}),e},M.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n},M.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&(n=new Boolean(n),n.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n},M.localstorage=function(){try{return localStorage.setItem(v,v),localStorage.removeItem(v),!0}catch(e){return!1}},M.sessionstorage=function(){try{return sessionStorage.setItem(v,v),sessionStorage.removeItem(v),!0}catch(e){return!1}},M.webworkers=function(){return!!e.Worker},M.applicationcache=function(){return!!e.applicationCache},M.svg=function(){return!!t.createElementNS&&!!t.createElementNS(N.svg,"svg").createSVGRect},M.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==N.svg},M.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(w.call(t.createElementNS(N.svg,"animate")))},M.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(w.call(t.createElementNS(N.svg,"clipPath")))};for(var H in M)f(M,H)&&(d=H.toLowerCase(),p[d]=M[H](),$.push((p[d]?"":"no-")+d));return p.input||l(),p.addTest=function(e,t){if("object"==typeof e)for(var r in e)f(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,"undefined"!=typeof h&&h&&(g.className+=" "+(t?"":"no-")+e),p[e]=t}return p},r(""),y=E=null,function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=y.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=v[e[h]];return t||(t={},g++,e[h]=g,v[g]=t),t}function a(e,n,r){if(n||(n=t),l)return n.createElement(e);r||(r=o(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():p.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||m.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function i(e,n){if(e||(e=t),l)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),i=0,c=r(),s=c.length;s>i;i++)a.createElement(c[i]);return a}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return y.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(y,t.frag)}function s(e){e||(e=t);var r=o(e);return!y.shivCSS||u||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||c(e,r),e}var u,l,d="3.7.0",f=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",g=0,v={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",u="hidden"in e,l=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){u=!0,l=!0}}();var y={elements:f.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:f.shivCSS!==!1,supportsUnknownElements:l,shivMethods:f.shivMethods!==!1,type:"default",shivDocument:s,createElement:a,createDocumentFragment:i};e.html5=y,s(t)}(this,t),p._version=m,p._prefixes=S,p._domPrefixes=T,p._cssomPrefixes=k,p.mq=z,p.hasEvent=A,p.testProp=function(e){return c([e])},p.testAllProps=u,p.testStyles=F,p.prefixed=function(e,t,n){return t?u(e,t,n):u(e,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" js "+$.join(" "):""),p}(this,this.document);
@@ -0,0 +1,466 @@
1
+ /*! normalize.css v4.2.0 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /**
4
+ * 1. Change the default font family in all browsers (opinionated).
5
+ * 2. Correct the line height in all browsers.
6
+ * 3. Prevent adjustments of font size after orientation changes in IE and iOS.
7
+ */
8
+
9
+ /* Document
10
+ ========================================================================== */
11
+
12
+ html {
13
+ font-family: sans-serif; /* 1 */
14
+ line-height: 1.15; /* 2 */
15
+ -ms-text-size-adjust: 100%; /* 3 */
16
+ -webkit-text-size-adjust: 100%; /* 3 */
17
+ }
18
+
19
+ /* Sections
20
+ ========================================================================== */
21
+
22
+ /**
23
+ * Remove the margin in all browsers (opinionated).
24
+ */
25
+
26
+ body {
27
+ margin: 0;
28
+ }
29
+
30
+ /**
31
+ * Add the correct display in IE 9-.
32
+ */
33
+
34
+ article,
35
+ aside,
36
+ footer,
37
+ header,
38
+ nav,
39
+ section {
40
+ display: block;
41
+ }
42
+
43
+ /**
44
+ * Correct the font size and margin on `h1` elements within `section` and
45
+ * `article` contexts in Chrome, Firefox, and Safari.
46
+ */
47
+
48
+ h1 {
49
+ font-size: 2em;
50
+ margin: 0.67em 0;
51
+ }
52
+
53
+ /* Grouping content
54
+ ========================================================================== */
55
+
56
+ /**
57
+ * Add the correct display in IE 9-.
58
+ * 1. Add the correct display in IE.
59
+ */
60
+
61
+ figcaption,
62
+ figure,
63
+ main { /* 1 */
64
+ display: block;
65
+ }
66
+
67
+ /**
68
+ * Add the correct margin in IE 8.
69
+ */
70
+
71
+ figure {
72
+ margin: 1em 40px;
73
+ }
74
+
75
+ /**
76
+ * 1. Add the correct box sizing in Firefox.
77
+ * 2. Show the overflow in Edge and IE.
78
+ */
79
+
80
+ hr {
81
+ box-sizing: content-box; /* 1 */
82
+ height: 0; /* 1 */
83
+ overflow: visible; /* 2 */
84
+ }
85
+
86
+ /**
87
+ * 1. Correct the inheritance and scaling of font size in all browsers.
88
+ * 2. Correct the odd `em` font sizing in all browsers.
89
+ */
90
+
91
+ pre {
92
+ font-family: monospace, monospace; /* 1 */
93
+ font-size: 1em; /* 2 */
94
+ }
95
+
96
+ /* Text-level semantics
97
+ ========================================================================== */
98
+
99
+ /**
100
+ * 1. Remove the gray background on active links in IE 10.
101
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
102
+ */
103
+
104
+ a {
105
+ background-color: transparent; /* 1 */
106
+ -webkit-text-decoration-skip: objects; /* 2 */
107
+ }
108
+
109
+ /**
110
+ * Remove the outline on focused links when they are also active or hovered
111
+ * in all browsers (opinionated).
112
+ */
113
+
114
+ a:active,
115
+ a:hover {
116
+ outline-width: 0;
117
+ }
118
+
119
+ /**
120
+ * 1. Remove the bottom border in Firefox 39-.
121
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
122
+ */
123
+
124
+ abbr[title] {
125
+ border-bottom: none; /* 1 */
126
+ text-decoration: underline; /* 2 */
127
+ text-decoration: underline dotted; /* 2 */
128
+ }
129
+
130
+ /**
131
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
132
+ */
133
+
134
+ b,
135
+ strong {
136
+ font-weight: inherit;
137
+ }
138
+
139
+ /**
140
+ * Add the correct font weight in Chrome, Edge, and Safari.
141
+ */
142
+
143
+ b,
144
+ strong {
145
+ font-weight: bolder;
146
+ }
147
+
148
+ /**
149
+ * 1. Correct the inheritance and scaling of font size in all browsers.
150
+ * 2. Correct the odd `em` font sizing in all browsers.
151
+ */
152
+
153
+ code,
154
+ kbd,
155
+ samp {
156
+ font-family: monospace, monospace; /* 1 */
157
+ font-size: 1em; /* 2 */
158
+ }
159
+
160
+ /**
161
+ * Add the correct font style in Android 4.3-.
162
+ */
163
+
164
+ dfn {
165
+ font-style: italic;
166
+ }
167
+
168
+ /**
169
+ * Add the correct background and color in IE 9-.
170
+ */
171
+
172
+ mark {
173
+ background-color: #ff0;
174
+ color: #000;
175
+ }
176
+
177
+ /**
178
+ * Add the correct font size in all browsers.
179
+ */
180
+
181
+ small {
182
+ font-size: 80%;
183
+ }
184
+
185
+ /**
186
+ * Prevent `sub` and `sup` elements from affecting the line height in
187
+ * all browsers.
188
+ */
189
+
190
+ sub,
191
+ sup {
192
+ font-size: 75%;
193
+ line-height: 0;
194
+ position: relative;
195
+ vertical-align: baseline;
196
+ }
197
+
198
+ sub {
199
+ bottom: -0.25em;
200
+ }
201
+
202
+ sup {
203
+ top: -0.5em;
204
+ }
205
+
206
+ /* Embedded content
207
+ ========================================================================== */
208
+
209
+ /**
210
+ * Add the correct display in IE 9-.
211
+ */
212
+
213
+ audio,
214
+ video {
215
+ display: inline-block;
216
+ }
217
+
218
+ /**
219
+ * Add the correct display in iOS 4-7.
220
+ */
221
+
222
+ audio:not([controls]) {
223
+ display: none;
224
+ height: 0;
225
+ }
226
+
227
+ /**
228
+ * Remove the border on images inside links in IE 10-.
229
+ */
230
+
231
+ img {
232
+ border-style: none;
233
+ }
234
+
235
+ /**
236
+ * Hide the overflow in IE.
237
+ */
238
+
239
+ svg:not(:root) {
240
+ overflow: hidden;
241
+ }
242
+
243
+ /* Forms
244
+ ========================================================================== */
245
+
246
+ /**
247
+ * 1. Change font properties to `inherit` in all browsers (opinionated).
248
+ * 2. Remove the margin in Firefox and Safari.
249
+ */
250
+
251
+ button,
252
+ input,
253
+ optgroup,
254
+ select,
255
+ textarea {
256
+ font: inherit; /* 1 */
257
+ margin: 0; /* 2 */
258
+ }
259
+
260
+ /**
261
+ * Restore the font weight unset by the previous rule.
262
+ */
263
+
264
+ optgroup {
265
+ font-weight: bold;
266
+ }
267
+
268
+ /**
269
+ * Show the overflow in IE.
270
+ * 1. Show the overflow in Edge.
271
+ */
272
+
273
+ button,
274
+ input { /* 1 */
275
+ overflow: visible;
276
+ }
277
+
278
+ /**
279
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
280
+ * 1. Remove the inheritance of text transform in Firefox.
281
+ */
282
+
283
+ button,
284
+ select { /* 1 */
285
+ text-transform: none;
286
+ }
287
+
288
+ /**
289
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
290
+ * controls in Android 4.
291
+ * 2. Correct the inability to style clickable types in iOS and Safari.
292
+ */
293
+
294
+ button,
295
+ html [type="button"], /* 1 */
296
+ [type="reset"],
297
+ [type="submit"] {
298
+ -webkit-appearance: button; /* 2 */
299
+ }
300
+
301
+ /**
302
+ * Remove the inner border and padding in Firefox.
303
+ */
304
+
305
+ button::-moz-focus-inner,
306
+ [type="button"]::-moz-focus-inner,
307
+ [type="reset"]::-moz-focus-inner,
308
+ [type="submit"]::-moz-focus-inner {
309
+ border-style: none;
310
+ padding: 0;
311
+ }
312
+
313
+ /**
314
+ * Restore the focus styles unset by the previous rule.
315
+ */
316
+
317
+ button:-moz-focusring,
318
+ [type="button"]:-moz-focusring,
319
+ [type="reset"]:-moz-focusring,
320
+ [type="submit"]:-moz-focusring {
321
+ outline: 1px dotted ButtonText;
322
+ }
323
+
324
+ /**
325
+ * Change the border, margin, and padding in all browsers (opinionated).
326
+ */
327
+
328
+ fieldset {
329
+ border: 1px solid #c0c0c0;
330
+ margin: 0 2px;
331
+ padding: 0.35em 0.625em 0.75em;
332
+ }
333
+
334
+ /**
335
+ * 1. Correct the text wrapping in Edge and IE.
336
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
337
+ * 3. Remove the padding so developers are not caught out when they zero out
338
+ * `fieldset` elements in all browsers.
339
+ */
340
+
341
+ legend {
342
+ box-sizing: border-box; /* 1 */
343
+ color: inherit; /* 2 */
344
+ display: table; /* 1 */
345
+ max-width: 100%; /* 1 */
346
+ padding: 0; /* 3 */
347
+ white-space: normal; /* 1 */
348
+ }
349
+
350
+ /**
351
+ * 1. Add the correct display in IE 9-.
352
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
353
+ */
354
+
355
+ progress {
356
+ display: inline-block; /* 1 */
357
+ vertical-align: baseline; /* 2 */
358
+ }
359
+
360
+ /**
361
+ * Remove the default vertical scrollbar in IE.
362
+ */
363
+
364
+ textarea {
365
+ overflow: auto;
366
+ }
367
+
368
+ /**
369
+ * 1. Add the correct box sizing in IE 10-.
370
+ * 2. Remove the padding in IE 10-.
371
+ */
372
+
373
+ [type="checkbox"],
374
+ [type="radio"] {
375
+ box-sizing: border-box; /* 1 */
376
+ padding: 0; /* 2 */
377
+ }
378
+
379
+ /**
380
+ * Correct the cursor style of increment and decrement buttons in Chrome.
381
+ */
382
+
383
+ [type="number"]::-webkit-inner-spin-button,
384
+ [type="number"]::-webkit-outer-spin-button {
385
+ height: auto;
386
+ }
387
+
388
+ /**
389
+ * 1. Correct the odd appearance in Chrome and Safari.
390
+ * 2. Correct the outline style in Safari.
391
+ */
392
+
393
+ [type="search"] {
394
+ -webkit-appearance: textfield; /* 1 */
395
+ outline-offset: -2px; /* 2 */
396
+ }
397
+
398
+ /**
399
+ * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
400
+ */
401
+
402
+ [type="search"]::-webkit-search-cancel-button,
403
+ [type="search"]::-webkit-search-decoration {
404
+ -webkit-appearance: none;
405
+ }
406
+
407
+ /**
408
+ * 1. Correct the inability to style clickable types in iOS and Safari.
409
+ * 2. Change font properties to `inherit` in Safari.
410
+ */
411
+
412
+ ::-webkit-file-upload-button {
413
+ -webkit-appearance: button; /* 1 */
414
+ font: inherit; /* 2 */
415
+ }
416
+
417
+ /* Interactive
418
+ ========================================================================== */
419
+
420
+ /*
421
+ * Add the correct display in IE 9-.
422
+ * 1. Add the correct display in Edge, IE, and Firefox.
423
+ */
424
+
425
+ details, /* 1 */
426
+ menu {
427
+ display: block;
428
+ }
429
+
430
+ /*
431
+ * Add the correct display in all browsers.
432
+ */
433
+
434
+ summary {
435
+ display: list-item;
436
+ }
437
+
438
+ /* Scripting
439
+ ========================================================================== */
440
+
441
+ /**
442
+ * Add the correct display in IE 9-.
443
+ */
444
+
445
+ canvas {
446
+ display: inline-block;
447
+ }
448
+
449
+ /**
450
+ * Add the correct display in IE.
451
+ */
452
+
453
+ template {
454
+ display: none;
455
+ }
456
+
457
+ /* Hidden
458
+ ========================================================================== */
459
+
460
+ /**
461
+ * Add the correct display in IE 10-.
462
+ */
463
+
464
+ [hidden] {
465
+ display: none;
466
+ }
@@ -0,0 +1,287 @@
1
+ /*
2
+ Simple Grid
3
+ Project Page - http://thisisdallas.github.com/Simple-Grid/
4
+ Author - Dallas Bass
5
+ Site - http://dallasbass.com
6
+ */
7
+
8
+
9
+ [class*='grid'],
10
+ [class*='col-'],
11
+ [class*='mobile-'],
12
+ .grid:after {
13
+ -webkit-box-sizing: border-box;
14
+ -moz-box-sizing: border-box;
15
+ box-sizing: border-box;
16
+ }
17
+
18
+ [class*='col-'] {
19
+ float: left;
20
+ min-height: 1px;
21
+ padding-right: 20px; /* column-space */
22
+ }
23
+
24
+ [class*='col-'] [class*='col-']:last-child {
25
+ padding-right: 0;
26
+ }
27
+
28
+ .grid {
29
+ width: 100%;
30
+ max-width: 1140px;
31
+ min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */
32
+ margin: 0 auto;
33
+ overflow: hidden;
34
+ }
35
+
36
+ .grid:after {
37
+ content: "";
38
+ display: table;
39
+ clear: both;
40
+ }
41
+
42
+ .grid-pad {
43
+ padding-top: 20px;
44
+ padding-left: 20px; /* grid-space to left */
45
+ padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
46
+ }
47
+
48
+ .push-right {
49
+ float: right;
50
+ }
51
+
52
+ /* Content Columns */
53
+
54
+ .col-1-1 {
55
+ width: 100%;
56
+ }
57
+ .col-2-3, .col-8-12 {
58
+ width: 66.66%;
59
+ }
60
+
61
+ .col-1-2, .col-6-12 {
62
+ width: 50%;
63
+ }
64
+
65
+ .col-1-3, .col-4-12 {
66
+ width: 33.33%;
67
+ }
68
+
69
+ .col-1-4, .col-3-12 {
70
+ width: 25%;
71
+ }
72
+
73
+ .col-1-5 {
74
+ width: 20%;
75
+ }
76
+
77
+ .col-1-6, .col-2-12 {
78
+ width: 16.667%;
79
+ }
80
+
81
+ .col-1-7 {
82
+ width: 14.28%;
83
+ }
84
+
85
+ .col-1-8 {
86
+ width: 12.5%;
87
+ }
88
+
89
+ .col-1-9 {
90
+ width: 11.1%;
91
+ }
92
+
93
+ .col-1-10 {
94
+ width: 10%;
95
+ }
96
+
97
+ .col-1-11 {
98
+ width: 9.09%;
99
+ }
100
+
101
+ .col-1-12 {
102
+ width: 8.33%
103
+ }
104
+
105
+ /* Layout Columns */
106
+
107
+ .col-11-12 {
108
+ width: 91.66%
109
+ }
110
+
111
+ .col-10-12 {
112
+ width: 83.333%;
113
+ }
114
+
115
+ .col-9-12 {
116
+ width: 75%;
117
+ }
118
+
119
+ .col-5-12 {
120
+ width: 41.66%;
121
+ }
122
+
123
+ .col-7-12 {
124
+ width: 58.33%
125
+ }
126
+
127
+ /* Pushing blocks */
128
+
129
+ .push-2-3, .push-8-12 {
130
+ margin-left: 66.66%;
131
+ }
132
+
133
+ .push-1-2, .push-6-12 {
134
+ margin-left: 50%;
135
+ }
136
+
137
+ .push-1-3, .push-4-12 {
138
+ margin-left: 33.33%;
139
+ }
140
+
141
+ .push-1-4, .push-3-12 {
142
+ margin-left: 25%;
143
+ }
144
+
145
+ .push-1-5 {
146
+ margin-left: 20%;
147
+ }
148
+
149
+ .push-1-6, .push-2-12 {
150
+ margin-left: 16.667%;
151
+ }
152
+
153
+ .push-1-7 {
154
+ margin-left: 14.28%;
155
+ }
156
+
157
+ .push-1-8 {
158
+ margin-left: 12.5%;
159
+ }
160
+
161
+ .push-1-9 {
162
+ margin-left: 11.1%;
163
+ }
164
+
165
+ .push-1-10 {
166
+ margin-left: 10%;
167
+ }
168
+
169
+ .push-1-11 {
170
+ margin-left: 9.09%;
171
+ }
172
+
173
+ .push-1-12 {
174
+ margin-left: 8.33%
175
+ }
176
+
177
+ @media handheld, only screen and (max-width: 767px) {
178
+ .grid {
179
+ width: 100%;
180
+ min-width: 0;
181
+ margin-left: 0;
182
+ margin-right: 0;
183
+ padding-left: 20px; /* grid-space to left */
184
+ padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
185
+ }
186
+
187
+ [class*='col-'] {
188
+ width: auto;
189
+ float: none;
190
+ margin: 10px 0;
191
+ padding-left: 0;
192
+ padding-right: 10px; /* column-space */
193
+ }
194
+
195
+ [class*='col-'] [class*='col-'] {
196
+ padding-right: 0;
197
+ }
198
+
199
+ /* Mobile Layout */
200
+
201
+ [class*='mobile-col-'] {
202
+ float: left;
203
+ margin: 0 0 10px;
204
+ padding-left: 0;
205
+ padding-right: 10px; /* column-space */
206
+ padding-bottom: 0;
207
+ }
208
+
209
+ .mobile-col-1-1 {
210
+ width: 100%;
211
+ }
212
+ .mobile-col-2-3, .mobile-col-8-12 {
213
+ width: 66.66%;
214
+ }
215
+
216
+ .mobile-col-1-2, .mobile-col-6-12 {
217
+ width: 50%;
218
+ }
219
+
220
+ .mobile-col-1-3, .mobile-col-4-12 {
221
+ width: 33.33%;
222
+ }
223
+
224
+ .mobile-col-1-4, .mobile-col-3-12 {
225
+ width: 25%;
226
+ }
227
+
228
+ .mobile-col-1-5 {
229
+ width: 20%;
230
+ }
231
+
232
+ .mobile-col-1-6, .mobile-col-2-12 {
233
+ width: 16.667%;
234
+ }
235
+
236
+ .mobile-col-1-7 {
237
+ width: 14.28%;
238
+ }
239
+
240
+ .mobile-col-1-8 {
241
+ width: 12.5%;
242
+ }
243
+
244
+ .mobile-col-1-9 {
245
+ width: 11.1%;
246
+ }
247
+
248
+ .mobile-col-1-10 {
249
+ width: 10%;
250
+ }
251
+
252
+ .mobile-col-1-11 {
253
+ width: 9.09%;
254
+ }
255
+
256
+ .mobile-col-1-12 {
257
+ width: 8.33%
258
+ }
259
+
260
+ /* Layout Columns */
261
+
262
+ .mobile-col-11-12 {
263
+ width: 91.66%
264
+ }
265
+
266
+ .mobile-col-10-12 {
267
+ width: 83.333%;
268
+ }
269
+
270
+ .mobile-col-9-12 {
271
+ width: 75%;
272
+ }
273
+
274
+ .mobile-col-5-12 {
275
+ width: 41.66%;
276
+ }
277
+
278
+ .mobile-col-7-12 {
279
+ width: 58.33%
280
+ }
281
+
282
+ .hide-on-mobile {
283
+ display: none !important;
284
+ width: 0;
285
+ height: 0;
286
+ }
287
+ }
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_front_end
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - cassaram09
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - cassaram09@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/simple_front_end.rb
73
+ - lib/simple_front_end/version.rb
74
+ - simple_front_end.gemspec
75
+ - vendor/assets/javascripts/modernizr.min.js
76
+ - vendor/assets/stylesheets/normalize.css
77
+ - vendor/assets/stylesheets/simplegrid.css
78
+ homepage: https://github.com/cassaram09/simple_front_end
79
+ licenses:
80
+ - MIT
81
+ metadata:
82
+ allowed_push_host: https://rubygems.org/
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubyforge_project:
99
+ rubygems_version: 2.6.4
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: A simple gem for useful CSS / JS files
103
+ test_files: []