Improve scrollbars and modal size
This commit is contained in:
@@ -90,6 +90,11 @@
|
||||
border: 1px solid #BBB;
|
||||
}
|
||||
|
||||
pre.mermaid {
|
||||
svg {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.markdown_preformatted-code (@color: #333) {
|
||||
|
||||
@@ -24,6 +24,9 @@
|
||||
.cp-modal-container {
|
||||
display: none;
|
||||
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
z-index: 100000; //Z modal container
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -39,9 +42,11 @@
|
||||
|
||||
padding: @variables_padding;
|
||||
|
||||
position: absolute;
|
||||
top: 15vh; bottom: 15vh;
|
||||
left: 10vw; right: 10vw;
|
||||
position: relative;
|
||||
//top: 15vh; bottom: 15vh;
|
||||
//left: 10vw; right: 10vw;
|
||||
width: 90vw;
|
||||
max-height: 95vh;
|
||||
|
||||
overflow: auto;
|
||||
|
||||
|
||||
@@ -111,20 +111,24 @@
|
||||
#cp-mediatag-preview-modal {
|
||||
.cp-modal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.cp-mediatag-container {
|
||||
width: 100%;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: auto;
|
||||
media-tag {
|
||||
& > * {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
video, iframe {
|
||||
margin-bottom: -5px;
|
||||
}
|
||||
& > iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 75vh;
|
||||
}
|
||||
& > .plain-text-reader {
|
||||
white-space: pre-wrap;
|
||||
@@ -134,22 +138,26 @@
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
pre.mermaid {
|
||||
overflow: unset;
|
||||
}
|
||||
.cp-spinner {
|
||||
border-color: @colortheme_logo-1;
|
||||
border-top-color: transparent;
|
||||
}
|
||||
}
|
||||
.cp-mediatag-control {
|
||||
align-self: center;
|
||||
.fa {
|
||||
margin: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
.cp-mediatag-outer {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
.cp-mediatag-control {
|
||||
.fa {
|
||||
margin: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user