webapp/src/components/Views/Feed/Feed.module.scss

229 lines
3.1 KiB
SCSS
Raw Normal View History

2023-05-22 22:01:04 +00:00
.feedFilter {
2023-09-19 21:02:42 +00:00
@include media-breakpoint-down(md) {
margin-right: 1rem !important;
2023-09-19 21:02:42 +00:00
}
2023-05-22 22:01:04 +00:00
}
2023-01-25 22:13:01 +00:00
.feedNavigation {
2023-11-15 20:27:43 +00:00
@include font-size(1.4rem);
2023-01-25 22:13:01 +00:00
font-weight: 500;
h4 {
2023-05-11 11:52:56 +00:00
margin-bottom: 0.8em;
2023-09-14 21:29:17 +00:00
@include media-breakpoint-down(md) {
display: none;
}
2023-01-25 22:13:01 +00:00
}
ul,
li {
list-style: none;
padding: 0;
}
ul {
2023-01-30 23:09:33 +00:00
margin: 0 0 3rem;
2023-01-25 22:13:01 +00:00
}
li {
margin: 0 0 1rem;
2023-01-30 23:09:33 +00:00
white-space: nowrap;
width: 100%;
2023-01-25 22:13:01 +00:00
}
a {
border: none;
}
}
.feedAside {
2023-06-27 22:47:47 +00:00
margin-top: -1.1em;
2023-01-25 22:13:01 +00:00
h4 {
@include font-size(2.2rem);
2023-11-04 15:37:28 +00:00
2023-01-25 22:13:01 +00:00
font-weight: bold;
2023-06-27 22:47:47 +00:00
margin-bottom: 2rem;
2023-01-25 22:13:01 +00:00
}
}
.asideSection {
border: 1px solid #e9e9ee;
margin-bottom: 0.8em;
padding: 1em;
}
.topic {
@include font-size(1.2rem);
2023-01-25 22:13:01 +00:00
background: transparentize(#2638d9, 0.95);
display: inline-block;
font-weight: bold;
line-height: 3.4rem;
margin: 0 0.6rem 0.6rem 0;
padding: 0 1.2rem;
2023-01-25 22:13:01 +00:00
position: relative;
vertical-align: middle;
white-space: nowrap;
2023-01-25 22:13:01 +00:00
&:hover {
background: #2638d9;
}
2023-06-06 21:16:40 +00:00
a:link {
2023-01-25 22:13:01 +00:00
position: static;
2023-02-10 01:19:20 +00:00
&::before {
2023-01-25 22:13:01 +00:00
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}
}
.pinnedLinks {
.icon {
height: 2.8rem;
width: 2.8rem;
}
ul {
@include font-size(1.4rem);
2023-01-25 22:13:01 +00:00
font-weight: bold;
margin: 1rem 0 0;
line-height: 1.3;
2023-01-25 22:13:01 +00:00
li {
2023-07-09 18:34:59 +00:00
margin-bottom: 1.6rem;
padding-left: 3.4rem;
position: relative;
2023-01-25 22:13:01 +00:00
&:last-child {
margin-bottom: 0;
}
}
}
2023-07-09 18:34:59 +00:00
a:link {
2023-01-25 22:13:01 +00:00
border: none;
2023-07-09 18:34:59 +00:00
&::before {
background: url(/icons/knowledge-base-bullet.svg) no-repeat;
2023-07-09 18:34:59 +00:00
content: '';
height: 2.4rem;
left: 0;
position: absolute;
top: -0.1em;
width: 2.4rem;
}
&:hover {
2023-11-04 15:37:28 +00:00
&::before {
background-image: url(/icons/knowledge-base-bullet-hover.svg);
2023-07-09 18:34:59 +00:00
}
}
2023-01-25 22:13:01 +00:00
}
}
2023-01-26 21:42:47 +00:00
.comment {
@include font-size(1.5rem);
2023-01-26 21:42:47 +00:00
line-height: 1.4;
margin-bottom: 2.4rem;
&:last-child {
margin-bottom: 0;
}
p {
margin: 0;
}
}
.commentDetails {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: space-between;
}
2023-01-26 21:42:47 +00:00
.commentBody {
@include font-size(1.4rem);
2023-01-26 21:42:47 +00:00
margin-bottom: 1.2rem;
line-clamp: 3;
-webkit-line-clamp: 3;
a {
border: none;
padding-bottom: 0.2em;
2023-11-04 15:37:28 +00:00
&:hover * {
background: var(--background-color-invert);
}
}
2023-01-26 21:42:47 +00:00
}
.comment .commentArticleTitle {
2023-01-26 21:42:47 +00:00
line-clamp: 1;
-webkit-line-clamp: 1;
a {
color: rgb(0 0 0 / 65%);
&:hover {
color: #fff;
}
}
2023-01-26 21:42:47 +00:00
}
.commentArticleTitle,
2023-01-26 21:42:47 +00:00
.commentAuthor {
@include font-size(1.2rem);
font-weight: 500;
2023-01-26 21:42:47 +00:00
}
.filtersContainer {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4rem;
@include media-breakpoint-down(sm) {
margin: 1rem 0 0;
flex-direction: column;
gap: 1rem;
}
.feedFilter {
margin-top: 0;
margin-bottom: 0;
min-width: 300px;
2024-01-06 04:06:58 +00:00
overflow: hidden;
& > li {
margin-bottom: 0;
}
}
.dropdowns {
display: flex;
flex-flow: row nowrap;
gap: 1rem;
justify-content: center;
}
}
.periodSwitcher {
font-size: 14px;
font-weight: 700;
line-height: 18px;
}