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
| /*============================================= | |
| Grid | |
| http://css-tricks.com/dont-overthink-it-grids/ | |
| =============================================*/ | |
| * { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } |
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
| /* The Magic Float Center Code */ | |
| .float_center { | |
| float: right; | |
| position: relative; | |
| left: -50%; /* or right 50% */ | |
| text-align: left; | |
| } | |
| .float_center > .child { | |
| 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
| .nexus-btn { | |
| border: 3px solid #fff; | |
| border-radius: 8px; | |
| padding: 0.5em 1.3em 0.5em 2.2em; | |
| background: url(../../images/nexus-7-new/button-blue-arrow.png) no-repeat 0.9em 50%; | |
| background-size: auto 28%; | |
| text-transform: uppercase; | |
| font-family: "Roboto Condensed"; | |
| font-weight: 400; | |
| font-size: 1.25em; |
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
| // grab User Agent | |
| var ua = navigator.userAgent.toLowerCase(); | |
| // scan for target browser in User Agent string | |
| if(ua.indexOf('chrome') >= 0){ | |
| // alert visitor | |
| alert('Message to visitor about their browser'); | |
| } |
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
| .zoom { | |
| -webkit-transition: all .3s ease-out; | |
| -moz-transition: all .3s ease-out; | |
| -o-transition: all .3s ease-out; | |
| transition: all .3s ease-out; | |
| } | |
| .zoom:hover { | |
| -moz-transform: scale(1.1); | |
| -webkit-transform: scale(1.1); |
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
Show hidden characters
| { | |
| "caret_style" : "smooth", | |
| "draw_white_space" : "all", | |
| "theme" : "Spacegray.sublime-theme", | |
| "color_scheme" : "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme", | |
| "font_face" : "Source Code Pro", | |
| "font_size" : 12.0, | |
| "tab_size" : 4, | |
| "translate_tabs_to_spaces" : true, | |
| "word_wrap" : false, |
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
| <!-----------------------------------> | |
| <!-- Insert Screen Dimensions Tool --> | |
| <!--- Code Doodle by Jon Nutting ----> | |
| <!-----------------------------------> | |
| <script> | |
| $(function(){ | |
| $("body").append('<div id="screenDims">Resize Window ></div>'); | |
| $("#screenDims").css({ | |
| 'position':'absolute', | |
| 'bottom':0, |
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 (screen.width >= 768) { | |
| document.write("<script src=\"js\/lightbox.js\"><\/script>"); | |
| document.write("<link href=\"css\/lightbox.css\" rel=\"stylesheet\">"); | |
| }; |
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
| myModule.directive('myComponent', function(mySharedService) { | |
| return { | |
| restrict: 'E', | |
| controller: function($scope, $attrs, mySharedService) { | |
| $scope.$on('handleBroadcast', function() { | |
| $scope.message = 'Directive: ' + mySharedService.message; | |
| }); | |
| }, | |
| replace: true, | |
| template: '<input>' |
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
| <h1>Welcome, {{userName}}.</h1> |