Skip to content

Commit

Permalink
Merge pull request #7 from zgreen/master
Browse files Browse the repository at this point in the history
Support for box-sizing: border-box?
  • Loading branch information
bjankord committed Feb 25, 2014
2 parents 9c78e8a + 15b46b9 commit c9e8563
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions css/sg-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
/* -------------------------------------------------------------------------
Layout
---------------------------------------------------------------------------- */
* {
-moz-box-sizing: border-box;
box-sizing: border-box;
}

body {margin: 0;}

.sg-header {
Expand Down Expand Up @@ -210,23 +215,24 @@ body {margin: 0;}
background: #fff;
border: 1px solid #bbb;
display: inline-block;
height: 77px;
height: 89px;
margin: 0 .5em .5em 0;
padding: 5px;
position: relative;
width: 77px;
width: 89px;
}

.sg-color-swatch {
display: block;
height: 100%;
position: relative;
width: 100%;
}

.sg-color-swatch span {
background: #000;
background: rgba(0,0,0,.7);
bottom: 5px;
bottom: 0;
color: #fff;
font-size: .8em;
margin: 0;
Expand All @@ -235,7 +241,7 @@ body {margin: 0;}
position: absolute;
text-align: center;
text-transform: uppercase;
width: 77px;
width: 100%;
}

.sg-color-swatch:hover span {
Expand Down

0 comments on commit c9e8563

Please sign in to comment.