lbry.tech/app/sass/partials/_github-feed.scss

194 lines
3.4 KiB
SCSS
Raw Permalink Normal View History

2018-07-12 17:21:42 +02:00
.github-feed {
2018-10-13 00:29:53 +02:00
border-bottom: 1px solid $lbry-gray-1;
2018-07-12 17:21:42 +02:00
font-size: 0.8rem;
grid-area: github;
position: relative;
@media (min-width: 1301px) {
padding-top: 3.7rem;
}
@media (min-width: 1001px) and (max-width: 1300px) {
padding-top: 2.95rem;
}
@media (min-width: 1001px) {
2019-02-15 23:45:25 +01:00
border-left: 1px solid $lbry-gray-1;
2018-07-12 17:21:42 +02:00
padding-right: 10%;
2018-10-06 00:46:08 +02:00
padding-bottom: 2rem;
2018-07-12 17:21:42 +02:00
padding-left: 2rem;
}
@media (max-width: 1000px) {
padding-top: 2rem;
padding-bottom: 2rem;
}
2018-08-29 01:57:18 +02:00
@media (min-width: 901px) and (max-width: 1000px) {
2018-07-12 17:21:42 +02:00
padding-right: 1rem;
padding-left: 1rem;
}
@media (max-width: 900px) {
padding-right: 2rem;
padding-left: 2rem;
}
@media (max-width: 700px) {
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
}
2018-10-06 00:46:08 +02:00
h3,
h5 {
2018-07-12 17:21:42 +02:00
@media (min-width: 1001px) {
text-align: center;
}
}
h3 {
letter-spacing: 0.1rem;
line-height: 1;
text-transform: uppercase;
@media (min-width: 1301px) {
2018-10-06 00:46:08 +02:00
width: calc(100% - (1rem + 5%));
2018-07-12 17:21:42 +02:00
top: 2.15rem; left: 0;
2018-10-13 00:29:53 +02:00
color: rgba($lbry-black, 0.045);
2018-07-12 17:21:42 +02:00
font-size: 4rem;
position: absolute;
}
@media (max-width: 1300px) {
2018-10-13 00:29:53 +02:00
color: $lbry-black;
2018-07-12 17:21:42 +02:00
}
@media (min-width: 901px) and (max-width: 1300px) {
font-size: 3rem;
}
@media (max-width: 900px) {
font-size: 2rem;
margin-bottom: 1rem;
}
}
h5 {
font-style: italic;
font-weight: normal;
@media (min-width: 1001px) {
margin-bottom: 3rem;
}
@media (min-width: 901px) and (max-width: 1000px) {
margin-bottom: 2rem;
}
@media (max-width: 900px) {
2018-10-06 00:46:08 +02:00
top: -1rem;
2018-07-12 17:21:42 +02:00
margin-bottom: 0.5rem;
position: relative;
}
}
}
.github-feed__event {
2018-09-28 21:09:45 +02:00
cursor: default;
2018-07-12 17:21:42 +02:00
line-height: 1.55;
@media (max-width: 700px) {
2018-10-06 00:46:08 +02:00
width: 200px;
2018-07-12 17:21:42 +02:00
display: inline-block;
margin-right: 1.25rem;
vertical-align: top;
}
&:not(:last-of-type) {
@media (min-width: 701px) {
margin-bottom: 1.25rem;
}
}
> a:first-of-type {
2018-10-06 00:46:08 +02:00
width: 100%;
2018-07-12 17:21:42 +02:00
font-weight: 700;
margin-bottom: 0.5rem;
2019-02-15 23:45:25 +01:00
@media (max-width: 700px) {
display: block;
}
2018-07-12 17:21:42 +02:00
}
> p:first-of-type {
@media (max-width: 700px) {
2019-02-15 23:45:25 +01:00
box-shadow: 0 2px 5px rgba($lbry-black, 0.05);
2018-07-12 17:21:42 +02:00
}
code {
2018-10-06 00:46:08 +02:00
padding: 0.2rem 0.5rem;
top: -1px;
2018-10-13 00:29:53 +02:00
background-color: $lbry-black;
2018-07-12 17:21:42 +02:00
border-radius: 3px;
2018-10-13 00:29:53 +02:00
color: $lbry-white;
2018-07-12 17:21:42 +02:00
font-size: 80%;
letter-spacing: 0.05rem;
position: relative;
}
em:not(.github-feed__event__time) {
text-decoration: underline;
}
@media (min-width: 701px) {
2018-10-06 00:46:08 +02:00
width: calc(100% - 4.5rem);
2018-07-12 17:21:42 +02:00
display: inline-block;
margin-left: 0.5rem;
vertical-align: top;
}
@media (max-width: 700px) {
2018-10-06 00:46:08 +02:00
width: 90%; padding: 1rem;
2018-07-12 17:21:42 +02:00
top: -3.5rem; left: 5%;
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
border: 1px solid $lbry-gray-1;
2018-07-12 17:21:42 +02:00
border-radius: 3px;
2019-02-15 23:45:25 +01:00
overflow-x: hidden;
2018-07-12 17:21:42 +02:00
position: relative;
white-space: normal;
}
}
}
.github-feed__event__avatar {
2018-10-13 00:29:53 +02:00
border: 1px solid $lbry-gray-1;
2018-07-12 17:21:42 +02:00
border-radius: 3px;
object-fit: cover;
2018-10-06 00:46:08 +02:00
object-position: center;
2018-07-12 17:21:42 +02:00
@media (min-width: 701px) {
width: 2.5rem; height: 2.5rem;
}
@media (max-width: 700px) {
width: 100%; height: 100%;
}
}
.github-feed__event__time {
2018-10-13 00:29:53 +02:00
color: $lbry-gray-3;
2018-07-12 17:21:42 +02:00
display: block;
@media (max-width: 700px) {
padding-top: 1rem;
}
}