primevue-mirror/assets/styles/layout/_news.scss

93 lines
1.9 KiB
SCSS
Raw Normal View History

2020-05-12 08:31:09 +00:00
.layout-news {
2022-04-07 12:57:53 +00:00
position: fixed;
top: 0;
left: 0;
z-index: 1100;
width: 100%;
height: 2rem;
padding: 0 2rem;
2024-03-27 09:17:45 +00:00
background-color: var(--primary-color);
2020-05-12 08:31:09 +00:00
2023-09-25 10:05:27 +00:00
.layout-news-container {
display: flex;
justify-content: space-between;
align-items: center;
width: calc(100% - var(--scrollbar-width, 0px));
height: 100%;
}
2022-04-07 12:57:53 +00:00
.layout-news-content {
flex: 1;
2020-05-12 08:31:09 +00:00
display: flex;
justify-content: center;
align-items: center;
2022-05-20 12:01:48 +00:00
min-width: 0%;
2022-04-07 12:57:53 +00:00
}
2020-10-22 13:18:06 +00:00
2022-04-07 12:57:53 +00:00
.layout-news-text {
line-height: 1.5;
display: block;
2022-05-20 12:01:48 +00:00
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
min-width: 0%;
2024-03-27 09:17:45 +00:00
font-weight: 500;
color: var(--primary-inverse-color);
2022-04-07 12:57:53 +00:00
}
2021-11-02 10:45:43 +00:00
2022-04-07 12:57:53 +00:00
.layout-news-link {
2023-02-28 08:29:30 +00:00
margin-left: 0.5rem;
2022-04-07 12:57:53 +00:00
line-height: 1.5;
2022-05-20 12:01:48 +00:00
white-space: nowrap;
2020-05-12 08:31:09 +00:00
}
2023-03-08 09:37:13 +00:00
.layout-news-link,
.layout-news-link:visited,
.layout-news-link:active {
2024-03-27 09:17:45 +00:00
color:var(--primary-inverse-color);
2023-03-08 09:37:13 +00:00
font-weight:700;
}
.layout-news-link:hover {
text-decoration: underline;
}
2020-05-12 08:31:09 +00:00
.layout-news-close {
2024-03-28 14:11:57 +00:00
color:var(--primary-inverse-color);
2022-04-07 12:57:53 +00:00
line-height: 1.5;
2020-10-22 13:18:06 +00:00
cursor: pointer;
2022-04-07 12:57:53 +00:00
display: inline-flex;
2020-05-12 08:31:09 +00:00
justify-content: center;
align-items: center;
2022-04-07 12:57:53 +00:00
border-radius: 50%;
width: 1.5rem;
height: 1.5rem;
2023-02-28 08:29:30 +00:00
transition: background-color 0.3s;
margin-left: 0.5rem;
2022-04-07 12:57:53 +00:00
&:hover {
2023-02-28 08:29:30 +00:00
background-color: rgba(255, 255, 255, 0.2);
2022-04-07 12:57:53 +00:00
}
2023-02-28 08:29:30 +00:00
}
2022-04-07 12:57:53 +00:00
}
.layout-news-active {
2023-10-10 16:58:35 +00:00
.layout-topbar {
2022-04-07 12:57:53 +00:00
top: 2rem;
}
2023-10-10 16:58:35 +00:00
.layout-sidebar,
.doc-section-nav {
top: 8rem;
2023-10-07 14:34:18 +00:00
}
2022-04-07 12:57:53 +00:00
.layout-content {
2023-10-10 16:58:35 +00:00
padding-top: 8rem;
2022-04-07 12:57:53 +00:00
}
2023-02-28 08:29:30 +00:00
.doc-section-label,
.doc-table tbody td .doc-option-name,
.doc-table tbody td > i {
scroll-margin-top: 8.5rem;
}
}