Introduction to HTML / CSS (part 6)

Содержание

Слайд 2

Слайд 3

1 HTML5 Features New Doctype

1

HTML5 Features

New Doctype

Слайд 4

1 2 HTML5 Features New Doctype Inputs

1

2

HTML5 Features

New Doctype

Inputs

Слайд 5

1 2 HTML5 Features New Doctype Inputs input type: color date

1

2

HTML5 Features

New Doctype

Inputs


input type:
color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

Слайд 6

1 2 HTML5 Features New Doctype Inputs input type: color date

1

2

HTML5 Features

New Doctype

Inputs


input type:
color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

3

Local

Storage
Слайд 7

1 2 HTML5 Features New Doctype Inputs input type: color date

1

2

HTML5 Features

New Doctype

Inputs


input type:
color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

3

Local

Storage

"localStorage sets fields on the domain. Even when you close the browser, reopen it, and go back to the site, it remembers all fields in localStorage."

Слайд 8

1 2 4 HTML5 Features New Doctype Inputs input type: color

1

2

4

HTML5 Features

New Doctype

Inputs


input type:
color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

3

Local

Storage

"localStorage sets fields on the domain. Even when you close the browser, reopen it, and go back to the site, it remembers all fields in localStorage."

Semantic tags

Слайд 9

5 HTML5 Features Audio Support

5

HTML5 Features

Audio Support

Слайд 10

HTML5 Features Audio Support Download this file. 5

HTML5 Features

Audio Support

Слайд 11

5 6 HTML5 Features Audio Support Video Support Download this file.

5

6

HTML5 Features

Audio Support

Video Support

Слайд 12

5 6 HTML5 Features Audio Support Video Support Download this file.

5

6

HTML5 Features

Audio Support

Video Support

Слайд 13

5 6 HTML5 Features Audio Support Video Support Download this file.

5

6

HTML5 Features

Audio Support

Video Support

/>
Download this file.

7

Data Attribute

Your browser is old. Download this video instead.



Слайд 14

HTML5 Features Data Attribute: Don't Touch Me h1 { position: relative;

HTML5 Features

Data Attribute:

Don't Touch Me


h1 { position: relative; }
h1:hover { color: transparent; }
h1:hover:after {
content: attr(data-hover-response);
color: black;
position: absolute;
left: 0;
}
Слайд 15

Слайд 16

http://css3generator.com/

http://css3generator.com/

Слайд 17

New Features in CSS 3 [attr^=val] value starting with val [attr$=val]

New Features in CSS 3

[attr^=val] value starting with val
[attr$=val] value ending

with the suffix val
[attr*=val] value containing the substring val
Слайд 18

New Features in CSS 3 [attr^=val] value starting with val [attr$=val]

New Features in CSS 3

[attr^=val] value starting with val
[attr$=val] value ending

with the suffix val
[attr*=val] value containing the substring val

.box-rounded{
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}

Слайд 19

New Features in CSS 3 [attr^=val] value starting with val [attr$=val]

New Features in CSS 3

[attr^=val] value starting with val
[attr$=val] value ending

with the suffix val
[attr*=val] value containing the substring val

.box-rounded{
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}

.box-border{
border-image:url(border-image.png) 100 100 round;
border:30px solid transparent;
}

Слайд 20

New Features in CSS 3 [attr^=val] value starting with val [attr$=val]

New Features in CSS 3

[attr^=val] value starting with val
[attr$=val] value ending

with the suffix val
[attr*=val] value containing the substring val

.box-rounded{
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
}

.box-border{
border-image:url(border-image.png) 100 100 round;
border:30px solid transparent;
}

.shady-block{
-webkit-box-shadow: 5px 10px 5px 7px #444444;
box-shadow: 5px 10px 5px 7px #444444;
}

Слайд 21

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a; }

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

Слайд 22

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a; }

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

Слайд 23

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}
Слайд 24

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}
Слайд 25

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}

.columns{
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}

Слайд 26

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}

.columns{
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}

Слайд 27

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}

.columns{
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}

Слайд 28

New Features in CSS 3 .shady-text{ text-shadow: 2px 3px 3px #0a0a0a;

New Features in CSS 3

.shady-text{
text-shadow: 2px 3px 3px #0a0a0a;
}

.bg-transparent{
background-color:

rgba(33, 44, 55, 0.7);
color: rgba(33, 44, 55, 0.7);
}

.columns{
-moz-column-count: 2;
-moz-column-gap: 20px;
-webkit-column-count: 2;
-webkit-column-gap: 20px;
column-count: 2;
column-gap: 20px;
}

Слайд 29

Слайд 30

Twitter Bootstrap

Twitter Bootstrap

Слайд 31

Save time Customizable Consistency Docs talk! Bootstrap allows for immediate quality

Save time

Customizable

Consistency

Docs talk!

Bootstrap allows for immediate quality work, which makes it

great for facilitating efficient, outcome-oriented design communication.

Reasons to Use Twitter Bootstrap

Слайд 32

Browser and device support

Browser and device support

Слайд 33

Browser and device support Bootstrap is released under the MIT license.

Browser and device support

Bootstrap is released under the MIT license.
It requires

you to include the license and copyright notice in your works.
Слайд 34

bootstrap/ ├── css/ │ ├── bootstrap.css │ ├── bootstrap.min.css │ ├──

bootstrap/
├── css/
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── bootstrap-theme.css
│ └── bootstrap-theme.min.css
├── js/

├── bootstrap.js
│ └── bootstrap.min.js
└── fonts/
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
└── glyphicons-halflings-regular.woff

Precompiled Bootstrap

Слайд 35

Bootstrap Template Hello, world! Basic template






initial-scale=1">
Bootstrap Template







Hello, world!








Basic template

Слайд 36

HTML5 doctype Global settings

HTML5 doctype

Global settings

Слайд 37

HTML5 doctype Mobile first Global settings

HTML5 doctype

Mobile first

Global settings

Слайд 38

3 HTML5 doctype Mobile first Normalize.css Global settings

3

HTML5 doctype

Mobile first

Normalize.css

Global settings

Слайд 39

3 4 HTML5 doctype Mobile first Normalize.css Global settings Containers

3

4

HTML5 doctype

Mobile first

Normalize.css

Global settings

Containers

Слайд 40

3 4 HTML5 doctype Mobile first Normalize.css ... ... Global settings Containers

3

4

HTML5 doctype

Mobile first

Normalize.css



...


class="container-fluid">
...

Global settings

Containers

Слайд 41

3 4 HTML5 doctype Mobile first Normalize.css ... ... Global settings Containers LESS

3

4

HTML5 doctype

Mobile first

Normalize.css



...


class="container-fluid">
...

Global settings

Containers

LESS

Слайд 42

Grid system (12 columns)

Grid system (12 columns)

Слайд 43

Grid system (12 columns)

Grid system (12 columns)

Слайд 44

Grid system (12 columns) /* Small devices (tablets, 768px and up)

Grid system (12 columns)

/* Small devices (tablets, 768px and up) */
@media

(min-width: @screen-sm-min) { ... }
/* Medium devices (desktops, 992px and up) */
@media (min-width: @screen-md-min) { ... }
/* Large devices (large desktops, 1200px and up) */
@media (min-width: @screen-lg-min) { ... }
Слайд 45

Example: Mobile, tablet, desktop

Example: Mobile, tablet, desktop

Слайд 46

Example: Mobile, tablet, desktop .col-xs-12 .col-sm-6 .col-md-8 .col-xs-6 .col-md-4 .col-xs-6 .col-sm-4 .col-xs-6 .col-sm-4 .col-xs-6 .col-sm-4

Example: Mobile, tablet, desktop


.col-xs-12 .col-sm-6 .col-md-8

.col-xs-6 .col-md-4



.col-xs-6 .col-sm-4

.col-xs-6 .col-sm-4



.col-xs-6 .col-sm-4


Слайд 47

Offsetting columns

Offsetting columns

Слайд 48

Offsetting columns .col-md-4 .col-md-4 .col-md-offset-4 .col-md-3 .col-md-offset-3 .col-md-3 .col-md-offset-3 .col-md-6 .col-md-offset-3

Offsetting columns


.col-md-4

.col-md-4 .col-md-offset-4



class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3

.col-md-3 .col-md-offset-3



.col-md-6 .col-md-offset-3


Слайд 49

Glyphicons

Glyphicons

Слайд 50

Glyphicons Star

Glyphicons


Слайд 51

Glyphicons Star

Glyphicons


Слайд 52

Components Dropdowns Button groups Button dropdowns Input groups Navs Navbar Breadcrumbs

Components

Dropdowns
Button groups
Button dropdowns
Input groups
Navs
Navbar
Breadcrumbs
Pagination
Labels
Badges

Jumbotron
Page header
Thumbnails
Alerts
Progress bars
Media object
List group
Panels
Responsive embed
Wells

Слайд 53

Java Script solutions Transitions Modal Dropdown Scrollspy Tab Tooltip Popover Alert Button Collapse Carousel

Java Script solutions

Transitions
Modal
Dropdown
Scrollspy
Tab
Tooltip
Popover
Alert
Button
Collapse
Carousel

Слайд 54

Java Script solutions Transitions Modal Dropdown Scrollspy Tab Tooltip Popover Alert

Java Script solutions

Transitions
Modal
Dropdown
Scrollspy
Tab
Tooltip
Popover
Alert
Button
Collapse
Carousel

Plugins can be included individually (using Bootstrap's individual *.js

files), or all at once (using bootstrap.js or the minified bootstrap.min.js).