updates on CSS files too

This commit is contained in:
Raphael Goetter 2014-04-20 19:56:47 +02:00
parent 6a4bb4ef9e
commit 6ee08ce823
4 changed files with 46 additions and 189 deletions

View file

@ -259,7 +259,7 @@ table {
} }
/* Google Gmap3 bug fix on images */ /* Google Gmap3 bug fix on images */
:not(.gm-style) img { :not(.gm-style) img {
height: auto !important; height: auto;
} }
.ie678 .gm-style img { .ie678 .gm-style img {
height: 100%; height: 100%;
@ -456,27 +456,27 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.ma1, .ma1,
.mas { .mas {
margin: 10px; margin: 1em;
} }
.ma2, .ma2,
.mam { .mam {
margin: 20px; margin: 2em;
} }
.ma3, .ma3,
.mal { .mal {
margin: 30px; margin: 4em;
} }
.pa1, .pa1,
.pas { .pas {
padding: 10px; padding: 1em;
} }
.pa2, .pa2,
.pam { .pam {
padding: 20px; padding: 2em;
} }
.pa3, .pa3,
.pal { .pal {
padding: 30px; padding: 4em;
} }
.mt0, .mt0,
.mtn { .mtn {
@ -484,15 +484,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.mt1, .mt1,
.mts { .mts {
margin-top: 10px; margin-top: 1em;
} }
.mt2, .mt2,
.mtm { .mtm {
margin-top: 20px; margin-top: 2em;
} }
.mt3, .mt3,
.mtl { .mtl {
margin-top: 30px; margin-top: 4em;
} }
.mr0, .mr0,
.mrn { .mrn {
@ -500,15 +500,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.mr1, .mr1,
.mrs { .mrs {
margin-right: 10px; margin-right: 1em;
} }
.mr2, .mr2,
.mrm { .mrm {
margin-right: 20px; margin-right: 2em;
} }
.mr3, .mr3,
.mrl { .mrl {
margin-right: 30px; margin-right: 4em;
} }
.mb0, .mb0,
.mbn { .mbn {
@ -516,15 +516,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.mb1, .mb1,
.mbs { .mbs {
margin-bottom: 10px; margin-bottom: 1em;
} }
.mb2, .mb2,
.mbm { .mbm {
margin-bottom: 20px; margin-bottom: 2em;
} }
.mb3, .mb3,
.mbl { .mbl {
margin-bottom: 30px; margin-bottom: 4em;
} }
.ml0, .ml0,
.mln { .mln {
@ -532,15 +532,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.ml1, .ml1,
.mls { .mls {
margin-left: 10px; margin-left: 1em;
} }
.ml2, .ml2,
.mlm { .mlm {
margin-left: 20px; margin-left: 2em;
} }
.ml3, .ml3,
.mll { .mll {
margin-left: 30px; margin-left: 4em;
} }
.pt0, .pt0,
.ptn { .ptn {
@ -548,15 +548,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.pt1, .pt1,
.pts { .pts {
padding-top: 10px; padding-top: 1em;
} }
.pt2, .pt2,
.ptm { .ptm {
padding-top: 20px; padding-top: 2em;
} }
.pt3, .pt3,
.ptl { .ptl {
padding-top: 30px; padding-top: 4em;
} }
.pr0, .pr0,
.prn { .prn {
@ -564,15 +564,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.pr1, .pr1,
.prs { .prs {
padding-right: 10px; padding-right: 1em;
} }
.pr2, .pr2,
.prm { .prm {
padding-right: 20px; padding-right: 2em;
} }
.pr3, .pr3,
.prl { .prl {
padding-right: 30px; padding-right: 4em;
} }
.pb0, .pb0,
.pbn { .pbn {
@ -580,15 +580,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.pb1, .pb1,
.pbs { .pbs {
padding-bottom: 10px; padding-bottom: 1em;
} }
.pb2, .pb2,
.pbm { .pbm {
padding-bottom: 20px; padding-bottom: 2em;
} }
.pb3, .pb3,
.pbl { .pbl {
padding-bottom: 30px; padding-bottom: 4em;
} }
.pl0, .pl0,
.pln { .pln {
@ -596,15 +596,15 @@ source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
} }
.pl1, .pl1,
.pls { .pls {
padding-left: 10px; padding-left: 1em;
} }
.pl2, .pl2,
.plm { .plm {
padding-left: 20px; padding-left: 2em;
} }
.pl3, .pl3,
.pll { .pll {
padding-left: 30px; padding-left: 4em;
} }
/* ----------------------------- */ /* ----------------------------- */
/* == iefix */ /* == iefix */

View file

@ -1,20 +1,13 @@
/* ---------------------------------- */ /* ---------------------------------- */
/* ==classic grids */ /* ==classic grids */
/* .. use it when gutter size matters */ /* .. use it when gutter size matters */
/* ---------------------------------- */ /* ---------------------------------- */
/* grids inspired from SUIT https://github.com/suitcss/suit */ /* grids inspired from SUIT https://github.com/suitcss/suit */
/* font-family hack explained here : https://github.com/raphaelgoetter/KNACSS/issues/37 */ /* font-family hack explained here : https://github.com/raphaelgoetter/KNACSS/issues/37 */
.grid { .grid {
overflow: hidden; overflow: hidden;
font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
} }
.grid > * { .grid > * {
display: block; display: block;
padding: 0; padding: 0;
@ -24,14 +17,11 @@
letter-spacing: -0.31em; letter-spacing: -0.31em;
text-rendering: optimizespeed; text-rendering: optimizespeed;
} }
/* Opera hack */ /* Opera hack */
.opera:-o-prefocus, .opera:-o-prefocus,
.grid > * { .grid > * {
word-spacing: -0.43em; word-spacing: -0.43em;
} }
.grid > * > * { .grid > * > * {
display: inline-block; display: inline-block;
*display: inline; *display: inline;
@ -48,64 +38,49 @@
text-rendering: auto; text-rendering: auto;
font-family: Helvetica, Arial, sans-serif; font-family: Helvetica, Arial, sans-serif;
} }
.grid2 > * { .grid2 > * {
width: 50%; width: 50%;
} }
.grid3 > * { .grid3 > * {
width: 33.333%; width: 33.333%;
} }
.grid4 > * { .grid4 > * {
width: 25%; width: 25%;
} }
.grid5 > * { .grid5 > * {
width: 20%; width: 20%;
} }
.grid6 > * { .grid6 > * {
width: 16.667%; width: 16.667%;
} }
.grid8 > * { .grid8 > * {
width: 12.5%; width: 12.5%;
} }
.grid10 > * { .grid10 > * {
width: 10%; width: 10%;
} }
.grid12 > * { .grid12 > * {
width: 8.333%; width: 8.333%;
} }
/* unequal grids (1-2, 2-1, 1-3 and 3-1) for 2 blocks */ /* unequal grids (1-2, 2-1, 1-3 and 3-1) for 2 blocks */
.grid2-1 > *:first-child, .grid2-1 > *:first-child,
.grid1-2 > * + * { .grid1-2 > * + * {
width: 66.666%; width: 66.666%;
} }
.grid1-2 > *:first-child, .grid1-2 > *:first-child,
.grid2-1 > * + * { .grid2-1 > * + * {
width: 33.333%; width: 33.333%;
} }
.grid1-3 > *:first-child, .grid1-3 > *:first-child,
.grid3-1 > * + * { .grid3-1 > * + * {
width: 25%; width: 25%;
} }
.grid3-1 > *:first-child, .grid3-1 > *:first-child,
.grid1-3 > * + * { .grid1-3 > * + * {
width: 75%; width: 75%;
} }
/* Responsiv-o-matic */ /* Responsiv-o-matic */
@media (max-width: 1024px) {
@media (max-width: 1280px) {
.grid5 > *, .grid5 > *,
.grid6 > *, .grid6 > *,
.grid8 > *, .grid8 > *,
@ -114,8 +89,7 @@
width: 33.333%; width: 33.333%;
} }
} }
@media (max-width: 480px) {
@media (max-width: 768px) {
.grid3 > *, .grid3 > *,
.grid4 > *, .grid4 > *,
.grid5 > *, .grid5 > *,
@ -126,42 +100,31 @@
width: 50%; width: 50%;
} }
} }
@media (max-width: 320px) {
@media (max-width: 480px) {
.grid > * > * { .grid > * > * {
width: 100% !important; width: 100% !important;
} }
} }
/* ---------------------------------- */ /* ---------------------------------- */
/* ==autogrids */ /* ==autogrids */
/* .. to automatically justify blocs */ /* .. to automatically justify blocs */
/* ---------------------------------- */ /* ---------------------------------- */
/* Demo : http://codepen.io/raphaelgoetter/pen/Kqehf */ /* Demo : http://codepen.io/raphaelgoetter/pen/Kqehf */
[class*="autogrid"] { [class*="autogrid"] {
text-align: justify; text-align: justify;
font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif; font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
letter-spacing: -0.31em; letter-spacing: -0.31em;
text-rendering: optimizespeed; text-rendering: optimizespeed;
} }
/* Opera hack */ /* Opera hack */
[class*="autogrid"]:-o-prefocus { [class*="autogrid"]:-o-prefocus {
word-spacing: -0.43em; word-spacing: -0.43em;
} }
[class*="autogrid"]:after { [class*="autogrid"]:after {
content: ""; content: "";
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }
[class*="autogrid"] > * { [class*="autogrid"] > * {
display: inline-block; display: inline-block;
*display: inline; *display: inline;
@ -171,42 +134,34 @@
letter-spacing: normal; letter-spacing: normal;
word-spacing: normal; word-spacing: normal;
vertical-align: top; vertical-align: top;
text-align: left;
text-rendering: auto; text-rendering: auto;
} }
.autogrid2 > * { .autogrid2 > * {
width: 49%; width: 49%;
} }
.autogrid3 > * { .autogrid3 > * {
width: 32%; width: 32%;
} }
.autogrid4 > * { .autogrid4 > * {
width: 23.6%; width: 23.6%;
} }
.autogrid5 > * { .autogrid5 > * {
width: 19%; width: 19%;
} }
.autogrid6 > * { .autogrid6 > * {
width: 15%; width: 15%;
} }
.autogrid8 > * { .autogrid8 > * {
width: 10.8%; width: 10.8%;
} }
.autogrid10 > * { .autogrid10 > * {
width: 9%; width: 9%;
} }
.autogrid12 > * { .autogrid12 > * {
width: 6.4%; width: 6.4%;
} }
@media (max-width: 1024px) {
@media (max-width: 1280px) {
.autogrid5 > *, .autogrid5 > *,
.autogrid6 > *, .autogrid6 > *,
.autogrid8 > *, .autogrid8 > *,
@ -215,8 +170,7 @@
width: 32%; width: 32%;
} }
} }
@media (max-width: 480px) {
@media (max-width: 768px) {
.autogrid5 > *, .autogrid5 > *,
.autogrid6 > *, .autogrid6 > *,
.autogrid8 > *, .autogrid8 > *,
@ -225,8 +179,7 @@
width: 49%; width: 49%;
} }
} }
@media (max-width: 320px) {
@media (max-width: 480px) {
[class*="autogrid"] > * { [class*="autogrid"] > * {
width: 100%; width: 100%;
} }

View file

@ -1,13 +1,9 @@
/* ----------------------------- */ /* ----------------------------- */
/* ==icons and bullets */ /* ==icons and bullets */
/* ----------------------------- */ /* ----------------------------- */
.icon { .icon {
display: inline-block; display: inline-block;
} }
.icon:before, .icon:before,
.icon.after:after { .icon.after:after {
content: ""; content: "";
@ -21,77 +17,63 @@
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
speak: none; speak: none;
} }
@media (min-device-width: 480px) {
@media (min-device-width: 768px) {
.icon:before, .icon:before,
.icon.after:after { .icon.after:after {
font: 1em/0.6 sans-serif; font: 1em/0.6 sans-serif;
-webkit-transform: rotateZ(0.05deg); -webkit-transform: rotateZ(0.05deg);
} }
} }
.icon.after:after { .icon.after:after {
margin: 0 0 0 8px; margin: 0 0 0 8px;
} }
.icon.after:before { .icon.after:before {
content: "" !important; content: "" !important;
} }
.icon-rate:before, .icon-rate:before,
.icon-rate.after:after { .icon-rate.after:after {
content: "\2605"; content: "\2605";
} }
.icon-unrate:before, .icon-unrate:before,
.icon-unrate.after:after { .icon-unrate.after:after {
content: "\2606"; content: "\2606";
} }
.icon-check:before, .icon-check:before,
.icon-check.after:after { .icon-check.after:after {
content: "\2713"; content: "\2713";
} }
.icon-uncheck:before, .icon-uncheck:before,
.icon-uncheck.after:after { .icon-uncheck.after:after {
content: "\2717"; content: "\2717";
} }
.icon-cloud:before, .icon-cloud:before,
.icon-cloud.after:after { .icon-cloud.after:after {
content: "\2601"; content: "\2601";
} }
.icon-dl:before, .icon-dl:before,
.icon-dl.after:after { .icon-dl.after:after {
content: "\21E3"; content: "\21E3";
font-weight: bold; font-weight: bold;
} }
.icon-cross:before, .icon-cross:before,
.icon-cross.after:after { .icon-cross.after:after {
content: "\2716"; content: "\2716";
font-weight: bold; font-weight: bold;
} }
.icon-arrow1:before, .icon-arrow1:before,
.icon-arrow1.after:after { .icon-arrow1.after:after {
content: "\2192"; content: "\2192";
position: relative; position: relative;
top: -0.15em; top: -0.15em;
} }
.icon-arrow2:before, .icon-arrow2:before,
.icon-arrow2.after:after { .icon-arrow2.after:after {
content: "\279E"; content: "\279E";
} }
.icon-arrow3:before, .icon-arrow3:before,
.icon-arrow3.after:after { .icon-arrow3.after:after {
content: "\279A"; content: "\279A";
} }
.icon-bracket1:before, .icon-bracket1:before,
.icon-bracket1.after:after { .icon-bracket1.after:after {
content: "\2039"; content: "\2039";
@ -100,7 +82,6 @@
position: relative; position: relative;
top: -0.15em; top: -0.15em;
} }
.icon-bracket2:before, .icon-bracket2:before,
.icon-bracket2.after:after { .icon-bracket2.after:after {
content: "\203A"; content: "\203A";
@ -109,54 +90,45 @@
position: relative; position: relative;
top: -0.15em; top: -0.15em;
} }
.icon-up:before, .icon-up:before,
.icon-up.after:after { .icon-up.after:after {
content: "\25B2"; content: "\25B2";
} }
.icon-down:before, .icon-down:before,
.icon-down.after:after { .icon-down.after:after {
content: "\25BC"; content: "\25BC";
} }
.icon-bull:before, .icon-bull:before,
.icon-bull.after:after { .icon-bull.after:after {
content: "\2022"; content: "\2022";
font-size: 1.2em; font-size: 1.2em;
top: -0.05em; top: -0.05em;
} }
.icon-bull2:before, .icon-bull2:before,
.icon-bull2.after:after { .icon-bull2.after:after {
content: "\25E6"; content: "\25E6";
top: -0.05em; top: -0.05em;
} }
.icon-bull3:before, .icon-bull3:before,
.icon-bull3.after:after { .icon-bull3.after:after {
content: "\2023"; content: "\2023";
font-size: 1.6em; font-size: 1.6em;
top: -0.05em; top: -0.05em;
} }
.icon-nav:before, .icon-nav:before,
.icon-nav.after:after { .icon-nav.after:after {
content: "\2261"; content: "\2261";
font-weight: bold; font-weight: bold;
} }
.icon-losange:before, .icon-losange:before,
.icon-losange.after:after { .icon-losange.after:after {
content: "\25C6"; content: "\25C6";
} }
.icon-asteri:before, .icon-asteri:before,
.icon-asteri.after:after { .icon-asteri.after:after {
content: "\2731"; content: "\2731";
font-weight: bold; font-weight: bold;
} }
.icon-mail:before, .icon-mail:before,
.icon-mail.after:after { .icon-mail.after:after {
content: "\2709"; content: "\2709";

View file

@ -1,77 +1,56 @@
/* ----------------------------- */ /* ----------------------------- */
/* ==desktop and retina medias */ /* ==desktop and retina medias */
/* ----------------------------- */ /* ----------------------------- */
@media (min-width: 480px) {
@media (min-width: 768px) {
/* here go rules for big resources and big screens like: background-images, font-faces, etc. */ /* here go rules for big resources and big screens like: background-images, font-faces, etc. */
} }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) { @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
/* Style adjustments for retina devices */ /* Style adjustments for retina devices */
} }
/* ---------------------------------- */ /* ---------------------------------- */
/* ==Responsive large / medium / tiny */ /* ==Responsive large / medium / tiny */
/* ---------------------------------- */ /* ---------------------------------- */
@media (min-width: 1024px) {
@media (min-width: 1280px) {
/* layouts for large screens */ /* layouts for large screens */
.large-hidden { .large-hidden {
display: none !important; display: none !important;
} }
.large-visible { .large-visible {
display: block !important; display: block !important;
} }
.large-no-float { .large-no-float {
float: none; float: none;
} }
.large-inbl { .large-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.large-row { .large-row {
display: table; display: table;
table-layout: fixed; table-layout: fixed;
width: 100% !important; width: 100% !important;
} }
.large-col { .large-col {
display: table-cell; display: table-cell;
vertical-align: top; vertical-align: top;
} }
/* widths for large screens */ /* widths for large screens */
.large-w25 { .large-w25 {
width: 25% !important; width: 25% !important;
} }
.large-w33 { .large-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.large-w50 { .large-w50 {
width: 50% !important; width: 50% !important;
} }
.large-w66 { .large-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.large-w75 { .large-w75 {
width: 75% !important; width: 75% !important;
} }
.large-w100, .large-w100,
.large-wauto { .large-wauto {
display: block !important; display: block !important;
@ -82,17 +61,13 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for large screens */ /* margins for large screens */
.large-ma0 { .large-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
@media (max-width: 480px) {
@media (max-width: 768px) {
/* quick reset in small resolution and less */ /* quick reset in small resolution and less */
.w600p, .w600p,
.w700p, .w700p,
.w800p, .w800p,
@ -101,40 +76,31 @@
width: auto; width: auto;
float: none; float: none;
} }
/* layouts for small screens */ /* layouts for small screens */
.small-hidden { .small-hidden {
display: none !important; display: none !important;
} }
.small-visible { .small-visible {
display: block !important; display: block !important;
} }
.small-no-float { .small-no-float {
float: none; float: none;
} }
.small-inbl { .small-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.small-row { .small-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.small-col { .small-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
/* you shall not pass */ /* you shall not pass */
div, div,
textarea, textarea,
table, table,
@ -144,34 +110,24 @@
pre, pre,
samp { samp {
word-wrap: break-word; word-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto; hyphens: auto;
} }
/* widths for small screens */ /* widths for small screens */
.small-w25 { .small-w25 {
width: 25% !important; width: 25% !important;
} }
.small-w33 { .small-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.small-w50 { .small-w50 {
width: 50% !important; width: 50% !important;
} }
.small-w66 { .small-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.small-w75 { .small-w75 {
width: 75% !important; width: 75% !important;
} }
.small-w100, .small-w100,
.small-wauto { .small-wauto {
display: block !important; display: block !important;
@ -182,17 +138,13 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for small screens */ /* margins for small screens */
.small-ma0 { .small-ma0 {
margin: 0 !important; margin: 0 !important;
} }
} }
@media (max-width: 320px) {
@media (max-width: 480px) {
/* quick tiny resolution reset */ /* quick tiny resolution reset */
.mod, .mod,
.col, .col,
fieldset { fieldset {
@ -204,83 +156,65 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
.w300p, .w300p,
.w400p, .w400p,
.w500p { .w500p {
width: auto; width: auto;
float: none; float: none;
} }
.row { .row {
display: block !important; display: block !important;
width: 100% !important; width: 100% !important;
} }
/* layouts for tiny screens */ /* layouts for tiny screens */
.tiny-hidden { .tiny-hidden {
display: none !important; display: none !important;
} }
.tiny-visible { .tiny-visible {
display: block !important; display: block !important;
} }
.tiny-no-float { .tiny-no-float {
float: none; float: none;
} }
.tiny-inbl { .tiny-inbl {
display: inline-block; display: inline-block;
float: none; float: none;
vertical-align: top; vertical-align: top;
} }
.tiny-row { .tiny-row {
display: table !important; display: table !important;
table-layout: fixed !important; table-layout: fixed !important;
width: 100% !important; width: 100% !important;
} }
.tiny-col { .tiny-col {
display: table-cell !important; display: table-cell !important;
vertical-align: top !important; vertical-align: top !important;
} }
th, th,
td { td {
display: block !important; display: block !important;
width: auto !important; width: auto !important;
text-align: left !important; text-align: left !important;
} }
thead { thead {
display: none; display: none;
} }
/* widths for tiny screens */ /* widths for tiny screens */
.tiny-w25 { .tiny-w25 {
width: 25% !important; width: 25% !important;
} }
.tiny-w33 { .tiny-w33 {
width: 33.3333% !important; width: 33.3333% !important;
} }
.tiny-w50 { .tiny-w50 {
width: 50% !important; width: 50% !important;
} }
.tiny-w66 { .tiny-w66 {
width: 66.6666% !important; width: 66.6666% !important;
} }
.tiny-w75 { .tiny-w75 {
width: 75% !important; width: 75% !important;
} }
.tiny-w100, .tiny-w100,
.tiny-wauto { .tiny-wauto {
display: block !important; display: block !important;
@ -291,9 +225,7 @@
margin-right: 0 !important; margin-right: 0 !important;
border: 0; border: 0;
} }
/* margins for tiny screens */ /* margins for tiny screens */
.tiny-ma0 { .tiny-ma0 {
margin: 0 !important; margin: 0 !important;
} }