Made grid more fluid, got rid of any pixel based padding and/or magins and made them percentage based
This commit is contained in:
parent
c9965ba512
commit
b7a38ef7fa
71
css/skeleton.css
vendored
71
css/skeleton.css
vendored
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Table of contents
|
/* Table of contents
|
||||||
––––––––––––––––––––––––––––––––––––––––––––––––––
|
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||||
- Grid
|
- Grid
|
||||||
- Base Styles
|
- Base Styles
|
||||||
- Typography
|
- Typography
|
||||||
@ -29,27 +29,26 @@
|
|||||||
/* Grid
|
/* Grid
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
.container {
|
.container {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 960px;
|
max-width: 1280px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 15px;
|
padding: 0 1%;
|
||||||
box-sizing: border-box; }
|
box-sizing: border-box; }
|
||||||
.row {
|
.row {
|
||||||
margin: 0 -15px 2rem; }
|
margin: 0 -1% 2rem; }
|
||||||
.row .column,
|
.row .column,
|
||||||
.row .columns {
|
.row .columns {
|
||||||
float: left;
|
float: left;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: 15px;
|
padding: 0 1%;
|
||||||
padding-left: 15px;
|
|
||||||
box-sizing: border-box; }
|
box-sizing: border-box; }
|
||||||
|
|
||||||
/* For devices larger than 550px */
|
/* For devices larger than 600px */
|
||||||
@media (min-width: 550px) {
|
@media (min-width: 600px) {
|
||||||
|
|
||||||
|
.container { width: 96%; }
|
||||||
|
|
||||||
.container { width: 90%; }
|
|
||||||
|
|
||||||
.row .one.column,
|
.row .one.column,
|
||||||
.row .one.columns { width: 8.33333333334%; }
|
.row .one.columns { width: 8.33333333334%; }
|
||||||
.row .two.columns { width: 16.6666666667%; }
|
.row .two.columns { width: 16.6666666667%; }
|
||||||
@ -62,7 +61,7 @@
|
|||||||
.row .nine.columns { width: 75.0%; }
|
.row .nine.columns { width: 75.0%; }
|
||||||
.row .ten.columns { width: 83.3333333334%; }
|
.row .ten.columns { width: 83.3333333334%; }
|
||||||
.row .eleven.columns { width: 91.6666666667%; }
|
.row .eleven.columns { width: 91.6666666667%; }
|
||||||
.row .twelve.columns { width: 100%; margin-left: 0; }
|
.row .twelve.columns { width: 100%; }
|
||||||
|
|
||||||
.row .one-third.column { width: 33.3333333334%; }
|
.row .one-third.column { width: 33.3333333334%; }
|
||||||
.row .two-thirds.column { width: 66.6666666667%; }
|
.row .two-thirds.column { width: 66.6666666667%; }
|
||||||
@ -93,10 +92,10 @@
|
|||||||
/* Base Styles
|
/* Base Styles
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
/* NOTE
|
/* NOTE
|
||||||
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||||||
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||||||
html {
|
html {
|
||||||
font-size: 62.5%; }
|
font-size: 62.5%; }
|
||||||
body {
|
body {
|
||||||
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
@ -107,7 +106,7 @@ body {
|
|||||||
|
|
||||||
/* Typography
|
/* Typography
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 2rem; }
|
margin-bottom: 2rem; }
|
||||||
@ -134,13 +133,13 @@ p {
|
|||||||
|
|
||||||
/* Links
|
/* Links
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
a {
|
a {
|
||||||
color: #1EAEDB; }
|
color: #1EAEDB; }
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #0FA0CE; }
|
color: #0FA0CE; }
|
||||||
|
|
||||||
|
|
||||||
/* Buttons
|
/* Buttons
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
.button,
|
.button,
|
||||||
button,
|
button,
|
||||||
@ -161,7 +160,7 @@ input[type="button"] {
|
|||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
letter-spacing: .1rem;
|
letter-spacing: .1rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
box-sizing: border-box; }
|
box-sizing: border-box; }
|
||||||
.button:hover,
|
.button:hover,
|
||||||
@ -254,18 +253,18 @@ label > .label-body {
|
|||||||
|
|
||||||
/* Lists
|
/* Lists
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
ul {
|
ul {
|
||||||
list-style: circle inside; }
|
list-style: circle inside; }
|
||||||
ol {
|
ol {
|
||||||
list-style: decimal inside; }
|
list-style: decimal inside; }
|
||||||
ol, ul {
|
ol, ul {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
padding-left: 0; }
|
padding-left: 0; }
|
||||||
ul ul,
|
ul ul,
|
||||||
ul ol,
|
ul ol,
|
||||||
ol ol,
|
ol ol,
|
||||||
ol ul {
|
ol ul {
|
||||||
margin: 1.5rem 0 1.5rem 3rem;
|
margin: 1.5rem 0 1.5rem 3rem;
|
||||||
font-size: 90%; }
|
font-size: 90%; }
|
||||||
li {
|
li {
|
||||||
margin-bottom: 1rem; }
|
margin-bottom: 1rem; }
|
||||||
@ -356,7 +355,7 @@ hr {
|
|||||||
/* Self Clearing Goodness */
|
/* Self Clearing Goodness */
|
||||||
.container:after,
|
.container:after,
|
||||||
.row:after,
|
.row:after,
|
||||||
.u-cf {
|
.u-cf {
|
||||||
content: "";
|
content: "";
|
||||||
display: table;
|
display: table;
|
||||||
clear: both; }
|
clear: both; }
|
||||||
@ -365,10 +364,10 @@ hr {
|
|||||||
/* Media Queries
|
/* Media Queries
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||||
/*
|
/*
|
||||||
Note: The best way to structure the use of media queries is to create the queries
|
Note: The best way to structure the use of media queries is to create the queries
|
||||||
near the relevant code. For example, if you wanted to change the styles for buttons
|
near the relevant code. For example, if you wanted to change the styles for buttons
|
||||||
on small devices, paste the mobile query code up in the buttons section and style it
|
on small devices, paste the mobile query code up in the buttons section and style it
|
||||||
there.
|
there.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user