Slide 1

Slide 1 text

3FTQPOTJWF8FC%FTJHO΋͏Ұ౓ Satoshi Kikuchi )5.-K8FCϓϥοτϑΥʔϜ෦ୈճษڧձ

Slide 2

Slide 2 text

͠ͳ΍͔Ͱ͋Δ͜ͱ

Slide 3

Slide 3 text

Flexible/Scalable/Readable

Slide 4

Slide 4 text

Responsive Web Design

Slide 5

Slide 5 text

2011- 2018

Slide 6

Slide 6 text

RWD in 2011 •Fluid Image •Fluid Grid •Media Query

Slide 7

Slide 7 text

RWD in 2018 •Fluid Image - Res Image •Fluid Grid - Flex&grid •Media Query-͔ΘΓͳ͠

Slide 8

Slide 8 text

More MQ More CSS
 MORE PROBLEMS

Slide 9

Slide 9 text

Կ͔Β$44Λهड़

Slide 10

Slide 10 text

grid Vertical Rhythm Color Padding Flexbox

Slide 11

Slide 11 text

Font Size

Slide 12

Slide 12 text

How do you efficiently scale up / down any UI component (e.g. a slider or calendar) and keep all the proportions intact—without fiddling with width, height or border-radius manually? — @simurai

Slide 13

Slide 13 text

Ͳ͏΍ͬͨΒɺ͍͍ͪͪखΛ ͘Θ͑ͳ͍Ͱ΋6*ͷίϯϙʔωϯτΛ ࣗ༝ʹେ͖ͨ͘͠Γখͨ͘͞͠Γ Ͱ͖ΔͷͩΖ͏͔ɻ Š!TJNVSBJ

Slide 14

Slide 14 text

By sneaking a Trojan horse into your components. We use rem for components “root” and em for sub- parts of the components. Then, by adjusting the font-size of the root, we adjust all size-related CSS properties of a component at once. 
 — @simurai

Slide 15

Slide 15 text

τϩΠͷ໦അͷΑ͏ʹɺ SPPUʹ࢓ֻ͚Λ͘͠Ήͷͩɻ SFNΛSPPUʹ͍Ε͜Έɺ FNͰίϯϙʔωϯτΛ࡞੒͢Δͷ ͩɻͦ͏͢Ε͹ɺSPPUͷϑΥϯτα ΠζΛ͍͡Ε͹શ෦มΘΔɻ
 Š!TJNVSBJ

Slide 16

Slide 16 text

https://goo.gl/HeKpbB

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

https://goo.gl/PakhMh

Slide 19

Slide 19 text

vw,vh,vmin,vmax

Slide 20

Slide 20 text

https://www.yunbitsoftware.com/blog/2017/06/22/viewport-units-css-que-es/

Slide 21

Slide 21 text

https://www.yunbitsoftware.com/blog/2017/06/22/viewport-units-css-que-es/

Slide 22

Slide 22 text

https://www.yunbitsoftware.com/blog/2017/06/22/viewport-units-css-que-es/

Slide 23

Slide 23 text

https://www.yunbitsoftware.com/blog/2017/06/22/viewport-units-css-que-es/

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

.button__delete{ border-radius: 50%; display: table-cell; color: white; background: red; font-size: 1.25rem; width: 7.5vw; height: 7.5vw; line-height: 0; cursor: pointer; }

Slide 27

Slide 27 text

.button__delete{ border-radius: 50%; display: table-cell; color: white; background: red; font-size: 1.25rem; width: 7.5vim; height: 7.5vim; line-height: 0; cursor: pointer; }

Slide 28

Slide 28 text

.button__delete{ border-radius: 50%; display: table-cell; color: white; background: red; font-size: 1.25rem; width: calc (???); height: calc (???); line-height: 0; cursor: pointer; }

Slide 29

Slide 29 text

.button__delete{ border-radius: 50%; display: table-cell; color: white; background: red; font-size: 1.25rem; width: calc (1cm + 1.5vmin); height: calc (1cm + 1.5vmin); line-height: 0; cursor: pointer; }

Slide 30

Slide 30 text

DN ࢦͷԡͤΔൣғͷ࠷খ஋

Slide 31

Slide 31 text

1cm ࢦͷԡͤΔൣғͷ࠷খ஋

Slide 32

Slide 32 text

Google Material Desgin

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Apple Human Interface Guideline

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

ࣗ෼Ͱߟ͑ͯ ࢼߦࡨޡ

Slide 37

Slide 37 text

Fluid Type

Slide 38

Slide 38 text

html { font-size: 2vw; }?

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

min-font-size

Slide 42

Slide 42 text

html { font-size: calc(1em + 1vw); }

Slide 43

Slide 43 text

Image credit: Mike Riethmueller

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

https://www.smashingmagazine.com/

Slide 46

Slide 46 text

Image credit: Jake Wilson, https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Image credit: Jake Wilson

Slide 49

Slide 49 text

Image credit: Jake Wilson, https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/ https://www.smashingmagazine.com/author/jake-wilson/

Slide 50

Slide 50 text

Image credit: Jake Wilson, https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/ https://www.smashingmagazine.com/author/jake-wilson/

Slide 51

Slide 51 text

Image credit: Jake Wilson, https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/ https://www.smashingmagazine.com/author/jake-wilson/

Slide 52

Slide 52 text

m = slope
 x = current viewport width b = the y-intercept
 y = resulting font size Image credit: Jake Wilson, https://www.smashingmagazine.com/2017/05/fluid-responsive-typography-css-poly-fluid-sizing/ https://www.smashingmagazine.com/author/jake-wilson/

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

Image credit: Mike Riethmueller

Slide 55

Slide 55 text

GPOUTJ[F\࠷খͷϑΥϯταΠζ ࠷େͷϑΥϯταΠζ࠷খͷϑΥϯταΠζ WX࠷খͷεΫϦʔϯαΠζʢ࠷େͷεΫϦʔϯαΠζ࠷খͷεΫϦʔϯαΠζʣʩ

Slide 56

Slide 56 text

https://ia.net/topics/the-web-is-all-about-typography-period/

Slide 57

Slide 57 text

Line-height

Slide 58

Slide 58 text

Image credit: Tim Brown, CSS Locks, https://blog.typekit.com/2016/08/17/flexible-typography-with-css-locks/

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

Image credit: Tim Brown, CSS Locks, https://blog.typekit.com/2016/08/17/flexible-typography-with-css-locks/

Slide 61

Slide 61 text

େ͖͍෯খ͍͞෯

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

Line-height:1.5

Slide 64

Slide 64 text

CSS Variables

Slide 65

Slide 65 text

More MQ More CSS
 MORE PROBLEMS

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

:root{ --colour #ACE7EF } body{ background var(—colour) }

Slide 69

Slide 69 text

:root{ --colour #ACE7EF } @media (min-width 320px) :root{ --colour #A56CC1 } body{ background var(—colour) }

Slide 70

Slide 70 text

http://www.modularscale.com/

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

:root { /* scale for 1.2 */ --ms-small-1: 1rem; --ms-small-2: 1.2rem; --ms-small-3: 1.44rem; --ms-small-4: 1.728rem; --ms-small-5: 2.074rem; --ms-small-6: 2.488rem; /* scale for 1.33 */ --ms-large-1: 1rem; --ms-large-2: 1.333rem; --ms-large-3: 1.777rem; --ms-large-4: 2.369rem; --ms-large-5: 3.157rem; --ms-large-6: 4.209rem; } IUUQTXXXNBEFCZNJLFDPNBVXSJUJOHVTJOHDTTWBSJBCMFT

Slide 73

Slide 73 text

/* Small scale for small screens: */ h1 { font-size: var(--ms-small-6); } h2 { font-size: var(--ms-small-5); } h3 { font-size: var(--ms-small-4); } h4 { font-size: var(--ms-small-3); } h5 { font-size: var(--ms-small-2); } h6 { font-size: var(--ms-small-1); } /* And large scale for larger screens */ @media screen and (min-width: 800px) { h1 { font-size: var(--ms-large-6); } h2 { font-size: var(--ms-large-5); } h3 { font-size: var(--ms-large-4); } h4 { font-size: var(--ms-large-3); } h5 { font-size: var(--ms-large-2); } h6 { font-size: var(--ms-large-1); } } IUUQTXXXNBEFCZNJLFDPNBVXSJUJOHVTJOHDTTWBSJBCMFT

Slide 74

Slide 74 text

font-size01:12px

Slide 75

Slide 75 text

h1 { font-size: var(--font-size-6); } h2 { font-size: var(--font-size-5); } h3 { font-size: var(--font-size-4); } h4 { font-size: var(--font-size-3); } h5 { font-size: var(--font-size-2); } h6 { font-size: var(--font-size-1); } IUUQTXXXNBEFCZNJLFDPNBVXSJUJOHVTJOHDTTWBSJBCMFT

Slide 76

Slide 76 text

:root { /* scale for 1.2 */ --font-size-1: 1rem; --font-size-2: 1.2rem; --font-size-3: 1.44rem; --font-size-4: 1.728rem; --font-size-5: 2.074rem; --font-size-6: 2.488rem; } @media screen and (min-width: 800px) { :root { /* scale for 1.33 */ --font-size-1: 1rem; --font-size-2: 1.333rem; --font-size-3: 1.777rem; --font-size-4: 2.369rem; --font-size-5: 3.157rem; --font-size-6: 4.209rem; } IUUQTXXXNBEFCZNJLFDPNBVXSJUJOHVTJOHDTTWBSJBCMFT

Slide 77

Slide 77 text

/* σϑΥϧτͷࢦఆ */ :root { --font-size: 1.2rem; --background-color: #fff; --text-color: #222; } /* asideͷࢦఆ */ aside { --font-size: 1rem; --background-color: #222; --text-color: #fafafa; } /* ಉ݁͡Ռ */ main, aside { font-size: var(--font-size); color: var(--text-color); background-color: var(--background-color); }

Slide 78

Slide 78 text

Logic Fold $44ϑΝΠϧͷ্ͷํʹ·ͱΊͯྑ͘࢖͏΋ͷΛ͓͍͓ͯ͘

Slide 79

Slide 79 text

:root { --font-family: tondo_rg, sans-serif; --font-family-light: tondo_lt, sans-serif; --font-family-bold: tondo_bd, sans-serif; --font-weight: 400; --font-size-xxx-display: 8vmin; --font-size-xx-display: 4.11rem; --font-size-x-display: 3.653rem; --font-size-display: 3.247rem; --font-size-xxxx-large: 2.887rem; --font-size-xxx-large: 2.027rem; --font-size-xx-large: 1.802rem; --font-size-x-large: 1.602rem; --font-size-large: 1.424rem; --font-size-medium: 1.266rem; --font-size: 1.125rem; --font-size-small: 1rem; --font-size-x-small: .889rem; --font-size-xx-small: .79rem; --lineheight-text: 1.5; --lineheight-heading: 1.3; --color-background: #fff; --color-background-selection: #f0f2f3; --color-border: #cacfd5; --color-text-default: #0b1016; --color-text-alt: #95a0ac;

Slide 80

Slide 80 text

One more thing

Slide 81

Slide 81 text

ch unit

Slide 82

Slide 82 text

ch=character Relative to width of the "0" (zero)

Slide 83

Slide 83 text

No content

Slide 84

Slide 84 text

Ch for form

Slide 85

Slide 85 text

Relative to width of the "0" (zero) จࣈͷେ͖͞ͰɺDIΛՄมͤ͞Δ͜ͱ͕Ͱ͖Δ

Slide 86

Slide 86 text

ϑΥʔϜͷೖྗϑΟʔϧυ͕௕͗͢Δ

Slide 87

Slide 87 text

ೖྗ͢ΔཁૉʹΑͬͯϑΥʔϜͷ௕͞Λ͔͑Δ

Slide 88

Slide 88 text

DI͸ઈର୯ҐͳͷͰɺ͸ΈͰΔͷͰ஫ҙ

Slide 89

Slide 89 text

ch&min-width

Slide 90

Slide 90 text

45ch = ೔ຊޠͩͱ26จࣈ͙Β͍

Slide 91

Slide 91 text

45ch = robotoͩͱ32จࣈ͙Β͍

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

@support

Slide 94

Slide 94 text

@supports (display: flex) { div { display: flex; } } https://developer.mozilla.org/en-US/docs/Web/CSS/%40supports

Slide 95

Slide 95 text

@supports not (display: flex) { div { float: right; } } https://developer.mozilla.org/en-US/docs/Web/CSS/%40supports

Slide 96

Slide 96 text

Atomic Designʢ೔ຊޠ൛ʣ ࣌୅ʹ໊Λͷ͜͞ͳ͍͔ʁ ຋༁ऴྃɾߍਖ਼ऀΛٻΉ NBOUBOHT!HNBJMDPN Brad Frost ஶ

Slide 97

Slide 97 text

No content