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

244 lines
3.6 KiB
SCSS
Raw Normal View History

2023-04-06 21:40:34 +00:00
:global(.main-content) {
position: static;
}
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;
.headingActions {
@include font-size(1.2rem);
margin-bottom: 0.5rem;
display: flex;
flex-direction: row;
gap: 1rem;
color: var(--blue-link);
.action {
cursor: pointer;
}
}
2023-03-26 18:31:34 +00:00
.titleInput,
.subtitleInput,
.leadInput {
2023-03-26 18:31:34 +00:00
font-size: 36px;
2023-05-11 11:33:01 +00:00
line-height: 1.1;
margin-bottom: 1.2rem;
2023-03-26 18:31:34 +00:00
&::placeholder {
opacity: 0.3;
color: #000;
}
}
.leadInput {
font-size: unset;
}
2023-03-26 18:31:34 +00:00
.titleInput {
font-weight: 700;
}
.additional {
margin-top: auto;
.additionalInput {
@include font-size(1.4rem);
2023-11-13 14:43:08 +00:00
appearance: textfield;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
2023-11-13 14:43:08 +00:00
appearance: none;
margin: 0;
}
font-weight: 600;
padding: 0;
margin: 14px 0 0;
2023-07-19 06:38:00 +00:00
width: 100%;
border: none;
outline: none;
&::placeholder {
color: var(--secondary-color);
}
}
}
2023-03-26 18:31:34 +00:00
}
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);
2023-05-09 04:58:00 +00:00
margin: -1.6rem 0 0 -2.8rem;
2023-04-06 21:40:34 +00:00
}
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-08 17:21:06 +00:00
user-select: none;
2023-05-06 15:04:50 +00:00
cursor: pointer;
2023-08-23 22:31:39 +00:00
left: 0;
2023-05-06 15:04:50 +00:00
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) {
2023-08-23 22:31:39 +00:00
left: 0;
2023-05-06 15:04:50 +00:00
}
&: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;
flex: 1;
display: flex;
flex-flow: column;
.validationError {
position: absolute;
z-index: 1;
top: calc(100% + 4px);
font-size: small;
color: var(--danger-color);
}
}
.audioHeader {
display: flex;
flex-direction: row;
justify-content: space-between;
gap: 24px;
.inputContainer {
flex: 1;
}
.cover {
width: 228px;
height: 228px;
flex-basis: 228px;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
2023-11-13 14:43:08 +00:00
position: relative;
.delete {
position: absolute;
width: 32px;
height: 32px;
padding: 10px;
border-radius: 50%;
top: 4px;
right: 4px;
background-color: rgb(0 0 0 / 50%);
cursor: pointer;
display: none;
}
&:hover .delete {
display: block;
}
}
}
.wrapperTableOfContents {
2023-08-31 13:41:34 +00:00
position: fixed;
2023-08-31 14:03:40 +00:00
top: 106px;
width: 240px;
padding-top: 100px;
}