Slide 1

Slide 1 text

RESPONSIVE RETROFITTING Christopher Schmitt @teleject http://E4H.tv

Slide 2

Slide 2 text

WHAT IS THE WEB

Slide 3

Slide 3 text

“ This is the web @brad_frost

Slide 4

Slide 4 text

“ @brad_frost

Slide 5

Slide 5 text

Cars with their wifi and built-in browsers.

Slide 6

Slide 6 text

THE CASE FOR RESPONSIVE

Slide 7

Slide 7 text

“ This is the web @brad_frost

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

RESPONSIVE CONSIDERATIONS ➤ Different screen sizes from various devices means our designs need to scale ➤ Different resolutions of those screens means our images need to stay sharp. ➤ Different speeds of internet (Hotel wifi vs Google Fiber) means we need to optimize performance, speed.

Slide 15

Slide 15 text

THE CASE FOR RETROFITTING

Slide 16

Slide 16 text

RETROFITTING ALLOWS YOU TO KEEP THE SAME DESIGN

Slide 17

Slide 17 text

RETROFITTING ALLOWS YOU TO SAVE MONEY

Slide 18

Slide 18 text

RETROFITTING ALLOWS YOU TO SAVE TIME

Slide 19

Slide 19 text

RETROFITTING ALLOWS YOU TO PLAN WHEN TO GO FULL RWD

Slide 20

Slide 20 text

GO RETROFITTING ➤ Keep the same design ➤ Same UI, happy current visitors and members ➤ Saves money ➤ Saves time ➤ Plan on full RWD experience when the time and budget works for you. ➤ Until then…

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

LOOKING INTO WORD PRESS FOR RETROFITTING

Slide 23

Slide 23 text

Find a RWD Theme and switch to it. Or use underscores.me and start building your own.

Slide 24

Slide 24 text

DEVPRESS THEMES

Slide 25

Slide 25 text

WORDPRESS PLUGINS IN RETROFITTING

Slide 26

Slide 26 text

REGENERATE THUMBNAILS

Slide 27

Slide 27 text

You can either regenerate the thumbnails for all image uploads, individual image uploads, or specific multiple image uploads.

Slide 28

Slide 28 text

RWD IMG PLUGIN/WP 4.4+

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

Zell Leiw

Slide 31

Slide 31 text

Zell Leiw

Slide 32

Slide 32 text

SVG SUPPORT

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

W3 TOTAL CACHE

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

ADVANCED CACHING

Slide 37

Slide 37 text

AUTOPTIMIZE

Slide 38

Slide 38 text

Slide 39

Slide 39 text

OPTIMIZING IMAGES IN RETROFITTING

Slide 40

Slide 40 text

72 PPI

Slide 41

Slide 41 text

72 points-per-inch = 72 pixels-per-inch

Slide 42

Slide 42 text

96 PPI IF A WINDOWS USER

Slide 43

Slide 43 text

72 points-per-inch x [1+(1/3)] = 96 PPI

Slide 44

Slide 44 text

78μm “RETINA” DISPLAYS 300ppi at 12 inches from the eyes

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

“ [In 2013, Intel sees their product line] offer a higher resolution experience than a top-of-the-line 1080p HDTV.”

Slide 47

Slide 47 text

72 PPI

Slide 48

Slide 48 text

240

Slide 49

Slide 49 text

240 PPI

Slide 50

Slide 50 text

240 PPI

Slide 51

Slide 51 text

72 PPI

Slide 52

Slide 52 text

72ppi “Retina”

Slide 53

Slide 53 text

4x

Slide 54

Slide 54 text

LOW FILES ARE KEY: OPTIMIZATION

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

HTML5 ELEMENTS: SRCSET

Slide 58

Slide 58 text

Kettlebell Swing

Slide 59

Slide 59 text

Kettlebell Swing

Slide 60

Slide 60 text

Kettlebell Swing

Slide 61

Slide 61 text

Kettlebell Swing

Slide 62

Slide 62 text

HTML5 ELEMENTS: SRCSET+SIZES

Slide 63

Slide 63 text

Kettlebell Swing

Slide 64

Slide 64 text

Kettlebell Swing

Slide 65

Slide 65 text

Kettlebell Swing

Slide 66

Slide 66 text

Kettlebell Swing

Slide 67

Slide 67 text

…BUT IT’S ALL REALLY FOR BROWSER TO DECIDE.

Slide 68

Slide 68 text

SIMPLE SETUP

Slide 69

Slide 69 text

Mountain Climber

Slide 70

Slide 70 text

Mountain Climber

Slide 71

Slide 71 text

Mountain Climber

Slide 72

Slide 72 text

SCALABLE VECTOR GRAPHIC IMAGES

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

PNG 16kb SVG 7kb

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

No content

Slide 83

Slide 83 text

HTML TABLES IN RETROFITTING

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

#1

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ xtop: 6px; xleft: 6px; left: 50%; @media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device- width: 1024px)

Slide 88

Slide 88 text

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ xtop: 6px; xleft: 6px; left: 50%; /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; }

Slide 89

Slide 89 text

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ xtop: 6px; xleft: 6px; left: 50%; /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; }

Slide 90

Slide 90 text

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ xtop: 6px; xleft: 6px; left: 50%; tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; }

Slide 91

Slide 91 text

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ left: 50%; top: 50%; transform: translate(-70%, -50%); width: 50%; padding-right: 10px; white-space: nowrap; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ left: 50%; top: 50%; transform: translate(-70%, -50%); width: 50%; padding-right: 10px; white-space: nowrap; }

Slide 92

Slide 92 text

position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ left: 50%; top: 50%; transform: translate(-70%, -50%); width: 50%; padding-right: 10px; white-space: nowrap; } /* Label the data */ td:nth-of-type(1):before { content: "Film"; } td:nth-of-type(2):before { content: "Release Date"; } td:nth-of-type(3):before { content: "Director"; } td:nth-of-type(4):before { content: "Screenwriter(s)"; } td:nth-of-type(5):before { content: "Producer"; } td:nth-of-type(6):before { content: "Distributor"; } td:nth-of-type(7):before { content: "Status"; } } /* Label the data */ td:nth-of-type(1):before { content: "Film"; } td:nth-of-type(2):before { content: "Release Date"; } td:nth-of-type(3):before { content: "Director"; } td:nth-of-type(4):before { content: “Screenwriter(s)";} td:nth-of-type(5):before { content: "Producer"; } td:nth-of-type(6):before { content: "Distributor"; } td:nth-of-type(7):before { content: "Status"; } }

Slide 93

Slide 93 text

#2

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

/* Attach the Table CSS and Javascript */

Slide 97

Slide 97 text

/* Put the responsive class on the table */ …

Slide 98

Slide 98 text

MENU NA V IN RETROFITTING

Slide 99

Slide 99 text

#1

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

No content

Slide 102

Slide 102 text

No content

Slide 103

Slide 103 text

.nav ul { display: none; list-style: none; padding: 0px; margin: 0px; font-weight: bold; text-align: center; } .nav ul li { display: inline-block; text-align: left; } .nav ul li a { display: block; padding: 15px 10px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #ccc; } .anchor-link { display: inline-block; text-align: center; padding: 10px 15px; color: #fff; background-color: #0084B4; text-decoration: none; margin: 3px; float: right; } .example-footer { font-size: 1.1em; .nav ul { display: none; list-style: none; padding: 0px; margin: 0px; font-weight: bold; text-align: center; } .nav ul li { display: inline-block; text-align: left; } .nav ul li a { display: block; padding: 15px 10px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #ccc; }

Slide 104

Slide 104 text

.nav ul { display: none; list-style: none; padding: 0px; margin: 0px; font-weight: bold; text-align: center; } .nav ul li { display: inline-block; text-align: left; } .nav ul li a { display: block; padding: 15px 10px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #ccc; } .anchor-link { display: inline-block; text-align: center; padding: 10px 15px; color: #fff; background-color: #0084B4; text-decoration: none; margin: 3px; float: right; } .example-footer { .anchor-link { display: inline-block; text-align: center; padding: 10px 15px; color: #fff; background-color: #0084B4; text-decoration: none; margin: 3px; float: right; }

Slide 105

Slide 105 text

margin: 3px; float: right; } .example-footer { font-size: 1.1em; } #mobile-nav { display: block; } #mobile-nav ul { list-style: none; margin: 0px; padding: 0px; } #mobile-nav ul li { list-style: none; text-align: center; } #mobile-nav ul li a { display: block; padding: 20px 10px; border-bottom: 1px solid #ccc; text-decoration: none; } #mobile-nav ul li a:hover { background-color: #ccc; color: #fff; } @media all and (min-width:48em){ .nav ul { display: block; } .anchor-link { display: none; } #mobile-nav { display: none; } } @media all and (min-width: 48em){ .nav ul { display: block; } .anchor-link { display: none; } #mobile-nav { display: none; } }

Slide 106

Slide 106 text

No content

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

#2

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

No content

Slide 111

Slide 111 text

.nav ul li { display: inline-block; } .nav ul li a { display: block; padding: 10px 20px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #888; color: #fff; } @media (max-width:48.000em){ .example-header .container { width: 100%; } .nav ul { width: 100%; font-weight: normal; } .nav ul li { width: 50%; float: left; } .nav ul li:nth-of-type(odd) a { border-right: 1px solid #ccc; } .nav ul li a { padding: 8px 0px; border-bottom: 1px solid #ccc; display: block; } } @media (max-width:48.000em){ .example-header .container { width: 100%; } .nav ul { width: 100%; font-weight: normal; } .nav ul li { width: 50%; float: left; } .nav ul li:nth-of-type(odd) a { border-right: 1px solid #ccc; } .nav ul li a { padding: 8px 0px; border-bottom: 1px solid #ccc; display: block; } }

Slide 112

Slide 112 text

.nav { width: 100%; } .nav ul { list-style: none; padding: 0px; margin: 0px; font-weight: bold; text-align: center; } .nav ul li { display: inline-block; } .nav ul li a { display: block; padding: 10px 20px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #888; color: #fff; } @media (max-width:48.000em){ .example-header .container { width: 100%; } .nav ul { width: 100%; font-weight: normal; } .nav ul li { width: 50%; .nav { width: 100%; } .nav ul { list-style: none; padding: 0px; margin: 0px; font-weight: bold; text-align: center; } .nav ul li { display: inline-block; } .nav ul li a { display: block; padding: 10px 20px; text-decoration: none; color: #444; } .nav ul li a:hover { background-color: #888; color: #fff; }

Slide 113

Slide 113 text

No content

Slide 114

Slide 114 text

#3

Slide 115

Slide 115 text

No content

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

No content

Slide 118

Slide 118 text

$(function () { $(“.nav>ul").tinyNav(); });

Slide 119

Slide 119 text

/* styles for desktop */ .tinynav { display: none } /* styles for mobile */ @media screen and (max-width: 600px) { .tinynav { display: block; margin: 1em auto; } #nav { display: none; } }

Slide 120

Slide 120 text

#4 http://codepen.io/teleject/pen/BKzBbd/

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

No content

Slide 123

Slide 123 text

No content

Slide 124

Slide 124 text

.anchor-link { display: none; text-align: right; padding: 0 1em 0; text-align: center; padding: 10px 15px; color: #fff; background-color: #0084B4; text-decoration: none; margin: 3px; float: right; } #mobile-nav { display:none; }

Slide 125

Slide 125 text

@media (max-width:48.000em){ ul.simple-toggle { display: none; } .anchor-link, #mobile-nav { display: block; } ul.open { background-color: #F4F4F4; box-shadow: 2px 2px 3px #444444; display: block; list-style: none outside none; margin: 0; padding: 0; position: absolute; right: 5px; top: 100%; width: 70%; z-index: 500;

Slide 126

Slide 126 text

$(document).ready(function() { $('#menu-toggle').click(function () { $('#menu').toggleClass('open'); e.preventDefault(); }); }); http://codepen.io/teleject/pen/ONXLgR

Slide 127

Slide 127 text

No content

Slide 128

Slide 128 text

No content

Slide 129

Slide 129 text

No content

Slide 130

Slide 130 text

No content

Slide 131

Slide 131 text

No content

Slide 132

Slide 132 text

No content

Slide 133

Slide 133 text

GO RETROFITTING ➤ Keep the same design ➤ Same UI, happy current visitors and members ➤ Saves money ➤ Saves time ➤ Plan on full RWD experience when the time and budget works for you. ➤ Until then…

Slide 134

Slide 134 text

“ @brad_frost

Slide 135

Slide 135 text

Beyond the web, the internet of things and voice

Slide 136

Slide 136 text

FIND ME AT ➤ TWITTER @teleject ➤ EMAIL [email protected] ➤ WEB http://christopher.org ➤ Hosting virtual Responsive Web Design Summit March 29-31 ➤ http://RWDSummit.com/