mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
* Implement OmniAuth GitHub authentication * Fix omniauth GitHub scope to include user email access * Remove margin-bottom * Implement Google OAuth2 authentication * Implement OIDC authentication for Dawarich using omniauth_openid_connect gem. * Add patreon account linking and patron checking service * Update docker-compose.yml to use boolean values instead of strings * Add support for KML files * Add tests * Update changelog * Remove patreon OAuth integration * Move omniauthable to a concern * Update an icon in integrations * Update changelog * Update app version * Fix family location sharing toggle * Move family location sharing to its own controller * Update changelog * Implement basic tagging functionality for places, allowing users to categorize and label places with custom tags. * Add places management API and tags feature * Add some changes related to places management feature * Fix some tests * Fix sometests * Add places layer * Update places layer to use Leaflet.Control.Layers.Tree for hierarchical layer control * Rework tag form * Add hashtag * Add privacy zones to tags * Add notes to places and manage place tags * Update changelog * Update e2e tests * Extract tag serializer to its own file * Fix some tests * Fix tags request specs * Fix some tests * Fix rest of the tests * Revert some changes * Add missing specs * Revert changes in place export/import code * Fix some specs * Fix PlaceFinder to only consider global places when finding existing places * Fix few more specs * Fix visits creator spec * Fix last tests * Update place creating modal * Add home location based on "Home" tagged place * Save enabled tag layers * Some fixes * Fix bug where enabling place tag layers would trigger saving enabled layers, overwriting with incomplete data * Update migration to use disable_ddl_transaction! and add up/down methods * Fix tag layers restoration and filtering logic * Update OIDC auto-registration and email/password registration settings * Fix potential xss
208 lines
4.1 KiB
CSS
208 lines
4.1 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
@tailwind daisyui;
|
|
|
|
/*
|
|
|
|
@layer components {
|
|
.btn-primary {
|
|
@apply py-2 px-4 bg-blue-200;
|
|
}
|
|
}
|
|
|
|
*/
|
|
@import 'actiontext.css';
|
|
@import 'leaflet_theme.css';
|
|
|
|
@layer components {
|
|
.fade-out {
|
|
opacity: 0;
|
|
transition: opacity 150ms ease-in-out;
|
|
}
|
|
}
|
|
|
|
/* Leaflet Panel Styles */
|
|
.leaflet-right-panel {
|
|
margin-top: 80px;
|
|
/* Give space for controls above */
|
|
margin-right: 10px;
|
|
transform: none;
|
|
transition: right 0.3s ease-in-out;
|
|
z-index: 400;
|
|
background: white;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* Add Visit Marker Styles */
|
|
.add-visit-marker {
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 20px;
|
|
background: white;
|
|
border: 2px solid #007bff;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
|
|
animation: pulse-visit 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-visit {
|
|
0% {
|
|
transform: scale(1);
|
|
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
|
|
}
|
|
}
|
|
|
|
/* Visit Form Popup Styles */
|
|
.visit-form-popup .leaflet-popup-content-wrapper {
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.leaflet-right-panel.controls-shifted {
|
|
right: 310px;
|
|
}
|
|
|
|
|
|
/* Drawer Panel Styles */
|
|
.leaflet-drawer {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 70px;
|
|
/* Position to the left of the control buttons with margin */
|
|
width: 24rem;
|
|
max-height: calc(100% - 20px);
|
|
background: rgba(255, 255, 255, 0.5);
|
|
border-radius: 8px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: scale(0.95);
|
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
|
|
z-index: 450;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
height: auto;
|
|
/* Make height fit content */
|
|
cursor: default;
|
|
/* Override map cursor */
|
|
}
|
|
|
|
.leaflet-drawer * {
|
|
cursor: default;
|
|
/* Ensure all children have default cursor */
|
|
}
|
|
|
|
.leaflet-drawer a,
|
|
.leaflet-drawer button,
|
|
.leaflet-drawer .btn,
|
|
.leaflet-drawer input[type="checkbox"] {
|
|
cursor: pointer;
|
|
/* Interactive elements get pointer cursor */
|
|
}
|
|
|
|
.leaflet-drawer.open {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: scale(1);
|
|
}
|
|
|
|
/* Controls remain in place - no transition needed */
|
|
.leaflet-control-layers,
|
|
.leaflet-control-button,
|
|
.toggle-panel-button {
|
|
z-index: 500;
|
|
}
|
|
|
|
/* Selection Tool Styles */
|
|
.leaflet-control-custom {
|
|
background-color: white;
|
|
border-radius: 4px;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.leaflet-control-custom:hover {
|
|
background-color: #f3f4f6;
|
|
}
|
|
|
|
#selection-tool-button.active {
|
|
background-color: #60a5fa;
|
|
color: white;
|
|
}
|
|
|
|
/* Cancel Selection Button */
|
|
#cancel-selection-button {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Emoji Picker Styles */
|
|
em-emoji-picker {
|
|
--color-border-over: rgba(0, 0, 0, 0.1);
|
|
--color-border: rgba(0, 0, 0, 0.05);
|
|
--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
--rgb-accent: 96, 165, 250;
|
|
/* Blue accent to match application */
|
|
position: absolute;
|
|
z-index: 1000;
|
|
max-width: 400px;
|
|
min-width: 318px;
|
|
resize: horizontal;
|
|
overflow: auto;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Dark mode support for emoji picker */
|
|
[data-theme="dark"] em-emoji-picker,
|
|
html.dark em-emoji-picker {
|
|
--color-border-over: rgba(255, 255, 255, 0.1);
|
|
--color-border: rgba(255, 255, 255, 0.05);
|
|
--rgb-accent: 96, 165, 250;
|
|
}
|
|
|
|
/* Responsive emoji picker on mobile */
|
|
@media (max-width: 768px) {
|
|
em-emoji-picker {
|
|
max-width: 90vw;
|
|
min-width: 280px;
|
|
}
|
|
}
|
|
|
|
/* Color Picker Styles */
|
|
.color-input {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.color-input::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
}
|
|
|
|
.color-input::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.color-input::-moz-color-swatch {
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
}
|