linear timeline;
This commit is contained in:
1 parent
b9d52b5327
commit
00e9d65789
2 files changed
+8
-120
No files matched your search
@@ -22,12 +22,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.body{
|
.body{
|
||||||
padding: 20px 20px 50px;
|
|
||||||
// padding: 12px 0 0;
|
|
||||||
// h2{
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
a{
|
a{
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-114
@@ -1,103 +1,21 @@
|
|||||||
.timeline{
|
.timeline{
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 0 50px;
|
display: block;
|
||||||
|
width: 75%;
|
||||||
&:before{
|
margin: 0 auto 50px;
|
||||||
content: '';
|
|
||||||
width: 10px;
|
|
||||||
height: 10px;
|
|
||||||
position: absolute;
|
|
||||||
background-color: black;
|
|
||||||
top: 0;
|
|
||||||
left: calc(50% - 6px);
|
|
||||||
border-radius: 50%;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-record{
|
.timeline-record{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
|
||||||
|
|
||||||
.head, .body{
|
|
||||||
position: relative;
|
|
||||||
width: 50%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head {
|
|
||||||
padding: 25px 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
padding: 0 20px;
|
margin: 0 0 50px;
|
||||||
}
|
|
||||||
|
|
||||||
&.left{
|
img{
|
||||||
flex-flow: row-reverse;
|
margin: 0 auto;
|
||||||
|
display: block;
|
||||||
.body{
|
min-height: 500px;
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head{
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body:after{
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 12px;
|
|
||||||
height: calc(100% - 98px);
|
|
||||||
top: 98px;
|
|
||||||
right: 0;
|
|
||||||
background: url(/graphics/timeline-line.png) no-repeat right;
|
|
||||||
background-size: 2px 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head:after{
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 12px;
|
|
||||||
height: 98px;
|
|
||||||
top: 0;
|
|
||||||
left: -12px;
|
|
||||||
background: url(/graphics/timeline-arrow-left.png) no-repeat;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right{
|
|
||||||
flex-flow: row;
|
|
||||||
|
|
||||||
.body{
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head{
|
|
||||||
text-align: right;
|
|
||||||
margin: 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.body:after{
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 100px;
|
|
||||||
height: calc(100% - 98px);
|
|
||||||
top: 98px;
|
|
||||||
left: -12px;
|
|
||||||
background: url(/graphics/timeline-line.png) no-repeat;
|
|
||||||
background-size: 2px 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head:after{
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
width: 12px;
|
|
||||||
height: 98px;
|
|
||||||
top: 0;
|
|
||||||
left: calc(100% - 2px);
|
|
||||||
background: url(/graphics/timeline-arrow-right.png) no-repeat;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -134,30 +52,6 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.left {
|
|
||||||
display: block;
|
|
||||||
|
|
||||||
.body:after, .head:after {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right {
|
|
||||||
display: block;
|
|
||||||
|
|
||||||
.body:after, .head:after {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.left .head {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.right .head {
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user