美化添加背景页面的缩略图删除图标
This commit is contained in:
parent
e863545074
commit
879896bd8f
@ -1981,6 +1981,7 @@ const removeHistoryItem = (index: number) => {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(6, 1fr);
|
grid-template-columns: repeat(6, 1fr);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.favorite-colors-grid {
|
.favorite-colors-grid {
|
||||||
@ -1999,6 +2000,7 @@ const removeHistoryItem = (index: number) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
overflow: visible;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
transform: scale(1.08);
|
transform: scale(1.08);
|
||||||
@ -2026,13 +2028,13 @@ const removeHistoryItem = (index: number) => {
|
|||||||
.favorite-color-item {
|
.favorite-color-item {
|
||||||
.remove-favorite-btn {
|
.remove-favorite-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2px;
|
top: -8px;
|
||||||
right: 2px;
|
right: -8px;
|
||||||
width: 18px;
|
width: 20px;
|
||||||
height: 18px;
|
height: 20px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
border: none;
|
border: 2px solid white;
|
||||||
background: rgba(15, 23, 42, 0.75);
|
background: #ef4444;
|
||||||
color: white;
|
color: white;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -2043,7 +2045,8 @@ const removeHistoryItem = (index: number) => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
z-index: 2;
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
@ -2114,7 +2117,6 @@ const removeHistoryItem = (index: number) => {
|
|||||||
.history-bar {
|
.history-bar {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px 0;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@ -2122,10 +2124,10 @@ const removeHistoryItem = (index: number) => {
|
|||||||
|
|
||||||
.history-scroll-container {
|
.history-scroll-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 16px;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: hidden;
|
overflow-y: visible;
|
||||||
padding: 0;
|
padding: 10px;
|
||||||
scrollbar-width: thin;
|
scrollbar-width: thin;
|
||||||
scrollbar-color: #cbd5e1 transparent;
|
scrollbar-color: #cbd5e1 transparent;
|
||||||
|
|
||||||
@ -2205,7 +2207,7 @@ const removeHistoryItem = (index: number) => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 2px solid #e5e7eb;
|
border: 2px solid #e5e7eb;
|
||||||
overflow: hidden;
|
overflow: visible;
|
||||||
position: relative;
|
position: relative;
|
||||||
background:
|
background:
|
||||||
linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
|
linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
|
||||||
@ -2221,6 +2223,7 @@ const removeHistoryItem = (index: number) => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
display: block;
|
display: block;
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -2229,13 +2232,13 @@ const removeHistoryItem = (index: number) => {
|
|||||||
|
|
||||||
.history-delete-btn {
|
.history-delete-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 4px;
|
top: -8px;
|
||||||
right: 4px;
|
right: -8px;
|
||||||
width: 18px;
|
width: 20px;
|
||||||
height: 18px;
|
height: 20px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
border: none;
|
border: 2px solid white;
|
||||||
background: rgba(15, 23, 42, 0.6);
|
background: #ef4444;
|
||||||
color: white;
|
color: white;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -2246,6 +2249,8 @@ const removeHistoryItem = (index: number) => {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
@ -2402,10 +2407,11 @@ const removeHistoryItem = (index: number) => {
|
|||||||
.common-colors-grid {
|
.common-colors-grid {
|
||||||
grid-template-columns: repeat(6, 1fr);
|
grid-template-columns: repeat(6, 1fr);
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-bar {
|
.history-bar {
|
||||||
padding: 10px 0;
|
padding: 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-item {
|
.history-item {
|
||||||
@ -2414,8 +2420,8 @@ const removeHistoryItem = (index: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.history-scroll-container {
|
.history-scroll-container {
|
||||||
gap: 8px;
|
gap: 12px;
|
||||||
padding: 0 8px;
|
padding: 12px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolbar-btn {
|
.toolbar-btn {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user