timeline update: ES6, components, refactoring, other

This commit is contained in:
tmshv committed 2016-02-22 16:15:42 +03:00
1 parent 761938b17a
commit 73a3361376
20 files changed
+315 -238

No files matched your search

@@ -0,0 +1,42 @@
@import "../variables";
$user-size: 40px;
$half-margin: $single-margin/2;
$image-border-radius: .35em;
$image-border-thickness: $half-margin;
.timeline-record-instagram {
}
.timeline-record-instagram__head {
margin-bottom: $single-margin;
}
.timeline-record-instagram__body {
img {
width: 100%;
height: auto;
box-sizing: border-box;
border: $image-border-thickness solid white;
box-shadow: $white-shadow;
border-radius: $image-border-radius;
margin-bottom: $single-margin;
}
}
.timeline-record-instagram__user {
padding-top: $half-margin;
span {
margin-left: $half-margin;
line-height: $user-size;
vertical-align: top;
}
img {
width: $user-size;
height: $user-size;
border-radius: 50%;
}
}
@@ -0,0 +1,31 @@
@import "../variables";
.timeline-record-post {
}
.timeline-record-post__head {
margin-bottom: $single-margin;
}
.timeline-record-post__body{
padding-left: $single-margin;
ul{
list-style: none;
padding-left: $single-margin;
}
p, ul{
margin-bottom: $single-margin/2;
}
img {
width: 100%;
height: auto;
box-sizing: border-box;
border: .5em solid white;
box-shadow: 0 .2em 0.35em rgba(0, 0, 0, 0.35);
border-radius: .35em;
margin: 0 0 1em;
}
}
+11
View File
@@ -0,0 +1,11 @@
@import "../variables";
.timeline__record {
margin: 0 0 $double-margin;
.date {
//margin: 0 0 0.45em;
//font-size: 0.75em;
color: $light-color;
}
}
+39
View File
@@ -0,0 +1,39 @@
@import "../variables";
.timeline{
display: flex;
flex-direction: column;
margin: 0 auto $double-margin;
}
.timeline__footer{
display: flex;
justify-content: center;
button.more{
position: relative;
top: -2px;
width: 100px;
height: 40px;
border: 2px solid $dark-color;
padding: 0 10px;
background: none;
font-size: 14pt;
&:hover{
background: gainsboro;
}
&:active{
top: 0;
}
}
}
@media screen and (max-device-width: $desktop-width) {
.timeline {
//width: 98%;
}
}