Summary Files Commits Branches @commit @diff @stats
path: root / src / timelines.less
diff options
context:
space:
mode:
Commit366657e5cc167f4936712096029907fcb017937d (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-04-07 14:53:02 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-04-07 14:53:02 +0800
Files0480a573c39ade7f59996717d5eac57691baf27a /src/timelines.less
Spectre-Dark-Gruvbox-366657e5cc167f4936712096029907fcb017937d.tar
Spectre-Dark-Gruvbox-366657e5cc167f4936712096029907fcb017937d.tar.gz
Spectre-Dark-Gruvbox-366657e5cc167f4936712096029907fcb017937d.zip
Parentdd0d24915895319e20d7fa4007362931e859c161 (diff)
Add Timelines code
1 files changed, 55 insertions, 0 deletions
-rw-r--r--src/timelines.less55
diff --git a/src/timelines.less b/src/timelines.less
new file mode 100644
index 0000000..a1d53ae
--- /dev/null
+++ b/src/timelines.less
@@ -0,0 +1,55 @@
+// Timelines
+.timeline {
+ .timeline-item {
+ display: flex;
+ margin-bottom: 2.4rem;
+ position: relative;
+ &::before {
+ background: @border-color;
+ content: "";
+ height: 100%;
+ left: 1.1rem;
+ position: absolute;
+ top: 2.4rem;
+ width: .2rem;
+ }
+
+ .timeline-left {
+ flex: 0 0 auto;
+ }
+
+ .timeline-content {
+ flex: 1 1 auto;
+ padding: .2rem 0 .2rem @layout-padding-lg;
+ }
+
+ .timeline-icon {
+ border-radius: 50%;
+ color: @light-color;
+ display: block;
+ height: 2.4rem;
+ text-align: center;
+ width: 2.4rem;
+ &::before {
+ border: @icon-border-width solid @primary-color;
+ border-radius: 50%;
+ content: "";
+ display: block;
+ height: .8rem;
+ left: .8rem;
+ position: absolute;
+ top: .8rem;
+ width: .8rem;
+ }
+
+ &.icon-lg {
+ background: @primary-color;
+ font-size: 1.6rem;
+ line-height: 2rem;
+ &::before {
+ content: none;
+ }
+ }
+ }
+ }
+}