From b0993aecee074f2d5128209c5b8d4f77d4e11d5b Mon Sep 17 00:00:00 2001 From: Hugo Giraudel Date: Wed, 10 Jul 2013 21:27:40 +0200 Subject: [PATCH] Fixed a couple of things --- sass/_mixins.scss | 7 +++++++ sass/_print.scss | 6 +----- sass/_reset.scss | 18 ------------------ sass/_tables.scss | 13 +++++++++---- stylesheets/knacss.css | 1 + 5 files changed, 18 insertions(+), 27 deletions(-) create mode 100644 stylesheets/knacss.css diff --git a/sass/_mixins.scss b/sass/_mixins.scss index 54db313..f8675d8 100644 --- a/sass/_mixins.scss +++ b/sass/_mixins.scss @@ -57,4 +57,11 @@ zoom: 1; *display: inline; } +} + +@mixin prefix($property, $value) { + $vendors: "-webkit-", "-moz-", "-ms-", "-o-", ""; + @each $v in $vendors { + #{$v}#{$property}: $value; + } } \ No newline at end of file diff --git a/sass/_print.scss b/sass/_print.scss index 20afdf1..2a664e6 100644 --- a/sass/_print.scss +++ b/sass/_print.scss @@ -36,11 +36,7 @@ * Try turning images to black and white if supported filters */ img { - -webkit-filter: grayscale(100%); - -moz-filter: grayscale(100%); - -ms-filter: grayscale(100%); - -o-filter: grayscale(100%); - filter: grayscale(100%); + @include prefix(filter, grayscale(100%)); } /** diff --git a/sass/_reset.scss b/sass/_reset.scss index dd6f891..7f90169 100644 --- a/sass/_reset.scss +++ b/sass/_reset.scss @@ -162,22 +162,4 @@ body > style { position: static; } } -} - -/* Quick print reset */ -@media print { - p, blockquote { - orphans: 2; - widows: 2; - } - - blockquote, - ul, ol { - page-break-inside: avoid; - } - - h1, h2, h3, - caption { - page-break-after: avoid; - } } \ No newline at end of file diff --git a/sass/_tables.scss b/sass/_tables.scss index ba27d81..127a6a0 100644 --- a/sass/_tables.scss +++ b/sass/_tables.scss @@ -12,8 +12,17 @@ table, vertical-align: top; } +/** + * 1. Prevent reCAPTCHA from exploding + * See: https://github.com/raphaelgoetter/KNACSS/issues/18 + */ table { width: 100%; + border: $border; + + &#recaptcha_table { + table-layout: auto; /* 1 */ + } } .table { @@ -26,10 +35,6 @@ caption { font-style: italic; } -table { - border: $border; -} - thead { @include mq(tiny) { display: none; diff --git a/stylesheets/knacss.css b/stylesheets/knacss.css new file mode 100644 index 0000000..2b09d34 --- /dev/null +++ b/stylesheets/knacss.css @@ -0,0 +1 @@ +@media (min-width: 1280px){.large-hidden{display:none}}.large-visible{display:block}@media (min-width: 1280px){.large-visible{display:block}}@media (max-width: 768px){.small-hidden{display:none}}.small-visible{display:block}@media (max-width: 768px){.small-visible{display:block}}@media (max-width: 640px){.tiny-hidden{display:none}}.tiny-visible{display:block}@media (max-width: 640px){.tiny-visible{display:block}}.clearfix,.line,.mod{*zoom:1}.clearfix:after,.line:after,.mod:after{content:'';clear:both;display:table}.visuallyhidden{clip:rect(0 0 0 0);width:1px;height:1px;margin:-1px;overflow:hidden;padding:0;border:0;position:absolute}.wrap{-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto}form,fieldset{border:none}input,button,select,label,.btn{vertical-align:middle;font-family:inherit}textarea{resize:vertical;font-family:inherit}.btn{display:-moz-inline-stack;display:inline-block;*vertical-align:auto;zoom:1;*display:inline}label{display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;cursor:pointer}legend{border:0;white-space:normal}button,input,select{font-family:"Century Gothic",helvetica,arial,sans-serif;font-size:100%;margin:0;vertical-align:middle}textarea{overflow:auto;min-height:5em;font-size:1.75em;vertical-align:top;resize:vertical}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;*overflow:visible}input[type="checkbox"],input[type="radio"]{padding:0;*width:13px;*height:13px}input[type="search"]{-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{display:none}::-webkit-input-placeholder{color:#777}input:-moz-placeholder,textarea:-moz-placeholder{color:#777}button::-moz-focus-inner,input[type='button']::-moz-focus-inner,input[type='reset']::-moz-focus-inner,input[type='submit']::-moz-focus-inner{border:0;padding:0}.icon{display:-moz-inline-stack;display:inline-block;*vertical-align:auto;zoom:1;*display:inline}.icon:before,.icon>li:before,.icon.after:after,.icon.after>li:after{content:"";display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;position:relative;top:-.1em;margin:0 0.3em 0 0;font:1.4em/1 sans-serif;color:#000;text-shadow:1px 1px 0 rgba(0,0,0,0.1);speak:none}@media (min-width: 769px){.icon:before,.icon>li:before,.icon.after:after,.icon.after>li:after{font:1em/0.6 sans-serif;-webkit-transform:rotateZ(0.05deg)}}.icon.after:after,.icon.after>li:after{margin:0 0 0 8px}ul.icon{display:block}ul.icon>li{list-style:none}ul.icon:before,ul.icon.after:after{content:""}.icon.after:before,.icon.after>li:before{content:"" !important}.icon-rate:before,.icon-rate>li:before,.icon-rate.after:after,.icon-rate.after>li:after{content:"\#{nth($item, 2)}"}.icon-unrate:before,.icon-unrate>li:before,.icon-unrate.after:after,.icon-unrate.after>li:after{content:"\#{nth($item, 2)}"}.icon-check:before,.icon-check>li:before,.icon-check.after:after,.icon-check.after>li:after{content:"\#{nth($item, 2)}"}.icon-uncheck:before,.icon-uncheck>li:before,.icon-uncheck.after:after,.icon-uncheck.after>li:after{content:"\#{nth($item, 2)}"}.icon-cloud:before,.icon-cloud>li:before,.icon-cloud.after:after,.icon-cloud.after>li:after{content:"\#{nth($item, 2)}"}.icon-dl:before,.icon-dl>li:before,.icon-dl.after:after,.icon-dl.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-cross:before,.icon-cross>li:before,.icon-cross.after:after,.icon-cross.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-arrow1:before,.icon-arrow1>li:before,.icon-arrow1.after:after,.icon-arrow1.after>li:after{content:"\#{nth($item, 2)}"}.icon-arrow2:before,.icon-arrow2>li:before,.icon-arrow2.after:after,.icon-arrow2.after>li:after{content:"\#{nth($item, 2)}"}.icon-arrow3:before,.icon-arrow3>li:before,.icon-arrow3.after:after,.icon-arrow3.after>li:after{content:"\#{nth($item, 2)}"}.icon-bracket1:before,.icon-bracket1>li:before,.icon-bracket1.after:after,.icon-bracket1.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-bracket2:before,.icon-bracket2>li:before,.icon-bracket2.after:after,.icon-bracket2.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-up:before,.icon-up>li:before,.icon-up.after:after,.icon-up.after>li:after{content:"\#{nth($item, 2)}"}.icon-down:before,.icon-down>li:before,.icon-down.after:after,.icon-down.after>li:after{content:"\#{nth($item, 2)}"}.icon-bull:before,.icon-bull>li:before,.icon-bull.after:after,.icon-bull.after>li:after{content:"\#{nth($item, 2)}"}.icon-bull2:before,.icon-bull2>li:before,.icon-bull2.after:after,.icon-bull2.after>li:after{content:"\#{nth($item, 2)}"}.icon-bull3:before,.icon-bull3>li:before,.icon-bull3.after:after,.icon-bull3.after>li:after{content:"\#{nth($item, 2)}"}.icon-nav:before,.icon-nav>li:before,.icon-nav.after:after,.icon-nav.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-losange:before,.icon-losange>li:before,.icon-losange.after:after,.icon-losange.after>li:after{content:"\#{nth($item, 2)}"}.icon-asteri:before,.icon-asteri>li:before,.icon-asteri.after:after,.icon-asteri.after>li:after{content:"\#{nth($item, 2)}";font-weight:bold}.icon-mail:before,.icon-mail>li:before,.icon-mail.after:after,.icon-mail.after>li:after{content:"\#{nth($item, 2)}"}.icon-arrow1:before,.icon-arrow1>li:before,.icon-arrow1.after:after,.icon-arrow1.after>li:after{position:relative;top:-.15em}.icon-bracket1:before,.icon-bracket1>li:before,.icon-bracket1.after:after,.icon-bracket1.after>li:after,.icon-bracket2:before,.icon-bracket2>li:before,.icon-bracket2.after:after,.icon-bracket2.after>li:after{font-size:1.6em;position:relative;top:-.15em}.icon-bull:before,.icon-bull>li:before,.icon-bull.after:after,.icon-bull.after>li:after{font-size:1.2em;top:-.05em}.icon-bull2:before,.icon-bull2>li:before,.icon-bull2.after:after,.icon-bull2.after>li:after{top:-.05em}.icon-bull3:before,.icon-bull3>li:before,.icon-bull3.after:after,.icon-bull3.after>li:after{font-size:1.6em;top:-.05em}.icon-nav:before,.icon-nav>li:before,.icon-nav.after:after,.icon-nav.after>li:after{font-size:1.6em}.icon-mail:before,.icon-mail>li:before,.icon-mail.after:after,.icon-mail.after>li:after{font-size:1.6em;top:-.05em}ol.styled{counter-reset:styled}ol.styled>li{list-style-type:none;counter-increment:styled;margin-bottom:.3em}ol.styled>li:before{content:counter(styled);display:-moz-inline-stack;display:inline-block;vertical-align:middle;*vertical-align:auto;zoom:1;*display:inline;width:1em;height:1em;line-height:1;padding:2px;margin-right:.4em;background:rgba(0,0,0,0.5);border-radius:50%;font-size:.9em;text-align:center;text-indent:-.1em;color:white}@media print{*{background:transparent !important;box-shadow:none !important;text-shadow:none !important}body{width:auto !important;margin:auto !important;font-family:serif;font-size:12pt;background-color:#fff !important;color:#000 !important}h1,h2,h3,h4,h5,h6,p,blockquote,ul,ol{color:#000 !important;margin:auto !important}.print{display:block}img{-webkit-filter:grayscale(100%);-moz-filter:grayscale(100%);-ms-filter:grayscale(100%);-o-filter:grayscale(100%);filter:grayscale(100%)}p,blockquote{orphans:3;widows:3}blockquote,ul,ol{page-break-inside:avoid}h1{page-break-before:always}h1,h2,h3,caption{page-break-after:avoid}a{color:#000 !important;text-decoration:underline !important}a[href]:after{content:" (" attr(href) ")"}a[href^="javascript:"]:after,a[href^="#"]:after,a[href=""]{content:''}}table,.table{max-width:100%;table-layout:fixed;border-collapse:collapse;vertical-align:top}table{width:100%;border:1px solid #ccc}table#recaptcha_table{table-layout:auto}.table{display:table}caption{padding:10px;color:#555;font-style:italic}@media (max-width: 640px){thead{display:none}}tr>*+*{border-left:1px solid #ccc}th,td{padding:0.3em 0.8em;text-align:left;border-bottom:1px solid #ccc}@media (max-width: 640px){th,td{display:block !important;width:auto !important;text-align:left !important}}td{color:#333}.alternate{border:0}.alternate thead tr>*+*{border-left:0}.alternate tbody tr>*+*{border-left:1px solid #ccc}.alternate-vert{border:0;border-right:1px solid #ccc}.alternate-vert tr>:first-child{border-bottom:0}.alternate-vert tr>*+*{border-top:1px solid #ccc}.striped tbody tr:nth-child(odd){background:#eee;background:rgba(0,0,0,0.05)}.striped-vert tr>:first-child{background:#eee;background:rgba(0,0,0,0.05)}[class*=grid]>*{float:left}[class*=grid]>*+*{margin-left:2%}.grid2>*{width:49%}.grid3>*{width:32%}.grid4>*{width:23.5%}.grid5>*{width:18.4%}.grid6>*{width:15%}.grid2-1>*:first-child,.grid1-2>*+*{width:66%}.grid1-2>*:first-child,.grid2-1>*+*{width:32%}.grid1-3>*:first-child,.grid3-1>*+*{width:23.5%}.grid3-1>*:first-child,.grid1-3>*+*{width:74.5%}@media (max-width: 768px){.grid4>*{width:49% !important}.grid4>:first-child+*+*{margin-left:0 !important}.grid6>*{width:32% !important}.grid6>:first-child+*+*+*{margin-left:0 !important}}*,*:after,*:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.mod,.item{overflow:hidden}.clear,.line,.row{clear:both}.row{display:table;table-layout:fixed;width:100%}.row>*,.col{display:table-cell;vertical-align:top}.inbl{display:-moz-inline-stack;display:inline-block;vertical-align:top;*vertical-align:auto;zoom:1;*display:inline;margin-right:-.25em}.flex{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.flex-h{-webkit-box-orient:horizontal;-moz-box-orient:horizontal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.flex-v{-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flex-fluid{-webkit-box-flox:1;-moz-box-flex:1;-webkit-flex:1;-moz-flex:1;-ms-flex:1;flex:1}.flex-start{-webkit-box-ordinal-group:-1;-moz-box-ordinal-group:0;-ms-flex-order:-1;-webkit-order:-1;-moz-order:-1;order:-1}.flex-mid{-webkit-box-ordinal-group:1;-moz-box-ordinal-group:1;-ms-flex-order:1;-webkit-order:1;-moz-order:1;order:1}.flex-end{-webkit-box-ordinal-group:42;-moz-box-ordinal-group:42;-ms-flex-order:42;-webkit-order:42;-moz-order:42;order:42}.left{float:left}.right{float:right}img.left{margin-right:1em}img.right{margin-left:1em}img.left,img.right{margin-bottom:5px}.center{margin-left:auto;margin-right:auto}.txtleft{text-align:left}.txtright{text-align:right}.txtcenter{text-align:center}@media (max-width: 768px){.w60,.w66,.w70,.w75,.w80,.w90,.w100,.w600p,.w700p,.w800p,.w960p{width:auto}}.w10{width:10%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w33{width:33.333%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w66{width:66.666%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w90{width:90%}.w100{width:100%}.w50p{width:50px}.w100p{width:100px}.w150p{width:150px}.w200p{width:200px}.w300p{width:300px}.w400p{width:400px}.w500p{width:500px}.w600p{width:600px}.w700p{width:700px}.w800p{width:800px}.w960p{width:960px}.mw960p{max-width:960px}.m-reset,.ma0{margin:0 !important}.p-reset,.pa0{padding:0 !important}.ma1,.mas{margin:10px !important}.ma2,.mam{margin:20px !important}.ma3,.mal{margin:30px !important}.pa1,.pas{padding:10px}.pa2,.pam{padding:20px}.pa3,.pal{padding:30px}.mt0,.mtn{margin-top:0 !important}.mt1,.mts{margin-top:10px !important}.mt2,.mtm{margin-top:20px !important}.mt3,.mtl{margin-top:30px !important}.mr0,.mrn{margin-right:0}.mr1,.mrs{margin-right:10px}.mr2,.mrm{margin-right:20px}.mr3,.mrl{margin-right:30px}.mb0,.mbn{margin-bottom:0 !important}.mb1,.mbs{margin-bottom:10px !important}.mb2,.mbm{margin-bottom:20px !important}.mb3,.mbl{margin-bottom:30px !important}.ml0,.mln{margin-left:0}.ml1,.mls{margin-left:10px}.ml2,.mlm{margin-left:20px}.ml3,.mll{margin-left:30px}.pt0,.ptn{padding-top:0}.pt1,.pts{padding-top:10px}.pt2,.ptm{padding-top:20px}.pt3,.ptl{padding-top:30px}.pr0,.prn{padding-right:0}.pr1,.prs{padding-right:10px}.pr2,.prm{padding-right:20px}.pr3,.prl{padding-right:30px}.pb0,.pbn{padding-bottom:0}.pb1,.pbs{padding-bottom:10px}.pb2,.pbm{padding-bottom:20px}.pb3,.pbl{padding-bottom:30px}.pl0,.pln{padding-left:0}.pl1,.pls{padding-left:10px}.pl2,.plm{padding-left:20px}.pl3,.pll{padding-left:30px}html{font-size:62.5%}@media (orientation: landscape) and (max-device-width: 768px){html{-webkit-text-size-adjust:100%}}body{color:#000;font-family:"Century Gothic",helvetica,arial,sans-serif;font-size:14px;font-size:1.4rem;line-height:1.5}p,ul,ol,dl,blockquote,pre,td,th,label,textarea,caption,details,figure{font-size:14px;font-size:1.4rem;line-height:1.5;margin:0.75em 0 0}h1,.h1-like,h2,.h2-like,h3,.h3-like,h4,.h4-like,h5,.h5-like,h6,.h6-like{font-weight:normal;margin:21px 0 0 0}h1,.h1-like,h2,.h2-like,h3,.h3-like{line-height:42px}h4,.h4-like,h5,.h5-like,h6,.h6-like{line-height:21px}h1,.h1-like{font-size:26px;font-size:2.6rem}h2,.h2-like{font-size:24px;font-size:2.4rem}h3,.h3-like{font-size:22px;font-size:2.2rem}h4,.h4-like{font-size:20px;font-size:2rem}h5,.h5-like{font-size:18px;font-size:1.8rem}h6,.h6-like{font-size:16px;font-size:1.6rem}.smaller{font-size:10px;font-size:1rem}.small{font-size:12px;font-size:1.2rem}.medium{font-size:14px;font-size:1.4rem}.big{font-size:16px;font-size:1.6rem}.bigger{font-size:18px;font-size:1.8rem}.biggest{font-size:20px;font-size:2rem}.row,.col{*zoom:1}.col{*display:inline;*zoom:1}html,body,textarea,figure,label{margin:0;padding:0}ul,ol{padding-left:2em}ul.unstyled,ol.unstyled{list-style:none}code,pre,samp,kbd{white-space:pre-wrap;font-family:consolas,"DejaVu Sans Mono",courier,monospace;line-height:1em}code,kbd,mark{border-radius:2px}em{font-style:italic}strong{font-weight:bold}kbd{padding:0 2px;border:1px solid #999}code{padding:2px 4px;background:rgba(0,0,0,0.04);color:#b11}mark{padding:2px 4px;background:#ff0}sup,sub{vertical-align:0;position:relative}sup{bottom:1ex}sub{top:.5ex}table{margin-bottom:1.5em}p:first-child,ul:first-child,ol dl:first-child,blockquote:first-child,pre:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}li p,li ul,li ol{margin-top:0;margin-bottom:0}img,table,td,blockquote,code,pre,textarea,input,video{max-width:100%}img{height:auto;vertical-align:middle;width:auto}#map_canvas img,.gmnoprint img{max-width:none}a img{border:0}@media (max-width: 768px){div,textarea,table,td,th,code,pre,samp{-ms-word-break:break-all;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto}}body>script,body>style{display:none !important}.skip-links{position:absolute}.skip-links a{position:absolute;left:-7000px;padding:0.5em;background:#000;color:#fff;text-decoration:none}.skip-links a:focus{position:static}