今天给大家分享一款纯css实现的垂直时间线效果。垂直时间线适合放在类似任务时间安排的网页上。该实现采用了蓝色作为主题色,界面效果还不错。一起看下效果图:
) o6 W3 ^9 h" `% W! |6 Q2 `* O8 Z% J
实现的代码。
: t) S/ u6 J$ R! |9 }- l1 Phtml代码:
7 s) @- F9 d. J) e2 N0 p5 `代码如下:) B# ]: Q: H3 b" {: ?
<div class=container>
3 o% s+ D, \* U: @7 ?<header class=clearfix>
: E2 l0 f( Y/ g- [% \7 z0 @& u4 H6 ~<span>blueprint <span class=bp-icon bp-icon-about data-content=the blueprints are a collection of basic and minimal website concepts, components, plugins and layouts with minimal style for easy adaption and usage, or simply for inspiration.>
0 z4 I/ ~' m' f! ^! @1 J. Y</span></span>" f, ^' [' d* T7 q0 K. X( V
<h1>8 Q" ^! u, M7 X. J9 ]
vertical timeline</h1>8 }5 Y6 s3 u1 e- V
<nav>- D% s; [( y& U( n# V7 N7 u: Z
<a target=_blank href=color=#000000>www.jb51.net</font>/article/9250 class=bp-icon bp-icon-prev" \: V4 z/ G/ ^# F
data-info=previous blueprint><span>previous blueprint</span></a>
! E; z7 u" p3 j( F6 B' R, Q( X<!--a href= _fcksavedurl= class=bp-icon bp-icon-next data-info=next blueprint><span>next blueprint</span></a-->
- ?( S# V# F+ n/ u<a target=_blank href= color=#000000>www.jb51.net</font>/article/9250 class=bp-icon bp-icon-drop
1 \) a b. h, A$ o8 tdata-info=back to the codrops article><span>back to the codrops article</span></a>' w1 p' O3 F2 k( y0 e; k5 ]$ Q; T" @
<a target=_blank href= color=#000000>www.jb51.net</font>/article/9250 class=bp-icon bp-icon-archive. H8 `/ \ z( W0 E: j+ B
data-info=blueprints archive><span>go to the archive</span></a>. A0 S$ P5 y( h
</nav>
0 A5 k) s" _( w0 G9 k</header>8 {' _8 @; f/ w5 Q; c K
<div class=main>
% m9 y2 T* S/ k7 Q7 r<ul class=cbp_tmtimeline>& Y7 E' W+ ^- q3 g5 F
<li>7 F/ ]8 i0 T, s% E% k: ^
<time class=cbp_tmtime datetime=2013-04-10 18:30>
" g) k. m4 D& j: g/ }* F& n<span>4/10/13</span> <span>18:30</span></time>
3 e: i; @- q1 j* O$ h9 |/ [<div class=cbp_tmicon cbp_tmicon-phone>
) z$ ~ E7 c2 T8 G</div>4 e3 L* Z* L; _; q
<div class=cbp_tmlabel>
% A; l2 o3 e+ u<h2>
4 U( w0 O: Q, Zricebean black-eyed pea</h2>
* ~& l( N- t6 X. m& _<p>
: O$ f1 n, s6 V9 ?winter purslane courgette pumpkin quandong komatsuna fennel green bean cucumber4 j; H0 A$ o3 X3 O, I8 h0 g' S/ v
watercress. pea sprouts wattle seed rutabaga okra yarrow cress avocado grape radish, t, [# u3 K! m5 V
bush tomato ricebean black-eyed pea maize eggplant. cabbage lentil cucumber chickpea
) {4 F3 M. Z# p- {1 p( Wsorrel gram garbanzo plantain lotus root bok choy squash cress potato summer purslane
, O1 e0 Z Q% e8 _5 i- w- Zsalsify fennel horseradish dulse. winter purslane garbanzo artichoke broccoli lentil/ P. }* s6 |& a6 H0 a
corn okra silver beet celery quandong. plantain salad beetroot bunya nuts black-eyed9 `. _; Z6 r1 d1 o
pea collard greens radish water spinach gourd chicory prairie turnip avocado sierra
) }5 _ f6 x. T- w& Rleone bologi.</p>) E7 T! C+ \2 I1 ]# h& v
</div>7 ~0 M& ~0 r8 u# `* M! h
</li>; o5 @ x: s" z- }
<li>
4 H( Y% e+ t7 s# U, P0 X: q1 ?<time class=cbp_tmtime datetime=2013-04-11t12:04>
5 h' L( U# _. D% _1 j( o<span>4/11/13</span> <span>12:04</span></time>+ k+ J# j( P: v3 X4 `: Y
<div class=cbp_tmicon cbp_tmicon-screen>
, z1 F6 y/ L% r5 [</div>
) P) Q" g) P5 d" v<div class=cbp_tmlabel>' q9 u$ f* k0 Y* c. j9 C
<h2>
* I5 p: f7 V* `8 [greens radish arugula</h2>
& X2 n5 T9 W8 v- B! j<p>: \6 @$ a2 t1 l) N1 M3 h& g1 o4 ?
caulie dandelion maize lentil collard greens radish arugula sweet pepper water spinach
0 b J9 j' s0 S. L8 vkombu courgette lettuce. celery coriander bitterleaf epazote radicchio shallot winter
3 x- t0 ], h! r$ Ppurslane collard greens spring onion squash lentil. artichoke salad bamboo shoot( t; V: j1 p/ l. c; N9 s0 T
black-eyed pea brussels sprout garlic kohlrabi.</p>
9 P/ y) A: M# Q. S; F `</div>
* G' \, Y( R3 I! E/ T- M4 d) u</li>/ b( n+ S( u8 o) D# H( G
<li>5 Z! v X- S5 Q9 Z. B9 {
<time class=cbp_tmtime datetime=2013-04-13 05:36>( b, L$ C5 s, L
<span>4/13/13</span> <span>05:36</span></time>
+ Y/ ~/ a. g( A2 g I<div class=cbp_tmicon cbp_tmicon-mail> J3 |# W) R$ }2 U1 P/ Z3 I
</div>/ u. j, M& F4 a
<div class=cbp_tmlabel>
9 ^0 t0 D2 f! D$ e<h2>
$ Q6 I- m1 g6 w. ` `sprout garlic kohlrabi</h2>
0 b, F: {! r* t% ]% y/ @2 ]$ \<p>; j% T4 _0 _- a# ^! o, S) h+ z) m
parsnip lotus root celery yarrow seakale tomato collard greens tigernut epazote6 G C2 U9 F# t5 c$ e. H: j# P; N- b
ricebean melon tomatillo soybean chicory broccoli beet greens peanut salad. lotus
6 q3 N- s2 I* j, droot burdock bell pepper chickweed shallot groundnut pea sprouts welsh onion wattle
! B; b: l9 ]1 i) }7 Cseed pea salsify turnip scallion peanut arugula bamboo shoot onion swiss chard.
1 C# m7 u/ y8 @; P @- \% yavocado tomato peanut soko amaranth grape fennel chickweed mung bean soybean endive% G6 C! T! J1 Q- O! ]# n. S
squash beet greens carrot chicory green bean. tigernut dandelion sea lettuce garlic; ]6 A: m# N$ i. I) z0 R0 @6 I0 Z
daikon courgette celery maize parsley komatsuna black-eyed pea bell pepper aubergine
# X. p. W* t2 u; B6 Gcauliflower zucchini. quandong pea chickweed tomatillo quandong cauliflower spinach
2 D8 O) p+ i* q% x( v2 T6 bwater spinach.</p>
) T5 Z/ D2 S& ~0 v</div>6 B" B# m6 N, s4 v8 W
</li>8 y1 D1 Y7 B' _- E8 e
<li> }4 o0 E& F8 i9 H- A
<time class=cbp_tmtime datetime=2013-04-15 13:15>. W- u- z* o# d4 s) V
<span>4/15/13</span> <span>13:15</span></time>2 m" k+ T8 E s9 z
<div class=cbp_tmicon cbp_tmicon-phone>
* Q" y' M# I9 g% S E0 o Q</div>; v1 v8 `# f/ a( j
<div class=cbp_tmlabel>1 i3 X4 I8 y$ F! }& I& w
<h2>$ o. i% \6 K' F
watercress ricebean</h2>
- X& |$ e! G, ?- F4 t3 m<p>
, G1 F( v* o1 X' n. k+ q$ H% x. qpeanut gourd nori welsh onion rock melon mustard jícama. desert raisin amaranth
4 `+ N9 i h8 q3 ^+ o+ Fkombu aubergine kale seakale brussels sprout pea. black-eyed pea celtuce bamboo
' }; u' [& l0 gshoot salad kohlrabi leek squash prairie turnip catsear rock melon chard taro broccoli( z5 ~3 `2 z. g2 J' B5 P
turnip greens. fennel quandong potato watercress ricebean swiss chard garbanzo.
7 c* k; n/ F- M/ ] Wendive daikon brussels sprout lotus root silver beet epazote melon shallot.</p>
) c( v" o6 Z# [. X. B8 b$ s% u( f W6 U, I</div>
+ Y k% }/ y" Z4 h9 n</li>' ^0 a m6 k3 }0 L: L) O8 n! w! l
<li>
! ^/ x0 U/ u3 |- Q<time class=cbp_tmtime datetime=2013-04-16 21:30>1 r! V @$ Y. v- b# E" {
<span>4/16/13</span> <span>21:30</span></time>
# o; ?3 |+ W) D" Y p# d0 a4 W<div class=cbp_tmicon cbp_tmicon-earth>
% F$ K) q0 {& Y% p2 i N4 {' n</div>
0 v* _2 v4 N) x# @. N# ~5 J5 M<div class=cbp_tmlabel>& R2 }8 q) d" V$ I. o* p1 P
<h2>* O6 o# f. B+ k+ X7 K! k1 h* X
courgette daikon</h2>
! e+ U" J$ E& D* p: C9 {<p>
" F' C3 `. b% |" v0 B/ gparsley amaranth tigernut silver beet maize fennel spinach. ricebean black-eyed# l f9 I E. j
pea maize scallion green bean spinach cabbage jícama bell pepper carrot onion corn e: S0 B: ~; e5 {; G% @
plantain garbanzo. sierra leone bologi komatsuna celery peanut swiss chard silver( c8 |7 p3 R" N* M! p: B
beet squash dandelion maize chicory burdock tatsoi dulse radish wakame beetroot.</p>! w x) G+ a4 Q! d, Y7 m+ ~3 F* |
</div>
0 V/ H- c5 @) r; d. u6 w2 x</li>- x& \, g; t0 m" a
<li> |" o! r0 _0 q7 T' D5 N
<time class=cbp_tmtime datetime=2013-04-17 12:11>
) \: b% e4 y$ m7 H5 L<span>4/17/13</span> <span>12:11</span></time>4 X' d v( B+ p: b. L* a& M$ S0 {2 F
<div class=cbp_tmicon cbp_tmicon-screen>
7 K. ^* z5 b6 |% W& }; n* I& e</div>% v; F% e: z* Z* k, h o8 \
<div class=cbp_tmlabel>9 J% K( T! w! ^3 C" I8 K
<h2>
! T5 H6 M6 q; h- V! ^greens radish arugula</h2>
" z4 W' q0 v* g% V<p>( V9 R+ _- l- {: G8 l
caulie dandelion maize lentil collard greens radish arugula sweet pepper water spinach
, T+ _- K& v. ~ H+ ?8 hkombu courgette lettuce. celery coriander bitterleaf epazote radicchio shallot winter# V( [! A/ p% p- @
purslane collard greens spring onion squash lentil. artichoke salad bamboo shoot
6 O3 H, s; D" q) d: l6 i" s5 q5 nblack-eyed pea brussels sprout garlic kohlrabi.</p>7 A" i- f4 o4 N5 R7 j2 y
</div>6 R( I! [& @# K/ p1 t+ D, a w6 i
</li>/ C) K3 D6 z$ p4 M) c
<li>7 {% H: [4 K: P* h
<time class=cbp_tmtime datetime=2013-04-18 09:56>
% T+ F9 r. [4 V. Z2 K3 B<span>4/18/13</span> <span>09:56</span></time>
" M. a* y& j7 \! T<div class=cbp_tmicon cbp_tmicon-phone>
! e+ V4 D* a: Z4 V2 \6 R</div>' v3 P; q# x2 N) {
<div class=cbp_tmlabel>+ {8 }' r& t2 }, L0 n
<h2>) F/ `! k+ }0 y5 b! a, o2 c
sprout garlic kohlrabi</h2>
/ h) `; A% s3 E. d7 I g<p> ` @. e' l' ?" U
parsnip lotus root celery yarrow seakale tomato collard greens tigernut epazote; Z( _0 z l# C+ a$ f: S$ j+ q
ricebean melon tomatillo soybean chicory broccoli beet greens peanut salad. lotus
9 o7 W( p, L! G& C* troot burdock bell pepper chickweed shallot groundnut pea sprouts welsh onion wattle
+ V7 S' l3 y* E1 yseed pea salsify turnip scallion peanut arugula bamboo shoot onion swiss chard. z1 E3 j" w0 B& n* q
avocado tomato peanut soko amaranth grape fennel chickweed mung bean soybean endive
6 F+ w3 K! n% F8 Y& }+ z2 _9 h% qsquash beet greens carrot chicory green bean. tigernut dandelion sea lettuce garlic
' {+ D; }: P# b$ F3 h) P4 xdaikon courgette celery maize parsley komatsuna black-eyed pea bell pepper aubergine
. q/ z" |4 G. Y/ i% W9 O! q. zcauliflower zucchini. quandong pea chickweed tomatillo quandong cauliflower spinach8 r5 U* b! d( \0 i3 L
water spinach.</p>) D' O0 n( j+ i% y6 I' r% Z8 h
</div>0 ?) b3 I4 t& g. i6 }+ L, A5 J
</li>
# R) o: \: J6 @& `/ {</ul>1 |7 R% \4 I) G4 I( x. G& }
</div>) t. ^$ r- ]% ]) n) j
</div>% e: P- t4 m: R( v) T9 K- j
. ^6 u/ y0 M8 Ucss代码:) y% y9 w% i$ j7 B2 R
" q1 Q6 `0 E# X3 b0 H% [" ~& E代码如下:- M& ], ?; E7 V& H
*, *:after, *:before
c8 T* e9 n& a: ]{1 }: H8 n6 q# A9 `6 o' w
-webkit-box-sizing: border-box;
+ k2 u k( M6 V! @! T. e-moz-box-sizing: border-box;
y2 K, r4 M6 z6 \. i% Tbox-sizing: border-box;' k1 }' w( P) S" L5 T- M
}' S2 t0 q0 A) T3 k
body, html+ Z# }/ |& F2 X9 r% l
{
8 O; U) Q2 f$ e/ d- V8 B0 ^font-size: 100%;0 u! A1 G! ~: s/ k+ N( t% ^3 y+ z1 i
padding: 0;9 \$ }1 g# t; U: m
margin: 0;
% y5 C9 D9 Y4 a: W' e8 ?& Z9 n0 s/ e}# e# t* Y, T& w0 m* _9 a% y+ g
/* clearfix hack by nicolas gallagher: <a href=> */
$ J! \; l( _2 b.clearfix:before, .clearfix:after
( r! a% r- Y" y) l- Z0 u0 o{5 ~' R- w7 q+ ^3 M6 F) ~9 Z0 N( Q
content: ;
l( O `! ]& udisplay: table;
% n0 D4 o }2 O0 U5 p+ Y& f}
) j) R n0 @7 F* h0 y' T8 k9 S.clearfix:after* v; S5 D$ _: D2 K" i' C
{+ k9 ^8 L) B7 A8 s: O# Y; z+ D1 }
clear: both;6 R! }" n C, @+ E8 B. D0 L3 \9 [
}2 d1 l" Z3 j- ~& ^) `1 j
body, V$ F0 o3 Y9 q! H4 K, E# Q
{4 {1 Q) B) ]( g9 ]9 `6 `2 l
font-family: 'lato' , calibri, arial, sans-serif;
' w6 J9 x% l9 G: i/ {color: #47a3da;& S3 c5 v1 l9 w! y5 d
}5 |/ V3 `3 D% A: p
a
9 j% x3 G7 s( D6 R3 D# x) ~{4 B/ X' `$ ]# W5 d
color: #f0f0f0;4 v* J/ E. f3 g; d7 |4 h6 f
text-decoration: none;( A9 Y8 e$ g! @
} j: _4 C9 r* O( B( C0 J
a:hover
. ?% D" L% o: K& I{
1 X% d. `" w- B& L2 j0 Icolor: #000;. s9 v4 d1 s$ |
}
+ t, N4 B! s! V4 {9 h2 s: h.main, .container > header
! P+ W4 w2 V- p5 X/ d, |{& i: r2 B; l' j; T, x' }
width: 90%;9 \- d+ g/ i$ k, x7 ?+ l
max-width: 69em;
4 u z j8 g: H3 R9 f7 {. s' {margin: 0 auto;
. }+ ^2 r) Q5 N( j; Y# fpadding: 0 1.875em 3.125em 1.875em;" V3 W( J9 {6 Y& |" B
}
. _7 @4 v* [- _+ C b W9 `- h$ V/ H3 Q.container > header8 U" j6 ] |! l ~! J6 K6 c9 R
{
6 x: r P- e1 Y; ^padding: 2.875em 1.875em 1.875em;7 \8 P! c& o5 |, h( {) {
}& l3 B. _ ?! D6 e
.container > header h12 s2 U& G2 F, k! E1 ]
{" A# I/ Q* [: P2 q
font-size: 2.125em;
' K1 n5 n% I6 n% Gline-height: 1.3;
u# G# @" h, h0 umargin: 0 0 0.6em 0;5 ]/ `* |/ `+ c4 S( e' t$ i
float: left;. L h$ {8 m! q/ S1 Y# ]$ _ N
font-weight: 400;6 O2 l) |% ]4 ?1 h: Y: F% i2 @/ H5 c: l
}
0 X# P W* I' K4 J' S) i.container > header > span3 t M, s2 h S3 E$ c& u
{5 z8 Y' t9 I6 Z% X& R
display: block;
6 D6 C# g% r. j" p+ Z6 {position: relative;( E7 B& r X' u/ ~
z-index: 9999;
* p% M. p0 K0 u% ~font-weight: 700;7 m2 q6 A) m# {. }
text-transform: uppercase;
# v& F: t, ^- `, K" fletter-spacing: 0.5em;
r, m( h5 L' E+ S$ }padding: 0 0 0.6em 0.1em;, J) L1 @* O1 {2 L) ]6 w) ^5 k
}
2 i. h2 r: E( V.container > header > span span:after
; f. C7 d/ L1 x- o; \; | T{$ v, f) }! p- U/ J8 t& z
width: 30px;9 N, r! b, b# k! E0 I: q! j% v
height: 30px;
5 Q% J, w& o5 _" X4 n- J" Kleft: -12px;
6 J! F% r: d( v1 J; V# ~font-size: 50%;
$ Z2 |/ \$ b* R/ }0 T* o, l0 Itop: -8px;9 k& q1 H' I5 Z3 V7 n
font-size: 75%;: a+ F- d3 |' g% w- C) [
position: relative;" H7 o8 v4 h8 n8 m4 c. G, U& c" \9 g% y
}
& f* k) H4 R$ q6 F9 b4 L, k& W7 ~$ j.container > header > span span:hover:before; K3 @( `" q4 I" B0 S
{9 {/ X- |4 \) F8 P
content: attr(data-content);
( i' S/ J4 V5 ?. N6 I4 C1 H ztext-transform: none;
6 M. C! o- `% m- Ltext-indent: 0;) x* \7 K$ z& e1 _4 P" o$ J8 v* k. l' B
letter-spacing: 0;/ E' E% l* w0 f- X
font-weight: 300;
* l7 b; R8 `6 zfont-size: 110%;5 F0 u1 d! I: [9 N( u
padding: 0.8em 1em;5 h- P+ o8 ` \: \( n
line-height: 1.2;
2 I( H) q+ f( v( Ptext-align: left;% r$ C8 w/ ] U' X
left: auto;
- }: d7 @4 D0 Emargin-left: 4px;! V8 b# Y" ]$ Q
position: absolute;# e7 b: N7 Q# ]3 {2 b- |' q/ a
color: #fff;
- q" t# y& D/ ^8 s- _background: #47a3da;) n( X2 H3 [1 `5 z9 J
}
+ @9 n5 v4 G* @4 m3 G* l7 B.container > header nav2 D1 y( v; N+ m. g6 u1 y" q
{
! R9 b# w% b' ?float: right;
, N }! |# V1 @- Xtext-align: center;# V* ^* S8 X b: G* F9 Z( @5 q
}
& |- B4 V: u& N7 e5 u4 B.container > header nav a
1 a: C. V5 c9 q B$ M{5 \3 X# S; P" t5 b
display: inline-block;
, i3 a) [+ k9 p! f% q7 Pposition: relative;
1 U* ^- u. q& P; F; Ytext-align: left;7 {, a: B0 S' H" K- e6 x0 n' N
width: 2.5em;5 x# m# D5 r2 ^- I/ n
height: 2.5em;
- @$ d g# B" M* \5 H# Z& |, mbackground: #fff;* `1 G# ~9 ?7 ~, w7 W( f& R4 [; T
border-radius: 50%;
1 _8 ~$ G, x" S7 y- @* Amargin: 0 0.1em;
1 B. I+ w; b& A% i( aborder: 4px solid #47a3da;! S4 N4 m; n5 d( C/ t5 U
}2 d# m Z) n, o1 @1 n6 b, T
.container > header nav a > span/ ^ n5 \8 n2 x, K; C7 M% b0 {: ?" |
{
H$ z3 ~9 Y( a% d+ g5 sdisplay: none;
2 B# L; g" h- U$ \}
3 o: g9 `# M' `.container > header nav a:hover:before
l! X' E$ i) f- h* b{
2 x; ~$ J' ?& K7 w$ ccontent: attr(data-info);0 ~; y6 w6 J+ l2 Y
color: #47a3da;
7 K1 {! \' r- N" W# Kposition: absolute;* Y- L2 Z, Q1 u' H
width: 600%;
" d( a5 a/ M0 S6 q8 {* Ztop: 120%;2 w. s( }, {2 D5 |3 u
text-align: right;
* W& c& J+ T7 a) K& a, g! q tright: 0;/ o& D7 U3 ~8 e. D! M. n C
pointer-events: none;
7 X' f- V' z- R" D8 `+ K0 R- a* G}( b- _# B: h4 _7 Z0 l( T
.container > header nav a:hover7 S( O6 {6 O) z) @2 ~' g7 [1 U6 h
{0 y9 I2 K' g( R; F5 f. @% R
background: #47a3da;
" w4 H+ ?& y+ j& X}
& T, s! M: l8 f2 N2 E* p.bp-icon:after
" l' O1 z9 S- E2 g5 a{5 P( Q. C5 v. t1 q
font-family: 'bpicons';, \4 }) |) Z# V! `2 `
speak: none;" N- D* s6 d& B) N- k9 J9 W% a7 [
font-style: normal;- X1 m- E' u) Z2 z
font-weight: normal;
; n7 }8 ]. w7 c0 D+ G6 mfont-variant: normal;
# f2 |9 X1 n n. \0 Z% g& dtext-transform: none;/ {- c8 r6 S& i a% a" ~
text-align: center;, P& Z. Q8 O% B& B- G
color: #47a3da;
2 W3 n% a! p" t8 x% _-webkit-font-smoothing: antialiased;' Y; L& e5 P7 w2 s/ V- [
}
6 Z% q2 F C5 o.container > header nav .bp-icon:after7 R- n1 ^* @: a/ I; o8 J5 r. V
{
! p! y! D4 g' e8 S: Lposition: absolute;+ u$ ~- S6 I1 J; E$ L8 c2 m
top: 0;
6 R5 ~+ Z7 a5 b- {+ Mleft: 0;
2 U9 i0 z, a! k# I- `6 R$ {width: 100%;$ M" `5 D& Q4 s% w/ K" j9 k! Q
height: 100%;
) m, c' K$ n6 O) P. i$ Y6 Oline-height: 2;% [1 S7 ?% a( Y
text-indent: 0;1 n5 y8 p' v, V* V; U+ s6 }0 I
}
3 v" @4 @5 B3 O1 F* w# M.container > header nav a:hover:after
! V1 z( P% I6 Z5 ?7 ~2 s{7 p/ t$ F+ a& {+ v3 p
color: #fff;
0 V% V9 B9 \4 g( F; t}- x: |- z: J4 f) O3 i, J; Y
.bp-icon-next:after, e- P5 s& V+ |6 ~7 @9 Q2 q( Z$ q
{
) b# t1 u9 R$ M$ E$ B3 B, o1 n7 v- U Dcontent: e000;& Z; B0 ~) o& ?) m- t
}
2 b3 B0 Q K4 l: o5 w" W1 N/ @.bp-icon-drop:after
: z5 ]% s, f3 @8 D7 ^8 x( M O{
3 X* N$ t2 H$ I1 F7 S2 v/ B7 E3 ncontent: e001;
' }- J0 c' G* ?, |+ c) \}
7 J8 c# N- ]: `.bp-icon-archive:after3 q2 b, C8 ]; R! ~) K! M" J5 q# p# B) |
{3 A b! d4 r8 i
content: e002;
$ \% v4 @* ?0 {' q$ c. T& a}
. E- Q% H5 n( f% Y* M% c8 y.bp-icon-about:after$ \' }( j! M/ [
{
- v$ y* e, z' R, b4 Z# D- m4 ~content: e003;
" O/ S5 M s+ {7 [8 T' m} Y2 s9 Z6 @; M9 q+ S$ Z
.bp-icon-prev:after
! s5 a2 l, i c( P6 k{8 O8 @' {/ A- c! \ C# g- E& j# V
content: e004;
" G% p) i+ Z* y4 {+ e3 N5 |( e" s4 z}
( V- f$ n* j- F% W c@media screen and (max-width: 55em)
# r0 \: t$ F5 t C* H9 `. h: n/ }{# d0 H+ n$ {3 x
.container > header h1, .container > header nav8 T6 M+ a- O t
{
5 c1 w$ d5 p, qfloat: none;
7 u% ^. c. V" J2 _6 H}5 w6 ^! }& G5 ]: w b
.container > header > span, .container > header h1+ A( n( c1 [) A1 ~2 i/ S
{* U1 d/ |4 f `7 l2 R* }! ]7 d
text-align: center;
. c' h1 [/ [: A: i* ^}8 M7 I# z+ ^% R1 Y) [; v* j: W f& ?
.container > header nav8 S- h$ x8 r+ z
{
. j" Z2 j! a2 @. G) s- I1 Imargin: 0 auto;: ~/ [4 W3 R% e# q: E0 ~: j
}* m2 V9 E8 k2 u
.container > header > span
( { N/ n, P9 {{
/ p4 n) Q1 s8 Ptext-indent: 30px;; p6 b0 m8 s9 E2 a, W- @- ]3 i
}3 ?. |. H2 [! o! j8 s0 E
} f5 [: t0 G- k, e
/* component.css */
8 G3 d) w& t& v8 m. j" M$ ~& K/* made with <a href=> */
& l0 X5 t8 J# ~$ K! k* B.cbp_tmtimeline1 K) Z. p8 Z% x K: l
{3 M; ]2 _) R" s* ?/ g$ w/ h' s
margin: 30px 0 0 0;! P0 Y; w f9 Y0 q2 F* `# c1 @& i
padding: 0;
~; ^) f9 n! {. U! V' E+ E; v. n6 I1 elist-style: none;
% {: m1 J) |* V; cposition: relative;' r) X7 @3 G; l d" o
}3 \3 D7 q1 U# S) h
/* the line */
5 U: B8 {( z0 i! N$ p.cbp_tmtimeline:before; }9 u9 T( k, T, h
{1 [' D, {) f* O5 D7 ]
content: '';
B) k' W8 U: u& P* O5 {) Eposition: absolute;3 ~& R$ O0 |) k2 r8 Q+ U! X
top: 0;
3 q: }$ O) M1 K4 Y3 gbottom: 0;
) a! a i+ ?$ n" i6 b, i/ X4 c ewidth: 10px;
: Q. Y$ e! A: U/ P& p8 ?6 n- |background: #afdcf8;# a. ]" A0 E, f
left: 20%;3 E" ]. B: n6 H% a& u' F ^- T+ y
margin-left: -10px;9 Y& j2 j! Q6 I8 z; X
}4 w6 R& F0 c) V9 ?+ ~. p
.cbp_tmtimeline > li' w, L; | j/ O( ~
{
3 T. q0 Y1 t" `0 q" J; o9 R& n8 Mposition: relative;9 p, f$ Z; k# s" d+ N8 A
}' k2 ?5 l4 o4 \- z. u$ b. n
/* the date/time */1 L: u* N }& l
.cbp_tmtimeline > li .cbp_tmtime
+ e& H9 u5 }0 n& f j{
1 t! N& I& c f" N; vdisplay: block;) A4 ]& V4 K; c7 d
width: 25%;
6 ?: h. E4 [4 s8 g q$ qpadding-right: 100px;
& d# n5 T; w. z3 \1 r: |7 i* I8 h. gposition: absolute;
5 D5 N7 |/ X3 p# \}0 r& Q! j; R, B. }$ G+ h
.cbp_tmtimeline > li .cbp_tmtime span
4 e* z z' I$ {! s) f- @, }{7 y& h. N3 A+ E1 E) \/ u. T
display: block;
1 ^* Y) U# t3 m7 G( xtext-align: right;
' ?, B- Q' j6 y}
2 Y% ^3 [5 [( |( j+ S.cbp_tmtimeline > li .cbp_tmtime span:first-child9 p: G0 ^/ L" B) C: k) c! h. L" C4 N
{
2 f' j+ u+ Z& Yfont-size: 0.9em;: S' D) p; n$ {; k$ Y% f
color: #bdd0db;
9 K6 J0 K9 n$ a$ }5 z0 \}8 {; i9 J7 D6 j2 o
.cbp_tmtimeline > li .cbp_tmtime span:last-child9 O( }6 o5 |# b" s! Y7 }
{0 |2 h# y: ~* K8 ^& Q) K, s
font-size: 2.9em;
4 i# X C+ r" O* p3 N6 u; j9 C. p0 Pcolor: #3594cb;
* A& T* }/ R+ w+ _2 X u}
s- r1 V7 T& {3 ~/ H d6 c! w- A+ ?5 t _.cbp_tmtimeline > li:nth-child(odd) .cbp_tmtime span:last-child
6 r! ~6 I& A$ l) j) |7 P{
' M) S2 d* f+ z7 D" dcolor: #6cbfee;
) x) b. G* _! R7 f}) c7 o" V2 m9 X9 c4 T, S) T2 g
/* right content */
' m; m( A0 m. ~ L6 Q.cbp_tmtimeline > li .cbp_tmlabel& _! l' R1 i/ u3 ?0 R% z2 o$ A
{
: A2 \9 N1 r* _; K$ P! wmargin: 0 0 15px 25%;6 K }9 l' A7 ] N) l- Z
background: #3594cb;6 v9 q, }3 D) [7 Z" {0 p7 m! W
color: #fff;
* Z6 p8 q; P) O9 E: Opadding: 2em;: k6 G' ^3 `! U1 T2 W+ B1 U: O
font-size: 1.2em;$ I f- s( y/ s U/ ~+ Z( {8 ~) [
font-weight: 300;
@( k* `; D% |) j2 ?line-height: 1.4;5 {# S( h9 _% e& T: j( O, Y% I; V* h
position: relative;
' `6 l1 E% @3 Iborder-radius: 5px;, _+ y( H- _$ B6 S, K" E
}
# C# t, {# I8 _, [( Z.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel+ g6 E, Y' h. c& p l
{3 v! |3 s* x& V5 I4 m
background: #6cbfee;
9 K9 O( M5 o* B: R9 u}
r1 X0 M7 W* c) b6 W.cbp_tmtimeline > li .cbp_tmlabel h20 x1 z8 i; J4 B4 K7 A |4 m( a
{& }% |6 [3 Z; Z4 F# d i
margin-top: 0px;
( X+ M& i$ R/ d0 mpadding: 0 0 10px 0;
$ A7 W- u7 j, s& i! q sborder-bottom: 1px solid rgba(255,255,255,0.4);
% m7 w& K/ ?% d' o/ G}% x h- }: f, D; W& P9 T7 c
/* the triangle */; s4 T. L' p2 U [
.cbp_tmtimeline > li .cbp_tmlabel:after- l' g4 @( o5 \$ Q
{
# @ R3 w# }- cright: 100%; v) h9 G9 ~ _5 }; `4 c
border: solid transparent;: { |8 }' M6 h6 r" n
content: ;) \$ v) k: S8 _5 z
height: 0;" x7 @) C/ Z) B! G `1 m
width: 0;
1 P% d" m; a, _$ A+ [position: absolute;
+ ^* Z3 t1 O' V; |( n; lpointer-events: none;* n+ z# }% q: J/ W
border-right-color: #3594cb;
9 X% x& g# j% s( `: _border-width: 10px;6 D" [! _# A$ h* R( `% u T R8 P/ }
top: 10px;4 P9 B$ }: C1 }# v$ {! P2 m
}+ u' w# N( F) b- v5 _" H
.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after
+ g2 H5 a) g) k{
% f" ]* C* v* D9 Y& Gborder-right-color: #6cbfee;
5 R: s" X! v! j}1 ^9 V4 v) F& K3 {
/* the icons */
2 A" T5 r% C) Z8 H6 W.cbp_tmtimeline > li .cbp_tmicon, E! V4 B z" M1 q
{4 w$ g: V9 m2 n: Q W
width: 40px;
1 L" A _' r2 q- ^height: 40px;+ }( K5 H" T& n1 s, k$ F: [
font-family: 'ecoico';
) `1 x( v2 c- t5 Zspeak: none;
9 f6 T8 J% s; U8 N# Q+ O) }font-style: normal;: j3 \ e$ c& f. v+ ]
font-weight: normal;
5 a- e6 w0 [; N" S6 q- {: H7 Xfont-variant: normal;5 m- r/ y1 O8 o+ R
text-transform: none;, d% L6 F: W5 }+ y8 q# O
font-size: 1.4em;
8 l3 H7 M! F1 n& Hline-height: 40px; m/ j- L+ K9 Y% X# s5 i' Z" R9 o
-webkit-font-smoothing: antialiased;- P, X! h& \* c( M( |: ~
position: absolute;
! @5 A8 \& H. [/ ?7 d! y( `$ Ucolor: #fff;4 t' |' L7 k" C
background: #46a4da;
3 s7 z+ `* `8 a- qborder-radius: 50%;+ }' g2 v5 M C
box-shadow: 0 0 0 8px #afdcf8;5 }2 ?* G( J. w* u( l( z* U- `
text-align: center;2 A0 ^% G7 O" a0 D
left: 20%;8 f* ~; n5 J$ Y+ W# C4 }/ j. \
top: 0;
4 F7 t& G q+ _2 o. Q1 p7 e- Ymargin: 0 0 0 -25px;
8 R+ v b. t% p9 ~}+ i+ p$ c+ a0 \4 w
.cbp_tmicon-phone:before
/ N7 k. \: R6 w; X9 I0 Q{
1 _6 z) {; S4 x' m7 h. ]5 kcontent: e000;( C4 `9 j7 u' t
}
) H* {0 O7 ]; e/ `: k5 u7 s.cbp_tmicon-screen:before$ Q- B3 T) K2 y
{
- J4 P% e6 U. econtent: e001;0 q) y* s. V2 R8 O
}1 L8 b/ a; D @: I0 Y6 H
.cbp_tmicon-mail:before
8 J4 E1 ]7 J! |5 O{
. E/ P! e1 H8 n) kcontent: e002;1 D5 ]& O: a' H# e/ S! `2 I6 m4 o' ~
}
1 `/ P% C$ l% L4 X- c0 r.cbp_tmicon-earth:before
6 ]" `# k% S K! i; j+ I6 q{
5 _* b3 P2 J, xcontent: e003;
3 h$ |/ P# U8 B6 a' i}3 ]/ M; L6 v3 w
/* example media queries */7 Y) N" i4 |6 L. t
@media screen and (max-width: 65.375em)
! V7 a K; a2 \6 H( z* F{" o: q4 D. B6 @( ^& }
.cbp_tmtimeline > li .cbp_tmtime span:last-child
7 M, ]; X0 {: v% f; G4 S! l{ T+ s+ I' K8 l( d
font-size: 1.5em;
" v3 X0 M4 C) a+ v0 E! ~; y- k}; }+ D% g9 _" m2 n! m* B5 d
}
. p- ?9 K0 ]' {$ `) M! Q' Z! K@media screen and (max-width: 47.2em)4 x3 G6 ]6 B) N( g; I/ G3 W
{
& \( T0 r: k) ? ?) x8 X.cbp_tmtimeline:before) N$ `* N9 g7 F9 A! ^: C3 J7 `( ^0 p% @
{# ^/ e# t/ ? k' v% b" L5 |
display: none;
5 |0 m( x( k& q}* x( p+ O, P; q3 h
.cbp_tmtimeline > li .cbp_tmtime
+ R! T! K+ e" A& z2 W1 ?{4 w- ?* L7 B0 y% ?
width: 100%;# j# q* q; ?3 Y" C
position: relative;
& V; Y8 S9 [0 f& `padding: 0 0 20px 0;9 a7 E8 Q4 e1 h
}# N0 E. E0 c! n' I4 L1 v, X
.cbp_tmtimeline > li .cbp_tmtime span
! L# P2 Z/ E2 x' D! u0 c{
o; t; a5 b* S: D& N' V7 ~ ptext-align: left;
7 o+ r& t1 h6 j5 t}9 r* o2 @: b0 b2 o0 M4 b
.cbp_tmtimeline > li .cbp_tmlabel
0 H: \! C* j- [/ q{
* j/ v$ H) s: c. vmargin: 0 0 30px 0;
6 s# j2 z' h4 Hpadding: 1em;( R/ z. a1 W: {# s" W0 U
font-weight: 400;
% b" ]* k4 F y) j/ O) H% W1 B8 b" }font-size: 95%;( V! m. k' b3 _, s
}) }0 t0 z+ h$ F$ a0 u
.cbp_tmtimeline > li .cbp_tmlabel:after( V% i1 o4 q6 E0 ~' _
{; M9 S! c- I7 f8 p- M% X5 ^- W
right: auto;' r: x- Z: u# A$ v
left: 20px;
& g8 Q) I1 J0 Vborder-right-color: transparent;2 I% v9 |' a6 U/ P/ K
border-bottom-color: #3594cb;
& g6 i0 }2 Z4 J8 O: Wtop: -20px;& H& ] ?3 L/ p6 ]( k2 [1 F7 n0 F
}& \. j- l. M6 N0 o+ g8 X; T3 H& G! c7 L) \
.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after
Y4 v5 b4 E# ~. a/ B{- J1 f3 o. X. H+ e0 [
border-right-color: transparent;, y- G" i2 i# t/ P% V% m P+ v$ w! D
border-bottom-color: #6cbfee;# H) t2 @+ ?; e. {
}
( F( ]/ ^2 Q s; ^! J.cbp_tmtimeline > li .cbp_tmicon
% x9 q; o$ ]3 f; h+ t# ^{
7 t$ d" ~: _4 N- |1 W0 `# X% hposition: relative;! ~; `' j3 H% ]/ ` s
float: right;* @, s, J& P. U: J" _7 H/ k& C
left: auto;
T! {" A' i( T$ xmargin: -55px 5px 0 0px;
/ d5 y3 x8 ~* j# k2 z( V* U}) l0 s, A$ s5 g
}! [9 o, t$ ~- @# k
4 h; c* A7 u# Y( G! q& \* X' I更多网页制作信息请查看: 网页制作 |
|