draw/src/components/DrawingCard.module.css
Adrián Borrageiros Mourelos ddd0eba390 SAVE
2025-05-13 23:01:28 +02:00

288 lines
4.8 KiB
CSS

.cardContainer {
border: 1px solid #e0e0e0;
border-radius: 8px;
background-color: #ffffff;
padding: 1rem;
transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.3s ease, border-color 0.3s ease;
display: flex;
flex-direction: column;
}
:global(.dark) .cardContainer {
background-color: #1e1e1e;
border-color: #333;
}
.cardContainer:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
}
:global(.dark) .cardContainer:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.titleContainer {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.titleLink {
text-decoration: none;
color: inherit;
flex-grow: 1;
margin-right: 0.5rem;
}
.cardTitle {
font-size: 1.2rem;
font-weight: 600;
color: #333;
margin: 0;
word-break: break-word;
}
:global(.dark) .cardTitle {
color: #e0e0e0;
}
.editButton {
background: none;
border: none;
padding: 0.25rem;
cursor: pointer;
color: #555;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}
.editButton:hover {
color: #000;
background-color: #f0f0f0;
}
.actionButtonsContainer {
display: flex;
gap: 0.25rem;
}
.iconButton {
background: none;
border: none;
padding: 0.25rem;
cursor: pointer;
color: #555;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: background-color 0.2s ease, color 0.2s ease;
}
:global(.dark) .iconButton {
color: #aaa;
}
.iconButton:hover {
color: #000;
background-color: #f0f0f0;
}
:global(.dark) .iconButton:hover {
color: #fff;
background-color: #333;
}
.deleteButton:hover {
color: #d9534f;
}
:global(.dark) .deleteButton:hover {
color: #ff7875;
}
.inlineEditForm {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.inlineInput {
padding: 0.5rem 0.7rem;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1rem;
flex-grow: 1;
background-color: #fff;
color: #333;
}
:global(.dark) .inlineInput {
background-color: #2a2a2a;
border-color: #444;
color: #e0e0e0;
}
.inlineInput:focus {
outline: none;
border-color: #0070f3;
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
}
:global(.dark) .inlineInput:focus {
border-color: #0070f3;
box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.3);
}
.formActionButton {
padding: 0.5rem 0.9rem;
border: none;
border-radius: 4px;
font-size: 0.85rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.1s ease;
}
.formActionButton:active {
transform: translateY(1px);
}
.confirmButton {
background-color: #28a745;
color: white;
}
.confirmButton:hover {
background-color: #218838;
}
.cancelButton {
background-color: #6c757d;
color: white;
}
.cancelButton:hover {
background-color: #5a6268;
}
.cardLinkUnderTitle {
text-decoration: none;
color: inherit;
}
.cardContent {
margin-top: auto;
}
.cardDate {
font-size: 0.8rem;
color: #777;
margin-top: 0.5rem;
}
:global(.dark) .cardDate {
color: #aaa;
}
.renameErrorText {
color: #d9534f;
font-size: 0.8rem;
margin-bottom: 0.5rem;
}
:global(.dark) .renameErrorText {
color: #ff7875;
}
.thumbnailPlaceholder {
width: 100%;
height: 150px;
background-color: #f0f0f0;
display: flex;
align-items: center;
justify-content: center;
color: #999;
border-radius: 4px;
margin-bottom: 12px;
}
:global(.dark) .thumbnailPlaceholder {
background-color: #2a2a2a;
color: #aaa;
}
.cardActions {
margin-top: 16px;
display: flex;
justify-content: flex-end;
}
.modalErrorText {
color: #d9534f;
font-size: 0.9rem;
margin: 0.5rem 0;
padding: 0.5rem;
background-color: rgba(217, 83, 79, 0.1);
border-radius: 4px;
}
:global(.dark) .modalErrorText {
color: #ff7875;
background-color: rgba(255, 120, 117, 0.15);
}
.modalFooter {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
margin-top: 1rem;
}
.modalButtonCancel {
padding: 0.6rem 1.2rem;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
background-color: #f8f9fa;
color: #333;
border: 1px solid #ced4da;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
:global(.dark) .modalButtonCancel {
background-color: #333;
color: #e0e0e0;
border-color: #555;
}
.modalButtonCancel:hover {
background-color: #e2e6ea;
border-color: #dae0e5;
}
:global(.dark) .modalButtonCancel:hover {
background-color: #444;
border-color: #666;
}
.modalButtonConfirm {
padding: 0.6rem 1.2rem;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
background-color: #d9534f;
color: white;
border: 1px solid #d9534f;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.modalButtonConfirm:hover {
background-color: #c9302c;
border-color: #ac2925;
}