nitter/src/sass/timeline.scss

152 lines
2.6 KiB
SCSS
Raw Normal View History

2019-09-13 10:44:21 +02:00
@import '_variables';
2019-09-13 19:57:27 +02:00
.timeline-container {
@include panel(100%, 600px);
2019-09-13 10:44:21 +02:00
}
2019-09-13 19:57:27 +02:00
.timeline {
background-color: var(--bg_panel);
2019-09-13 10:44:21 +02:00
2019-10-13 20:17:12 +02:00
> div:not(:first-child) {
border-top: 1px solid var(--border_grey);
2019-09-13 10:44:21 +02:00
}
}
2019-09-13 19:57:27 +02:00
.timeline-header {
background-color: var(--bg_panel);
2019-09-13 10:44:21 +02:00
text-align: center;
padding: 8px;
2019-09-13 10:44:21 +02:00
display: block;
font-weight: bold;
margin-bottom: 5px;
2019-09-13 22:24:58 +02:00
button {
float: unset;
}
2019-09-13 10:44:21 +02:00
}
.tab {
align-items: center;
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0 0 5px 0;
background-color: var(--bg_panel);
2019-09-13 10:44:21 +02:00
padding: 0;
}
.tab-item {
flex: 1 1 0;
text-align: center;
margin-top: 0;
a {
border-bottom: .1rem solid transparent;
color: inherit;
display: block;
padding: 8px 0;
text-decoration: none;
font-weight: bold;
&:hover {
text-decoration: none;
}
&.active {
border-bottom-color: var(--accent);
color: var(--accent);
2019-09-13 10:44:21 +02:00
}
}
&.active a {
border-bottom-color: var(--accent);
color: var(--accent);
2019-09-20 15:48:14 +02:00
}
&.wide {
flex-grow: 1.2;
2019-09-13 10:44:21 +02:00
}
}
.timeline-footer {
background-color: var(--bg_panel);
2019-09-13 10:44:21 +02:00
padding: 6px 0;
}
.timeline-protected {
text-align: center;
p {
margin: 8px 0;
}
h2 {
color: var(--accent);
2019-09-13 10:44:21 +02:00
font-size: 20px;
font-weight: 600;
}
}
.timeline-none {
color: var(--accent);
2019-09-13 10:44:21 +02:00
font-size: 20px;
font-weight: 600;
text-align: center;
}
.timeline-end {
background-color: var(--bg_panel);
color: var(--accent);
2019-09-13 10:44:21 +02:00
font-size: 16px;
font-weight: 600;
text-align: center;
}
.show-more {
background-color: var(--bg_panel);
2019-09-13 10:44:21 +02:00
text-align: center;
padding: .75em 0;
2019-09-13 19:57:27 +02:00
display: block !important;
2019-09-13 10:44:21 +02:00
a {
background-color: var(--darkest_grey);
2019-09-13 10:44:21 +02:00
display: inline-block;
height: 2em;
padding: 0 2em;
line-height: 2em;
&:hover {
background-color: var(--darker_grey);
2019-09-13 10:44:21 +02:00
}
}
}
2019-09-13 19:57:27 +02:00
2019-10-13 20:17:12 +02:00
.top-ref {
background-color: var(--bg_color);
2019-10-13 20:17:12 +02:00
border-top: none !important;
.icon-down {
font-size: 20px;
display: flex;
justify-content: center;
text-decoration: none;
&:hover {
color: var(--accent_light);
2019-10-13 20:17:12 +02:00
}
&::before {
transform: rotate(180deg) translateY(-1px);
}
}
}
2019-09-13 19:57:27 +02:00
.timeline-item {
overflow-wrap: break-word;
border-left-width: 0;
min-width: 0;
padding: .75em;
display: flex;
2019-09-19 03:19:06 +02:00
position: relative;
2019-09-13 19:57:27 +02:00
}