mirror of https://github.com/usememos/memos
chore: update share memo image (#482)
parent
c89a6665b6
commit
a24b885236
@ -1,3 +1,15 @@
|
|||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
@layer utilities {
|
||||||
|
/* Chrome, Safari and Opera */
|
||||||
|
.hide-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hide-scrollbar {
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
@import "./mixin.less";
|
|
||||||
|
|
||||||
.image-container {
|
.image-container {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: auto;
|
height: auto;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
.pretty-scroll-bar(2px, 0);
|
|
||||||
|
|
||||||
> img {
|
> img {
|
||||||
margin: auto;
|
@apply m-auto w-full h-auto;
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
.hide-scroll-bar {
|
|
||||||
.pretty-scroll-bar(0, 0);
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.pretty-scroll-bar(@width: 0px, @height: 0px) {
|
|
||||||
scrollbar-width: none;
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
width: @width;
|
|
||||||
height: @height;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
|
||||||
width: @width;
|
|
||||||
height: @height;
|
|
||||||
border-radius: 8px;
|
|
||||||
background-color: #d5d5d5;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #ccc;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue