frontend fix

This commit is contained in:
carodej
2020-05-31 19:54:42 +02:00
parent 61a8849e2d
commit 16c3625b0b
6 changed files with 28 additions and 63 deletions
+1 -4
View File
@@ -150,8 +150,7 @@
} }
} }
// Small screen size @media only screen and (max-width: 690px) {
.small {
.popup-wrapper { .popup-wrapper {
padding: 40px 20px 20px; padding: 40px 20px 20px;
left: 15px; left: 15px;
@@ -160,11 +159,9 @@
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
.popup-wrapper { .popup-wrapper {
background: $dark_mode_background; background: $dark_mode_background;
} }
.popup-content { .popup-content {
.title { .title {
color: $dark_mode_text_primary; color: $dark_mode_text_primary;
@@ -25,7 +25,7 @@
} }
} }
.small { @media only screen and (max-width: 690px) {
.actions { .actions {
padding: 15px; padding: 15px;
position: absolute; position: absolute;
@@ -34,8 +34,4 @@
right: 0; right: 0;
} }
} }
@media (prefers-color-scheme: dark) {
}
</style> </style>
@@ -18,15 +18,13 @@
@import '@assets/vue-file-manager/_mixins'; @import '@assets/vue-file-manager/_mixins';
.popup-content { .popup-content {
&.height-limited { &.height-limited {
height: 400px; height: 400px;
overflow-y: auto; overflow-y: auto;
} }
} }
.small { @media only screen and (max-width: 690px) {
.popup-content { .popup-content {
top: 57px; top: 57px;
bottom: 72px; bottom: 72px;
@@ -37,10 +35,6 @@
} }
} }
@media (prefers-color-scheme: dark) {
}
@keyframes popup-in { @keyframes popup-in {
0% { 0% {
opacity: 0; opacity: 0;
@@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import { CornerDownRightIcon, LinkIcon, XIcon } from 'vue-feather-icons' import {CornerDownRightIcon, LinkIcon, XIcon} from 'vue-feather-icons'
import {events} from '@/bus' import {events} from '@/bus'
export default { export default {
@@ -80,30 +80,26 @@
stroke: $theme; stroke: $theme;
} }
} }
cursor: pointer; cursor: pointer;
} }
} }
} }
.small { @media only screen and (max-width: 690px) {
.popup-header { .popup-header {
padding: 15px; padding: 15px;
} }
} }
@media only screen and (max-width: 690px) {
}
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
.popup-header { .popup-header {
.label { .label {
.close-icon { .close-icon {
&:hover { &:hover {
background: $dark_mode_foreground; background: $dark_mode_foreground;
} }
cursor: pointer; cursor: pointer;
} }
} }
@@ -73,7 +73,6 @@
// Desktop, tablet // Desktop, tablet
.medium, .large { .medium, .large {
// Animations // Animations
.popup-enter-active { .popup-enter-active {
animation: popup-in 0.35s 0.15s ease both; animation: popup-in 0.35s 0.15s ease both;
@@ -84,33 +83,6 @@
} }
} }
.small {
.popup {
overflow: hidden;
}
.popup-wrapper {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
transform: translateY(0) scale(1);
box-shadow: none;
width: 100%;
border-radius: 0px;
}
// Animations
.popup-enter-active {
animation: popup-slide-in 0.35s 0.15s ease both;
}
.popup-leave-active {
animation: popup-slide-in 0.15s ease reverse;
}
}
@keyframes popup-in { @keyframes popup-in {
0% { 0% {
opacity: 0; opacity: 0;
@@ -121,6 +93,7 @@
transform: scale(1); transform: scale(1);
} }
} }
@keyframes popup-slide-in { @keyframes popup-slide-in {
0% { 0% {
transform: translateY(100%); transform: translateY(100%);
@@ -131,11 +104,26 @@
} }
@media only screen and (max-width: 690px) { @media only screen and (max-width: 690px) {
.popup {
overflow: hidden;
}
.popup-wrapper { .popup-wrapper {
left: 15px; position: absolute;
right: 15px; top: 0;
padding: 0; bottom: 0;
right: 0;
left: 0;
transform: translateY(0) scale(1);
box-shadow: none;
width: 100%;
border-radius: 0px;
}
// Animations
.popup-enter-active {
animation: popup-slide-in 0.35s 0.15s ease both;
}
.popup-leave-active {
animation: popup-slide-in 0.15s ease reverse;
} }
} }
@@ -154,7 +154,7 @@
} }
} }
.small { @media only screen and (max-width: 690px) {
.file-item { .file-item {
padding: 0 15px; padding: 0 15px;
margin-bottom: 20px; margin-bottom: 20px;
@@ -162,11 +162,8 @@
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
.file-item { .file-item {
.icon-item .file-icon { .icon-item .file-icon {
path { path {
fill: $dark_mode_foreground; fill: $dark_mode_foreground;
stroke: #2F3C54; stroke: #2F3C54;
@@ -174,7 +171,6 @@
} }
.item-name { .item-name {
.name { .name {
color: $dark_mode_text_primary; color: $dark_mode_text_primary;
} }
@@ -190,9 +186,7 @@
@media (max-width: 690px) and (prefers-color-scheme: dark) { @media (max-width: 690px) and (prefers-color-scheme: dark) {
.file-item { .file-item {
.icon-item .file-icon { .icon-item .file-icon {
path { path {
fill: $dark_mode_foreground; fill: $dark_mode_foreground;
} }