material-sass 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -0
  3. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  4. data/app/assets/fonts/MaterialDesignIcon.svg +772 -766
  5. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  6. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  7. data/app/assets/javascripts/material.js +326 -128
  8. data/app/assets/javascripts/material/_.js +5 -9
  9. data/app/assets/javascripts/material/bootstrap.js +3 -0
  10. data/app/assets/javascripts/material/content.js +15 -14
  11. data/app/assets/javascripts/material/datepicker.js +1 -1
  12. data/app/assets/javascripts/material/dropdown.js +25 -9
  13. data/app/assets/javascripts/material/esc.js +1 -1
  14. data/app/assets/javascripts/material/footer.js +3 -1
  15. data/app/assets/javascripts/material/form-adv.js +1 -2
  16. data/app/assets/javascripts/material/get-target.js +8 -0
  17. data/app/assets/javascripts/material/header.js +37 -7
  18. data/app/assets/javascripts/material/menu.js +47 -12
  19. data/app/assets/javascripts/material/modal.js +10 -0
  20. data/app/assets/javascripts/material/sortable.js +1 -2
  21. data/app/assets/javascripts/material/tab.js +1 -1
  22. data/app/assets/javascripts/material/tile.js +57 -14
  23. data/app/assets/javascripts/material/toast.js +53 -42
  24. data/app/assets/javascripts/material/wave.js +7 -0
  25. data/app/assets/javascripts/material/webfont.js +33 -0
  26. data/app/assets/javascripts/material/winresize.js +19 -4
  27. data/app/assets/stylesheets/material/_code.scss +40 -43
  28. data/app/assets/stylesheets/material/_grid.scss +72 -74
  29. data/app/assets/stylesheets/material/_print.scss +83 -0
  30. data/app/assets/stylesheets/material/_reset.scss +104 -84
  31. data/app/assets/stylesheets/material/_utilities-responsive.scss +97 -0
  32. data/app/assets/stylesheets/material/{_utilitise.scss → _utilities.scss} +87 -29
  33. data/app/assets/stylesheets/material/_variable.scss +78 -77
  34. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -3050
  35. data/app/assets/stylesheets/material/addon/_waves.scss +51 -0
  36. data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +17 -0
  37. data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +773 -0
  38. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +10 -0
  39. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +777 -0
  40. data/app/assets/stylesheets/material/base.scss +43 -10
  41. data/app/assets/stylesheets/material/element/_avatar.scss +23 -19
  42. data/app/assets/stylesheets/material/element/_breadcrumb.scss +27 -0
  43. data/app/assets/stylesheets/material/element/_button-float.scss +118 -48
  44. data/app/assets/stylesheets/material/element/_button.scss +56 -68
  45. data/app/assets/stylesheets/material/element/_card.scss +104 -50
  46. data/app/assets/stylesheets/material/element/_dropdown.scss +51 -32
  47. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +123 -0
  48. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +250 -227
  49. data/app/assets/stylesheets/material/element/_form-adv-label.scss +64 -0
  50. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +76 -0
  51. data/app/assets/stylesheets/material/element/_form-adv-textarea.scss +4 -0
  52. data/app/assets/stylesheets/material/element/_form.scss +163 -126
  53. data/app/assets/stylesheets/material/element/_label.scss +22 -0
  54. data/app/assets/stylesheets/material/element/_modal.scss +25 -10
  55. data/app/assets/stylesheets/material/element/_nav.scss +3 -0
  56. data/app/assets/stylesheets/material/element/_progress.scss +504 -0
  57. data/app/assets/stylesheets/material/element/_tab.scss +18 -14
  58. data/app/assets/stylesheets/material/element/_table.scss +14 -43
  59. data/app/assets/stylesheets/material/element/_tile.scss +154 -113
  60. data/app/assets/stylesheets/material/element/_toast.scss +31 -24
  61. data/app/assets/stylesheets/material/mixin/_css3.scss +5 -0
  62. data/app/assets/stylesheets/material/mixin/_grid.scss +28 -24
  63. data/app/assets/stylesheets/material/mixin/_responsive.scss +1 -1
  64. data/app/assets/stylesheets/material/mixin/{_utilitise.scss → _utilities.scss} +4 -3
  65. data/app/assets/stylesheets/material/project.scss +8 -2
  66. data/app/assets/stylesheets/material/theme/_content.scss +33 -38
  67. data/app/assets/stylesheets/material/theme/_footer.scss +1 -7
  68. data/app/assets/stylesheets/material/theme/_header.scss +175 -8
  69. data/app/assets/stylesheets/material/theme/_menu.scss +267 -78
  70. data/lib/material-sass/engine.rb +1 -1
  71. data/lib/material-sass/version.rb +1 -1
  72. metadata +33 -48
  73. data/app/assets/fonts/FontAwesome.otf +0 -0
  74. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  75. data/app/assets/fonts/fontawesome-webfont.svg +0 -565
  76. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  77. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  78. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  79. data/app/assets/javascripts/material/btn.js +0 -11
  80. data/app/assets/stylesheets/material/_addon.scss +0 -2
  81. data/app/assets/stylesheets/material/_element.scss +0 -15
  82. data/app/assets/stylesheets/material/_mixin.scss +0 -4
  83. data/app/assets/stylesheets/material/_theme.scss +0 -4
  84. data/app/assets/stylesheets/material/_variable-color.scss +0 -6
  85. data/app/assets/stylesheets/material/addon/_font-awesome.scss +0 -18
  86. data/app/assets/stylesheets/material/addon/font-awesome/_animated.scss +0 -33
  87. data/app/assets/stylesheets/material/addon/font-awesome/_bordered-pulled.scss +0 -11
  88. data/app/assets/stylesheets/material/addon/font-awesome/_core.scss +0 -10
  89. data/app/assets/stylesheets/material/addon/font-awesome/_fixed-width.scss +0 -5
  90. data/app/assets/stylesheets/material/addon/font-awesome/_flipped-rotated.scss +0 -29
  91. data/app/assets/stylesheets/material/addon/font-awesome/_icon.scss +0 -593
  92. data/app/assets/stylesheets/material/addon/font-awesome/_icons.scss +0 -593
  93. data/app/assets/stylesheets/material/addon/font-awesome/_larger.scss +0 -22
  94. data/app/assets/stylesheets/material/addon/font-awesome/_list.scss +0 -21
  95. data/app/assets/stylesheets/material/addon/font-awesome/_mixins.scss +0 -25
  96. data/app/assets/stylesheets/material/addon/font-awesome/_path.scss +0 -12
  97. data/app/assets/stylesheets/material/addon/font-awesome/_stacked.scss +0 -29
  98. data/app/assets/stylesheets/material/addon/font-awesome/_variable.scss +0 -601
  99. data/app/assets/stylesheets/material/addon/font-awesome/_variables.scss +0 -602
  100. data/app/assets/stylesheets/material/element/_form-adv.scss +0 -277
@@ -0,0 +1,7 @@
1
+ // waves v0.6.5
2
+ // http://fian.my.id/Waves
3
+ !function(a,b){"use strict";"function"==typeof define&&define.amd?define([],function(){return b.apply(a)}):"object"==typeof exports?module.exports=b.call(a):a.Waves=b.call(a)}("object"==typeof global?global:this,function(){"use strict";function a(a){return null!==a&&a===a.window}function b(b){return a(b)?b:9===b.nodeType&&b.defaultView}function c(a){var c,d,e={top:0,left:0},f=a&&a.ownerDocument;return c=f.documentElement,"undefined"!=typeof a.getBoundingClientRect&&(e=a.getBoundingClientRect()),d=b(f),{top:e.top+d.pageYOffset-c.clientTop,left:e.left+d.pageXOffset-c.clientLeft}}function d(a){var b="";for(var c in a)a.hasOwnProperty(c)&&(b+=c+":"+a[c]+";");return b}function e(a){if(j.allowEvent(a)===!1)return null;for(var b=null,c=a.target||a.srcElement;null!==c.parentElement;){if(!(c instanceof SVGElement||-1===c.className.indexOf("waves-effect"))){b=c;break}if(c.classList.contains("waves-effect")){b=c;break}c=c.parentElement}return b}function f(a){var b=e(a);null!==b&&(i.show(a,b),"ontouchstart"in window&&(b.addEventListener("touchend",i.hide,!1),b.addEventListener("touchcancel",i.hide,!1)),b.addEventListener("mouseup",i.hide,!1),b.addEventListener("mouseleave",i.hide,!1))}var g=g||{},h=document.querySelectorAll.bind(document),i={duration:750,show:function(a,b){if(2===a.button)return!1;var e=b||this,f=document.createElement("div");f.className="waves-ripple",e.appendChild(f);var g=c(e),h=a.pageY-g.top,j=a.pageX-g.left,k="scale("+e.clientWidth/100*3+")";"touches"in a&&(h=a.touches[0].pageY-g.top,j=a.touches[0].pageX-g.left),f.setAttribute("data-hold",Date.now()),f.setAttribute("data-scale",k),f.setAttribute("data-x",j),f.setAttribute("data-y",h);var l={top:h+"px",left:j+"px"};f.className=f.className+" waves-notransition",f.setAttribute("style",d(l)),f.className=f.className.replace("waves-notransition",""),l["-webkit-transform"]=k,l["-moz-transform"]=k,l["-ms-transform"]=k,l["-o-transform"]=k,l.transform=k,l.opacity="1",l["-webkit-transition-duration"]=i.duration+"ms",l["-moz-transition-duration"]=i.duration+"ms",l["-o-transition-duration"]=i.duration+"ms",l["transition-duration"]=i.duration+"ms",f.setAttribute("style",d(l))},hide:function(a){j.touchup(a);var b=this,c=(1.4*b.clientWidth,null),e=b.getElementsByClassName("waves-ripple");if(!(e.length>0))return!1;c=e[e.length-1];var f=c.getAttribute("data-x"),g=c.getAttribute("data-y"),h=c.getAttribute("data-scale"),k=Date.now()-Number(c.getAttribute("data-hold")),l=350-k;0>l&&(l=0),setTimeout(function(){var a={top:g+"px",left:f+"px",opacity:"0","-webkit-transition-duration":i.duration+"ms","-moz-transition-duration":i.duration+"ms","-o-transition-duration":i.duration+"ms","transition-duration":i.duration+"ms","-webkit-transform":h,"-moz-transform":h,"-ms-transform":h,"-o-transform":h,transform:h};c.setAttribute("style",d(a)),setTimeout(function(){try{b.removeChild(c)}catch(a){return!1}},i.duration)},l)},wrapInput:function(a){for(var b=0;b<a.length;b++){var c=a[b];if("input"===c.tagName.toLowerCase()){var d=c.parentNode;if("i"===d.tagName.toLowerCase()&&-1!==d.className.indexOf("waves-effect"))continue;var e=document.createElement("i");e.className=c.className+" waves-input-wrapper";var f=c.getAttribute("style");f||(f=""),e.setAttribute("style",f),c.className="waves-button-input",c.removeAttribute("style"),d.replaceChild(e,c),e.appendChild(c)}}}},j={touches:0,allowEvent:function(a){var b=!0;return"touchstart"===a.type?j.touches+=1:"touchend"===a.type||"touchcancel"===a.type?setTimeout(function(){j.touches>0&&(j.touches-=1)},500):"mousedown"===a.type&&j.touches>0&&(b=!1),b},touchup:function(a){j.allowEvent(a)}};return g.displayEffect=function(a){a=a||{},"duration"in a&&(i.duration=a.duration),i.wrapInput(h(".waves-effect")),"ontouchstart"in window&&document.body.addEventListener("touchstart",f,!1),document.body.addEventListener("mousedown",f,!1)},g.attach=function(a){"input"===a.tagName.toLowerCase()&&(i.wrapInput([a]),a=a.parentElement),"ontouchstart"in window&&a.addEventListener("touchstart",f,!1),a.addEventListener("mousedown",f,!1)},g});
4
+
5
+ Waves.displayEffect({
6
+ duration: 900
7
+ });
@@ -0,0 +1,33 @@
1
+ // webfont.js
2
+ WebFontConfig = {
3
+ classes: false,
4
+ fontactive: function() {
5
+ $('.avoid-fout').each(function(index) {
6
+ $(this).addClass('avoid-fout-done');
7
+ });
8
+
9
+ // fixed left/right hand side column padding bottom and width
10
+ contentFixPushCal();
11
+
12
+ // footer push
13
+ footerPush();
14
+
15
+ // header height
16
+ headerHeightCal();
17
+
18
+ // tile wrap animation
19
+ tileInView();
20
+ },
21
+ google: {
22
+ families: ['Roboto:300,300italic,400,400italic,700,700italic']
23
+ }
24
+ };
25
+
26
+ (function() {
27
+ var wf = document.createElement('script');
28
+ wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.5.10/webfont.js';
29
+ wf.type = 'text/javascript';
30
+ wf.async = 'true';
31
+ var s = document.getElementsByTagName('script')[0];
32
+ s.parentNode.insertBefore(wf, s);
33
+ })();
@@ -1,13 +1,28 @@
1
- // window resize
1
+ // window smart resize
2
+ function on_resize(c,t){onresize=function(){clearTimeout(t);t=setTimeout(c,100)};return c};
3
+
2
4
  on_resize(function() {
3
5
  // fixed left/right hand side column padding bottom and width
4
- if ($('.content-fix').length) {
5
- contentFixPushCal();
6
- };
6
+ contentFixPushCal();
7
7
 
8
8
  // footer push
9
9
  footerPush();
10
10
 
11
11
  // header height
12
12
  headerHeightCal();
13
+
14
+ // header nav positioning
15
+ if ($('.header-nav-scroll').length) {
16
+ headerNavPos();
17
+ };
18
+
19
+ // tab switch
20
+ $('.tab-nav').each(function() {
21
+ tabSwitch($('.nav > li.active', $(this)), null);
22
+ });
23
+
24
+ // tile in view
25
+ if ($('.tile-wrap-animation:not(.isinview)').length) {
26
+ tileInView();
27
+ };
13
28
  })();
@@ -5,50 +5,47 @@ samp {
5
5
  font-family: $font-fam-mono;
6
6
  }
7
7
 
8
- // code
9
- code {
10
- background-color: $white-bg;
11
- border: 1px solid $black-bg;
12
- border-radius: 4px;
13
- color: $palette-red-dark;
14
- font-size: 75%;
15
- line-height: 1;
16
- padding: 2px 4px;
17
- }
8
+ code {
9
+ background-color: $white-bg;
10
+ border: 1px solid $black-bg;
11
+ border-radius: 4px;
12
+ color: $palette-red-dark;
13
+ font-size: 75%;
14
+ line-height: 1;
15
+ padding: 2px 4px;
16
+ }
18
17
 
19
- // kbd
18
+ kbd {
19
+ background-color: $black-text;
20
+ border-radius: 4px;
21
+ color: $white;
22
+ font-size: 75%;
23
+ padding: 2px 4px;
20
24
  kbd {
21
- background-color: $black-text;
22
- border-radius: 4px;
23
- color: $white;
24
- font-size: 75%;
25
- padding: 2px 4px;
26
- kbd {
27
- font-size: 100%;
28
- font-weight: 700;
29
- padding: 0;
30
- }
25
+ font-size: 100%;
26
+ font-weight: 700;
27
+ padding: 0;
31
28
  }
29
+ }
32
30
 
33
- // pre
34
- pre {
35
- background-color: $white-bg;
36
- border: 1px solid $black-bg;
37
- border-radius: 2px;
38
- color: $black-text;
39
- display: block;
40
- font-size: $font-size-h6;
41
- line-height: $line-height-h6;
42
- margin: $line-height 0 ;
43
- padding: ($line-height / 2) ($grid-gutter / 2);
44
- word-break: break-all;
45
- word-wrap: break-word;
46
- code {
47
- background-color: transparent;
48
- border-radius: 0;
49
- color: inherit;
50
- font-size: inherit;
51
- padding: 0;
52
- white-space: pre-wrap;
53
- }
54
- }
31
+ pre {
32
+ background-color: $white-bg;
33
+ border: 1px solid $black-bg;
34
+ border-radius: 2px;
35
+ color: $black-text;
36
+ display: block;
37
+ font-size: $font-size-h6;
38
+ line-height: $line-height-h6;
39
+ margin: $line-height 0 ;
40
+ padding: ($line-height / 2) ($grid-gutter / 2);
41
+ word-break: break-all;
42
+ word-wrap: break-word;
43
+ code {
44
+ background-color: transparent;
45
+ border-radius: 0;
46
+ color: inherit;
47
+ font-size: inherit;
48
+ padding: 0;
49
+ white-space: pre-wrap;
50
+ }
51
+ }
@@ -1,83 +1,81 @@
1
- // make col
2
- @include make-col();
3
- @include make-grid(xx);
4
- // 480
5
- @include responsive(xs) {
6
- @include make-grid(xs);
7
- }
8
- // 768
9
- @include responsive(sm) {
10
- @include make-grid(sm);
11
- }
12
- // 992
13
- @include responsive(md) {
14
- @include make-grid(md);
15
- }
16
- // 1440
17
- @include responsive(lg) {
18
- @include make-grid(lg);
19
- }
20
- .col-between {
21
- margin-left: ($grid-gutter * -1);
22
- position: absolute;
23
- top: 0;
24
- text-align: center;
25
- width: ($grid-gutter * 2);
26
- }
27
-
28
- // make container
29
- .container {
30
- @include make-container();
1
+ @include make-col();
2
+ @include make-grid(xx);
3
+ // 480
4
+ @include responsive(xs) {
5
+ @include make-grid(xs);
31
6
  }
32
-
33
- .container-full {
34
- width: auto;
7
+ // 768
8
+ @include responsive(sm) {
9
+ @include make-grid(sm);
35
10
  }
36
-
37
- // make row
38
- .row {
39
- @include make-row();
11
+ // 992
12
+ @include responsive(md) {
13
+ @include make-grid(md);
40
14
  }
41
- .row-relative {
42
- position: relative;
15
+ // 1440
16
+ @include responsive(lg) {
17
+ @include make-grid(lg);
43
18
  }
44
19
 
45
- // row clear
46
- .row-clear {
47
- // 480
48
- @media only screen and (min-width: $screen-xs) and (max-width: ($screen-sm - 1)) {
49
- > .col-xs-2:nth-child(6n+1),
50
- > .col-xs-3:nth-child(4n+1),
51
- > .col-xs-4:nth-child(3n+1),
52
- > .col-xs-6:nth-child(2n+1) {
53
- clear: left;
54
- }
20
+ .col-between {
21
+ margin-left: ($grid-gutter * -1);
22
+ position: absolute;
23
+ top: 0;
24
+ text-align: center;
25
+ width: ($grid-gutter * 2);
26
+ }
27
+
28
+ .container {
29
+ @include make-container();
30
+ }
31
+
32
+ .container-full {
33
+ max-width: none;
34
+ }
35
+
36
+ .row {
37
+ @include make-row();
38
+ }
39
+
40
+ .row-clear {
41
+ // 480
42
+ @media only screen and (min-width: $screen-xs) and (max-width: ($screen-sm - 1)) {
43
+ > .col-xs-2:nth-child(6n+1),
44
+ > .col-xs-3:nth-child(4n+1),
45
+ > .col-xs-4:nth-child(3n+1),
46
+ > .col-xs-6:nth-child(2n+1) {
47
+ clear: left;
55
48
  }
56
- // 768
57
- @media only screen and (min-width: $screen-sm) and (max-width: ($screen-md - 1)) {
58
- > .col-sm-2:nth-child(6n+1),
59
- > .col-sm-3:nth-child(4n+1),
60
- > .col-sm-4:nth-child(3n+1),
61
- > .col-sm-6:nth-child(2n+1) {
62
- clear: left;
63
- }
49
+ }
50
+ // 768
51
+ @media only screen and (min-width: $screen-sm) and (max-width: ($screen-md - 1)) {
52
+ > .col-sm-2:nth-child(6n+1),
53
+ > .col-sm-3:nth-child(4n+1),
54
+ > .col-sm-4:nth-child(3n+1),
55
+ > .col-sm-6:nth-child(2n+1) {
56
+ clear: left;
64
57
  }
65
- // 992
66
- @media only screen and (min-width: $screen-md) and (max-width: ($screen-lg - 1)) {
67
- > .col-md-2:nth-child(6n+1),
68
- > .col-md-3:nth-child(4n+1),
69
- > .col-md-4:nth-child(3n+1),
70
- > .col-md-6:nth-child(2n+1) {
71
- clear: left;
72
- }
58
+ }
59
+ // 992
60
+ @media only screen and (min-width: $screen-md) and (max-width: ($screen-lg - 1)) {
61
+ > .col-md-2:nth-child(6n+1),
62
+ > .col-md-3:nth-child(4n+1),
63
+ > .col-md-4:nth-child(3n+1),
64
+ > .col-md-6:nth-child(2n+1) {
65
+ clear: left;
73
66
  }
74
- // 1440
75
- @media only screen and (min-width: $screen-lg) {
76
- > .col-lg-2:nth-child(6n+1),
77
- > .col-lg-3:nth-child(4n+1),
78
- > .col-lg-4:nth-child(3n+1),
79
- > .col-lg-6:nth-child(2n+1) {
80
- clear: left;
81
- }
67
+ }
68
+ // 1440
69
+ @media only screen and (min-width: $screen-lg) {
70
+ > .col-lg-2:nth-child(6n+1),
71
+ > .col-lg-3:nth-child(4n+1),
72
+ > .col-lg-4:nth-child(3n+1),
73
+ > .col-lg-6:nth-child(2n+1) {
74
+ clear: left;
82
75
  }
83
- }
76
+ }
77
+ }
78
+
79
+ .row-relative {
80
+ position: relative;
81
+ }
@@ -0,0 +1,83 @@
1
+ @media print {
2
+ *,
3
+ *:after,
4
+ *:before {
5
+ background: transparent !important;
6
+ box-shadow: none !important;
7
+ text-shadow: none !important;
8
+ }
9
+
10
+ a,
11
+ a:visited {
12
+ text-decoration: underline;
13
+ }
14
+
15
+ a[href]:after {
16
+ content: " (" attr(href) ")";
17
+ }
18
+
19
+ a[href^="#"]:after,
20
+ a[href^="javascript:"]:after {
21
+ content: "";
22
+ }
23
+
24
+ abbr[title]:after {
25
+ content: " (" attr(title) ")";
26
+ }
27
+
28
+ blockquote,
29
+ pre {
30
+ border: 1px solid $black-hint;
31
+ page-break-inside: avoid;
32
+ }
33
+
34
+ img,
35
+ tr {
36
+ page-break-inside: avoid;
37
+ }
38
+
39
+ img {
40
+ max-width: 100% !important;
41
+ }
42
+
43
+ h2,
44
+ h3,
45
+ p {
46
+ orphans: 3;
47
+ widows: 3;
48
+ }
49
+
50
+ h2,
51
+ h3 {
52
+ page-break-after: avoid;
53
+ }
54
+
55
+ thead {
56
+ display: table-header-group;
57
+ }
58
+
59
+ // material
60
+ .card,
61
+ .tile {
62
+ border: 1px solid $black-hint;
63
+ }
64
+
65
+ .fbtn-container,
66
+ .menu,
67
+ .menu-toggle {
68
+ display: none !important;
69
+ }
70
+
71
+ .footer {
72
+ page-break-after: always;
73
+ }
74
+
75
+ .header a {
76
+ color: $link-color;
77
+ }
78
+
79
+ .tab-nav .nav > li.active > a {
80
+ border-bottom: 3px solid $black-text;
81
+ padding-bottom: ($line-height / 2 - 3);
82
+ }
83
+ }
@@ -1,4 +1,4 @@
1
- @import url(//fonts.googleapis.com/css?family=Roboto:300,400,400italic,700);
1
+ // @import url(http://fonts.googleapis.com/css?family=Roboto:300,300italic,400,400italic,700,700italic);
2
2
 
3
3
  *,
4
4
  *:after,
@@ -6,21 +6,10 @@
6
6
  @include box-sizing(border-box);
7
7
  }
8
8
 
9
- @-webkit-viewport {
10
- width: device-width;
11
- }
12
- @-moz-viewport {
13
- width: device-width;
14
- }
9
+
15
10
  @-ms-viewport {
16
11
  width: device-width;
17
12
  }
18
- @-o-viewport {
19
- width: device-width;
20
- }
21
- @viewport {
22
- width: device-width;
23
- }
24
13
 
25
14
  // basic
26
15
  article,
@@ -48,6 +37,7 @@
48
37
  line-height: $line-height;
49
38
  margin: 0;
50
39
  padding: 0;
40
+ -webkit-font-smoothing: subpixel-antialiased;
51
41
  }
52
42
 
53
43
  html {
@@ -192,8 +182,9 @@
192
182
  font-size: $font-size-h3;
193
183
  font-weight: 400;
194
184
  line-height: $line-height-h3;
195
- margin: 0;
185
+ margin: 0 0 $line-height;
196
186
  padding: 0;
187
+ width: 100%;
197
188
  }
198
189
 
199
190
  optgroup {
@@ -209,7 +200,91 @@
209
200
  overflow: auto;
210
201
  }
211
202
 
212
- // heading
203
+ // text
204
+ a {
205
+ background-color: transparent;
206
+ background-image: none;
207
+ color: $link-color;
208
+ text-decoration: none;
209
+ &:focus,
210
+ &:hover {
211
+ color: $link-color-hover;
212
+ outline: 0;
213
+ text-decoration: underline;
214
+ }
215
+ }
216
+
217
+ abbr {
218
+ border-bottom: 1px dotted $black-hint;
219
+ cursor: help;
220
+ }
221
+
222
+ address {
223
+ font-size: $font-size;
224
+ font-style: normal;
225
+ font-weight: 400;
226
+ line-height: $line-height;
227
+ margin: $line-height 0;
228
+ }
229
+
230
+ b,
231
+ strong {
232
+ font-weight: 700;
233
+ }
234
+
235
+ blockquote,
236
+ q {
237
+ font-size: $font-size-h4;
238
+ font-style: italic;
239
+ font-weight: 300;
240
+ line-height: $line-height-h4;
241
+ margin: ($line-height * 1.5) 0;
242
+ padding-right: ($grid-gutter * 2);
243
+ padding-left: ($grid-gutter * 2);
244
+ position: relative;
245
+ &:after,
246
+ &:before {
247
+ color: $brand-color;
248
+ display: block;
249
+ font-size: $font-size-h1;
250
+ font-weight: 700;
251
+ line-height: 0;
252
+ position: absolute;
253
+ top: 0;
254
+ }
255
+ &:after {
256
+ content: close-quote;
257
+ // position
258
+ right: 0;
259
+ }
260
+ &:before {
261
+ border-right: 1px solid $brand-color-light;
262
+ content: open-quote;
263
+ // position
264
+ bottom: 0;
265
+ left: 0;
266
+ width: ($grid-gutter / 2);
267
+ }
268
+ }
269
+
270
+ dd,
271
+ dt,
272
+ li {
273
+ line-height: $line-height;
274
+ }
275
+
276
+ dd {
277
+ margin: 0;
278
+ }
279
+
280
+ dl {
281
+ margin: $line-height 0;
282
+ }
283
+
284
+ dt {
285
+ font-weight: 700;
286
+ }
287
+
213
288
  h1,
214
289
  h2,
215
290
  h3,
@@ -279,7 +354,6 @@
279
354
  }
280
355
  }
281
356
 
282
- // hr
283
357
  hr,
284
358
  .hr {
285
359
  border: 0;
@@ -291,45 +365,11 @@
291
365
  @include box-sizing(content-box);
292
366
  }
293
367
 
294
- // image
295
368
  img {
296
369
  border: 0;
297
370
  vertical-align: middle;
298
371
  }
299
372
 
300
- // link
301
- a {
302
- background-color: transparent;
303
- background-image: none;
304
- color: $link-color;
305
- text-decoration: none;
306
- &:focus,
307
- &:hover {
308
- color: $link-color-hover;
309
- outline: 0;
310
- text-decoration: underline;
311
- }
312
- }
313
-
314
- // list
315
- dd,
316
- dt,
317
- li {
318
- line-height: $line-height;
319
- }
320
-
321
- dd {
322
- margin: 0;
323
- }
324
-
325
- dl {
326
- margin: $line-height 0;
327
- }
328
-
329
- dt {
330
- font-weight: 700;
331
- }
332
-
333
373
  ol,
334
374
  ul {
335
375
  margin: $line-height 0;
@@ -341,40 +381,6 @@
341
381
  }
342
382
  }
343
383
 
344
- // table
345
- table {
346
- border-collapse: collapse;
347
- border-spacing: 0;
348
- }
349
-
350
- td,
351
- th {
352
- padding: 0;
353
- }
354
-
355
- th {
356
- text-align: left;
357
- }
358
-
359
- // text
360
- abbr {
361
- border-bottom: 1px dotted $black-hint;
362
- cursor: help;
363
- }
364
-
365
- address {
366
- font-size: $font-size;
367
- font-style: normal;
368
- font-weight: 400;
369
- line-height: $line-height;
370
- margin: $line-height 0;
371
- }
372
-
373
- b,
374
- strong {
375
- font-weight: 700;
376
- }
377
-
378
384
  p {
379
385
  margin: $line-height 0;
380
386
  }
@@ -400,4 +406,18 @@
400
406
  sup {
401
407
  // position
402
408
  top: -0.5em;
409
+ }
410
+
411
+ table {
412
+ border-collapse: collapse;
413
+ border-spacing: 0;
414
+ }
415
+
416
+ td,
417
+ th {
418
+ padding: 0;
419
+ }
420
+
421
+ th {
422
+ text-align: left;
403
423
  }