diff --git a/src/components/PagePopup.vue b/src/components/PagePopup.vue index af73cd8..ffbb152 100644 --- a/src/components/PagePopup.vue +++ b/src/components/PagePopup.vue @@ -186,10 +186,16 @@ - +
-
@@ -237,7 +243,7 @@ const visible = ref(false); const position = ref({ x: 0, y: 0 }); const selectedPageElement = ref(null); const isEditable = ref(false); -const inheritanceUnlocked = ref(false); +const inheritanceLocked = ref(true); const backgroundColorInput = ref(null); let isUpdatingFromStore = false; @@ -408,8 +414,8 @@ const close = () => { }; const toggleInheritance = () => { - inheritanceUnlocked.value = !inheritanceUnlocked.value; - // TODO: Implement inheritance unlock logic + inheritanceLocked.value = !inheritanceLocked.value; + // TODO: Implement CSS priority logic when unlocked }; const pageCss = computed(() => { @@ -538,19 +544,26 @@ defineExpose({ open, close, visible }); /* Unit toggle styles are inherited from global styles */ -.unlock-btn { - width: 100%; - padding: 0.5rem; +.inheritance-btn { + display: flex; + align-items: center; + gap: 0.5rem; + padding: 0; background: transparent; - border: 1px solid #ddd; - border-radius: 4px; + border: none; cursor: pointer; font-size: 0.875rem; - transition: background 0.2s; + color: #666; + transition: color 0.2s; } -.unlock-btn:hover { - background: #f5f5f5; +.inheritance-btn:hover { + color: #333; +} + +.inheritance-btn svg { + width: 1.25rem; + height: 1.25rem; } .popup-css {