Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Designing Evolution: Elements
Search
Dan Donald
June 27, 2014
Technology
2
210
Designing Evolution: Elements
Talk for Responsive Day Out 2 in Brighton, June 2014
Dan Donald
June 27, 2014
Tweet
Share
More Decks by Dan Donald
See All by Dan Donald
Adding the foundations after the house has been built: Design systems at Auto Trader
hereinthehive
0
98
Designing Evolution
hereinthehive
0
170
Reactive Web Design
hereinthehive
1
770
Designing for Context: Reactive Web Design
hereinthehive
2
690
Other Decks in Technology
See All in Technology
いろんなものと両立する Kaggleの向き合い方
go5paopao
2
980
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
6
880
組み込みLinuxの時系列
puhitaku
4
1k
今、始める、第一歩。 / Your first step
yahonda
2
680
形式手法の 10 メートル手前 #kernelvm / Kernel VM Study Hokuriku Part 7
ytaka23
5
750
地理情報データをデータベースに格納しよう~ GPUを活用した爆速データベース PG-Stromの紹介 ~
sakaik
1
110
AI機能の開発運用のリアルと今後のリアル
akiroom
0
250
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
270
Redmine 6.0 新機能評価ガイド
vividtone
0
270
State of Open Source Web Mapping Libraries
dayjournal
0
200
LINEヤフー株式会社における音声言語情報処理AI研究開発@SP/SLP研究会 2024.10.22
lycorptech_jp
PRO
2
280
20241108_CS_LLMMT
shigashiyama
0
250
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Speed Design
sergeychernyshev
24
600
Testing 201, or: Great Expectations
jmmastey
38
7.1k
A Tale of Four Properties
chriscoyier
156
23k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Building Adaptive Systems
keathley
38
2.3k
Code Review Best Practice
trishagee
64
17k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Transcript
Designing Evolution: Elements Dan Donald @hereinthehive Monday, 30 June 14
Monday, 30 June 14
What does it mean to be flexible? http://mrsnespysworld.blogspot.co.uk/2010/07/8-uses-for-rubber-band.html Monday, 30
June 14
Responsive web design is a recipe for managing and constraining
the innate fluidity of the web. Monday, 30 June 14
Open to interpretation Monday, 30 June 14
Nature of breakpoints Monday, 30 June 14
Nature of breakpoints Device or content-oriented breakpoints? Monday, 30 June
14
Device agnostic http://pivotallabs.com/an-introduction-to-qa-at-xtreme-labs/ Monday, 30 June 14
Universality Monday, 30 June 14
What do we know? Monday, 30 June 14
What do we know? Mozilla/5.0 (Macintosh; Intel Mac OS X
10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 http://wurfl.io Monday, 30 June 14
When do we know it? Monday, 30 June 14
What capabilities help us make good decisions? Monday, 30 June
14
Modularity http://sunrise-theme.myshopify.com/products/giant-lego-bricks Monday, 30 June 14
Atomic design http://patternlab.io @brad_frost Monday, 30 June 14
Monday, 30 June 14
Element queries? Media query Element query Monday, 30 June 14
What can my parent / containing element do? Monday, 30
June 14
• write normal CSS • minimal JS to calculate •
use minimum values & ranges Go & follow @itsaljones! Spike work Monday, 30 June 14
CSS ‘Trigger Points’ [data-width~="20em"] [data-width~="30-40em"] Monday, 30 June 14
Runs on load, resize & orientation change Measures the parent
of modules flagged to watch (could be the module itself) Javascript Monday, 30 June 14
Uses a regex to scrape the CSS for fuzzy selectors
Adds ‘data-triggers’ to our mark-up Build Monday, 30 June 14
<div class="column-2" data-width="18em 24em 32em"> <div class="headlines" data-triggers="18,24,32,40-50"> automated build
process javascript Monday, 30 June 14
[data-width~="32em"] .headlines { float:right; width:32%; } Monday, 30 June 14
.headlines[data-width~="32em"] { float:right; width:32%; } .headlines.w32em { float:right; width:32%; }
Size of container or module? Monday, 30 June 14
Monday, 30 June 14
/** * Trigger Points **/ [data-width~="10em"] .mod_colours { background-color: red
} [data-width~="20em"] .mod_colours { background-color: yellow } [data-width~="30em"] .mod_colours { background-color: pink } [data-width~="40em"] .mod_colours { background-color: lightgreen } [data-width~="50em"] .mod_colours { background-color: purple } [data-width~="60em"] .mod_colours { background-color: orange } [data-width~="70em"] .mod_colours { background-color: blue } Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Start with the most primitive form Monday, 30 June 14
How could the layout of a module evolve? Monday, 30
June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
Monday, 30 June 14
• what are you trying to say? • would capabilities
change this? • need more assets? • communication is everything Monday, 30 June 14
When do we look to the parent or the viewport?
Monday, 30 June 14
@media all and (min-width: 30em) { [data-width~="32em"] .headlines { float:right;
width:32%; } } Monday, 30 June 14
Progressive enhancement Monday, 30 June 14
? So what’s interesting about element queries? Monday, 30 June
14
Positives http://uxrepo.com/icon/thumbs-up-by-font-awesome Monday, 30 June 14
Negatives http://uxrepo.com/icon/thumbs-down-by-font-awesome Monday, 30 June 14
Should we use them now? Monday, 30 June 14
We need to let go. Create ecosystems not pages. Monday,
30 June 14
As creators on the web, we shape the future of
the web Monday, 30 June 14
Thanks @hereinthehive @fluxflexibility kippt.com/hereinthehive/ element-query-resources Monday, 30 June 14