Newer
Older
2024-C1232021_kanata / ikiikiMAP.css
/* 全体レイアウト調整 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* 横並びレイアウト */
#container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左側:履歴メニュー */
#sidebar {
    width: 30%;
    min-width: 250px;
    max-width: 500px;
    background-color: #fff;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#sidebar h2 {
    margin-top: 0;
    color: #4CAF50;
}

#comments-list {
    margin-top: 10px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* 地図(右側) */
#map {
    width: 70%;
    height: 100vh;
    z-index: 0;
}

/* コメント履歴エントリ */
.history-entry {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* コメント編集 */
.comment-text[contenteditable="true"] {
    border: 1px dashed #ccc;
    padding: 4px;
    background-color: #f9f9f9;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}
.comment-text[contenteditable="true"]:focus {
    outline: 2px solid #4CAF50;
}

/* ======================= */
/* Leaflet ポップアップ調整 */
/* ======================= */
.leaflet-popup-content {
    width: 350px !important;
    max-width: none !important;
}

/* テキストエリア拡大 */
.leaflet-popup-content textarea,
.large-popup textarea,
.comment-input {
    width: 100%;
    height: 100px;
    font-size: 1rem;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ccc;
    resize: vertical;
}

/* 保存ボタン */
.leaflet-popup-content button,
.large-popup button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.leaflet-popup-content button:hover {
    background-color: #45a049;
}