many, MANY improvements to admin UI

This commit is contained in:
itzMiney committed 2026-03-19 22:12:59 +01:00
1 parent eac0938ccf
commit 3b6ac1dcab
14 files changed
+2421 -99

No files matched your search

@@ -0,0 +1,193 @@
.markdown-editor {
display: flex;
flex-direction: column;
width: 100%;
box-sizing: border-box;
background: #26262c;
border-radius: 24px;
}
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
background: #26262c;
border-radius: 24px 24px 0 0;
box-sizing: border-box;
padding: 0 20px;
}
.toolbar-left {
display: flex;
flex-wrap: wrap;
gap: 0;
min-width: 0;
}
.toolbar-right {
display: flex;
flex-shrink: 0;
margin-left: auto;
}
.toolbar.mobile {
flex-direction: column;
align-items: stretch;
}
.toolbar.mobile .toolbar-left {
width: 100%;
}
.toolbar.mobile .toolbar-right {
width: 100%;
margin-left: 0;
justify-content: flex-end;
}
.toolbar button {
width: auto;
white-space: nowrap;
margin: 5px;
background: transparent;
border: none;
color: white;
font-size: 0.9rem;
font-family: "Roboto", sans-serif;
padding: 8px 12px;
cursor: pointer;
border-radius: 12px;
}
.toolbar button:hover {
background: #2c2c33;
}
.preview-toggle button {
margin-left: auto;
}
.toolbar-right button {
background-color: #202025;
}
.separator {
width: 5px;
border-radius: 2px;
margin: 5px 0;
background: #202025;
}
.editor-textarea,
.preview {
order: 2;
}
textarea {
width: calc(100% - 10px);
margin: 0 5px;
resize: none;
overflow-x: hidden;
overflow-y: auto;
border: none;
box-sizing: border-box;
border-radius: 20px;
background: #202025;
color: white;
padding: 15px 20px;
font-family: monospace;
}
textarea:focus {
outline: none;
background: #2b2b32;
}
.preview {
width: calc(100% - 10px);
height: calc(100% - 49px);
margin-left: 5px;
text-align: left;
padding: 0 20px;
border-radius: 20px;
background: #2b2b32;
box-sizing: border-box;
font-family: Roboto, sans-serif;
overflow-x: hidden;
overflow-y: auto;
}
textarea:disabled, .toolbar button:disabled {
background-color: rgba(28, 21, 21, 0.4);
cursor: not-allowed;
}
::ng-deep h1, ::ng-deep h2, ::ng-deep h3, ::ng-deep h4, ::ng-deep h6 {
color: #9993b3;
}
::ng-deep a {
text-decoration: underline;
color: #C985DFFF;
}
::ng-deep a:visited {
color: #8E44A39E;
}
::ng-deep a:hover {
color: #df59ff;
}
::ng-deep a:active {
color: #eea9ff;
}
::ng-deep .centered-text {
text-align: center;
}
::ng-deep img {
max-width: 90%;
padding: 15px;
border-radius: 35px;
height: auto;
box-sizing: border-box;
}
::ng-deep .gallery {
display: grid;
max-width: 90vw;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin: auto;
padding: 15px;
}
::ng-deep .gallery img {
width: 100%;
height: auto;
border-radius: 20px;
object-fit: cover;
}
@media (max-width: 768px) {
::ng-deep .gallery img {
flex: 1 1 calc(50% - 15px);
}
}
@media (max-width: 480px) {
::ng-deep .gallery img {
gap: 0;
padding: 0;
flex: 1 1 100%;
}
}
@media (max-width: 480px) {
::ng-deep img {
max-width: 98%;
}
}