This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lt IE 9]> | |
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script> | |
<![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.container { | |
height: X; | |
line-height: X; | |
text-align: center; | |
width: Y; | |
} | |
div.container img { | |
vertical-align: middle; | |
} | |
/* see http://haslayout.net/css/No-line-height-Vertical-Center-on-Images-Bug to make it work in lte IE7*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'WP_POST_REVISIONS', 2 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Clearfix | |
* | |
* For clearing floats like a boss h5bp.com/q | |
* | |
*/ | |
.clearfix { *zoom: 1; } | |
.clearfix:before, | |
.clearfix:after { | |
display: table; | |
content: ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Drop Shadow för ≤ IE 8 (IE 8 lägger på höjd, därför svår att använda i vissa lägen.) | |
* | |
* http://msdn.microsoft.com/en-us/library/ms533086%28VS.85,loband%29.aspx | |
*/ | |
filter: progid:DXImageTransform.Microsoft.Shadow(color=#DDDDDD,direction=-45) progid:DXImageTransform.Microsoft.Shadow(color=#DDDDDD,direction=45); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a[target="_blank"]:after { | |
content: url('data:image/svg+xml;base64, | |
PHN2ZyB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxucz0iaHR0cDo | |
vL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOT | |
k5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTJweCIgaGVpZ | |
2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAw | |
IDEyIDEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cmVjdCB4PSIxLjUiIHk9IjQuNSIgZmlsbD0 | |
iI0ZGRkZGRiIgc3Ryb2tlPSIjMDAyQjM2IiBzdHJva2Utd2lkdGg9IjEiIHdpZHRoPSI2IiBoZW | |
lnaHQ9IjYiLz48cGF0aCBmaWxsPSIjMDAyQjM2IiBkPSJNNCAyLjVsMSAxbDAuMjUgMC43NUwyL | |
jc1IDYuNUw1LjUgOS4yNWwyLjI1LTIuNUw4LjUgN2wxIDFMMTEgNi41VjFINS41TDQgMi41eiIv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Always specify viewport to get the perfect svg: http://www.boogdesign.com/examples/svg/svg-as-image.html | |
Poor mans nth child selector: http://abouthalf.com/development/poor-mans-nth-child-selector-for-ie-7-and-8/ | |
SVG fallbacks: http://css-tricks.com/svg-fallbacks/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Make SVG clickable in a-tag and with image fallback (perfect for logotypes) | |
* | |
* HTML: | |
* <a href="http://dystonia-europe.org" target="_blank" class="u--svg-inside"> | |
* <object data="svg-image.svg" type="image/svg+xml"> <img src="fallback-image.png" /> </object> | |
* </a> | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Browsehappy | |
* | |
* Information om föråldrar webbläsare till besökare med lte IE8. | |
* | |
*/ | |
function intervaro_browsehappy() { | |
$output = ' | |
<!--[if lte IE 8]> | |
<p class="browsehappy" style="background-color: #333; position: absolute; top: 0; left: 0; right: 0; padding: 12px 24px; margin: 0; color: #FFF;z-index: 1000;">Du använder en <strong>föråldrad</strong> webbläsare. Alla funktioner fungerar inte i din webbläsare. Var vänlig <a href="http://browsehappy.com/" style="color: #FFF;">uppgradera din webbläsare</a> för att förbättra din upplevelse och öka din säkerhet.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Få Polylang och ACF Options Page att fungera | |
* | |
* http://www.advancedcustomfields.com/resources/multilingual-custom-fields/ (Längst ned på sidan) | |
*/ | |
add_filter('acf/settings/default_language', function( $language ) { | |
if ( function_exists( 'pll_current_language' ) ) { |
OlderNewer