1. Trang chủ
  2. » Công Nghệ Thông Tin

The Future of CSS: Short Guide

134 165 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 134
Dung lượng 15,55 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. While most often used to style web pages and interfaces written in HTML and XHTML, the language can be applied to any kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone specification of the web and almost all web pages use CSS style sheets to describe their presentation. CSS is designed primarily to enable the separation of document content from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design).

Trang 1

mezzoblue.com/presentations/2011/fowdDAVE SHEA / NEW YORK / 8 NOV 2011

THEFUTUREOFCSS

(or, as much as will fit in 40 minutes)

Trang 3

Browsers &

Specs

Trang 5

Oct 2010

2011 Data Source: http://gs.statcounter.com/

Trang 6

Oct 2011 Oct 2010

2011 Data Source: http://gs.statcounter.com/

Trang 10

Original Presentation: http://goo.gl/81zP8

Trang 12

Word of Warning

Trang 13

24 Ways in

Wikipedia in

Sites in Question: 24ways.org & wikipedia.org

Trang 14

CSS3 Checkup

Trang 15

}

Trang 16

}

Trang 17

First/Last of Type

0 ; }

0 ; }

Trang 19

Forms - Required?

}

Trang 20

Forms - Optional?

}

Trang 22

border-­‐radius 5px ; }

Trang 23

border-­‐radius 5px ; }

Trang 24

Vendor Prefixes:

Time to drop them?

Trang 26

border-­‐radius 5px ; }

Trang 28

url (shadow-­‐top.gif) ,

}

Trang 30

; }

Trang 31

; }

Trang 32

100px 100px ; }

Trang 33

100px 100px ; }

Trang 34

; }

Trang 35

; }

Trang 36

repeat ; }

Trang 37

space ; }

Trang 38

round ; }

Trang 39

background-­‐image linear-­‐gradient ( top ,

);

}

Trang 40

linear-­‐gradient ( top #1e5799 0% #7db9e8 100%);

startColorstr = '#1e5799' endColorstr = '#7db9e8' ,GradientType=0

}

Trang 42

text-­‐shadow #000 ;

}

text-shadow

Trang 43

http://markdotto.com/playground/3d-text/

Trang 44

text-­‐shadow #000 ;

}

don’t do this

Trang 45

box-­‐shadow #000 ; }

Trang 46

box-­‐shadow inset #000 ; }

Trang 47

border-image

Trang 50

}

Trang 52

padding 20px ; }

Trang 53

width 100% ;

padding 20px ; }

Trang 55

width calc ( -­‐ 40px );

padding 20px ;

}

Trang 57

Jakarta Karachi Kinshasa Kolkata

Lagos Lima London Los

Angeles Manila Mexico City

Moscow Mumbai New York Osaka

Paris Rio de Janeiro

}

Trang 58

Jakarta Karachi Kinshasa Kolkata

Lagos Lima London Los Angeles Manila

Mexico City

Moscow Mumbai New York Osaka

Paris Rio de Janeiro

}

Trang 59

Jakarta Karachi Kinshasa Kolkata

Lagos Lima London Los Angel

Manila Mexico City

Moscow Mumbai New York Osaka

Paris Rio de Jan

Trang 60

}

Trang 61

}

Trang 62

; }

Trang 63

optimizeLegibility ; }

http://www.aestheticallyloyal.com/public/optimize-legibility/

Trang 64

common-­‐ligatures ; }

Trang 65

discretionary-­‐ligatures ; }

Trang 66

historical-­‐forms ; }

Trang 67

historical-­‐ligatures ; }

Trang 68

ItalicSerif , ;

swash ( flowing ); }

Trang 69

http://hacks.mozilla.org/2009/10/font-control-for-designers/

Trang 71

scale ( 2 ); }

Trang 72

scale ( 2 ); }

Trang 73

transform translate ( -­‐20px -­‐20px ); }

Trang 74

transform translate ( -­‐20px -­‐20px ); }

Trang 75

transform skewX ( 90 ); }

Trang 76

transform skewX ( 90 ); }

Trang 77

transform rotate ( 90 );

}

Trang 78

transform rotate ( 90 );

}

Trang 79

transform rotate ( 90 );

}

Trang 80

translate ( -­‐40px -­‐40px ),

rotate ( 10deg );

}

Trang 81

translate ( -­‐40px -­‐40px ),

rotate ( 10deg );

}

Trang 82

Shadow DOM

Trang 83

http://37signals.com/svn/posts/2609-customizing-web-forms-with-css3-and-webkit

Trang 87

none ; }

Trang 88

http://lab.simurai.com/css/umbrui/

Trang 89

class = "box" >

placeholder =

type = "email" placeholder =

type = "submit" value = "Send" >

</form>

Trang 91

background #333 ;

border none ;

none ; }

Trang 93

http://css-tricks.com/examples/WebKitScrollbars/

Trang 94

WebKit Extras

Trang 95

#3d8ba4 ;

plus-­‐darker ; }

Trang 97

1px black ; }

5px black ; }

rgba ( 0 , 0 , 0 , 0 );

1px rgba ( 0 , 0 , 0 , 0 5 );

rgba ( 0 , 0 , 0 , 0 25 ; }

Trang 98

url(/path/to/mask.png) ;

rgba ( 30 28 28 0 6 );

}

http://trentwalton.com/2011/05/19/mask-image-text/

Trang 99

below 5px

(

linear from ( transparent ),

color-­‐stop ( 0 5 transparent to ( white ) }

Trang 100

Where Next?

Trang 101

Floats Suck

Trang 102

New layout controls?

Trang 103

How about 4?

Trang 104

Multi-column

Trang 105

3 ;

3em ;

1px solid #CCC ; }

all ; }

100% ; }

Trang 106

all ; }

100% ; }

2 ;

3em ;

1px solid #CCC ; }

Trang 107

Regions

Trang 108

"main-­‐thread" ; }

Trang 109

"main-­‐thread" ; }

Trang 110

"main-­‐thread" ; }

Trang 111

http://www.netmagazine.com/features/future-css-layouts

Trang 112

Template Layout

&

Grid Layout

Trang 113

; }

a ; }

b ; }

c ; }

Trang 115

Bonus 5th Layout Method!

Trang 116

Flexible Box

Layout

Trang 120

So which one(s)?

Trang 123

CSS Shaders

Trang 124

http://www.adobe.com/devnet/html5/articles/css-shaders.html

Trang 125

CSS Variables

Trang 127

CSS

Trang 128

CSS 4?

Trang 129

bold ; }

normal ; }

Trang 130

100% ; }

}

Trang 131

bold ; }

normal ; }

Trang 132

bold ; }

Trang 133

Elements Out

Trang 134

Pseudo-mezzoblue.com/presentations/2011/fowdDAVE SHEA / NEW YORK / 8 NOV 2011

Thanks!

Ngày đăng: 02/07/2014, 21:31

TỪ KHÓA LIÊN QUAN