timeline update: ES6, components, refactoring, other
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
@import "../variables";
|
||||
|
||||
.timeline{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 70%;
|
||||
margin: 0 auto 2em;
|
||||
margin: 0 auto $double-margin;
|
||||
}
|
||||
|
||||
.timeline-footer{
|
||||
.timeline__footer{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -15,7 +16,7 @@
|
||||
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 2px solid black;
|
||||
border: 2px solid $dark-color;
|
||||
padding: 0 10px;
|
||||
background: none;
|
||||
|
||||
@@ -31,8 +32,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-device-width: 31.25em) {
|
||||
@media screen and (max-device-width: $desktop-width) {
|
||||
.timeline {
|
||||
width: 98%;
|
||||
//width: 98%;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,3 +3,7 @@
|
||||
@import "./components/team-member-proifile";
|
||||
@import "./components/main-menu";
|
||||
@import "./components/breadcrumbs";
|
||||
@import "./components/timeline";
|
||||
@import "./components/timeline-record";
|
||||
@import "./components/timeline-record-post";
|
||||
@import "./components/timeline-record-instagram";
|
||||
@@ -1,34 +0,0 @@
|
||||
.timeline-record {
|
||||
.instagram {
|
||||
margin: 0 auto;
|
||||
max-width: 640px;
|
||||
|
||||
.head {
|
||||
width: 100%;
|
||||
margin: 0 0 .5em;
|
||||
|
||||
.user {
|
||||
span {
|
||||
vertical-align: top;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.body 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
.timeline-record {
|
||||
margin: 0 0 3em;
|
||||
.date {
|
||||
margin: 0 0 0.45em;
|
||||
font-size: 0.75em;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user