Initial commit
This commit is contained in:
39
.obsidian/snippets/nav-callout.css
vendored
Normal file
39
.obsidian/snippets/nav-callout.css
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/* 1. Скрываем стандартный заголовок и иконку callout-а */
|
||||
.callout[data-callout="nav"] .callout-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 2. Настраиваем контейнер (тело callout-а) */
|
||||
.callout[data-callout="nav"] {
|
||||
background-color: transparent; /* Прозрачный фон */
|
||||
border: none; /* Убираем рамки */
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
margin-top: 40px; /* Отступ сверху */
|
||||
border-top: 1px solid var(--background-modifier-border); /* Линия разделитель */
|
||||
}
|
||||
|
||||
/* 3. Выстраиваем ссылки в одну строку и разносим по краям */
|
||||
.callout[data-callout="nav"] .callout-content > p {
|
||||
display: flex;
|
||||
justify-content: space-between; /* Левый элемент влево, правый вправо */
|
||||
align-items: center;
|
||||
margin: 10px 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 4. Стилизация самих кнопок-ссылок */
|
||||
.callout[data-callout="nav"] a.internal-link {
|
||||
padding: 8px 16px;
|
||||
background-color: var(--interactive-accent); /* Цвет акцента */
|
||||
color: var(--text-on-accent);
|
||||
border-radius: 20px;
|
||||
text-decoration: none;
|
||||
font-size: 0.9em;
|
||||
transition: transform 0.2s, opacity 0.2s;
|
||||
}
|
||||
|
||||
.callout[data-callout="nav"] a.internal-link:hover {
|
||||
opacity: 0.9;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
33
.obsidian/snippets/navigation.css
vendored
Normal file
33
.obsidian/snippets/navigation.css
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Контейнер для навигации */
|
||||
.lecture-nav {
|
||||
display: flex;
|
||||
justify-content: space-between; /* Распределяет кнопки по краям */
|
||||
margin-top: 50px; /* Отступ сверху от конспекта */
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--background-modifier-border); /* Линия-разделитель */
|
||||
}
|
||||
|
||||
/* Стиль для ссылок внутри контейнера */
|
||||
.lecture-nav a.internal-link {
|
||||
display: inline-block;
|
||||
padding: 8px 16px;
|
||||
background-color: var(--interactive-accent); /* Цвет акцента вашей темы */
|
||||
color: var(--text-on-accent);
|
||||
text-decoration: none;
|
||||
border-radius: 6px; /* Закругление углов */
|
||||
font-size: 0.9em;
|
||||
transition: transform 0.1s ease, background-color 0.2s;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Эффект при наведении */
|
||||
.lecture-nav a.internal-link:hover {
|
||||
background-color: var(--interactive-accent-hover);
|
||||
transform: translateY(-2px); /* Легкое поднятие кнопки */
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Если есть только кнопка "Следующий" (чтобы она ушла вправо) */
|
||||
.lecture-nav .nav-next-only {
|
||||
margin-left: auto;
|
||||
}
|
||||
Reference in New Issue
Block a user