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 class="box"> | |
| <div class="box__in"> | |
| Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. | |
| </div> | |
| </div> | |
| .box { | |
| overflow: hidden; | |
| height: 200px; | |
| width: 300px; |
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 class="wrapper"> | |
| <div class="outer-bottom-arrow"></div> | |
| <div class="inner-top-arrow"> | |
| <div class="left-block"></div> | |
| <div class="right-block"></div> | |
| </div> | |
| </div> | |
| .wrapper{ | |
| position: relative; |
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
| <form> | |
| <div class="input-wrapper"> | |
| <input type="text" id="name" name="name" required="required" /> | |
| <label for="name">Name</label> | |
| <br/> | |
| </div> | |
| <input type="submit" /> | |
| </form> |
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($(window).width() >= 1024){ | |
| // do your stuff | |
| } |
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
| var ua = navigator.userAgent; | |
| if(ua.match(/(iPod|iPhone|iPad)/) !== null && ua.match(/AppleWebKit/) !== null && ua.search('CriOS') < 0){ | |
| console.log('this is mobile safari'); | |
| } |
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
| add_filter('wp_nav_menu_items','add_language_select_to_footer_menu', 'icl_post_languages', 10, 2); | |
| function add_language_select_to_footer_menu( $items, $args) { | |
| if( $args->theme_location == 'footer-menu' ){ // choose name of the menu to apply | |
| $menuID = 'footer'; | |
| $primaryNav = wp_get_nav_menu_items($menuID); | |
| echo '<ul id="menu-footer" class="nav navbar-nav">'; |
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
| add_filter( 'walker_nav_menu_start_el', 'wpse_45647_add_custom_content', 'icl_post_languages', 10, 2 ); | |
| function wpse_45647_add_custom_content( $item_output, $item ){ | |
| if ('Choose Country' == $item->title) {// choose li-element here | |
| $custom = icl_post_languages();//something custom to add | |
| return str_replace( '<a ', $custom . '<a ', $item_output ); |
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
| $(document).mouseup(function (e) | |
| { | |
| var container = $("YOUR CONTAINER SELECTOR"); | |
| if (!container.is(e.target) // if the target of the click isn't the container... | |
| && container.has(e.target).length === 0) // ... nor a descendant of the container | |
| { | |
| container.hide(); | |
| } | |
| }); |
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
| .container { | |
| display: flex; | |
| flex-direction: column; | |
| outline: 1px solid green; | |
| min-height: 400px; | |
| width: 100px; | |
| justify-content: flex-start; | |
| } | |
| p { | |
| height: 50px; |
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
| ::-webkit-scrollbar { | |
| width: 12px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); | |
| border-radius: 10px; | |
| } | |
| ::-webkit-scrollbar-thumb { |