| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| @mixin font-size( $decimal-size, $keyword: null ) { | |
| @if $keyword{ font-size: $keyword; } | |
| @else { font-size: $decimal-size * $base-font-multiplier * 16px;} | |
| font-size: $decimal-size * 1rem; | |
| } |
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>typography</h1> |
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
| --- | |
| layout: nil | |
| --- | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <feed xmlns="http://www.w3.org/2005/Atom"> | |
| <title type="text" xml:lang="en">{{ site.root_desc }}</title> | |
| <link type="application/atom+xml" href="http://paulstamatiou.com/feed/" rel="self"/> | |
| <link type="text" href="http://paulstamatiou.com" rel="alternate"/> | |
| <updated>{{ site.time | date_to_xmlschema }}</updated> |
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
| @mixin image-2x($image, $width, $height) { | |
| @media (min--moz-device-pixel-ratio: 1.3), | |
| (-o-min-device-pixel-ratio: 2.6/2), | |
| (-webkit-min-device-pixel-ratio: 1.3), | |
| (min-device-pixel-ratio: 1.3), | |
| (min-resolution: 1.3dppx) { | |
| /* on retina, use image that's scaled by 2 */ | |
| background-image: url($image); | |
| background-size: $width $height; | |
| } |
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).on('responsiveMeasureUpdated', function(e, data) { | |
| $('.giga').css('fontSize', data.fontRatios[9] + 'px'); | |
| $('h1').css('fontSize', data.fontRatios[8] + 'px'); | |
| $('h2').css('fontSize', data.fontRatios[7] + 'px'); | |
| $('h3').css('fontSize', data.fontRatios[6] + 'px'); | |
| $('p').css('fontSize', data.fontRatios[5] + 'px'); | |
| $('.').css('fontSize', data.fontRatios[4] + 'px'); | |
| }); |
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 a getElementsByClassName function if the browser doesn't have one | |
| // Limitation: only works with one class name | |
| // Copyright: Eike Send http://eike.se/nd | |
| // License: MIT License | |
| if (!document.getElementsByClassName) { | |
| document.getElementsByClassName = function(search) { | |
| var d = document, elements, pattern, i, results = []; | |
| if (d.querySelectorAll) { // IE8 | |
| return d.querySelectorAll("." + search); |
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 lang="en"> | |
| <head> | |
| <title>Test</title> | |
| <style> | |
| .slogan span:nth-child(odd) { | |
| color: red; | |
| } | |
| </style> | |
| </head> |
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 lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Media Query Multiple Columns</title> | |
| <meta name="viewport" content="width=device-width, intial-scale=1"> | |
| <style> | |
| @media all and (min-width: 40em) and (min-height: 36em) { | |
| [role="main"] { | |
| -webkit-column-count: 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
| /* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */ | |
| :root { | |
| -webkit-text-size-adjust: none; | |
| -moz-text-size-adjust: none; | |
| -ms-text-size-adjust: none; | |
| -o-text-size-adjust: none; | |
| text-size-adjust: none; | |
| } |