Completely get rid of padding on mobile
parent
d477f76cf5
commit
a337cb97ed
|
@ -115,7 +115,13 @@ export default class App extends Mixins(GlobalMixin, UserConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.outer { padding: 0px; }
|
.outer {
|
||||||
|
padding: 0px;
|
||||||
|
|
||||||
|
// Get rid of padding on img-outer (1px on mobile)
|
||||||
|
margin-left: -1px;
|
||||||
|
width: calc(100% + 3px); // 1px extra here because ... reasons
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
@ -176,9 +176,9 @@ export default class Folder extends Mixins(GlobalMixin) {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: calc(100% - 4px);
|
height: 100%; width: 100%;
|
||||||
width: calc(100% - 4px);
|
padding: 2px;
|
||||||
top: 2px; left: 2px;
|
@media (max-width: 768px) { padding: 1px; }
|
||||||
|
|
||||||
> .img-outer {
|
> .img-outer {
|
||||||
background-color: var(--color-background-dark);
|
background-color: var(--color-background-dark);
|
||||||
|
|
|
@ -260,6 +260,8 @@ export default class Photo extends Mixins(GlobalMixin) {
|
||||||
/* Actual image */
|
/* Actual image */
|
||||||
div.img-outer {
|
div.img-outer {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
@media (max-width: 768px) { padding: 1px; }
|
||||||
|
|
||||||
transition: transform 0.1s ease;
|
transition: transform 0.1s ease;
|
||||||
background-clip: content-box, padding-box;
|
background-clip: content-box, padding-box;
|
||||||
background-color: var(--color-background-dark);
|
background-color: var(--color-background-dark);
|
||||||
|
|
|
@ -209,9 +209,9 @@ export default class Tag extends Mixins(GlobalMixin) {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: calc(100% - 4px);
|
height: 100%; width: 100%;
|
||||||
width: calc(100% - 4px);
|
padding: 2px;
|
||||||
top: 2px; left: 2px;
|
@media (max-width: 768px) { padding: 1px; }
|
||||||
|
|
||||||
> .img-outer {
|
> .img-outer {
|
||||||
background-color: var(--color-background-dark);
|
background-color: var(--color-background-dark);
|
||||||
|
|
Loading…
Reference in New Issue