This commit is contained in:
+120
-12
@@ -152,6 +152,7 @@
|
||||
.editor-button,
|
||||
.editor-primary-button,
|
||||
.editor-secondary-button,
|
||||
.editor-danger-button,
|
||||
.editor-icon-button {
|
||||
border-radius: .75rem;
|
||||
font: inherit;
|
||||
@@ -216,6 +217,122 @@
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
.editor-media-preview {
|
||||
display: grid;
|
||||
gap: .65rem;
|
||||
grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
|
||||
}
|
||||
|
||||
.editor-media-preview:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.editor-media-preview-card {
|
||||
background: #fff;
|
||||
border: 1px solid rgba(49, 93, 58, .22);
|
||||
border-radius: .8rem;
|
||||
min-width: 0;
|
||||
padding: .35rem;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.editor-media-preview-card[data-selected="true"] {
|
||||
border-color: #315d3a;
|
||||
box-shadow: 0 0 0 .12rem rgba(49, 93, 58, .18);
|
||||
}
|
||||
|
||||
.editor-media-preview-select {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
color: #233326;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font: inherit;
|
||||
gap: .35rem;
|
||||
min-height: 5.2rem;
|
||||
padding: .25rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-media-preview-select small {
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.editor-media-preview-image {
|
||||
aspect-ratio: 1 / 1;
|
||||
border-radius: .55rem;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-media-preview-audio {
|
||||
align-items: center;
|
||||
background: #eef5ef;
|
||||
border-radius: .55rem;
|
||||
display: flex;
|
||||
font-size: 2rem;
|
||||
justify-content: center;
|
||||
min-height: 4.1rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.editor-media-remove {
|
||||
align-items: center;
|
||||
background: #b42318;
|
||||
border: 2px solid #fff;
|
||||
border-radius: 999px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
font-size: 1.45rem;
|
||||
font-weight: 800;
|
||||
height: 2.25rem;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
position: absolute;
|
||||
right: .15rem;
|
||||
top: .15rem;
|
||||
width: 2.25rem;
|
||||
}
|
||||
|
||||
.editor-media-remove[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.editor-form-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: .65rem;
|
||||
}
|
||||
|
||||
.editor-form-actions > button {
|
||||
flex: 1 1 11rem;
|
||||
}
|
||||
|
||||
.editor-danger-button {
|
||||
align-items: center;
|
||||
background: #b42318;
|
||||
border: 1px solid #b42318;
|
||||
color: #fff;
|
||||
display: inline-flex;
|
||||
font-weight: 700;
|
||||
gap: .55rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.editor-danger-icon {
|
||||
color: #fff;
|
||||
font-size: 1.45rem;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.editor-round-button {
|
||||
align-items: center;
|
||||
background: #315d3a;
|
||||
@@ -236,6 +353,9 @@
|
||||
.editor-round-button:focus-visible,
|
||||
.editor-primary-button:focus-visible,
|
||||
.editor-secondary-button:focus-visible,
|
||||
.editor-danger-button:focus-visible,
|
||||
.editor-media-preview-select:focus-visible,
|
||||
.editor-media-remove:focus-visible,
|
||||
.editor-icon-button:focus-visible {
|
||||
outline: .2rem solid #f2ca6b;
|
||||
outline-offset: .15rem;
|
||||
@@ -383,12 +503,6 @@
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.editor-coordinate-grid {
|
||||
display: grid;
|
||||
gap: .55rem;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.editor-secondary-button,
|
||||
.editor-icon-button {
|
||||
background: #fff;
|
||||
@@ -446,12 +560,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 42rem) {
|
||||
.editor-coordinate-grid {
|
||||
grid-template-columns: max-content minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 34rem) {
|
||||
.editor-media-actions {
|
||||
grid-template-columns: 1fr;
|
||||
|
||||
Reference in New Issue
Block a user