mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
migrate frontend
This commit is contained in:
153
web/src/less/memo.less
Normal file
153
web/src/less/memo.less
Normal file
@ -0,0 +1,153 @@
|
||||
@import "./mixin.less";
|
||||
@import "./memo-content.less";
|
||||
|
||||
.memo-wrapper {
|
||||
.flex(column, flex-start, flex-start);
|
||||
width: 100%;
|
||||
padding: 12px 18px;
|
||||
background-color: white;
|
||||
margin-top: 8px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid transparent;
|
||||
|
||||
&:hover {
|
||||
border-color: @bg-gray;
|
||||
}
|
||||
|
||||
> .memo-top-wrapper {
|
||||
.flex(row, space-between, center);
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
> .time-text {
|
||||
font-size: 12px;
|
||||
line-height: 24px;
|
||||
color: gray;
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
> .btns-container {
|
||||
.flex(row, flex-end, center);
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
|
||||
> .more-action-btns-wrapper {
|
||||
.flex(column, flex-start, center);
|
||||
position: absolute;
|
||||
flex-wrap: nowrap;
|
||||
top: calc(100% - 8px);
|
||||
right: -16px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 12px;
|
||||
z-index: 1;
|
||||
display: none;
|
||||
|
||||
&:hover {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
> .more-action-btns-container {
|
||||
width: 112px;
|
||||
height: auto;
|
||||
padding: 4px;
|
||||
white-space: nowrap;
|
||||
border-radius: 8px;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 8px 0 rgb(0 0 0 / 20%);
|
||||
z-index: 1;
|
||||
|
||||
> .btn {
|
||||
width: 100%;
|
||||
padding: 8px 0;
|
||||
padding-left: 24px;
|
||||
border-radius: 4px;
|
||||
height: unset;
|
||||
line-height: unset;
|
||||
justify-content: flex-start;
|
||||
|
||||
&.delete-btn {
|
||||
color: @text-red;
|
||||
|
||||
&.final-confirm {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn {
|
||||
.flex(row, center, center);
|
||||
width: 100%;
|
||||
height: 28px;
|
||||
font-size: 13px;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background-color: @bg-whitegray;
|
||||
}
|
||||
|
||||
&.more-action-btn {
|
||||
width: 28px;
|
||||
cursor: unset;
|
||||
margin-right: -6px;
|
||||
opacity: 0.8;
|
||||
|
||||
> .icon-img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: unset;
|
||||
|
||||
& + .more-action-btns-wrapper {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .memo-content-text {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
> .images-wrapper {
|
||||
.flex(row, flex-start, flex-start);
|
||||
margin-top: 8px;
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
padding-bottom: 4px;
|
||||
.pretty-scroll-bar(0, 2px);
|
||||
|
||||
> .memo-img {
|
||||
margin-right: 8px;
|
||||
width: auto;
|
||||
height: 128px;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
overflow-y: hidden;
|
||||
.hide-scroll-bar();
|
||||
|
||||
&:hover {
|
||||
border-color: lightgray;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
> img {
|
||||
width: auto;
|
||||
max-height: 128px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user