webapp/src/styles/views/Feed.module.scss
Untone 8f0773976d
All checks were successful
deploy / testbuild (push) Successful in 3m36s
deploy / Update templates on Mailgun (push) Has been skipped
floor-refactored
2024-10-06 23:18:25 +03:00

348 lines
5.1 KiB
SCSS

.feed {
padding-top: 7.2rem;
}
.feedFilter {
@include media-breakpoint-down(md) {
margin-right: 1rem !important;
}
}
.feedNavigation {
font-size:1.4rem;
font-weight: 500;
h4 {
@include media-breakpoint-down(md) {
display: none;
}
margin-bottom: 0.8em;
}
ul,
li {
list-style: none;
padding: 0;
}
ul {
margin: 0 0 3rem;
}
li {
margin: 0 0 1rem;
white-space: nowrap;
width: 100%;
}
a {
border: none;
}
}
.feedAside {
margin-top: -1.1em;
h4 {
font-size:2.2rem;
font-weight: bold;
margin-bottom: 2rem;
}
}
.asideSection {
border: 1px solid #e9e9ee;
margin-bottom: 0.8em;
padding: 1em;
}
.topic {
font-size:1.2rem;
background: rgb(38 56 217 / 5%);
display: inline-block;
font-weight: bold;
line-height: 3.4rem;
margin: 0 0.6rem 0.6rem 0;
padding: 0 1.2rem;
position: relative;
vertical-align: middle;
white-space: nowrap;
&:hover {
background: #2638d9;
}
a:link {
position: static;
&::before {
content: '';
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
}
}
.pinnedLinks {
.icon {
height: 2.8rem;
width: 2.8rem;
}
ul {
font-size:1.4rem;
font-weight: bold;
margin: 1rem 0 0;
line-height: 1.3;
li {
margin-bottom: 1.6rem;
padding-left: 3.4rem;
position: relative;
&:last-child {
margin-bottom: 0;
}
}
}
a:link {
border: none;
&::before {
background: url('/icons/knowledge-base-bullet.svg') no-repeat;
content: '';
height: 2.4rem;
left: 0;
position: absolute;
top: -0.1em;
width: 2.4rem;
}
&:hover {
&::before {
background-image: url('/icons/knowledge-base-bullet-hover.svg');
}
}
}
}
.comment {
font-size:1.5rem;
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;
}
.commentBody {
font-size:1.4rem;
margin-bottom: 1.2rem;
line-clamp: 3;
-webkit-line-clamp: 3;
a {
border: none;
padding-bottom: 0.2em;
&:hover * {
background: var(--background-color-invert);
}
}
}
.comment .commentArticleTitle {
line-clamp: 1;
-webkit-line-clamp: 1;
a {
border: none;
color: rgb(0 0 0 / 65%);
&:hover {
color: #fff;
}
}
}
.commentArticleTitle,
.commentAuthor {
font-size:1.2rem;
font-weight: 500;
}
.filtersContainer {
@include media-breakpoint-down(sm) {
margin: 1rem 0 0;
flex-direction: column;
gap: 1rem;
}
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4rem;
.feedFilter {
margin-top: 0;
margin-bottom: 0;
min-width: 300px;
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;
}
.short-cards {
@include media-breakpoint-up(md) {
display: flex;
flex-wrap: wrap;
}
margin: 0 -5px;
}
.short-card {
@include media-breakpoint-up(md) {
flex: 1 0 50%;
}
@include media-breakpoint-up(lg) {
flex: 1 0 25%;
}
margin-bottom: 10px;
padding: 0 5px;
}
.floor-header {
margin-bottom: 0 !important;
}
.floor {
@include media-breakpoint-up(md) {
margin-bottom: 6.4rem;
}
.container {
padding-left: $container-padding-x;
padding-right: $container-padding-x;
}
}
.floor--7 {
.col-md-12 {
@include media-breakpoint-down(lg) {
&:nth-child(1),
&:nth-child(2) {
margin-bottom: 1.6em;
}
}
@include media-breakpoint-down(md) {
&:nth-child(3),
&:nth-child(4) {
margin-bottom: 1.6em;
}
}
}
}
.floor--important {
@include media-breakpoint-up(md) {
padding-bottom: $grid-gutter-width;
padding-top: $grid-gutter-width;
}
@include media-breakpoint-down(md) {
margin-bottom: 5rem;
}
background: var(--background-color-invert);
color: var(--default-color-invert);
padding: $grid-gutter-width 0;
padding-bottom: $container-padding-x;
padding-top: $container-padding-x;
::selection {
background: var(--background-color);
color: var(--default-color) !important;
}
h2 {
font-size: 4.4rem;
text-align: center;
}
.all-materials {
a {
color: var(--default-color-invert) !important;
}
}
a:hover {
color: var(--default-color) !important;
background: var(--background-color);
}
}
.floor--9 {
/* TODO: refactor these styles */
.shoutCardTitle,
.shoutCardSubtitle {
// display: inline;
font-size: 2.2rem;
}
.shoutCardTitle {
padding-right: 0.25em;
}
.shoutAuthor,
.shoutDate {
margin-top: 0.8rem;
}
.beside-column .shoutCardTitlesContainer {
position: relative;
a:hover {
.shoutCardLinkContainer {
color: var(--default-color-invert);
}
}
}
}