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
*~ | |
wp-content/* | |
!wp-content/themes/ | |
wp-content/themes/* | |
# Change THEMENAME to the current theme name | |
!wp-content/themes/THEMENAME/* | |
wp-content/themes/THEMENAME/.sass-cache/* |
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
<!doctype html> | |
<html <?php language_attributes(); ?> class="no-js <?php echo wp_is_mobile() ? 'mobile' : ''; ?>"> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<?php wp_head(); ?> | |
</head> | |
<body <?php body_class(); ?>> |
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
/* | |
* https://css-tricks.com/snippets/css/truncate-string-with-ellipsis/ | |
* | |
*/ | |
.u-truncate { | |
width: 250px; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; |
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
/* | |
* Added on line 139 in the file wpadverts-mal/assets/js/map-single.js in plugin version 1.1.1 | |
*/ | |
google.maps.event.addDomListener(input, 'keydown', function(e) { | |
if (e.keyCode == 13) { | |
e.preventDefault(); | |
} | |
}); |
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' ) ) { |
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
/** | |
* 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
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
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
/* | |
* 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); |
NewerOlder