231 lines
4.2 KiB
CSS
231 lines
4.2 KiB
CSS
/* Título "Portal De Paula" no topbar da tela inicial — não é widget, mas
|
|
widgets.css é o único CSS próprio de portal.html, então fica aqui. */
|
|
#portal-title {
|
|
font-family: "Bree Serif", serif;
|
|
font-weight: 400;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.widgets-section {
|
|
margin-top: var(--space-7);
|
|
}
|
|
|
|
.widgets-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-4);
|
|
margin-bottom: var(--space-5);
|
|
}
|
|
|
|
.widgets-header h2 {
|
|
font-size: 1.05rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.widgets-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.widgets-empty {
|
|
width: 100%;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
padding: var(--space-6);
|
|
border: 1px dashed var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.widget-card {
|
|
position: relative;
|
|
background: var(--card-bg);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-4);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
min-width: 240px;
|
|
min-height: 160px;
|
|
max-width: 100%;
|
|
resize: both;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.widget-card--dragging {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.widget-card--drop-before,
|
|
.widget-card--drop-after {
|
|
box-shadow: inset 3px 0 0 0 var(--accent);
|
|
}
|
|
|
|
.widget-card--drop-after {
|
|
box-shadow: inset -3px 0 0 0 var(--accent);
|
|
}
|
|
|
|
.widget-card__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-2);
|
|
cursor: grab;
|
|
}
|
|
|
|
.widget-card__header h3 {
|
|
font-size: 0.92rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.widget-card__remove {
|
|
width: 26px;
|
|
height: 26px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-muted);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
|
|
}
|
|
|
|
.widget-card:hover .widget-card__remove {
|
|
opacity: 1;
|
|
}
|
|
|
|
.widget-card__remove:hover {
|
|
color: var(--danger);
|
|
background: var(--bg-surface-raised);
|
|
}
|
|
|
|
.widget-card__body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
min-height: 40px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.widget-agenda-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: var(--space-3);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.widget-agenda-row__date {
|
|
flex-shrink: 0;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
min-width: 68px;
|
|
}
|
|
|
|
.widget-agenda-row__title {
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.widget-agenda-row__owner {
|
|
color: var(--text-muted);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.widget-card__empty {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.widget-links-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.widget-links-list__row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
font-size: 0.85rem;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.widget-links-list__row:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.widget-links-list__row span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.widget-links-list__icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
object-fit: contain;
|
|
border-radius: var(--radius-sm);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.widget-links-list__icon--default {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.widget-card__link {
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.widget-card__link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Seletor de widgets (modal) */
|
|
.widget-picker-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.widget-picker-option {
|
|
text-align: left;
|
|
padding: var(--space-3) var(--space-4);
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border-subtle);
|
|
color: var(--text-primary);
|
|
transition: border-color var(--transition-fast), background var(--transition-fast);
|
|
}
|
|
|
|
.widget-picker-option:hover {
|
|
border-color: var(--accent);
|
|
background: var(--bg-surface-raised);
|
|
}
|
|
|
|
.widget-picker-option__title {
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
display: block;
|
|
}
|
|
|
|
.widget-picker-option__desc {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.widget-picker-empty {
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|