How Behance went responsive with Sass and RequireJS. Jackie

Size: px
Start display at page:

Download "How Behance went responsive with Sass and RequireJS. Jackie"

Transcription

1 How Behance went responsive with Sass and RequireJS Jackie July 25,

2 is going How Behance went responsive with Sass and RequireJS Jackie July 25,

3 before after 3

4 My Big Fat Responsive Website ~57 logged out pages ~85 logged in pages 1 responsive page a bunch of responsive UI elements 4

5 Behance Served Orgs & Schools Adobe 5

6 Big Decisions Desktop-first Desktop, tablet, phone* Hide things display: none; off-canvas navigation Prevent zoom 6

7 ??? 7

8 8 R E Q U I R E J S

9 9 R E Q U I R E J S

10 Variables and mixins Modularity and reusability Custom functions* 10

11 layout.php 1 <link rel="stylesheet" href="desktop/site.css" media="(min-width: 1025px)" /> 2 <link rel="stylesheet" href="tablet/site.css" media="(min-width: 604px) and (max-width: 1024px)" /> 3 <link rel="stylesheet" href="phone/site.css" media="(max-width: 603px)" /> 11

12 layout.php 1 <link rel="stylesheet" href="desktop/site.css" media="(min-width: 1025px)" /> 2 <link rel="stylesheet" href="tablet/site.css" media="(min-width: 604px) and (max-width: 1024px)" /> 3 <link rel="stylesheet" href="phone/site.css" media="(max-width: 603px)" /> 12

13 styles.css 1 /* desktop styles */ 2 (min-width: 604px) and (max-width: 1024px) { 4 /* tablet styles */ 5 } 6 (max-width: 603px) { 8 /* phone styles */ 9 } 13

14 Tool Time! LiveReload guard / guard-livereload 14

15 styles.css 1 /* desktop styles */ 2 (min-width: 604px) and (max-width: 1024px) { 4 /* tablet styles */ 5 } 6 (max-width: 603px) { 8 /* phone styles */ 9 } 15

16 _utility.scss 1 $tablet_upper: 1024px!default; 2 $phone_upper: 603px!default; 3 phone { 5 (max-width: $phone_upper) { 8 } 9 10 } 11 tablet { 13 (min-width: $phone_upper+1) and (max-width: $tablet_upper) { 16 } } 16

17 example.scss 1 $color: blue; 2 $color: red!default; 3 $width: 10px!default; 4 5.block { 6 color: $color; 7 width: $width; 8 } compiles to: 1.block { 2 color: blue; 3 width: 10px; 4 } 17

18 _utility.scss 1 $tablet_upper: 1024px!default; 2 $phone_upper: 603px!default; 3 phone { 5 (max-width: $phone_upper) { 8 } 9 10 } 11 tablet { 13 (min-width: $phone_upper+1) and (max-width: $tablet_upper) { 16 } } 18

19 example.scss 1.cover { border-radius; 3 } 4 5.bubble { border-radius( 10px ); 7 } 19

20 example.scss apply-to-ie6-only { 2 * html { 4 } 5 } 6 apply-to-ie6-only { 8 #logo { 9 background-image: url(/logo.gif); 10 } 11 } compiles to: 1 * html #logo { 2 background-image: url(/logo.gif); 3 } 20

21 _tablet.scss tablet { 2 /* tablet styles */ 3 } _phone.scss phone { 2 /* phone styles */ 3 } styles.scss "_utility.scss"; 2 3 /* desktop styles */ 4 "_tablet.scss"; "_phone.scss"; 21

22 styles.css 1 /* desktop styles */ 2 (min-width: 604px) and (max-width: 1024px) { 4 /* tablet styles */ 5 } 6 (max-width: 603px) { 8 /* phone styles */ 9 } 22

23 _utility.scss 1 $tablet_upper: 1024px!default; 2 $phone_upper: 603px!default; 3 phone { 5 (max-width: $phone_upper) { 8 } 9 10 } 11 tablet { 13 (min-width: $phone_upper+1) and (max-width: $tablet_upper) { 16 } } 23

24 Behance Served Orgs & Schools Adobe 24

25 adobe.scss 1 $tablet_upper: 900px; 2 $phone_upper: 480px; 3 "_utility.scss"; 5 6 /* desktop styles */ 7 "adobe/_tablet.scss"; "adobe/_phone.scss"; 25

26 adobe.scss 1 /* desktop styles */ 2 (min-width: 481px) and (max-width: 900px) { 4 /* tablet styles */ 5 } 6 (max-width: 480px) { 8 /* phone styles */ 9 } 26

27 Component upgrades pop-up dialogs input fields buttons etc 27

28 File Structure discover.scss discover/ _phone.scss _phone_and_tablet.scss _tablet.scss network.scss network/ profile.scss project.scss responsive.scss responsive/ _buttons.scss _inputs.scss _popups.scss 28

29 29 doubt it

30 Tool Time! { :debug_info => true } FireSass Chrome Canary sass --watch --sourcemap site.scss:site.css Debugging Sass with Source Maps Getting Started with CSS Source Maps 30

31 31

32 Sprite generation Image helpers Color functions Compass extensions 32

33 CSS: 1.sprite { 2 background-image: url(path/to/sprite.png); 3 } 4 5 only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-devicepixel-ratio: 1.3), only screen and (min-resolution: 125dpi), only screen and (min-resolution: 1.3dppx) { 7 8.sprite { 9 background-image: url(path/to/2x-sprite.png); 10 background-size: 438px 128px; 11 } } 14 no thank you OMG 33

34 Sass & Compass: 1.sprite { 2 background-image: url($sprite-path); 3 } 4 pixel_ratio { 6 7.sprite { 8 background-image: url($sprite-path-2x); 9 background-size: image-width($sprite-path) image-height($sprite-path); 10 } } 34

35 colors.scss 1 $color: #fbde2e; 2 3.block { 4 width: 100px; 5 height: 75px; 6 background: $color; 7 } 8 9.lighten { 10 background: lighten( $color, 30% ); 11 } darken { 14 background: darken( $color, 30% ); 15 } tint { 18 background: tint( $color, 30% ); 19 } shade { 22 background: shade( $color, 30% ); 23 } 35

36 36 R E Q U I R E J S

37 How We Do JavaScript AMD with RequireJS MVW with NBD.js Feature detection with has.js Responsive JavaScript with matchmedia 37

38 matchmedia 38

39 site.js 1 if (window.matchmedia("(max-width: 603px)").matches) { 2 /* window is less than 603px wide */ 3 } 39

40 site.js 1 require(['nbd/util/media'], function(media) { 2 3 media({ 4 'phone' : '(max-width: 603px)', 5 'tablet' : '(min-width: 604px) and (max-width: 1024px)', 6 'desktop': '(min-width: 1025px)' 7 }); 8 9 }); 40

41 site.js 1 require(['nbd/util/media'], function(media) { 2 3 // initialize breakpoints here 4 5 if (media.is('phone')) { 6 // window is less than 603px wide 7 } 8 9 media.on('phone', function(isphone) { 10 this.requestview( isphone? 'phone' : 'desktop' ); 11 }); media.on('tablet:enter', initializebasementnavigation); 14 media.on('phone:exit', stoplistenforresize); }); 41

42 BUT WAIT site.js 1 media({ 2 'phone' : '(max-width: 603px)', 3 'tablet' : '(min-width: 604px) and (max-width: 1024px)', 4 'desktop': '(min-width: 1025px)' 5 }); _utility.scss 1 $tablet_upper: 1024px; 2 $phone_upper: 603px; 3 phone { 5 (max-width: $phone_upper) { 8 } 9 10 } 11 tablet { 13 (min-width: $phone_upper+1) and (max-width: $tablet_upper) { 16 } } 42

43 BUT WAIT site.js 1 media({ 2 'phone' : '(max-width: 603px)', 3 'tablet' : '(min-width: 604px) and (max-width: 1024px)', 4 'desktop': '(min-width: 1025px)' 5 }); _utility.scss 1 $tablet_upper: 1024px; 2 $phone_upper: 603px; 3 phone { 5 (max-width: $phone_upper) { 8 } 9 10 } 11 tablet { 13 (min-width: $phone_upper+1) and (max-width: $tablet_upper) { 16 } } 43 REPETITIVE! aka WET - Write Everything Twice that s the opposite of DRY ( Don t Repeat Yourself )

44 Custom Sass Script Functions Custom functions written in Ruby not not JS can read JSON, Ruby can read JSON Sass Script Functions Reference 44

45 example.scss 1.block { 2 background: rgba( 123, 78, 23,.5 ); 3 border-color: hsla( #bada55,.2 ); 4 color: invert( #ac1d1c ); 5 } 45

46 breakpoints.json 1 { 2 'phone' : '(max-width: 603px)', 3 'tablet' : '(min-width: 604px) and (max-width: 1024px)', 4 'desktop': '(min-width: 1025px)' 5 } 46

47 site.js 1 require(['nbd/util/media', 'breakpoints'], function(media, breakpoints) { 2 3 media(breakpoints); 4 5 }); 47

48 config.rb 1 require 'json' 2 3 sass_options = { :custom => {'breakpoint_file' =>'breakpoints.json'} } 4 5 module Sass::Script::Functions 6 def get_breakpoint(breakpoint) 7 8 unless json = JSON.load(IO.read(options[:custom]['breakpoint_file'])) 9 raise Sass::SyntaxError.new("Error: File '#{options[:custom ['breakpoint_file']}' does not exist") 10 end if json[breakpoint.to_s] 13 Sass::Script::String.new(json[breakpoint.to_s]) 14 else 15 raise Sass::SyntaxError.new("Error: Breakpoint '#{breakpoint}' does not exist, choose from the following: #{json.keys.join(', ')}") 16 end 17 end declare :get_breakpoint, [:breakpoint] 20 end 48

49 _utility.scss 1 $break-desktop: get_breakpoint(desktop)!default; 2 $break-tablet: get_breakpoint(tablet)!default; 3 $break-phone: get_breakpoint(phone)!default; 4 tablet { 6 #{$break-tablet} { 9 } } tablet 12 phone { 14 #{$break-phone} { 17 } } phone 49

50 SUPER DRY SUPER REUSABLE THE FUTURE: could be more DRY with Sass variable name interpolation, eg $break-#{breakpoint}: get_breakpoint(breakpoint); 50

51 USE REAL DEVICES 51

52 Tool Time! Open Device Lab weinre weinre/docs/latest/ Adobe Edge Inspect inspect/ 52

53 53

54 PS: We re hiring! 54

CREATE SASSY WEB PARTS. Developer Guide to SASS usage in SPFx

CREATE SASSY WEB PARTS. Developer Guide to SASS usage in SPFx CREATE SASSY WEB PARTS Developer Guide to SASS usage in SPFx !!! WARNING!!! YOU WILL SEE SOURCE CODE!!! WARNING!!! OUR GOALS Sketch and develop web parts Create your own reusable CSS Handle external

More information

CS7026 CSS3. CSS3 Graphics Effects

CS7026 CSS3. CSS3 Graphics Effects CS7026 CSS3 CSS3 Graphics Effects What You ll Learn We ll create the appearance of speech bubbles without using any images, just these pieces of pure CSS: The word-wrap property to contain overflowing

More information

CSS: Responsive Design, CSS3 and Fallbacks

CSS: Responsive Design, CSS3 and Fallbacks CSS: Responsive Design, CSS3 and Fallbacks CISC 282 October 4, 2017 What is a Mobile Browser? Browser designed for a not-desktop display Phones/PDAs, tablets, anything handheld Challenges and constraints

More information

IDM 222. Web Design II. IDM 222: Web Authoring II 1

IDM 222. Web Design II. IDM 222: Web Authoring II 1 IDM 222 Web Design II IDM 222: Web Authoring II 1 PSA: Web Hos,ng IDM 222: Web Authoring II 2 Public service announcement. Anyone who cancelled their Bluehost hosting plan and is now using github.io Github's

More information

IBM Forms V8.0 Custom Themes IBM Corporation

IBM Forms V8.0 Custom Themes IBM Corporation IBM Forms V8.0 Custom Themes Agenda 2 Overview Class Names How to Use Best Practice Styling Form Items Test Custom CSS Sample Overview 3 To create custom theme you must be familiar with the basic concept

More information

OddsMatrix. Everything is possible. SASS Code Standards

OddsMatrix. Everything is possible. SASS Code Standards OddsMatrix Everything is possible. SASS Code Standards Why do we need SASS standards? Switching projects (when we need to, when we want to) Maximizing efficiency (finding stuff fast) Fast bug-fixing Fast

More information

Sass. The Future of Stylesheets.

Sass. The Future of Stylesheets. Sass. The Future of Stylesheets. Chris Eppstein Follow me @chriseppstein Architect - Caring.com Creator - Compass Stylesheet Framework Core Contributor - Sass A website for caregivers of the sick and elderly.

More information

Responsive Design. Responsive design is it important? But typical is not enough. Some typical screen sizes

Responsive Design. Responsive design is it important? But typical is not enough. Some typical screen sizes Responsive Design Responsive design is it important? For many years, screen sizes were growing Eventually, settled on fixed-width (e.g. 960px) But now with smart phones, tablets, television and many new

More information

Chapter 7 BMIS335 Web Design & Development

Chapter 7 BMIS335 Web Design & Development Chapter 7 BMIS335 Web Design & Development Site Organization Use relative links to navigate between folders within your own site o Sometimes dividing your site into folders makes maintenance and updating

More information

FROM CSS TO SASS IN WORDPRESS. James Steinbach WP Summit #wpsummit.

FROM CSS TO SASS IN WORDPRESS. James Steinbach WP Summit #wpsummit. FROM CSS TO SASS IN WORDPRESS James Steinbach WP Summit 2014 @jdsteinbach #wpsummit. 1 BENEFITS OF SASS Code organization (partials, nesting) Faster styling (mixins, functions) Scalable code (logic, variables)

More information

Building Responsive Layouts

Building Responsive Layouts Building Responsive Layouts by Zoe Mickley Gillenwater @zomigi zomigi.com December 5, 2012 CSS Dev Conf hello nice to meet you 2 I don t use a mobile phone I have a process for eating these why responsive

More information

CSS3: Using media queries to improve the web site experience. November 19, 2011 indieconf Zoe Mickley

CSS3: Using media queries to improve the web site experience. November 19, 2011 indieconf Zoe Mickley CSS3: Using media queries to improve the web site experience November 19, 2011 indieconf Zoe Mickley Gillenwater @zomigi What I do Books Web Stunning CSS3: A Project-based Guide to the Latest in CSS Accessibility

More information

Friday, January 18, 13. : Now & in the Future

Friday, January 18, 13. : Now & in the Future : Now & in the Future CSS3 is Modular Can we use it now? * Use it for non-critical things on the experience layer. * Check sites that maintain tables showing browser support like http://www.findmebyip.com/litmus

More information

APEX Developers - Do More With Less!!

APEX Developers - Do More With Less!! APEX Developers - Do More With Less!! Roel Hartman Copyright 2014 APEX Consulting 2 LESS Leaner CSS SASS Syntactically Awesome StyleSheets SCSS Sassy CSS OOCSS Object Oriented CSS Issue 1 You need a CSS

More information

Learn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway.

Learn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway. Learn Web Development CodersTrust Polska course outline Hello CodersTrust! Syllabus Communication Publishing your work Course timeframe Kick off Unit 1 Getting started with the Web Installing basic software

More information

JSN EasySlider Configuration Manual

JSN EasySlider Configuration Manual JSN EasySlider Configuration Manual Introduction Product Overview JSN EasySlider JSN EasySlider is the cutting-edge way to present content on website: Informative - Impressive - Interactive. It helps you

More information

CSS3, Media Queries, & Responsive Design. May 23, 2012 STC Summit Zoe Mickley

CSS3, Media Queries, & Responsive Design. May 23, 2012 STC Summit Zoe Mickley CSS3, Media Queries, & Responsive Design May 23, 2012 STC Summit Zoe Mickley Gillenwater @zomigi What I do Books Stunning CSS3: A Project-based Guide to the Latest in CSS www.stunningcss3.com Flexible

More information

AGENDA. :: Add Meta Tag for Viewport (inside of head element): :: Add Script that renders HTML5 elements for older versions of Internet Explorer

AGENDA. :: Add Meta Tag for Viewport (inside of head element): :: Add Script that renders HTML5 elements for older versions of Internet Explorer CLASS :: 14 12.10 2018 3 Hours AGENDA LECTURE :: Responsive Web Design [RWD] DOWNLOAD ASSETS [ CSS ] :: Media Query [rwd.css] ADD HTML META TAG & IE SCRIPT [ HTML ] :: Add Meta Tag for Viewport (inside

More information

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element Web Development & Design Foundations with HTML5 Ninth Edition Chapter 4 Visual Elements and Graphics Learning Objectives (1 of 2) 4.1 Create and format lines and borders on web pages 4.2 Apply the image

More information

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD]

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD] CLASS :: 14 05.05 2017 3 Hours AGENDA INSTALLING FONTS :: Download, Install, & Embed Your Fonts LECTURE :: Responsive Web Design [RWD] DOWNLOAD ASSETS [ CSS ] :: Media Query [rwd.css] ADD HTML META TAG

More information

Managing CSS Projects with ITCSS. DaFED Novi Sad, November 2014

Managing CSS Projects with ITCSS. DaFED Novi Sad, November 2014 Hello, Serbia! Managing CSS Projects with ITCSS DaFED Novi Sad, November 2014 #itcss Harry Roberts Consultant Front-end Architect. Products, long-running projects, large teams, big codebases. @csswizardry

More information

Dreamweaver Basics Workshop

Dreamweaver Basics Workshop Dreamweaver Basics Workshop Robert Rector idesign Lab - Fall 2013 What is Dreamweaver? o Dreamweaver is a web development tool o Dreamweaver is an HTML and CSS editor o Dreamweaver features a WYSIWIG (What

More information

Building Page Layouts

Building Page Layouts Building Page Layouts HTML & CSS From Scratch Slides 3.1 Topics Display Box Model Box Aesthetics Float Positioning Element Display working example at: h9ps://;nker.io/3a2bf Source: unknown. Please contact

More information

A pixel is not a pixel. Peter-Paul Koch BlackBerry Jam, 6 February 2012

A pixel is not a pixel. Peter-Paul Koch     BlackBerry Jam, 6 February 2012 A pixel is not a pixel Peter-Paul Koch http://quirksmode.org http://twitter.com/ppk BlackBerry Jam, 6 February 2012 I. Pixels Pixels according to W3C The reference pixel is the visual angle of one pixel

More information

Basics of Web Technologies

Basics of Web Technologies Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for Web Designing Given below is the brief description for the course you are looking for: Introduction to Web Technologies

More information

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii CONTENTS IN DETAIL FOREWORD by Joost de Valk PREFACE xvii xix INTRODUCTION xxi The Scope of This Book... xxii A Quick Note About Browsers and Platforms... xxii The Appendices and Further Resources...xxiii

More information

Scripting. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents

Scripting. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents Contents Scripting Contents Web Architecture and Information Management [./] Spring 2009 INFO 190-02 (CCN 42509) Erik Wilde, UC Berkeley School of Information [http://creativecommons.org/licenses/by/3.0/]

More information

IN4MATX 133: User Interface Software

IN4MATX 133: User Interface Software IN4MATX 133: User Interface Software Lecture 21: SASS and Styling in Ionic Professor Daniel A. Epstein TA Jamshir Goorabian TA Simion Padurean 1 Class notes Quiz 4 (Tuesday) will cover November 5th s lecture

More information

Beginner s Guide to SASS

Beginner s Guide to SASS Beginner s Guide to SASS WordCamp Norrköping 2015 28.08.2015 Bernhard Kau @2ndkauboy kau-boys.de 1 Who am I? Bernhard Kau Berlin, Germany PHP Developer WordPress Plugin Developer CSS Tinkerer Organizer

More information

Website Design (Weekend) By Alabian Solutions Ltd , 2016

Website Design (Weekend) By Alabian Solutions Ltd ,  2016 Website Design (Weekend) By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 TECHNOLOGIES DATE TIME Day1 Section 1 HTML Part 1 12am 5pm Intro to the web The web

More information

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2) Web Development & Design Foundations with HTML5 Ninth Edition Chapter 7 More on Links, Layout, and Mobile Slides in this presentation contain hyperlinks. JAWS users should be able to get a list of links

More information

Frontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević

Frontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević Frontend guide Everything you need to know about HTML, CSS, JavaScript and DOM Dejan V Čančarević Today frontend is treated as a separate part of Web development and therefore frontend developer jobs are

More information

Client-Side Web Technologies. CSS Part I

Client-Side Web Technologies. CSS Part I Client-Side Web Technologies CSS Part I Topics Style declarations Style sources Selectors Selector specificity The cascade and inheritance Values and units CSS Cascading Style Sheets CSS specifies the

More information

APEX Developers Do More With Less!! How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4.

APEX Developers Do More With Less!! How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4. APEX Developers Do More With Less!! Roel Hartman Copyright 2016 APEX Consulting 2 How do YOU manage your APEX CSS? Storage Options 1. Web server 2. APEX repository 3. In line 4. Attribute 3 How do YOU

More information

Schrödinger's Website. a talk by Jackie Balzer

Schrödinger's Website. a talk by Jackie Balzer Schrödinger's Website a talk by Jackie Balzer (@jackiebackwards) https://en.wikipedia.org/wiki/file:schrodinger_cat_in_box.jpg Web Development Life Cycle Adobe Portfolio Challenges Customizations

More information

Mobile Web Appplications Development with HTML5

Mobile Web Appplications Development with HTML5 Mobile Web Appplications Development with HTML5 Lab 1: The Challenge Claudio Riva Aalto University - Fall 2012 1 / 36 THE CHALLENGE OVERVIEW OF THE ASSIGNMENT WAY OF WORKING TEAMS DEVEVELOPMENT ENVIRONMENT

More information

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Library HTML5 and CSS3: New Markup & Styles for the Emerging Web Jason Clark Head of Digital Access & Web Services Montana State University Library Overview Revolution or Evolution? New Features and Functions

More information

CSS Futures. Web Development

CSS Futures. Web Development CSS Futures Web Development CSS Futures CSS3 CSS Preprocessors: SASS & LESS CSS Frameworks CSS3 CSS3 is the latest standard for CSS Combined with HTML5, CSS3 makes it possible to create highly interactive

More information

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2

Introduction to HTML & CSS. Instructor: Beck Johnson Week 2 Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!

More information

Zen Garden. CSS Zen Garden

Zen Garden. CSS Zen Garden CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS

More information

Checkbox 5 - Style Guide

Checkbox 5 - Style Guide Checkbox 5 - Style Guide Survey Styles are style templates that can be applied to surveys and reports. This guide will show you how to create a new Survey Style and apply it (and other appearance configurations)

More information

Joomla! extension JSN EasySlider User Manual

Joomla! extension JSN EasySlider User Manual Joomla! extension JSN EasySlider User Manual (for JSN EasySlider 2.0.x) www.facebook.com/joomlashine www.twitter.com/joomlashine www.youtube.com/joomlashine This documentation is release under Creative

More information

Positioning in CSS: There are 5 different ways we can set our position:

Positioning in CSS: There are 5 different ways we can set our position: Positioning in CSS: So you know now how to change the color and style of the elements on your webpage but how do we get them exactly where we want them to be placed? There are 5 different ways we can set

More information

Viewports. Peter-Paul Koch CSS Day, 4 June 2014

Viewports. Peter-Paul Koch   CSS Day, 4 June 2014 Viewports Peter-Paul Koch http://quirksmode.org http://twitter.com/ppk CSS Day, 4 June 2014 or: Why responsive design works Peter-Paul Koch http://quirksmode.org http://twitter.com/ppk CSS Day, 4 June

More information

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

HTML5 and Mobile: New Markup & Styles for the Mobile Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries HTML5 and Mobile: New Markup & Styles for the Mobile Web Jason Clark Head of Digital Access & Web Services Montana State University Libraries Overview Demos View some code bits New Features and Functions

More information

Designing with CSS3 Effectively & Efficiently. October 2010 Adobe MAX Zoe Mickley

Designing with CSS3 Effectively & Efficiently. October 2010 Adobe MAX Zoe Mickley Designing with CSS3 Effectively & Efficiently October 2010 Adobe MAX Zoe Mickley Gillenwater @zomigi 1 What I do out now out Dec 10 Books Web Flexible Web Design: Creating Liquid and Elastic Layouts with

More information

truechart Menubar Documentation HighCoordination GmbH Version 1.0.2,

truechart Menubar Documentation HighCoordination GmbH Version 1.0.2, truechart Menubar Documentation HighCoordination GmbH Version 1.0.2, 2017-05-05 Table of Contents 1. Introduction.............................................................................. 1 2. Installing

More information

Simple AngularJS thanks to Best Practices

Simple AngularJS thanks to Best Practices Simple AngularJS thanks to Best Practices Learn AngularJS the easy way Level 100-300 What s this session about? 1. AngularJS can be easy when you understand basic concepts and best practices 2. But it

More information

Want to read more? You can buy this book at oreilly.com in print and ebook format. Buy 2 books, get the 3rd FREE!

Want to read more? You can buy this book at oreilly.com in print and ebook format. Buy 2 books, get the 3rd FREE! Want to read more? You can buy this book at oreilly.com in print and ebook format. Buy 2 books, get the 3rd FREE! Use discount code: OPC10 All orders over $29.95 qualify for free shipping within the US.

More information

D3js Tutorial. Tom Torsney-Weir Michael Trosin

D3js Tutorial. Tom Torsney-Weir Michael Trosin D3js Tutorial Tom Torsney-Weir Michael Trosin http://www.washingtonpost.com/wp-srv/special/politics Contents Some important aspects of JavaScript Introduction to SVG CSS D3js Browser-Demo / Development-Tools

More information

Web AppBuilder for ArcGIS Dive Into Mobile Development. Yiwei Ma & Kevin Gao

Web AppBuilder for ArcGIS Dive Into Mobile Development. Yiwei Ma & Kevin Gao Web AppBuilder for ArcGIS Dive Into Mobile Development Yiwei Ma & Kevin Gao Yiwei Ma Software Developer Kevin Gao User Interface Engineer Theme A theme in WAB is a template framework representing the look

More information

Start a New Microsoft Word file, save it in your OneDrive as: #_lastname_resume.docx.

Start a New Microsoft Word file, save it in your OneDrive as: #_lastname_resume.docx. Start a New Microsoft Word file, save it in your OneDrive as: #_lastname_resume.docx. Begin by typing the information below: Select all five lines, go to the Home Tab > Paragraph > Change the Alignment

More information

CS7026 Media Queries. Different Screen Size Different Design

CS7026 Media Queries. Different Screen Size Different Design CS7026 Media Queries Different Screen Size Different Design Introduction Users no longer view web content only on traditional desktop systems, but are increasingly using smartphones, tablets, and other

More information

Introduction to Sencha Ext JS

Introduction to Sencha Ext JS Introduction to Sencha Ext JS Olga Petrova olga@sencha.com Sales Engineer EMEA Agenda Use Case How It Works Advantages Demo Use case Ext JS a Javascript framework for building enterprise data-intensive

More information

Building mobile app using Cordova and AngularJS, common practices. Goran Kopevski

Building mobile app using Cordova and AngularJS, common practices. Goran Kopevski Building mobile app using Cordova and AngularJS, common practices Goran Kopevski Agenda What is cordova? How to choose proper JS framework Building mobile app using Cordova and AngularJS Common fails,

More information

ADOBE PHOTOSHOP Using Masks for Illustration Effects

ADOBE PHOTOSHOP Using Masks for Illustration Effects ADOBE PHOTOSHOP Using Masks for Illustration Effects PS PREVIEW OVERVIEW In this exercise, you ll see a more illustrative use of Photoshop. You ll combine existing photos with digital art created from

More information

My goal is simple. It is a complete understanding of the universe.

My goal is simple. It is a complete understanding of the universe. Sup. STEPHEN My goal is simple. It is a complete understanding of the universe. W. HAWKING Device Experiences Asset Loading UA Detection Retina User Context Adaptive vs. Responsive Web Design CSS3 Mobile

More information

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

CSS: Layout Part 2. clear. CSS for layout and formatting: clear CSS: Layout Part 2 Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for layout and formatting: clear

More information

{WebCodeChicks} </spartanburg> Beginning Sass. sass-lang.com/guide

{WebCodeChicks} </spartanburg> Beginning Sass. sass-lang.com/guide {WebCodeChicks Beginning Sass sass-lang.com/guide We will be using the website: codepen.io to write our code. A great resource to see how others write code. Sign up for a free account. CSS

More information

Responsive Web Design (RWD)

Responsive Web Design (RWD) Responsive Web Design (RWD) Responsive Web Design: design Web pages, so that it is easy to see on a wide range of of devices phone, tablet, desktop,... Fixed vs Fluid layout Fixed: elements have fixed

More information

Creating Buttons and Pop-up Menus

Creating Buttons and Pop-up Menus Using Fireworks CHAPTER 12 Creating Buttons and Pop-up Menus 12 In Macromedia Fireworks 8 you can create a variety of JavaScript buttons and CSS or JavaScript pop-up menus, even if you know nothing about

More information

Stamp Builder. Documentation. v1.0.0

Stamp  Builder. Documentation.   v1.0.0 Stamp Email Builder Documentation http://getemailbuilder.com v1.0.0 THANK YOU FOR PURCHASING OUR EMAIL EDITOR! This documentation covers all main features of the STAMP Self-hosted email editor. If you

More information

GIMP WEB 2.0 BUTTONS

GIMP WEB 2.0 BUTTONS GIMP WEB 2.0 BUTTONS and and Web 2.0 Navigation: Rounded Buttons WEB 2.0 NAVIGATION: ROUNDED BUTTON MENU GIMP is all about IT (Images and Text) This button tutorial will design four images that will be

More information

CS7026 Media Queries II. Different Screen Size Different Design

CS7026 Media Queries II. Different Screen Size Different Design CS7026 Media Queries II Different Screen Size Different Design What You ll Learn We ll be restyling an entire page layout to work with different screen sizes and devices using Media queries to apply styles

More information

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002

Responsive web design (RWD) CSS3 Media queries. Mobile vs desktop web sites. Web Development 1 CS1115/CS5002 1 of 13 CS1115/CS5002 Web Development 1 Dr Derek Bridge School of Computer Science & Information Technology University College Cork Mobile vs desktop web sites A few organization have two web sites, one

More information

CIT BY: HEIDI SPACKMAN

CIT BY: HEIDI SPACKMAN CIT230-06 BY: HEIDI SPACKMAN WHAT IS A MEDIA QUERY? A Media Query (Boolean code) written in CSS3 determines the screen display size that needs to be used and adjusts the HTML pages to display correctly

More information

SASS Variables and Mixins Written by Margaret Rodgers. Variables. Contents. From Web Team. 1 Variables

SASS Variables and Mixins Written by Margaret Rodgers. Variables. Contents. From Web Team. 1 Variables SASS Variables and Mixins Written by Margaret Rodgers From Web Team Contents 1 Variables o 1.1 Nested Variables 2 Mixins 3 Inheritance Variables A variable in SASS works exactly the same as a variable

More information

Enterprise Web Development

Enterprise Web Development Enterprise Web Development Yakov Fain, Victor Rasputnis, Anatole Tartakovsky, and Viktor Gamov Beijing Cambridge Farnham Koln Sebastopol Tokyo O'REILLY Table of Contents Preface Introduction xi xxiii Part

More information

Fish Eye Menu DMXzone.com Fish Eye Menu Manual

Fish Eye Menu DMXzone.com Fish Eye Menu Manual Fish Eye Menu Manual Page 1 of 33 Index Fish Eye Menu Manual... 1 Index... 2 About Fish Eye Menu... 3 Features in Detail... 4 Integrated in Dreamweaver... 6 Before you begin... 7 Installing the extension...

More information

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University Responsive Web Design and Bootstrap MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University Exam 3 (FINAL) Date: 12/06/18 four weeks from now! JavaScript, jquery, Bootstrap,

More information

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective

More information

Responsive Design for Web Applications R.I.T. S. Ludi/R. Kuehl p. 1 R I T. Software Engineering

Responsive Design for Web Applications R.I.T. S. Ludi/R. Kuehl p. 1 R I T. Software Engineering Responsive Design for Web Applications S. Ludi/R. Kuehl p. 1 What is the Problem? S. Ludi/R. Kuehl p. 2 Credit: Matt Griffin What is the Problem? Mobile web access is ubiquitous One interface design does

More information

The tech behind a design system that scales

The tech behind a design system that scales The tech behind a design system that scales BrazilJS 2018 Monica Lent Lead Frontend Engineer - SumUp @monicalent Where we re going today What is a design system? What we built Our challenges & solutions

More information

/* ========================================================================== PROJECT STYLES

/* ========================================================================== PROJECT STYLES html { box-sizing: border-box; *, *:before, *:after { box-sizing: inherit; img { max-width: 100%; border: 0; audio, canvas, iframe, img, svg, video { vertical-align: middle; /* Remove gaps between elements

More information

Responsive Web Design. Sheri German, Instructor Montgomery College

Responsive Web Design. Sheri German, Instructor Montgomery College Responsive Web Design Sheri German, Instructor Montgomery College Responsive Web Design (RWD)! Coined by Ethan Marcotte through his awareness of what was taking place in the discipline of architecture.!

More information

Supporting your Business and Editorial Objectives. Magnet Dashboard Q&A

Supporting your Business and Editorial Objectives. Magnet Dashboard Q&A Supporting your Business and Editorial Objectives Magnet Dashboard Q&A How to draw a line below the header Supported for widgets: Recommended and Related EDIT CSS for selected widget Search for the the

More information

HTML and CSS a further introduction

HTML and CSS a further introduction HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few

More information

Student, Perfect CS-081 Final Exam May 21, 2010 Student ID: 9999 Exam ID: 3122 Page 1 of 6 Instructions:

Student, Perfect CS-081 Final Exam May 21, 2010 Student ID: 9999 Exam ID: 3122 Page 1 of 6 Instructions: Student ID: 9999 Exam ID: 3122 Page 1 of 6 Instructions: Use pencil. Answer all questions: there is no penalty for guessing. Unless otherwise directed, circle the letter of the one best answer for multiplechoice

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development Objectives INFS 2150 Introduction to Web Development Create a media query Work with the browser viewport Apply a responsive design Create a pulldown menu with CSS Create a flexbox 5. Mobile Web INFS 2150

More information

Managing your content with the Adobe Experience Manager Template Editor. Gabriel Walt Product Manager twitter.com/gabrielwalt

Managing your content with the Adobe Experience Manager Template Editor. Gabriel Walt Product Manager twitter.com/gabrielwalt Managing your content with the Adobe Experience Manager Template Editor Gabriel Walt Product Manager twitter.com/gabrielwalt Table of Contents 1. Introduction 3 1.1 Overview 3 1.2 Prerequisites 3 2. Getting

More information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development INFS 2150 Introduction to Web Development 5. Mobile Web Objectives Create a media query Work with the browser viewport Apply a responsive design Create a pulldown menu with CSS Create a flexbox INFS 2150

More information

CISC 1600 Lecture 2.4 Introduction to JavaScript

CISC 1600 Lecture 2.4 Introduction to JavaScript CISC 1600 Lecture 2.4 Introduction to JavaScript Topics: Javascript overview The DOM Variables and objects Selection and Repetition Functions A simple animation What is JavaScript? JavaScript is not Java

More information

PSD to Mobile UI Tutorial

PSD to Mobile UI Tutorial PSD to Mobile UI Tutorial Contents Planning for design... 4 Decide the support devices for the application... 4 Target Device for design... 4 Import Asset package... 5 Basic Setting... 5 Preparation for

More information

Schrödinger's Website

Schrödinger's Website Schrödinger's Website or: How we built websites of indeterminate design for Adobe Portfolio a talk by Jackie Balzer (@jackiebackwards) https://en.wikipedia.org/wiki/file:schrodinger_cat_in_box.jpg Web

More information

Website Design (Weekday) By Alabian Solutions Ltd , 2016

Website Design (Weekday) By Alabian Solutions Ltd ,  2016 Website Design (Weekday) By Alabian Solutions Ltd 08034265103, info@alabiansolutions.com www.alabiansolutions.com 2016 TECHNOLOGIES DATE TIME Day 1 HTML Part 1 Intro to the web The web Clients Servers

More information

How to lay out a web page with CSS

How to lay out a web page with CSS How to lay out a web page with CSS A CSS page layout uses the Cascading Style Sheets format, rather than traditional HTML tables or frames, to organize the content on a web page. The basic building block

More information

All India Council For Research & Training

All India Council For Research & Training WEB DEVELOPMENT & DESIGNING Are you looking for a master program in web that covers everything related to web? Then yes! You have landed up on the right page. Web Master Course is an advanced web designing,

More information

Data Visualization on the Web with D3

Data Visualization on the Web with D3 Data Visualization on the Web with D3 Bowen Yu April 11, 16 Big Data Analysis Interactive Analysis After dataprocessingwith BD techniques, itis necessary to visualize the data so that human analyst can

More information

Hands On: Dreamweaver CS3 NEW SPRY Widgets

Hands On: Dreamweaver CS3 NEW SPRY Widgets What is a Spry Widget? Spry widgets provide access to dynamic and interactive elements you might like to have on your Web page. These Spry elements include: Menu Bars Tabbed Panels Accordion Effects Collapsible

More information

Navigation. Websites need a formalized system of links to allow users to navigate the site

Navigation. Websites need a formalized system of links to allow users to navigate the site Comm 244 Week 3 Navigation Navigation Websites need a formalized system of links to allow users to navigate the site Navigation Many larger websites have multiple forms of navigation For example, look

More information

How to deploy for multiple screens

How to deploy for multiple screens How to deploy for multiple screens Ethan Marcotte, a developer in Boston, coined the phrase responsive design to describe a website that adapts to the size of the viewer s screen. A demonstration site

More information

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows

More information

Adobe photoshop Using Masks for Illustration Effects

Adobe photoshop Using Masks for Illustration Effects Adobe photoshop Using Masks for Illustration Effects PS Preview Overview In this exercise you ll see a more illustrative use of Photoshop. You ll combine existing photos with digital art created from scratch

More information

Introduction to WEB PROGRAMMING

Introduction to WEB PROGRAMMING Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks

More information

HTML HTML5. DOM(Document Object Model) CSS CSS

HTML HTML5. DOM(Document Object Model) CSS CSS HTML HTML5 DOM(Document Object Model) CSS CSS HTML html img jpg png gif jpg png gif

More information

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site

Comm 244 Week 3. Navigation. Navigation. Websites need a formalized system of links to allow users to navigate the site Comm 244 Week 3 Navigation Navigation Websites need a formalized system of links to allow users to navigate the site Navigation Many larger websites have multiple forms of navigation For example, look

More information

Pop-up. File format/ size: Must provide (.gif or.jpg) still image - max. 75KB for Mobile - max. 400KB for Tablet

Pop-up. File format/ size: Must provide (.gif or.jpg) still image - max. 75KB for Mobile - max. 400KB for Tablet Pop-up Dimensions: Mobile: 640 (W) x 960 (H) pixels Tablet Portrait - 1536 (W) x 2048 (H) pixels [For mytv SUPER only] Tablet Landscape - 2048 (W) x 1536 (H) pixels [For mytv SUPER only] File format/ size:

More information

Web Development & Design Foundations with HTML5

Web Development & Design Foundations with HTML5 1 Web Development & Design Foundations with HTML5 CHAPTER 4 VISUAL ELEMENTS AND GRAPHICS 2 Learning Outcomes In this chapter, you will learn how to... Create and format lines and borders on web pages Apply

More information

Web Premium- Advanced UI Development Course. Duration: 08 Months. [Classroom and Online] ISO 9001:2015 CERTIFIED

Web Premium- Advanced UI Development Course. Duration: 08 Months. [Classroom and Online] ISO 9001:2015 CERTIFIED Weekdays:- 1½ hrs / 3 days Fastrack:- 1½hrs / Day [Classroom and Online] ISO 9001:2015 CERTIFIED ADMEC Multimedia Institute www.admecindia.co.in +91-9911782350, +91-9811818122 ADMEC is one of the best

More information

Why attend a Lianja training course? Course overview. Course Details

Why attend a Lianja training course? Course overview. Course Details These courses will be arranged periodically in different geographic regions or can be arranged on-site at customer premises by customer request. They can also be customized for individual customers needs

More information