Dropped IE7
This commit is contained in:
parent
06a3717c3b
commit
aa573e574c
|
@ -1,2 +1,3 @@
|
||||||
.sass-cache/*
|
.sass-cache/*
|
||||||
node_modules/*
|
node_modules/*
|
||||||
|
css/example.css
|
|
@ -21,7 +21,7 @@ module.exports = function(grunt) {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
css: {
|
css: {
|
||||||
files: ['css/*.scss'],
|
files: ['css/*.scss', 'css/*/*.scss'],
|
||||||
tasks: ['sass']
|
tasks: ['sass']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// Base
|
// Base
|
||||||
|
|
||||||
$base-colour: #333;
|
$base-colour: #444;
|
||||||
$base-background-colour: #fff;
|
$base-background-colour: #fff;
|
||||||
|
|
||||||
$base-font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
$base-font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
$base-font-size: 14;
|
$base-font-size: 16;
|
||||||
$base-line-height: 1.5;
|
$base-line-height: 1.5;
|
||||||
$base-margin-bottom: ($base-font-size * $base-line-height);
|
$base-margin-bottom: $base-font-size * $base-line-height;
|
||||||
|
|
||||||
$h1-font-size: 28;
|
$h1-font-size: 28;
|
||||||
$h2-font-size: 24;
|
$h2-font-size: 24;
|
||||||
|
@ -19,20 +19,12 @@ $h6-font-size: 16;
|
||||||
|
|
||||||
$mobile: 640px;
|
$mobile: 640px;
|
||||||
|
|
||||||
// Lists
|
|
||||||
|
|
||||||
$list-margin-left: 24;
|
|
||||||
|
|
||||||
// Scaffolding
|
// Scaffolding
|
||||||
|
|
||||||
$container-max-width: 960;
|
$container-max-width: 960;
|
||||||
$column-count: 12;
|
$column-count: 12;
|
||||||
$column-gutter: 20;
|
$column-gutter: 20;
|
||||||
|
|
||||||
// Tables
|
|
||||||
|
|
||||||
$table-border-colour: #ddd;
|
|
||||||
|
|
||||||
// Forms
|
// Forms
|
||||||
$input-border: solid 1px #ccc;
|
$input-border: solid 1px #ccc;
|
||||||
$input-background: #fff;
|
$input-background: #fff;
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
@mixin media($size) {
|
@mixin media($size) {
|
||||||
@media screen and (max-width: $size) { @content; }
|
@media screen and (max-width: $size) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@function calculate-rem($size) {
|
@function calculate-rem($px, $base: $base-font-size) {
|
||||||
$remSize: $size / $base-font-size;
|
$rem: $px / $base;
|
||||||
@return #{$remSize}rem;
|
@return #{$rem}rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin font-size($size) {
|
@mixin font-size($px) {
|
||||||
font-size: $size + px;
|
font-size: $px + px;
|
||||||
font-size: calculate-rem($size);
|
font-size: calculate-rem($px);
|
||||||
}
|
}
|
|
@ -1,17 +1,15 @@
|
||||||
html {
|
html {
|
||||||
background-color: $base-background-colour;
|
background-color: $base-background-colour;
|
||||||
color: $base-colour;
|
color: $base-colour;
|
||||||
font-size: 62.5%;
|
font: #{($base-font-size * 6.25) * 1%}/#{$base-line-height} $base-font-stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
a {
|
||||||
//font: #{(($base-font-size / 16) * 1em)}/#{$base-line-height} $base-font-stack;
|
color: $base-colour;
|
||||||
font-family: $base-font-stack;
|
text-decoration: none;
|
||||||
@include font-size($base-font-size);
|
|
||||||
line-height: $base-line-height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6, p, ul, ol, table, pre, fieldset {
|
h1, h2, h3, h4, h5, h6, p, ul, ol {
|
||||||
margin-bottom: $base-margin-bottom * 1px;
|
margin-bottom: $base-margin-bottom * 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,32 +18,27 @@ h1 {
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: ($h2-font-size / $base-font-size) * 1em;
|
@include font-size($h2-font-size);
|
||||||
line-height: ($base-margin-bottom / $h2-font-size ) * 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: ($h3-font-size / $base-font-size) * 1em;
|
@include font-size($h3-font-size);
|
||||||
line-height: ($base-margin-bottom / $h3-font-size ) * 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-size: ($h4-font-size / $base-font-size) * 1em;
|
@include font-size($h4-font-size);
|
||||||
line-height: ($base-margin-bottom / $h4-font-size ) * 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h5 {
|
h5 {
|
||||||
font-size: ($h5-font-size / $base-font-size) * 1em;
|
@include font-size($h5-font-size);
|
||||||
line-height: ($base-margin-bottom / $h5-font-size ) * 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h6 {
|
h6 {
|
||||||
font-size: ($h6-font-size / $base-font-size) * 1em;
|
@include font-size($h6-font-size);
|
||||||
line-height: ($base-margin-bottom / $h6-font-size ) * 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, ol {
|
ul, ol {
|
||||||
margin-left: $list-margin-left * 1px;
|
margin-left: $base-margin-bottom * 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul ul, ol ol {
|
ul ul, ol ol {
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td{
|
* {
|
||||||
|
border: 0;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -8,8 +12,9 @@ table {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset, img {
|
th {
|
||||||
border: 0;
|
font-weight: bold;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
address, caption, cite, dfn, th, var {
|
address, caption, cite, dfn, th, var {
|
||||||
|
@ -17,10 +22,6 @@ address, caption, cite, dfn, th, var {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
caption, th {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -28,8 +29,4 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
|
|
||||||
q:before, q:after {
|
q:before, q:after {
|
||||||
content: '';
|
content: '';
|
||||||
}
|
|
||||||
|
|
||||||
abbr, acronym {
|
|
||||||
border: 0;
|
|
||||||
}
|
}
|
|
@ -1,45 +1,48 @@
|
||||||
input, select, textarea {
|
input,
|
||||||
display: inline-block;
|
select,
|
||||||
font: inherit;
|
textarea {
|
||||||
line-height: $base-margin-bottom + px;
|
|
||||||
padding: 4px 8px;
|
|
||||||
color: $base-colour;
|
|
||||||
background: $input-background;
|
background: $input-background;
|
||||||
border: $input-border;
|
border: $input-border;
|
||||||
|
color: $base-colour;
|
||||||
|
display: inline-block;
|
||||||
|
font: inherit;
|
||||||
|
line-height: $base-margin-bottom * 1px;
|
||||||
|
padding: ($base-margin-bottom / 4) ($base-margin-bottom / 2);
|
||||||
width: 208px;
|
width: 208px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
min-height: ($base-margin-bottom * 4) + px;
|
min-height: ($base-margin-bottom * 4) * 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__group {
|
.form__group {
|
||||||
margin-bottom: $base-margin-bottom + px;
|
margin-bottom: $base-margin-bottom * 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__label {
|
.form__label {
|
||||||
float: left;
|
font-weight: bold;
|
||||||
width: 140px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form__controls {
|
.form__controls {
|
||||||
margin-left: 160px;
|
|
||||||
@extend .clearfix;
|
@extend .clearfix;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox input {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background: $btn-background;
|
background: $btn-background;
|
||||||
border: $btn-border;
|
border: $btn-border;
|
||||||
color: $btn-color;
|
color: $btn-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: ($base-margin-bottom * 2) + px;
|
line-height: ($base-margin-bottom * 2) * 1px;
|
||||||
height: ($base-margin-bottom * 2) + px;
|
height: ($base-margin-bottom * 2) * 1px;
|
||||||
padding: 0 20px;
|
padding: 0 $base-margin-bottom;
|
||||||
width: auto;
|
width: auto;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $btn-background-hover;
|
background: $btn-background-hover;
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
.nav {
|
.nav {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin-left: 0;
|
margin: 0;
|
||||||
>li {
|
>li {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
*display: inline;
|
|
||||||
>a {
|
>a {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@for $i from 1 through $column-count {
|
@for $i from 1 through $column-count {
|
||||||
.column-span-#{$i} {
|
.col-span-#{$i} {
|
||||||
width: (((100 / $column-count) * $i) - (($column-gutter / $container-max-width) * 100)) * 1%;
|
width: (((100 / $column-count) * $i) - (($column-gutter / $container-max-width) * 100)) * 1%;
|
||||||
*width: (((100 / $column-count) * $i) - (($column-gutter / $container-max-width) * 100)) - .02 * 1%;
|
*width: (((100 / $column-count) * $i) - (($column-gutter / $container-max-width) * 100)) - .02 * 1%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
.table {
|
|
||||||
width: 100%;
|
|
||||||
border-collapse: collapse;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table th,
|
|
||||||
.table td {
|
|
||||||
text-align: left;
|
|
||||||
vertical-align: top;
|
|
||||||
border-top: 1px solid $table-border-colour;
|
|
||||||
padding: ($base-margin-bottom / 2) * 1px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table th {
|
|
||||||
font-weight: bold;
|
|
||||||
border-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.table thead th {
|
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
|
|
@ -19,5 +19,5 @@ Author: Mike Francis
|
||||||
|
|
||||||
@import 'objects/forms';
|
@import 'objects/forms';
|
||||||
@import 'objects/scaffolding';
|
@import 'objects/scaffolding';
|
||||||
@import 'objects/nav';
|
@import 'objects/scaffolding';
|
||||||
@import 'objects/tables';
|
@import 'objects/nav';
|
Loading…
Reference in New Issue