Improve consistency of code formatting

This re-formats the code which was formatted differently than primary
way CSS code in Pure.
This commit is contained in:
Eric Ferraiuolo 2013-06-10 10:02:55 -04:00
parent c799e152e9
commit 554266361f
9 changed files with 114 additions and 123 deletions

View File

@ -22,12 +22,9 @@
transition: 0.1s linear box-shadow; transition: 0.1s linear box-shadow;
} }
.pure-button-hover, .pure-button-hover,
.pure-button:hover { .pure-button:hover {
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#00000000', GradientType=0);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.05))); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(transparent), color-stop(40%, rgba(0,0,0, 0.05)), to(rgba(0,0,0, 0.05)));
background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15)); background-image: -webkit-linear-gradient(transparent, rgba(0,0,0, 0.05) 40%, rgba(0,0,0, 0.15));
background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.05)); background-image: -moz-linear-gradient(top, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.05));

View File

@ -50,12 +50,13 @@
margin: 1.5em 0 0 0; margin: 1.5em 0 0 0;
} }
/* note: pure-help-inline is deprecated. Use .pure-form-message-inline instead */ /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
.pure-form .pure-help-inline, .pure-form .pure-help-inline,
.pure-form-message-inline, .pure-form-message-inline,
.pure-form-message { .pure-form-message {
display: block; display: block;
font-size: 80%; font-size: 80%;
padding: 0.2em 0 0.8em; /* increased bottom padding to make it group with its related input element */ /* Increased bottom padding to make it group with its related input element. */
padding: 0.2em 0 0.8em;
} }
} }

View File

@ -152,16 +152,16 @@
.pure-form-aligned input, .pure-form-aligned input,
.pure-form-aligned textarea, .pure-form-aligned textarea,
.pure-form-aligned select, .pure-form-aligned select,
/* note: pure-help-inline is deprecated. Use .pure-form-message-inline instead */ /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
.pure-form-aligned .pure-help-inline, .pure-form-aligned .pure-help-inline,
.pure-form-message-inline { .pure-form-message-inline {
display: inline-block; display: inline-block;
*display: inline; /* IE7 inline-block hack */ *display: inline;
*zoom: 1; *zoom: 1;
vertical-align: middle; vertical-align: middle;
} }
/* aligned Forms */ /* Aligned Forms */
.pure-form-aligned .pure-control-group { .pure-form-aligned .pure-control-group {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
@ -226,7 +226,7 @@
} }
/* Inline help for forms */ /* Inline help for forms */
/* Note: pure-help-inline is deprecated. Use .pure-form-message-inline instead */ /* NOTE: pure-help-inline is deprecated. Use .pure-form-message-inline instead. */
.pure-form .pure-help-inline, .pure-form .pure-help-inline,
.pure-form-message-inline { .pure-form-message-inline {
display: inline-block; display: inline-block;

View File

@ -30,12 +30,14 @@
display: none; display: none;
} }
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.pure-g-r > .pure-u, .pure-g-r > .pure-u,
.pure-g-r > [class *= "pure-u-"] { .pure-g-r > [class *= "pure-u-"] {
width: 100%; width: 100%;
} }
} }
@media (max-width: 767px) { @media (max-width: 767px) {
.pure-g-r > .pure-u, .pure-g-r > .pure-u,
.pure-g-r > [class *= "pure-u-"] { .pure-g-r > [class *= "pure-u-"] {
@ -48,6 +50,7 @@
display: none; display: none;
} }
} }
@media (min-width: 768px) and (max-width: 979px) { @media (min-width: 768px) and (max-width: 979px) {
.pure-hidden-tablet { .pure-hidden-tablet {
display: none; display: none;

View File

@ -35,7 +35,8 @@
.pure-menu li { position: relative; } .pure-menu li { position: relative; }
.pure-menu a, .pure-menu .pure-menu-heading { .pure-menu a,
.pure-menu .pure-menu-heading {
display: block; display: block;
color: inherit; color: inherit;
line-height: 1.5em; line-height: 1.5em;
@ -64,7 +65,8 @@
.pure-menu-can-have-children > .pure-menu-label:after { .pure-menu-can-have-children > .pure-menu-label:after {
content: '\25B8'; content: '\25B8';
float: right; float: right;
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif; /* These specific fonts have the Unicode char we need. */ /* These specific fonts have the Unicode char we need. */
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif;
margin-right: -20px; margin-right: -20px;
margin-top: -1px; margin-top: -1px;
} }

View File

@ -21,7 +21,8 @@
.pure-paginator .pure-button:focus { .pure-paginator .pure-button:focus {
outline-style: none; outline-style: none;
} }
.pure-paginator .prev, .pure-paginator .next { .pure-paginator .prev,
.pure-paginator .next {
color: #C0C1C3; color: #C0C1C3;
text-shadow: 0 -1px 0 rgba(0,0,0, 0.45); text-shadow: 0 -1px 0 rgba(0,0,0, 0.45);
} }

View File

@ -1,7 +1,4 @@
/* RESPONSIVE */
@media (max-width: 480px) { @media (max-width: 480px) {
.pure-menu-horizontal { .pure-menu-horizontal {
width: 100%; width: 100%;
} }
@ -10,5 +7,4 @@
display: block; display: block;
border-bottom: 1px solid black; border-bottom: 1px solid black;
} }
} }

View File

@ -16,7 +16,6 @@
} }
/* LINK STYLES */ /* LINK STYLES */
.pure-menu a { .pure-menu a {

View File

@ -1,11 +1,3 @@
/*
* CSS TABLES
* ==========
* Simple CSS for HTML Tables
* Author: tilomitra
*/
/* foundational CSS */
.pure-table { .pure-table {
/* Remove spacing between table cells (from Normalize.css) */ /* Remove spacing between table cells (from Normalize.css) */
border-collapse: collapse; border-collapse: collapse;
@ -46,7 +38,7 @@
/* /*
striping: striping:
even - #fff (white) even - #fff (white)
odd - #edf5ff (light blue) odd - #f2f2f2 (light gray)
*/ */
.pure-table td { .pure-table td {
background-color: transparent; background-color: transparent;