ChatGPT-Next-Web/app/components/mask.module.scss

109 lines
2.1 KiB
SCSS
Raw Normal View History

2023-04-25 18:02:46 +00:00
@import "../styles/animation.scss";
2023-04-24 16:49:27 +00:00
.mask-page {
height: 100%;
display: flex;
flex-direction: column;
.mask-page-body {
padding: 20px;
overflow-y: auto;
2023-04-26 17:16:21 +00:00
.mask-filter {
2023-04-24 16:49:27 +00:00
width: 100%;
max-width: 100%;
2023-05-01 19:01:42 +00:00
margin-bottom: 20px;
2023-05-01 19:10:13 +00:00
animation: slide-in ease 0.3s;
2023-05-01 19:01:42 +00:00
height: 40px;
2023-04-26 17:16:21 +00:00
display: flex;
.search-bar {
flex-grow: 1;
max-width: 100%;
min-width: 0;
}
.mask-filter-lang {
height: 100%;
margin-left: 10px;
}
.mask-create {
height: 100%;
margin-left: 10px;
box-sizing: border-box;
2023-05-01 19:01:42 +00:00
min-width: 80px;
2023-04-26 17:16:21 +00:00
}
2023-04-24 16:49:27 +00:00
}
.mask-item {
2023-04-25 18:02:46 +00:00
display: flex;
justify-content: space-between;
padding: 20px;
border: var(--border-in-light);
animation: slide-in ease 0.3s;
&:not(:last-child) {
border-bottom: 0;
}
&:first-child {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
&:last-child {
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.mask-header {
2023-04-24 16:49:27 +00:00
display: flex;
align-items: center;
2023-04-25 18:02:46 +00:00
.mask-icon {
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.mask-title {
.mask-name {
font-size: 14px;
font-weight: bold;
}
.mask-info {
font-size: 12px;
}
}
2023-04-24 16:49:27 +00:00
}
.mask-actions {
display: flex;
flex-wrap: nowrap;
transition: all ease 0.3s;
}
2023-04-25 18:02:46 +00:00
@media screen and (max-width: 600px) {
display: flex;
flex-direction: column;
padding-bottom: 10px;
border-radius: 10px;
margin-bottom: 20px;
box-shadow: var(--card-shadow);
&:not(:last-child) {
border-bottom: var(--border-in-light);
}
.mask-actions {
width: 100%;
justify-content: space-between;
padding-top: 10px;
}
}
2023-04-24 16:49:27 +00:00
}
}
}