145 lines
3.0 KiB
CSS
145 lines
3.0 KiB
CSS
/* ===== OGame Notepad - finestra flottante ===== */
|
|
#ogame-notepad {
|
|
position: fixed;
|
|
left: 20px;
|
|
top: 20px;
|
|
width: 280px;
|
|
height: 360px;
|
|
z-index: 999999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
|
background: #0b1220;
|
|
border: 1px solid #2a4a6b;
|
|
border-radius: 6px;
|
|
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Barra del titolo (trascinabile) */
|
|
#ogame-notepad .onp-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: linear-gradient(180deg, #1b2f4d, #14243c);
|
|
color: #d9b45a;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid #2a4a6b;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
letter-spacing: 1px;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
|
|
user-select: none;
|
|
cursor: move;
|
|
}
|
|
|
|
#ogame-notepad .onp-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
#ogame-notepad .onp-title .onp-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
background: radial-gradient(circle at 35% 35%, #7fd0ff, #2a6bb0);
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 8px #2a6bb0;
|
|
}
|
|
|
|
#ogame-notepad .onp-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
#ogame-notepad .onp-btn {
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
color: #9db8d6;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
padding: 1px 6px;
|
|
line-height: 1;
|
|
border-radius: 3px;
|
|
}
|
|
#ogame-notepad .onp-btn:hover {
|
|
background: #2a4a6b;
|
|
color: #ffffff;
|
|
border-color: #3a6a9b;
|
|
}
|
|
|
|
#ogame-notepad textarea {
|
|
flex: 1;
|
|
resize: none;
|
|
border: none;
|
|
background: #0b1220;
|
|
color: #dce6f2;
|
|
padding: 10px;
|
|
font-size: 13px;
|
|
line-height: 1.55;
|
|
font-family: inherit;
|
|
outline: none;
|
|
}
|
|
#ogame-notepad textarea::placeholder {
|
|
color: #4a5f7a;
|
|
}
|
|
|
|
#ogame-notepad .onp-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: #101a2c;
|
|
color: #6f87a3;
|
|
padding: 5px 10px;
|
|
border-top: 1px solid #2a4a6b;
|
|
font-size: 11px;
|
|
}
|
|
|
|
#ogame-notepad .onp-footer .onp-status {
|
|
color: #6fbf6f;
|
|
}
|
|
|
|
/* Impugnatura per il ridimensionamento (angolo in basso a destra) */
|
|
#ogame-notepad .onp-resizer {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: nwse-resize;
|
|
z-index: 3;
|
|
}
|
|
#ogame-notepad .onp-resizer::after {
|
|
content: '';
|
|
position: absolute;
|
|
right: 3px;
|
|
bottom: 3px;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-right: 2px solid #3a6a9b;
|
|
border-bottom: 2px solid #3a6a9b;
|
|
border-radius: 0 0 3px 0;
|
|
}
|
|
#ogame-notepad .onp-resizer:hover::after {
|
|
border-color: #d9b45a;
|
|
}
|
|
|
|
/* Pulsante per riaprire il notepad quando è chiuso */
|
|
#ogame-notepad-toggle {
|
|
position: fixed;
|
|
left: 10px;
|
|
top: 20px;
|
|
z-index: 999999;
|
|
background: linear-gradient(180deg, #1b2f4d, #14243c);
|
|
color: #d9b45a;
|
|
border: 1px solid #2a4a6b;
|
|
border-radius: 6px;
|
|
padding: 10px 8px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
|
|
}
|
|
#ogame-notepad-toggle:hover {
|
|
background: linear-gradient(180deg, #2a4a6b, #1b2f4d);
|
|
}
|