mirror of
https://github.com/friebetill/obsidian-file-diff.git
synced 2026-07-22 07:40:25 +00:00
81 lines
1.1 KiB
CSS
81 lines
1.1 KiB
CSS
.file-diff__container {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
overflow-x: scroll;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.file-diff__line {
|
|
padding: 0.1rem 0;
|
|
}
|
|
|
|
.button-container {
|
|
text-align: right;
|
|
}
|
|
|
|
button:focus-visible {
|
|
box-shadow: var(--input-shadow);
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
.file-diff__top-line__bg {
|
|
background-color: #d9f4ef;
|
|
}
|
|
|
|
.file-diff__bottom-line__bg {
|
|
background-color: #d9edff;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.file-diff__top-line__bg {
|
|
background-color: #25403b;
|
|
}
|
|
|
|
.file-diff__bottom-line__bg {
|
|
background-color: #25394b;
|
|
}
|
|
}
|
|
|
|
.file-diff__action-line {
|
|
color: #919191;
|
|
}
|
|
|
|
/* Tailwind CSS */
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-row {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.gap-1 {
|
|
gap: 0.25rem; /* 4px */
|
|
}
|
|
|
|
.no-decoration {
|
|
text-decoration-line: none;
|
|
}
|
|
|
|
.no-decoration:hover {
|
|
text-decoration-line: none;
|
|
}
|
|
|
|
.text-xxs {
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
/* Rename from py-0.5 to py-0-5, because dots aren't allowed in class names */
|
|
.py-0-5 {
|
|
padding-top: 0.125rem; /* 2px */
|
|
padding-bottom: 0.125rem; /* 2px */
|
|
}
|
|
|
|
.mr-2 {
|
|
margin-right: 0.5rem; /* 8px */
|
|
}
|
|
|
|
.mb-20 {
|
|
margin-bottom: 5rem; /* 80px */
|
|
}
|