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

193 lines
2.8 KiB
SCSS
Raw Normal View History

2023-04-06 21:40:34 +00:00
:global(.main-content) {
position: static;
}
2023-03-06 22:24:09 +00:00
.articlePreview {
border: 2px solid #e8e8e8;
padding: 1rem 1.2rem;
2023-05-08 18:23:51 +00:00
display: flex;
flex-direction: column;
min-height: 300px;
align-items: flex-start;
box-sizing: border-box;
.shoutCardTitle {
@include font-size(2.2rem);
font-weight: 700;
line-height: 1.25;
margin: auto 0 0.8rem;
}
.shoutCardSubtitle {
@include font-size(1.7rem);
color: #696969;
font-weight: 400;
line-height: 1.3;
margin-bottom: 0.8rem;
transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.shoutAuthor {
@include font-size(1.2rem);
margin-right: 1.6rem;
color: rgb(0 0 0 / 70%);
}
2023-03-06 22:24:09 +00:00
}
2023-03-26 16:56:49 +00:00
.formHolder {
padding: 0 4rem;
}
2023-03-26 18:31:34 +00:00
.container {
2023-05-06 15:04:50 +00:00
position: relative;
2023-03-26 18:31:34 +00:00
.titleInput,
.subtitleInput {
border: 0;
outline: 0;
padding: 0;
font-size: 36px;
&::placeholder {
opacity: 0.3;
color: #000;
}
}
.titleInput {
font-weight: 700;
}
}
2023-04-11 13:57:48 +00:00
.editSettings,
.edit {
2023-03-26 18:31:34 +00:00
display: none;
&.visible {
display: block;
}
}
2023-04-06 21:40:34 +00:00
.asidePanel {
background: #1f1f1f;
2023-05-01 18:32:32 +00:00
color: rgb(255 255 255 / 35%);
2023-04-06 21:40:34 +00:00
display: flex;
flex-direction: column;
font-size: 1.7rem;
justify-content: flex-start;
height: 100%;
line-height: 1.4;
padding: $grid-gutter-width;
position: fixed;
transition: transform 0.3s;
right: 0;
top: 0;
z-index: 10;
.close {
filter: invert(1);
margin: -1.6rem 0 0 -1.6rem;
}
section {
2023-05-01 18:32:32 +00:00
border-bottom: 2px solid rgb(255 255 255 / 10%);
// margin-bottom: 1.8rem;
2023-04-06 21:40:34 +00:00
margin-top: 1.8rem;
padding-bottom: 1.8rem;
p {
margin: 0.6em 0;
&:last-child {
margin-bottom: 0;
}
}
}
.button {
font-weight: normal;
margin-left: -1.6rem;
&:hover {
color: #fff;
text-decoration: none;
}
}
a {
2023-05-01 18:32:32 +00:00
color: rgb(255 255 255 / 35%);
2023-04-06 21:40:34 +00:00
font-weight: normal !important;
&:hover {
background: none;
color: #fff;
}
}
}
2023-05-06 15:04:50 +00:00
.scrollTopButton {
2023-05-07 19:33:20 +00:00
pointer-events: none;
2023-05-06 15:04:50 +00:00
cursor: pointer;
left: 2rem;
position: sticky;
top: calc(100vh - 40px);
width: 2.8rem;
z-index: 2;
2023-05-07 19:33:20 +00:00
opacity: 0;
transition: opacity 0.3s ease-in-out;
&.visible {
opacity: 1;
pointer-events: all;
}
2023-05-06 15:04:50 +00:00
@include media-breakpoint-down(md) {
display: none;
}
@include media-breakpoint-up(xl) {
left: 4rem;
}
&:hover {
.icon {
opacity: 1;
}
.scrollTopButtonLabel {
display: block;
}
}
.icon {
opacity: 0.4;
}
}
.scrollTopButtonLabel {
@include font-size(1.4rem);
display: none;
2023-05-06 15:04:50 +00:00
font-weight: bold;
left: 100%;
padding-left: 0.5em;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.inputContainer {
position: relative;
.validationError {
position: absolute;
top: 100%;
font-size: small;
color: #f00;
}
}