nitter/src/sass/timeline.scss

163 lines
2.8 KiB
SCSS
Raw Normal View History

2019-09-13 08:44:21 +00:00
@import '_variables';
2019-09-13 17:57:27 +00:00
.timeline-container {
@include panel(100%, 600px);
2019-09-13 08:44:21 +00:00
}
2019-09-13 17:57:27 +00:00
.timeline {
background-color: var(--bg_panel);
2019-09-13 08:44:21 +00:00
2019-10-13 18:17:12 +00:00
> div:not(:first-child) {
border-top: 1px solid var(--border_grey);
2019-09-13 08:44:21 +00:00
}
}
2019-09-13 17:57:27 +00:00
.timeline-header {
2020-06-01 00:22:22 +00:00
width: 100%;
background-color: var(--bg_panel);
2019-09-13 08:44:21 +00:00
text-align: center;
padding: 8px;
2019-09-13 08:44:21 +00:00
display: block;
font-weight: bold;
margin-bottom: 5px;
2020-06-01 00:22:22 +00:00
box-sizing: border-box;
2019-09-13 20:24:58 +00:00
button {
float: unset;
}
2019-09-13 08:44:21 +00:00
}
2020-06-01 00:22:22 +00:00
.timeline-banner img {
width: 100%;
}
.timeline-description {
font-weight: normal;
}
2019-09-13 08:44:21 +00: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 08:44:21 +00:00
padding: 0;
}
.tab-item {
flex: 1 1 0;
text-align: center;
margin-top: 0;
a {
border-bottom: .1rem solid transparent;
color: var(--tab);
2019-09-13 08:44:21 +00:00
display: block;
padding: 8px 0;
text-decoration: none;
font-weight: bold;
&:hover {
text-decoration: none;
}
&.active {
border-bottom-color: var(--tab_selected);
color: var(--tab_selected);
2019-09-13 08:44:21 +00:00
}
}
&.active a {
border-bottom-color: var(--tab_selected);
color: var(--tab_selected);
2019-09-20 13:48:14 +00:00
}
&.wide {
flex-grow: 1.2;
2022-01-06 14:21:42 +00:00
flex-basis: 50px;
2019-09-13 08:44:21 +00:00
}
}
.timeline-footer {
background-color: var(--bg_panel);
2019-09-13 08:44:21 +00:00
padding: 6px 0;
}
.timeline-protected {
text-align: center;
p {
margin: 8px 0;
}
h2 {
color: var(--accent);
2019-09-13 08:44:21 +00:00
font-size: 20px;
font-weight: 600;
}
}
.timeline-none {
color: var(--accent);
2019-09-13 08:44:21 +00:00
font-size: 20px;
font-weight: 600;
text-align: center;
}
.timeline-end {
background-color: var(--bg_panel);
color: var(--accent);
2019-09-13 08:44:21 +00:00
font-size: 16px;
font-weight: 600;
text-align: center;
}
.show-more {
background-color: var(--bg_panel);
2019-09-13 08:44:21 +00:00
text-align: center;
padding: .75em 0;
2019-09-13 17:57:27 +00:00
display: block !important;
2019-09-13 08:44:21 +00:00
a {
background-color: var(--darkest_grey);
2019-09-13 08:44:21 +00:00
display: inline-block;
height: 2em;
padding: 0 2em;
line-height: 2em;
&:hover {
background-color: var(--darker_grey);
2019-09-13 08:44:21 +00:00
}
}
}
2019-09-13 17:57:27 +00:00
2019-10-13 18:17:12 +00:00
.top-ref {
background-color: var(--bg_color);
2019-10-13 18:17:12 +00: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 18:17:12 +00:00
}
&::before {
transform: rotate(180deg) translateY(-1px);
}
}
}
2019-09-13 17:57:27 +00:00
.timeline-item {
overflow-wrap: break-word;
border-left-width: 0;
min-width: 0;
padding: .75em;
display: flex;
2019-09-19 01:19:06 +00:00
position: relative;
2019-09-13 17:57:27 +00:00
}