2024-10-25 18:58:08 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
This CSS file will be included with your plugin, and
|
|
|
|
|
available in the app when your plugin is enabled.
|
|
|
|
|
|
|
|
|
|
If your plugin does not need CSS, delete this file.
|
2024-10-27 18:33:35 +00:00
|
|
|
// Styling for the tooltip
|
|
|
|
|
dom.style.padding = "4px 8px";
|
|
|
|
|
dom.style.background = "--background-secondary";
|
|
|
|
|
dom.style.zIndex = "--layer-tooltip";
|
|
|
|
|
dom.style.color = "#fff";
|
|
|
|
|
dom.style.borderRadius = "4px";
|
|
|
|
|
dom.style.fontSize = "--font-interface-theme";
|
2024-10-25 18:58:08 +00:00
|
|
|
*/
|
2024-10-27 18:33:35 +00:00
|
|
|
.cm-tooltip {
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
background: var(--background-secondary) !important;
|
|
|
|
|
z-index: var(--layer-tooltip);
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
font-size: var(--font-interface-theme);
|
|
|
|
|
width: 80%;
|
|
|
|
|
max-width: var(--file-line-width);
|
|
|
|
|
max-height: 200px;
|
2024-10-28 23:16:20 +00:00
|
|
|
border : 1px solid var(--background-modifier-border) !important;
|
2024-10-27 18:33:35 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center; /* Center children vertically */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-10-28 23:16:20 +00:00
|
|
|
|
2024-10-27 18:33:35 +00:00
|
|
|
|
|
|
|
|
.cm-tooltip-editor {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding: 1px;
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
height: var(--line-height);
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-height: 100%; /* Ensure it can't be taller than the parent container */
|
|
|
|
|
align-items: center; /* Center children vertically */
|
|
|
|
|
background-color: var(--background-primary);
|
|
|
|
|
border: 1px solid var(--background-modifier-border-focus );
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
overflow: hidden; /* Hide any overflow content */
|
2024-10-28 23:16:20 +00:00
|
|
|
margin-left: 8px;
|
2024-10-27 18:33:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* HTML: <div class="loader"></div> */
|
|
|
|
|
.loader {
|
|
|
|
|
width: 5px; /* Adjusted width to ensure total width is 42px with box-shadow */
|
|
|
|
|
aspect-ratio: 1;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
color: var(--text-normal);
|
|
|
|
|
background: var(--background-primary);
|
|
|
|
|
animation: l5 1s infinite linear alternate;
|
|
|
|
|
margin-left: 26px;
|
|
|
|
|
margin-right: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes l5 {
|
|
|
|
|
0% {box-shadow: 10px 0 var(--text-accent), -10px 0 var(--text-faint); background: var(--text-accent) }
|
|
|
|
|
33% {box-shadow: 10px 0 var(--text-accent), -10px 0 var(--text-faint); background: var(--text-faint)}
|
|
|
|
|
66% {box-shadow: 10px 0 var(--text-faint), -10px 0 var(--text-accent); background: var(--text-faint)}
|
|
|
|
|
100%{box-shadow: 10px 0 var(--text-faint), -10px 0 var(--text-accent); background: var(--text-accent) }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.submit-button {
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
|
|
margin-left: 8px;
|
2024-10-27 20:17:43 +00:00
|
|
|
}
|
|
|
|
|
|
2024-10-28 23:16:20 +00:00
|
|
|
.reload-button {
|
|
|
|
|
margin-left: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.accept-button {
|
|
|
|
|
background-color: var(--interactive-accent) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip-button {
|
|
|
|
|
|
|
|
|
|
height: calc(var(--line-height)-12px) !important;
|
|
|
|
|
/* padding-top: 5px;
|
|
|
|
|
padding-bottom: 5px; */
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-27 20:17:43 +00:00
|
|
|
/* src/styles.css */
|
|
|
|
|
|
|
|
|
|
/* Style for Current Branch Changes */
|
|
|
|
|
.cm-conflict-current {
|
|
|
|
|
background-color: rgba(255, 0, 0, 0.2); /* Light Red Background */
|
|
|
|
|
padding-left: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Style for Incoming Branch Changes */
|
|
|
|
|
.cm-conflict-incoming {
|
|
|
|
|
background-color: rgba(0, 255, 0, 0.2); /* Light Green Background */
|
|
|
|
|
/* border-left: 4px solid green; */
|
|
|
|
|
padding-left: 2px;
|
|
|
|
|
}
|
2024-10-27 21:32:05 +00:00
|
|
|
|
|
|
|
|
.cm-selected-inline {
|
|
|
|
|
background-color: var(--text-highlight-bg);
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-28 23:16:20 +00:00
|
|
|
.cm-tooltip-arrow {
|
|
|
|
|
/* background-color: var(--background-secondary); */
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
border-left: 7px solid transparent;
|
|
|
|
|
border-right: 7px solid transparent;
|
|
|
|
|
border-top: 7px solid var(--background-modifier-border) !important;
|
|
|
|
|
}
|