Responsive Web Design & APEX Theme 25

Christian Rokitta
Christian RokittaOracle Database & APEX Developer, APEX UI Designer, Oracle ACE
Building a Responsive
Application using Theme 25
Christian Rokitta
themes4apex
KScope13 RWD Track
Intro to Responsive Design
in APEX
Martin D’Souza
Monday
11:30
Building a Responsive
Application using Theme 25
Christian Rokitta
Wednesday
8:30
Building a Responsive
Application using Twitter
Bootstrap
Mark Lancaster
Wednesday
11:15
Advanced Responsive
Design in APEX
Dimitri Gielis
Thursday
9:45
Agenda
•Responsive Web Design
•APEX/Theme 25
•Beyond
Responsive Web Design
Responsive web design (RWD) covers various
techniques, both client and server side, that
aim to make a website respond to the device it
is viewed on.
It means, writing one codebase that will adapt
your website on every screen size, device and
device orientation, in order to provide the best
possible experience to the user.
Key Techniques of RWD
• CSS @Media queries
• Grid Layouts
• Device/browser detection to
enhance performance of your site
and reduce bloat
@media Queries
aren’t limited to the device width condition: there are
many different properties you can test against using
@media queries, including the device orientation,
height, aspect ratio and resolution
@media screen and (max-device-width: 640px) and (orientation:portrait) {
/* Rules inside the @media condition only apply if the condition is met */
#mydiv {
display: inline-block;
}
}
@media all and (orientation:portrait) { … }
@media all and (orientation:landscape) { … }
@media Query Usage - Inline
Put media queries directly in the style sheet.
This is the most common approach.
@media screen and (max-device-width: 640px) and (orientation:portrait) {
/* Rules inside the @media condition only apply if the condition is met */
#mydiv {
display: inline-block;
}
}
@media Query Usage – Import/Link
Use the @import rule to import style rules from
other style sheets.
@import url(style600min.css) screen and (min-width: 600px);
Include a query in a linked style sheet’s media
attribute.
<link rel="stylesheet" type="text/css"
media="screen and (max-device-width: 800px)"
href="style800.css" />
@media query alternative
Use JavaScript to detect the viewport size and
then set a className to the body element
@media query & CSS Units
• Absolute
• Pixels (px)
• Point (pt) = 1/72 of an inch
• Relative units
• are based on the initial value
• em unit is relative to the initial value of ‘font-size’
• Percentages (%)
• Resolution
• dpi/dpcm: dots per ‘inch’/‘centimeter’
Adapt Layout with @media query
Three Column Desktop Layout
Example HTML
<div class="col1">
<p>…</p>
</div>
<div class="col2">
<p>…</p>
</div>
<div class="col3">
<p>…</p>
</div>
Example CSS - desktop
@media (min-device-width: 641px) {
/* target devices with desktop sized resolution */
.col1, .col2, .col3 {
/* Float the columns to create a three-column layout */
padding: 2em;
width: 30%;
margin-right: 1em;
float: left;
}
}
Example CSS - smartphone
@media (max-device-width: 640px) {
/* target devices with smal sized resolution */
.col1, .col2, .col3 {
position: relative;
padding: 2em;
width: 90%;
float: none;
display: block;
margin-right: 0;
}
}
Single Column Smartphone Layout
Floating
Grid – What is it?
• Fixed Grid
• Not necessarily responsive
• Used to layout elements in a regular rhythm
• Fluid/Flexible Grid
• CSS3 Grid Layout
Grid Basics
•Container
•Columns
•Gutter
•Rows
Responsive Grid
CSS3 Grid Layout
http://dev.w3.org/csswg/css-grid/
Fixed Website Layouts
A fixed website layout has a
wrapper that is a fixed width, and
the components inside it have
either percentage widths or fixed
widths no matter what screen
resolution.
Fluid Website Layouts
In a fluid website layout the
majority of the components
inside have percentage widths,
and thus adjust to the user’s
screen resolution.
Theme 25: Multiple Fixed Grids
@media screen and min-width 320px and max-width 479px
@media only screen and min-width 480px and max-width 767px
@media only screen and max-width 767px
@media only screen and min-width 768px and max-width 959px
@media only screen and min-width 960px and max-width 1024px
@media screen and min-width 1260px and max-width 1419px
@media screen and min-width 1420px and max-width 1659px
@media screen and min-width 1660px and max-width 1899px
@media screen and min-width 1900px
@media screen and min-width 2540px
APEX Responsive Features
• Declarative way to lay out regions and
items on a page without manual css
overrides (region attributes)
• Allows implementation of other grid
frameworks such as twitterbootstrap,
960 gs, etc. (template)
Theme 25
Region Grid Layout Attributes
Theme 25 Grid
Page Template Grid Attributes
CSS Utility Classes
Hide/show content depending on @media query
Responsive Interactive Reports
http://apex.shak.us/post/35664732629/responsive-interactive-reports-in-theme-25
Page Template Grid Definition
#USED_COLUMNS_NUMBER#
#USED_COLUMNS_ALPHA#
#USED_COLUMNS_ALPHA_MINUS#
#USED_COLUMNS_WORD#
#USED_COLUMNS_PLURAL#
#ROWS#
#COLUMNS#
#COLUMN_NUMBER#
#COLUMN_ALPHA#
#COLUMN_WORD#
#COLUMN_PLURAL#
#COLUMN_SPAN_NUMBER#
#COLUMN_SPAN_ALPHA#
#COLUMN_SPAN_WORD#
#COLUMN_SPAN_PLURAL#
#ATTRIBUTES#
#FIRST_LAST_COLUMN_ATTRIBUTES#
#CONTENT#
RWD Considerations
• Developing a responsive application can be time
consuming and may require a deep
understanding of grid layout, HTML and CSS.
• Page size remains the same. You are loading the
full HTML, CSS, and JS resources, even on
mobile devices with limited broadband.
• Responsive Web Design is just the tip of the
iceberg.
Theme 25 != Theme 42
Beyond Theme 25
• Navigation
• Data Tables
• Leverage APEX condition feature
with client property detection to
optimize layout generation.
The Grid, the Tab and the Ugly
Responsive Tabs in Theme 42
Conditionally Show/Hide Content
desktop
mobile
Show/Hide Column: Custom CSS
@media (orientation:portrait) and (max-width: 640px) {
[headers="CUST_STREET_ADDRESS1"], #CUST_STREET_ADDRESS1 {
display: none;
}
}
TH: table headerTD: table data/cell
Categorizr
http://rokitta.blogspot.nl/2013/05/how-are-you-categorizr-for-apex-part-2.html
Client device property detection
categorizr.isdesktop
categorizr.istablet
categorizr.ismobile
categorizr.isportrait
categorizr.islandscape
Responsive Data Table Idea(l)
Table Reflow, kind of like in APEX 5.0, but then for responsive …
Demo
Questions, Answers & Discussion
http://rokitta.blogspot.com
@crokitta
christian@rokitta.nl
http://www.themes4apex.com
http://plus.google.com/u/0/102034735771815472470
http://nl.linkedin.com/in/rokit/
1 of 43

Recommended

Responsive Web Design & APEX Theme 25 (OGh APEX World 2014) by
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)
Responsive Web Design & APEX Theme 25 (OGh APEX World 2014)Christian Rokitta
2.1K views44 slides
Challenges going mobile by
Challenges going mobileChallenges going mobile
Challenges going mobileChristian Rokitta
1.2K views24 slides
Oracle APEX URLs Untangled & SEOptimized by
Oracle APEX URLs Untangled & SEOptimizedOracle APEX URLs Untangled & SEOptimized
Oracle APEX URLs Untangled & SEOptimizedChristian Rokitta
6K views30 slides
Apex & jQuery Mobile by
Apex & jQuery MobileApex & jQuery Mobile
Apex & jQuery MobileChristian Rokitta
4.2K views34 slides
Confessions of an APEX Design Geek by
Confessions of an APEX Design GeekConfessions of an APEX Design Geek
Confessions of an APEX Design GeekChristian Rokitta
1.7K views20 slides
Face/Off: APEX Templates & Themes by
Face/Off: APEX Templates & ThemesFace/Off: APEX Templates & Themes
Face/Off: APEX Templates & Themescrokitta
3.9K views38 slides

More Related Content

What's hot

UXify 2015 - Front-end Developers' Checklist for Better UX by
UXify 2015 - Front-end Developers' Checklist for Better UXUXify 2015 - Front-end Developers' Checklist for Better UX
UXify 2015 - Front-end Developers' Checklist for Better UXStoian Dipchikov
1.1K views34 slides
HTL(Sightly) - All you need to know by
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to knowPrabhdeep Singh
11.9K views41 slides
ADF - Layout Managers and Skinning by
ADF - Layout Managers and SkinningADF - Layout Managers and Skinning
ADF - Layout Managers and SkinningGeorge Estebe
12.3K views82 slides
HTML5 - Introduction by
HTML5 - IntroductionHTML5 - Introduction
HTML5 - IntroductionDavy De Pauw
2.1K views69 slides
Experience Manager 6 Developer Features - Highlights by
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsCédric Hüsler
4K views19 slides
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ... by
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...
ECS 19 Bert Jansen - Taking your SharePoint to the next level – Transforming ...European Collaboration Summit
396 views26 slides

What's hot(20)

UXify 2015 - Front-end Developers' Checklist for Better UX by Stoian Dipchikov
UXify 2015 - Front-end Developers' Checklist for Better UXUXify 2015 - Front-end Developers' Checklist for Better UX
UXify 2015 - Front-end Developers' Checklist for Better UX
Stoian Dipchikov1.1K views
HTL(Sightly) - All you need to know by Prabhdeep Singh
HTL(Sightly) - All you need to knowHTL(Sightly) - All you need to know
HTL(Sightly) - All you need to know
Prabhdeep Singh11.9K views
ADF - Layout Managers and Skinning by George Estebe
ADF - Layout Managers and SkinningADF - Layout Managers and Skinning
ADF - Layout Managers and Skinning
George Estebe12.3K views
HTML5 - Introduction by Davy De Pauw
HTML5 - IntroductionHTML5 - Introduction
HTML5 - Introduction
Davy De Pauw2.1K views
Experience Manager 6 Developer Features - Highlights by Cédric Hüsler
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - Highlights
Cédric Hüsler4K views
Bringing HTML5 alive in SharePoint by Chad Schroeder
Bringing HTML5 alive in SharePointBringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePoint
Chad Schroeder66.9K views
Adobe Experience Manager Core Components by Gabriel Walt
Adobe Experience Manager Core ComponentsAdobe Experience Manager Core Components
Adobe Experience Manager Core Components
Gabriel Walt2.8K views
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012 by crokitta
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta1.7K views
CSS pattern libraries by Russ Weakley
CSS pattern librariesCSS pattern libraries
CSS pattern libraries
Russ Weakley83.8K views
Practical tipsmakemobilefaster oscon2016 by Doris Chen
Practical tipsmakemobilefaster oscon2016Practical tipsmakemobilefaster oscon2016
Practical tipsmakemobilefaster oscon2016
Doris Chen1.3K views
Web Development for UX Designers by Ashlimarie
Web Development for UX DesignersWeb Development for UX Designers
Web Development for UX Designers
Ashlimarie 38.9K views
Content query web part – get it all in one place and style it! by Benjamin Niaulin
Content query web part – get it all in one place and style it!Content query web part – get it all in one place and style it!
Content query web part – get it all in one place and style it!
Benjamin Niaulin14.5K views
Introduction to Web Components by Fu Cheng
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
Fu Cheng7.2K views
The Chaos Tools Suite by merlinofchaos
The Chaos Tools SuiteThe Chaos Tools Suite
The Chaos Tools Suite
merlinofchaos6.4K views
Take a load off! Load testing your Oracle APEX or JDeveloper web applications by Sage Computing Services
Take a load off! Load testing your Oracle APEX or JDeveloper web applicationsTake a load off! Load testing your Oracle APEX or JDeveloper web applications
Take a load off! Load testing your Oracle APEX or JDeveloper web applications
jQuery Mobile Workshop by Ron Reiter
jQuery Mobile WorkshopjQuery Mobile Workshop
jQuery Mobile Workshop
Ron Reiter1.7K views
Asset Redux - Front end performance on Rails (Phil Nash) by Future Insights
Asset Redux - Front end performance on Rails (Phil Nash)Asset Redux - Front end performance on Rails (Phil Nash)
Asset Redux - Front end performance on Rails (Phil Nash)
Future Insights1.5K views
Custom WordPress theme development by Tammy Hart
Custom WordPress theme developmentCustom WordPress theme development
Custom WordPress theme development
Tammy Hart9.8K views

Viewers also liked

Responsive Web Design in Oracle Application Express by
Responsive Web Design in Oracle Application ExpressResponsive Web Design in Oracle Application Express
Responsive Web Design in Oracle Application ExpressShakeeb Rahman
4.1K views53 slides
Dcom ppt(en.39) dpcm by
Dcom ppt(en.39) dpcmDcom ppt(en.39) dpcm
Dcom ppt(en.39) dpcmDharit Unadkat
1.7K views14 slides
Differential pulse code modulation by
Differential pulse code modulationDifferential pulse code modulation
Differential pulse code modulationRamraj Bhadu
10K views11 slides
Dpcm ( Differential Pulse Code Modulation ) by
Dpcm ( Differential Pulse Code Modulation )Dpcm ( Differential Pulse Code Modulation )
Dpcm ( Differential Pulse Code Modulation )Mohammed Abdullah
16.7K views14 slides
Pcm by
PcmPcm
Pcmsrkrishna341
22.9K views33 slides
Pulse modulation by
Pulse modulationPulse modulation
Pulse modulationstk_gpg
53.6K views38 slides

Viewers also liked(6)

Responsive Web Design in Oracle Application Express by Shakeeb Rahman
Responsive Web Design in Oracle Application ExpressResponsive Web Design in Oracle Application Express
Responsive Web Design in Oracle Application Express
Shakeeb Rahman4.1K views
Differential pulse code modulation by Ramraj Bhadu
Differential pulse code modulationDifferential pulse code modulation
Differential pulse code modulation
Ramraj Bhadu10K views
Dpcm ( Differential Pulse Code Modulation ) by Mohammed Abdullah
Dpcm ( Differential Pulse Code Modulation )Dpcm ( Differential Pulse Code Modulation )
Dpcm ( Differential Pulse Code Modulation )
Mohammed Abdullah16.7K views
Pulse modulation by stk_gpg
Pulse modulationPulse modulation
Pulse modulation
stk_gpg53.6K views

Similar to Responsive Web Design & APEX Theme 25

Great Responsive-ability Web Design by
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
697 views34 slides
Introduction to Responsive Web Design by
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web DesignShawn Calvert
1.1K views32 slides
Responsive web design by
Responsive web designResponsive web design
Responsive web designBen MacNeill
4.3K views57 slides
Advancio, Inc. Academy: Responsive Web Design by
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio
268 views29 slides
Responsive Web Design - Devoxx UK - 2014-06-13 by
Responsive Web Design - Devoxx UK - 2014-06-13Responsive Web Design - Devoxx UK - 2014-06-13
Responsive Web Design - Devoxx UK - 2014-06-13Frédéric Harper
1.8K views48 slides
Design by
DesignDesign
Designrobynurdiansyah
139 views45 slides

Similar to Responsive Web Design & APEX Theme 25(20)

Great Responsive-ability Web Design by Mike Wilcox
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
Mike Wilcox697 views
Introduction to Responsive Web Design by Shawn Calvert
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Shawn Calvert1.1K views
Responsive web design by Ben MacNeill
Responsive web designResponsive web design
Responsive web design
Ben MacNeill4.3K views
Advancio, Inc. Academy: Responsive Web Design by Advancio
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
Advancio268 views
Responsive Web Design - Devoxx UK - 2014-06-13 by Frédéric Harper
Responsive Web Design - Devoxx UK - 2014-06-13Responsive Web Design - Devoxx UK - 2014-06-13
Responsive Web Design - Devoxx UK - 2014-06-13
Frédéric Harper1.8K views
Responsive Web Design, get the best out of your designs - JavaScript Open Day... by Frédéric Harper
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Frédéric Harper6.7K views
Responsive Web Design - Web & PHP Conference - 2013-09-18 by Frédéric Harper
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
Frédéric Harper5.7K views
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25 by Frédéric Harper
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Frédéric Harper700 views
Adaptive theming using compass susy grid by soovor
Adaptive theming using compass susy gridAdaptive theming using compass susy grid
Adaptive theming using compass susy grid
soovor4.7K views
Responsive Web Design: the secret sauce - JavaScript Open Day Montreal - 2015... by Frédéric Harper
Responsive Web Design: the secret sauce - JavaScript Open Day Montreal - 2015...Responsive Web Design: the secret sauce - JavaScript Open Day Montreal - 2015...
Responsive Web Design: the secret sauce - JavaScript Open Day Montreal - 2015...
Frédéric Harper872 views
Responsive web designing ppt(1) by admecindia1
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
admecindia139.3K views
Developing for Responsive Design - Frederic Welterlin by Razorfish
Developing for Responsive Design - Frederic WelterlinDeveloping for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic Welterlin
Razorfish989 views
Responsive UX - One size fits all @BigDesign conference #BigD12 by touchtitans
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
touchtitans2.6K views
CSS3: Simply Responsive by Denise Jacobs
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
Denise Jacobs28.1K views
Digibury: Getting your web presence mobile ready - David Walker by Lizzie Hodgson
Digibury: Getting your web presence mobile ready - David WalkerDigibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David Walker
Lizzie Hodgson495 views
Chapter 17: Responsive Web Design by Steve Guinan
Chapter 17: Responsive Web DesignChapter 17: Responsive Web Design
Chapter 17: Responsive Web Design
Steve Guinan120 views
CSS3 Media Queries And Creating Adaptive Layouts by Svitlana Ivanytska
CSS3 Media Queries And Creating Adaptive LayoutsCSS3 Media Queries And Creating Adaptive Layouts
CSS3 Media Queries And Creating Adaptive Layouts
Svitlana Ivanytska1.9K views

More from Christian Rokitta

Keep me moving goin mobile by
Keep me moving   goin mobileKeep me moving   goin mobile
Keep me moving goin mobileChristian Rokitta
285 views41 slides
Hitchhiker's guide to the Universal Theme by
Hitchhiker's guide to the Universal ThemeHitchhiker's guide to the Universal Theme
Hitchhiker's guide to the Universal ThemeChristian Rokitta
892 views57 slides
Browser Developer Tools for APEX Developers by
Browser Developer Tools for APEX DevelopersBrowser Developer Tools for APEX Developers
Browser Developer Tools for APEX DevelopersChristian Rokitta
1.1K views30 slides
Bootstrapify Universal Theme by
Bootstrapify Universal ThemeBootstrapify Universal Theme
Bootstrapify Universal ThemeChristian Rokitta
2K views52 slides
Plugins unplugged by
Plugins unpluggedPlugins unplugged
Plugins unpluggedChristian Rokitta
665 views47 slides
APEX & Cookie Monster by
APEX & Cookie MonsterAPEX & Cookie Monster
APEX & Cookie MonsterChristian Rokitta
2K views22 slides

More from Christian Rokitta(11)

Recently uploaded

Web Dev - 1 PPT.pdf by
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdfgdsczhcet
52 views45 slides
MemVerge: Past Present and Future of CXL by
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXLCXL Forum
110 views26 slides
"Fast Start to Building on AWS", Igor Ivaniuk by
"Fast Start to Building on AWS", Igor Ivaniuk"Fast Start to Building on AWS", Igor Ivaniuk
"Fast Start to Building on AWS", Igor IvaniukFwdays
36 views76 slides
PharoJS - Zürich Smalltalk Group Meetup November 2023 by
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023Noury Bouraqadi
113 views17 slides
Understanding GenAI/LLM and What is Google Offering - Felix Goh by
Understanding GenAI/LLM and What is Google Offering - Felix GohUnderstanding GenAI/LLM and What is Google Offering - Felix Goh
Understanding GenAI/LLM and What is Google Offering - Felix GohNUS-ISS
39 views33 slides
The Importance of Cybersecurity for Digital Transformation by
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital TransformationNUS-ISS
25 views26 slides

Recently uploaded(20)

Web Dev - 1 PPT.pdf by gdsczhcet
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet52 views
MemVerge: Past Present and Future of CXL by CXL Forum
MemVerge: Past Present and Future of CXLMemVerge: Past Present and Future of CXL
MemVerge: Past Present and Future of CXL
CXL Forum110 views
"Fast Start to Building on AWS", Igor Ivaniuk by Fwdays
"Fast Start to Building on AWS", Igor Ivaniuk"Fast Start to Building on AWS", Igor Ivaniuk
"Fast Start to Building on AWS", Igor Ivaniuk
Fwdays36 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi113 views
Understanding GenAI/LLM and What is Google Offering - Felix Goh by NUS-ISS
Understanding GenAI/LLM and What is Google Offering - Felix GohUnderstanding GenAI/LLM and What is Google Offering - Felix Goh
Understanding GenAI/LLM and What is Google Offering - Felix Goh
NUS-ISS39 views
The Importance of Cybersecurity for Digital Transformation by NUS-ISS
The Importance of Cybersecurity for Digital TransformationThe Importance of Cybersecurity for Digital Transformation
The Importance of Cybersecurity for Digital Transformation
NUS-ISS25 views
"How we switched to Kanban and how it integrates with product planning", Vady... by Fwdays
"How we switched to Kanban and how it integrates with product planning", Vady..."How we switched to Kanban and how it integrates with product planning", Vady...
"How we switched to Kanban and how it integrates with product planning", Vady...
Fwdays61 views
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa... by The Digital Insurer
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Webinar : Competing for tomorrow’s leaders – How MENA insurers can win the wa...
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst449 views
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy by Fwdays
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy
"Role of a CTO in software outsourcing company", Yuriy Nakonechnyy
Fwdays40 views
Astera Labs: Intelligent Connectivity for Cloud and AI Infrastructure by CXL Forum
Astera Labs:  Intelligent Connectivity for Cloud and AI InfrastructureAstera Labs:  Intelligent Connectivity for Cloud and AI Infrastructure
Astera Labs: Intelligent Connectivity for Cloud and AI Infrastructure
CXL Forum125 views
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... by NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS23 views
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ... by Fwdays
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ..."Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ...
"Quality Assurance: Achieving Excellence in startup without a Dedicated QA", ...
Fwdays33 views
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad... by Fwdays
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad..."Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
"Ukrainian Mobile Banking Scaling in Practice. From 0 to 100 and beyond", Vad...
Fwdays40 views
MemVerge: Gismo (Global IO-free Shared Memory Objects) by CXL Forum
MemVerge: Gismo (Global IO-free Shared Memory Objects)MemVerge: Gismo (Global IO-free Shared Memory Objects)
MemVerge: Gismo (Global IO-free Shared Memory Objects)
CXL Forum112 views
AI: mind, matter, meaning, metaphors, being, becoming, life values by Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Future of Learning - Khoong Chan Meng by NUS-ISS
Future of Learning - Khoong Chan MengFuture of Learning - Khoong Chan Meng
Future of Learning - Khoong Chan Meng
NUS-ISS31 views
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor... by Vadym Kazulkin
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
How to reduce cold starts for Java Serverless applications in AWS at JCON Wor...
Vadym Kazulkin70 views

Responsive Web Design & APEX Theme 25

  • 1. Building a Responsive Application using Theme 25 Christian Rokitta themes4apex
  • 2. KScope13 RWD Track Intro to Responsive Design in APEX Martin D’Souza Monday 11:30 Building a Responsive Application using Theme 25 Christian Rokitta Wednesday 8:30 Building a Responsive Application using Twitter Bootstrap Mark Lancaster Wednesday 11:15 Advanced Responsive Design in APEX Dimitri Gielis Thursday 9:45
  • 4. Responsive Web Design Responsive web design (RWD) covers various techniques, both client and server side, that aim to make a website respond to the device it is viewed on. It means, writing one codebase that will adapt your website on every screen size, device and device orientation, in order to provide the best possible experience to the user.
  • 5. Key Techniques of RWD • CSS @Media queries • Grid Layouts • Device/browser detection to enhance performance of your site and reduce bloat
  • 6. @media Queries aren’t limited to the device width condition: there are many different properties you can test against using @media queries, including the device orientation, height, aspect ratio and resolution @media screen and (max-device-width: 640px) and (orientation:portrait) { /* Rules inside the @media condition only apply if the condition is met */ #mydiv { display: inline-block; } } @media all and (orientation:portrait) { … } @media all and (orientation:landscape) { … }
  • 7. @media Query Usage - Inline Put media queries directly in the style sheet. This is the most common approach. @media screen and (max-device-width: 640px) and (orientation:portrait) { /* Rules inside the @media condition only apply if the condition is met */ #mydiv { display: inline-block; } }
  • 8. @media Query Usage – Import/Link Use the @import rule to import style rules from other style sheets. @import url(style600min.css) screen and (min-width: 600px); Include a query in a linked style sheet’s media attribute. <link rel="stylesheet" type="text/css" media="screen and (max-device-width: 800px)" href="style800.css" />
  • 9. @media query alternative Use JavaScript to detect the viewport size and then set a className to the body element
  • 10. @media query & CSS Units • Absolute • Pixels (px) • Point (pt) = 1/72 of an inch • Relative units • are based on the initial value • em unit is relative to the initial value of ‘font-size’ • Percentages (%) • Resolution • dpi/dpcm: dots per ‘inch’/‘centimeter’
  • 11. Adapt Layout with @media query
  • 13. Example HTML <div class="col1"> <p>…</p> </div> <div class="col2"> <p>…</p> </div> <div class="col3"> <p>…</p> </div>
  • 14. Example CSS - desktop @media (min-device-width: 641px) { /* target devices with desktop sized resolution */ .col1, .col2, .col3 { /* Float the columns to create a three-column layout */ padding: 2em; width: 30%; margin-right: 1em; float: left; } }
  • 15. Example CSS - smartphone @media (max-device-width: 640px) { /* target devices with smal sized resolution */ .col1, .col2, .col3 { position: relative; padding: 2em; width: 90%; float: none; display: block; margin-right: 0; } }
  • 18. Grid – What is it? • Fixed Grid • Not necessarily responsive • Used to layout elements in a regular rhythm • Fluid/Flexible Grid • CSS3 Grid Layout
  • 22. Fixed Website Layouts A fixed website layout has a wrapper that is a fixed width, and the components inside it have either percentage widths or fixed widths no matter what screen resolution.
  • 23. Fluid Website Layouts In a fluid website layout the majority of the components inside have percentage widths, and thus adjust to the user’s screen resolution.
  • 24. Theme 25: Multiple Fixed Grids @media screen and min-width 320px and max-width 479px @media only screen and min-width 480px and max-width 767px @media only screen and max-width 767px @media only screen and min-width 768px and max-width 959px @media only screen and min-width 960px and max-width 1024px @media screen and min-width 1260px and max-width 1419px @media screen and min-width 1420px and max-width 1659px @media screen and min-width 1660px and max-width 1899px @media screen and min-width 1900px @media screen and min-width 2540px
  • 25. APEX Responsive Features • Declarative way to lay out regions and items on a page without manual css overrides (region attributes) • Allows implementation of other grid frameworks such as twitterbootstrap, 960 gs, etc. (template)
  • 27. Region Grid Layout Attributes
  • 29. Page Template Grid Attributes
  • 30. CSS Utility Classes Hide/show content depending on @media query
  • 32. Page Template Grid Definition #USED_COLUMNS_NUMBER# #USED_COLUMNS_ALPHA# #USED_COLUMNS_ALPHA_MINUS# #USED_COLUMNS_WORD# #USED_COLUMNS_PLURAL# #ROWS# #COLUMNS# #COLUMN_NUMBER# #COLUMN_ALPHA# #COLUMN_WORD# #COLUMN_PLURAL# #COLUMN_SPAN_NUMBER# #COLUMN_SPAN_ALPHA# #COLUMN_SPAN_WORD# #COLUMN_SPAN_PLURAL# #ATTRIBUTES# #FIRST_LAST_COLUMN_ATTRIBUTES# #CONTENT#
  • 33. RWD Considerations • Developing a responsive application can be time consuming and may require a deep understanding of grid layout, HTML and CSS. • Page size remains the same. You are loading the full HTML, CSS, and JS resources, even on mobile devices with limited broadband. • Responsive Web Design is just the tip of the iceberg.
  • 34. Theme 25 != Theme 42
  • 35. Beyond Theme 25 • Navigation • Data Tables • Leverage APEX condition feature with client property detection to optimize layout generation.
  • 36. The Grid, the Tab and the Ugly
  • 37. Responsive Tabs in Theme 42
  • 39. Show/Hide Column: Custom CSS @media (orientation:portrait) and (max-width: 640px) { [headers="CUST_STREET_ADDRESS1"], #CUST_STREET_ADDRESS1 { display: none; } } TH: table headerTD: table data/cell
  • 40. Categorizr http://rokitta.blogspot.nl/2013/05/how-are-you-categorizr-for-apex-part-2.html Client device property detection categorizr.isdesktop categorizr.istablet categorizr.ismobile categorizr.isportrait categorizr.islandscape
  • 41. Responsive Data Table Idea(l) Table Reflow, kind of like in APEX 5.0, but then for responsive …
  • 42. Demo
  • 43. Questions, Answers & Discussion http://rokitta.blogspot.com @crokitta christian@rokitta.nl http://www.themes4apex.com http://plus.google.com/u/0/102034735771815472470 http://nl.linkedin.com/in/rokit/