Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Build a Better Bootstrap NDC Oslo 2014
Slide 2
Slide 2 text
Tim G. Thomas
Slide 3
Slide 3 text
frog design Austin, TX
Slide 4
Slide 4 text
@timgthomas.com
Slide 5
Slide 5 text
@timgthomas.com
Slide 6
Slide 6 text
#betterbootstrap
Slide 7
Slide 7 text
What’s wrong with Bootstrap? CSS Frameworks
Slide 8
Slide 8 text
What’s wrong with Bootstrap? Relatively large CSS Frameworks
Slide 9
Slide 9 text
What’s wrong with Bootstrap? CSS Frameworks
Slide 10
Slide 10 text
What’s wrong with Bootstrap? Relatively large Similar appearance CSS Frameworks
Slide 11
Slide 11 text
What’s wrong with Bootstrap? CSS Frameworks
Slide 12
Slide 12 text
What’s wrong with Bootstrap? CSS Frameworks
Slide 13
Slide 13 text
What’s wrong with Bootstrap? Relatively large Similar appearance Difficult to extend CSS Frameworks
Slide 14
Slide 14 text
What’s wrong with Bootstrap? ! .panel-default ! > .panel-heading ! + .panel-collapse ! .panel-body CSS Frameworks Source: cssstats.com
Slide 15
Slide 15 text
What’s wrong with Bootstrap? bit.ly/ndc-bb-spec CSS Frameworks
Slide 16
Slide 16 text
What’s wrong with Bootstrap? grep -r '!important' bootstrap.css | wc -l ! > 43 CSS Frameworks
Slide 17
Slide 17 text
What’s wrong with Bootstrap? Relatively large Similar appearance Difficult to extend Not targeted for your needs CSS Frameworks
Slide 18
Slide 18 text
What’s wrong with Bootstrap? http:/ /bit.ly/ndc-bb-fw CSS Frameworks
Slide 19
Slide 19 text
Challenges
Slide 20
Slide 20 text
Tools
Slide 21
Slide 21 text
Tools: Style Tiles styletil.es
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
Tools: SASS sass-lang.com
Slide 24
Slide 24 text
Tools: SMACSS smacss.com
Slide 25
Slide 25 text
Tools: Harp harpjs.com
Slide 26
Slide 26 text
Tools: Harp DEMO
Slide 27
Slide 27 text
Tools: Broccoli github.com/broccolijs/broccoli
Slide 28
Slide 28 text
Challenges
Slide 29
Slide 29 text
Challenge: Page Layout
Slide 30
Slide 30 text
Challenge: Page Layout Floated elements
Slide 31
Slide 31 text
Challenge: Page Layout Content Content
Slide 32
Slide 32 text
Challenge: Page Layout Content Content .content { float: left; }
Slide 33
Slide 33 text
Challenge: Page Layout Content Content Container Container
Slide 34
Slide 34 text
Container Challenge: Page Layout Content Content .content { float: left; } Container
Slide 35
Slide 35 text
Container Challenge: Page Layout Content Content .container { overflow: hidden; } .content { float: left; } Container
Slide 36
Slide 36 text
Challenge: Page Layout DEMO
Slide 37
Slide 37 text
Challenge: Columns
Slide 38
Slide 38 text
Challenge: Columns Floated elements Box model adjustments
Slide 39
Slide 39 text
Challenge: Columns Padding Content Border Margin 500px ?
Slide 40
Slide 40 text
Challenge: Columns .content { box-sizing: border-box; } Padding Content Border Margin 500px ?
Slide 41
Slide 41 text
Challenge: Columns atozcss.com
Slide 42
Slide 42 text
Challenge: Columns DEMO
Slide 43
Slide 43 text
Challenge: Columns bit.ly/ndc-bb-cols1 bit.ly/ndc-bb-cols2
Slide 44
Slide 44 text
Challenge: Columns .column { box-sizing: border-box; } ! .column-1 { width: 10%; } .column-2 { width: 20%; } .column-3 { width: 30%; } .column-4 { width: 40%; } .column-5 { width: 50%; } .column-6 { width: 60%; } .column-7 { width: 70%; } .column-8 { width: 80%; } .column-9 { width: 90%; }
Slide 45
Slide 45 text
Challenge: Columns Floated elements Box model adjustments SASS functions
Slide 46
Slide 46 text
Challenge: Columns $columns: 10; ! @for $col from 1 through ($columns - 1) { .column-#{$col} { width: (100% / $columns) * $col; } }
Slide 47
Slide 47 text
Challenge: Columns bit.ly/ndc-bb-sass
Slide 48
Slide 48 text
Challenge: Multiple Screens
Slide 49
Slide 49 text
Challenge: Multiple Screens Floated elements Box model adjustments SASS functions Media queries
Slide 50
Slide 50 text
Challenge: Multiple Screens @media (max-width: 360px) { /* ... */ }
Slide 51
Slide 51 text
Challenge: Multiple Screens DEMO
Slide 52
Slide 52 text
Challenge: Forms
Slide 53
Slide 53 text
Challenge: Forms Floated elements Box model adjustments SASS functions Media queries Pseudoelements
Slide 54
Slide 54 text
Challenge: Forms Cantilever
Slide 55
Slide 55 text
Challenge: Forms input { visibility: hidden; } ! Cantilever
Slide 56
Slide 56 text
Challenge: Forms input { visibility: hidden; } input:before { /* ... */ } Cantilever
Slide 57
Slide 57 text
Challenge: Forms input { visibility: hidden; } input:before { /* ... */ } input:checked:after { /* ... */ } Cantilever ✔
Slide 58
Slide 58 text
Challenge: Forms DEMO
Slide 59
Slide 59 text
Challenges: Questions?
Slide 60
Slide 60 text
Behavior
Slide 61
Slide 61 text
Behavior: KendoUI kendoui.com
Slide 62
Slide 62 text
Behavior: Stateful CSS timgthomas.com
Slide 63
Slide 63 text
Behavior: Polymer polymer-project.org
Slide 64
Slide 64 text
Behavior: Polymer
(Modal Title) Close
Slide 65
Slide 65 text
Behavior: Polymer
Slide 66
Slide 66 text
Behavior: Ember {{modal-dialog title='(Modal Title)'}} {{/modal-dialog}}
Slide 67
Slide 67 text
Visual Style
Slide 68
Slide 68 text
Visual Style: Adobe Edge Web Fonts edgewebfonts.adobe.com
Slide 69
Slide 69 text
Visual Style: Kuler kuler.adobe.com
Slide 70
Slide 70 text
Visual Style: Design Seeds design-seeds.com
Slide 71
Slide 71 text
Visual Style: Global Colors $olive: rgb(183, 195, 114); ! $headings: $olive; ! h1 { color: $headings; }
Slide 72
Slide 72 text
Visual Style: Global Colors $olive: rgb(183, 195, 114); ! $headings: $olive; ! h1 { color: $headings; } ! h2 { color: lighten($headings, 20%); }
Slide 73
Slide 73 text
Visual Style: Color Functions $headings ! lighten($headings, 20%) ! darken($headings, 20%) ! mix($terraCotta, $olive)
Slide 74
Slide 74 text
Sharing
Slide 75
Slide 75 text
Sharing: Style Tiles styletil.es
Slide 76
Slide 76 text
Sharing: StyleDocco jacobrask.github.io/styledocco
Slide 77
Slide 77 text
Sharing: Demo Site
Slide 78
Slide 78 text
Review
Slide 79
Slide 79 text
bit.ly/ndc-bb-slides bit.ly/ndc-bb-code
Slide 80
Slide 80 text
Thanks for coming! @timgthomas