На любой странице с Sigma-9:
[[include theme:foxtrot]]
Что это?
Foxtrot - эстетическая тема, основанная на Sigma-9. Её цель — имитировать визуальный стиль крупного предстоящего обновления Basalt — совмещая современный "плоский" дизайн с удобством ранних тем Sigma-9.
Её можно рассматривать как промежуточную тему для тех, кто хочет воспользоваться новым внешним видом Basalt до его обновления.
Тема Foxtrot основана на множестве уже существующих тем, в частности Blankstyle и Penumbra. В неё встроены и светлый, и тёмный вариант, причём статьи можно легко переключать между ними.
1 Варианты
1.1 On Guard 43
[[include theme:foxtrot canada=a]]
1.2 S&C Plastics
[[include theme:foxtrot slothspit=a]]
1.3 From 120's Archives
[[include theme:foxtrot poland=a]]
1.4 Vanguard
[[include theme:foxtrot vanguard=a]]
1.13 Тёмный режим
Для использования тёмного варианта темы, добавьте параметр dark=a
. Несколько параметров можно передать, разделив их |
. Например, вот так:
[[include theme:foxtrot dark=a|threshold=a]]
2 Настройки
2.1 Переменные
Далее представлены переменные CSS, которые можно использовать для управления аспектами данной темы.
3 Элементы
3.1 Блоки
Блоки, которые включены в тему или изменены ею.
[[div class="blockquote"]]
[[div class="modal"]]
[[div class="jotting"]]
[[div class="paper"]]
[[div class="notation"]]
3.2 Окрашивание
Многие элементы можно окрасить, обернув их в блок с классом tableX
.
table1
соответствует зелёному,table2
соответствует синему,table3
соответствует жёлтому,table4
соответствует оранжевому,table5
соответствует красному,
и table6
соответствует пурпурному.
Эта система спроектирована так, чтобы перекликаться с цветами Системы классификации аномалий, где каждый цвет означает свой уровень допуска.
Обычная таблица |
---|
Тут текст |
Тут текст |
Тут текст |
Таблица с классом table2 |
---|
Тут текст |
Тут текст |
Тут текст |
Таблица с классом table5 |
---|
Тут текст |
Тут текст |
Тут текст |
Обычная цитата
Цитата с классом table1
Цитата с классом table3
3.3 Дополнительно
Несколько дополнительных советов.
- Оформление спойлеров, которое сильно изменено в этой теме, может быть сброшено до изначального, если их обернуть в блок с классом
default-col
.
- Почти любому элементу можно придать скруглённые края, если поместить его в блок с классом
round
.
Обычная цитата
Закруглённая цитата
- Параметр
hidetitle=a
скрывает заголовок страницы.
- Параметр
wide=a
расширяет ширину страницы, однако это может помешать каким-либо блокам со смещением (поддержка таких блоков встроена в эту тему).
- Параметр
verdana=a
переключает шрифт тела статьи на Verdana.
См. также: Тема SCPedia, theme:eigenvector
Это - вариант темы Eigenvector от
EstrellaYoshte, созданный
Billith и предназначенный для общего пользования. Базовый вариант темы ассоциируется с SCP-объектами Центра П.М., но его можно настроить под большое множество других потребностей.
Для подключения этой темы к своей статье, добавьте в неё этот текст:
[[include theme:eigenmachine]]
Добавьте этот параметр для оформления удалений:
[[include theme:eigenmachine delete=a]]
(Посмотреть на неё в действии)
Добавьте этот параметр для светлой темы:
[[include theme:eigenmachine light=a]]
(Посмотреть на неё в действии)
Добавьте этот параметр для варианта murder of the universe:
[[include theme:eigenmachine murder=a]]
(Посмотреть на неё в действии)
Каждая вариация предоставляет уникальный набор окрашенных блоков, не забудьте заценить их! Также в разработке находится ретро-вариант.
Основы
Image.
Горизонтальная линия может быть создана при помощи 5 дефисов "-----" и проходит через всю страницу, если он не находится внутри чего-либо (например, цитат). Линии, разделяющие разделы этой страницы, представляют собой горизонтальные линии.
Заголовки можно создать, поставив от одного до шести плюс "+" в начале строки
Это цитата, её можно создать поставив "> " в начале строки.
Больше текстаЭто горизонтальная линия.
Вложенная цитата.
Продолжаем вкладывать
Сколько душе угодно
вот | система | клеток |
---|---|---|
связанных | внутри | |
клеток | связанных | внутри |
единой таблицы1 |
Специальные блоки
Эта тема расширяет классы oheader
/capt
из Eigenvector, добавляя новые цвета, детали и новый класс ocolor:
div class oheader
div class capt
Класс блоков logger
используется для оформления разговоров. Его можно отличить по едва заметному круглому узору на фоне:
[КОНТАКТНАЯ ИНФОРМАЦИЯ УДАЛЕНА]
пожалуйста, хватит писать мне о своей новой теме.
[[div class="wikibox"]]
Изображение внутри wikibox.
span class capt red
span class capt sandy
span class capt orange
span class capt enki
span class capt desertblue
span class capt mimosa
span class capt dark
span class capt vanta
это | таблица |
внутри | wikibox |
span class s-title
Идеален для подразделов.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pellentesque felis eu vulputate suscipit. Vestibulum dui elit, ornare eget eros ut, gravida finibus velit. Pellentesque et diam vel turpis semper ullamcorper. Integer scelerisque malesuada enim, a semper risus molestie eget. Fusce luctus ex in ante feugiat fermentum. In nec sodales nibh. Suspendisse potenti. Aenean in volutpat turpis, in dictum sapien. Quisque vehicula turpis nec ligula feugiat commodo. Maecenas ornare lorem vel commodo mattis. Sed egestas dignissim sapien nec pulvinar.
В этой секции используется div class box
.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec pellentesque felis eu vulputate suscipit. Vestibulum dui elit, ornare eget eros ut, gravida finibus velit. Pellentesque et diam vel turpis semper ullamcorper. Integer scelerisque malesuada enim, a semper risus molestie eget. Fusce luctus ex in ante feugiat fermentum. In nec sodales nibh. Suspendisse potenti. Aenean in volutpat turpis, in dictum sapien. Quisque vehicula turpis nec ligula feugiat commodo. Maecenas ornare lorem vel commodo mattis. Sed egestas dignissim sapien nec pulvinar.
В этой секции используется div class dashbox bubblegum medium
.
In ligula ipsum, posuere sit amet turpis in, cursus euismod tellus. Maecenas vestibulum nunc in euismod auctor. Donec ultrices tempor felis sit amet ornare. Nam nec lectus sit amet nisl bibendum condimentum. Morbi eu arcu quis mi pulvinar fringilla. Ut fringilla interdum urna, at porta sapien vulputate quis. Integer eu scelerisque urna. Morbi luctus, justo eget viverra feugiat, leo quam egestas velit, sit amet feugiat nisi nibh molestie metus. Phasellus ut blandit ex. Ut aliquam, nisl ut aliquam volutpat, sem lorem tempor mi, sit amet ultricies nunc ante eu libero. Aenean lacinia porta nisi, in finibus quam. Aliquam erat volutpat. Aliquam malesuada libero id dapibus efficitur. Cras bibendum, dolor sit amet sagittis scelerisque, lorem magna ornare purus, vel accumsan leo tortor sit amet dolor. Maecenas finibus ante eget purus ullamcorper, vel elementum purus auctor. Quisque sagittis, leo et pretium efficitur, orci nulla interdum enim, in dignissim enim quam in neque.
Другие блоки
razer
, типа как "raiser", потому что как бы поднимает:
div class razer
inter
, который меняет цвет текста в зависимости от класса цвета:
div class inter
div class inter purp
lightpanel
и darkpanel
— настраиваемые альтернативные блоки:
div class lightpanel
background color --light-color
font color --dark-color
link color --dark-link
div class darkpanel
background color --dark-color
font color --light-color
link color --light-link
Классы цветов на них тоже работают:
div class lightpanel bubblegum
Сами по себе, блоки space
просто изменяют пространство под нужды, не более:
Lorem ipsum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Multum refert patienti medicum imitari, sed tempus edax et dolorosum, quia nemo pulchrius opus facit quam lucrum. Ludere velit, cupiditate velit obcaecati. Errat. Item hoc est "Lorem Ipsum", sed per interpretem centies currite. Cogitavi modo te scire velle. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Добавляйте классы цвета/размера/направления/блоков чтобы настраивать вышеупомянутые элементы как вам надо. Можете поэкспериментировать:
Плашки
Для использования в статьях Отдела удалений:
div class deletions_memo
Для использования в статьях с участием Надзора Представителей:
div class underwatch_memo
Если включена функция минимизации анимаций, гифка на фоне заменится на статичное изображение.
Для использования в чём угодно:
div class custom_memo
Для редактирования содержимого используйте переменные --custom-header
, --custom-logo
, и --custom-color
. Также можно использовать классы цветов. Пример:
div class custom_memo deep
Продвинутые штучки
Затухание/проявление
Добавьте классы fade-in1
, fade-in2
и fade-in3
, чтобы заставить отдельные элементы проявляться при загрузке или взаимодействии.
Аналогично вы можете использовать fade-out1
, fade-out2
и fade-out3
для достижения обратного эффекта, однако учтите, что fade-out1
использует те же --scale1
, --delay1
и --loop1
, что и fade-in1
(См. ниже для подробностей).
ПРЕДУПРЕЖДЕНИЕ: Если вы хотите, чтобы элемент постоянно мерцал, используйте класс blinkenlights
!
Если включена функция минимизации анимаций, эта анимация не будет проигрываться.
Надписи
Курсор (только в настольной версии сайта)
Стандартный курсор — указатель. Некоторые элементы по умолчанию имеют отличиающиеся курсоры. Например:
Здесь будет перекрестие. |
---|
Здесь будут песочные часы. |
Настраивается с помощью классов курсоров:
Астериски*
* которые на самом деле не астериски.
Астериски используются вместо/вместе с горизонтальными линиями для отделения разделов статьи. К примеру, вы можете использовать горизонтальные линии внутри блоков, а их — вне блоков. Они также хорошо подходят для иконок и загрузочных анимаций.
Если поместить изображение в блок с классом asterisk
, оно будет отформатировано по необходимому размеру, который можно задать с помощью --astersize
. Он также функционирует как обёртка для некоторых анимаций, применяемых к блоку. Используйте вспомогательный класс inverse
для инвертирования цветов астериска для более тёмных цветовых палитр.
Используйте класс spinner
(контролируется --scale1
и --loop2
), для добавления анимации вертикального вращения (оберните астериск блоком с классом контейнера contain-aster
):
Используйте класс rotator
(контролируется --scale2
и --loop2
), для добавления анимации горизонтального вращения (оберните астериск блоком с классом контейнера contain-aster
):
Используйте с умом. Если включена функция минимизации анимаций, эти анимации проигрываться не будут.
Переменные
Для изменения значений переменных, добавьте в статью модуль CSS, вот так:
[[module CSS]]
[[/module]]
Затем добавьте псевдо-класс :root
:
[[module CSS]]
:root {
}
[[/module]]
А теперь добавляйте необходимые переменные и значения, которые вы хотите им присвоить:
[[module CSS]]
:root {
--variable-name: value;
}
[[/module]]
наиболее важные переменные:
переменная | значение по умолчанию | единица измерения |
---|---|---|
--scale | 3 | секунды |
Определяет продолжительность анимаций fade-in1 , fade-out1 , spinner , rotator и blinkenlights | ||
--scale2 | 1 | секунды |
Определяет продолжительность анимаций fade-in2 и fade-out2 | ||
--scale3 | 2 | секунды |
Определяет продолжительность анимаций fade-in3 и fade-out3 | ||
--delay | 0 | секунды |
Определяет задержку анимаций fade-in1 , fade-out1 , spinner и rotator | ||
--delay2 | 3 | секунды |
Определяет задержку анимаций fade-in2 и fade-out2 | ||
--delay3 | 5 | секунды |
Определяет задержку анимаций fade-in3 и fade-out3 | ||
--loop1 | 1 | количество (принимает infinite, unset, десятичные цифры и другие значения) |
Определяет количество проигрываний анимации fade-in1 , fade-out1 , rotator и spinner перед остановкой | ||
--loop2 | 1 | количество (принимает infinite, unset, десятичные цифры и другие значения) |
Определяет количество проигрываний анимации fade-in2 и fade-out2 перед остановкой | ||
--loop3 | 1 | количество (принимает infinite, unset, десятичные цифры и другие значения) |
Определяет количество проигрываний анимации fade-in3 и fade-out3 перед остановкой | ||
--light-color | 237, 237, 237 | значения RGB |
Устанавливает цвет фона lightpanel и цвет текста/обводки darkpanel | ||
--dark-color | 15, 2, 16 | значения RGB |
Устанавливает цвет фона darkpanel и цвет текста/обводки lightpanel | ||
--astersize | 50 | пиксели (px) |
Устанавливает размер asterisk | ||
--header-logo | Встроенное лого | url("ссылка") |
Устанавливает логотип в хедере | ||
--logger-bg | Встроенный узор | url("ссылка") |
Устанавливает узор блока logger | ||
--backdrop | Встроенный узор | url("ссылка") |
Устанавливает фоновое изображение статьи | ||
--tilesize | 0.2 (базовый) 45 (удаления) | проценты |
Устанавливает размер --backdrop . Установите на 100 для полного размера, для значений меньше рисунок будет повторяться | ||
--header-title | "ЦЕНТР ПИЛКРОУ-МИНКОВСКОГО" | "текст" |
Устанавливает заголовок хедера | ||
--header-subtitle | "ДЛЯ МНОГОПРОФИЛЬНЫХ ИССЛЕДОВАНИЙ" | "текст" |
Устанавливает подзаголовок хедера | ||
--mobile-title | "ЦЕНТР П.М." | "текст" |
Устанавливает заголовок хедера для малых экранов | ||
--mobile-subtitle | "МНОГОПРОФИЛЬНЫЙ" | "текст" |
Устанавливает подзаголовок хедера для малых экранов | ||
--author-triangle | 0 | пиксели (px) |
Изменяет/Убирает треугольную штучку над Исходный код для подписи автора | ||
--custom-header | "пользовательская плашка - здесь будет заголовок" | "текст" |
Устанавливает текст для custom_memo . | ||
--custom-logo | Встроенный логотип | url("ссылка") |
Устанавливает фоновое изображение для custom_memo | ||
--custom-color | 36, 31, 36 | значения RGB |
Устанавливает цвет фона и обводки custom_memo . Работает со всеми вышеперечисленными классами цветов | ||
--link-volume | uppercase | любое значение text-transform |
Определяет капитализацию и расстояние между символами в ссылках. | ||
--link-decor | none | любое значение text-decoration |
Определяет наличие подчерты или надчерты над символами в ссылках. | ||
--abstractor | visible | либо visible , либо hidden |
Включает/Выключает отображение заголовка страницы |
для просмотра полного списка, обратитесь к исходному коду этой страницы. |
---|
Шрифты
шрифт | использование | класс/переменная CSS |
---|---|---|
Evolventa вместо Poppins | заголовки, части ACS и ссылки в стандартном, светлом и варианте Удалений. | --header-font-primary , класс bd |
Overpass Mono | ссылки в варианте MotU | класс overpass |
Zen Kaku Gothic Antique | стандартный шрифт тела статьи. | --body-font-primary , класс zen |
Helvetica Monospaced W06 Rg вместо Fragment Mono | стандартный моноширный шрифт | --mono-font-primary , класс fragment |
DotGothic16 | особый шрифт | класс gothbit |
Silkscreen | особый шрифт | класс silk |
Chixa Demibold вместо VT323 | особый шрифт | класс VT323 |
полноширный с помощью класса wide
Это тема Turbo Vision за авторством
jakdragonx и
Croquembouche. Это чисто эстетическая тема, не основанная на чём-либо из вселенной, но имитирующая ретро-атмосферу.
Для подключения темы, вставьте следующий код в статью:
[[include theme:turbo-vision]]
Это подключает Turbo Vision в "режиме темы".
Если вас интересуют только стилизованные блоки, но не вся тема целиком, передайте параметр "blocks=a":
[[include theme:turbo-vision blocks=a]]
Это подключает Turbo Vision в "режиме компонента". Он совместим с Тема Black Highlighter.
"Режим темы" и "режим компонента" ещё будут упомянуты далее, поэтому перепроверьте какой из них использует ваша страница.
Тема Turbo Vision имитирует DOS-терминал из 90-ых — её элементы будто сделаны из множества ASCII-символов. Поэтому границы и тени элементов выглядят неуклюже и ассиметрично — они имитируют символы для отрисовки линий, где цвет задаётся цветом шрифта и фона каждого отдельного символа.
Несмотря на это, мы не дотошно следовали этому правилу и позволили себе внести несколько творческих изменений чтобы сделать опыт чуть менее болезненным.
В эту тему по умолчанию встроен компонент Скрываемый сайдбар для Sigma-9 ,освобождающий горизонтальное пространство под блоки с смещениями. Так как на маленьких экранах горизонтального пространства в принципе мало, эти блоки автоматически будут смещены в центр страницы — читатели с мобильных устройств ничего не пропустят.
Эта тема блочная, неуклюжая и цветастая. Страницы с ней могут выглядеть как кучка окон в нагромождённом интерфейсе, но в этом часть её шарма. Или нет — решать вам. Далее на этой странице есть инструкции как настроить тему по своему усмотрению.
Приведённые ниже вкладки содержат примеры FTML-разметки в данной теме.
Учтите, что оформление цитат и таблиц доступно в "режиме компонента", но оформление вкладок доступно только в "режиме темы".
Горизонтальная линия может быть создана при помощи 5 дефисов "-----" и проходит через всю страницу, если он не находится внутри чего-либо (например, цитат). Линии, разделяющие разделы этой страницы, представляют собой горизонтальные линии.
Это полужирный текст.
Это текст курсивом.
Это моноширный текст.
А теперь небольшая демонстрация работы Turbo Блоков...
Дальнейшее содержимое страницы может выглядеть или казаться ужасающим. Однако не стоит беспокоиться — всё можно разбить на простые кусочки.

Ага привет это текст
ОБЪЕКТ №
SCP-NUMBER
КЛАСС ОБЪЕКТА
ОСОБЫЕ УСЛОВИЯ СОДЕРЖАНИЯ
johnsmith12: а ты вообще понимаешь, что делаешь?
вы: Нет, лмао. Мне просто надо написать чё-нить для этой чёртовой темы.
SCP-NUMBER is currently uncontained. Whether this can be attributed to its unidentified writing or if it's just too fucking annoying to hassle with remains unknown.
In the event that one observes SCP-NUMBER for any reason — which, doesn't really make much sense when you think about it — affected subjects must refer back to their on-site therapist for Treatment #104321. Such treatment may last upwards of several hours and may be excruciatingly painful to the affected subject. Because no one wants to go to the nurse's office, for some fuck-all reason.
так а что я собирался съесть на обед?
ОПИСАНИЕ
SCP-NUMBER is nothing. Absolutely nothing at all. In fact, it is a lie. Just like you. You too are indeed a lie. Do not feel hurt or upset, as this applies to everyone universally. We condemn discrimination here at the Foundation.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
In fact, what can we describe as truth? Perhaps perception is a lie. A lie perpetrated amongst men upon other men, perhaps? Indeed, reality cannot be the same for you and me. We all have different truths and lies. We are, of course, three-dimensional creatures. We crave understanding. We desire knowledge and will seek it out despite some of our best intentions.
Perhaps you believe that I'm only typing nonsense because I just want to lengthen this more for an extra colored box? Perhaps, but regardless of such meager wishes, I only want to allow you the moment of self-reflection. Are you, in fact, real? No. As I've already said prior, you are just a false image. A false image of the world you're currently living on. That is all.
КАК ИСПОЛЬЗОВАТЬ
To create a chunky shadowed Turbo Block like the one this text is in, create a div with the following classes:
- "turbo-block"
- a class that sets the background color
- a class that sets the border color
- a class that sets the text color
This theme provides all of these classes.
БЛОК
The "turbo-block" class creates the Turbo Block itself. You can use it by itself without any of the other classes, but it'll probably look weird (it won't have a background, for example).
[[div class="turbo-block"]]
Тут мог быть ваш текст
[[/div]]
ЦВЕТ ФОНА
This theme provides a bunch of background color utility classes, of the form "bg-[color]". Here are all of them:
[[div class="turbo-block bg-red"]]
[[div class="turbo-block bg-grey"]]
[[div class="turbo-block bg-green"]]
[[div class="turbo-block bg-cyan"]]
[[div class="turbo-block bg-orange"]]
[[div class="turbo-block bg-yellow"]]
[[div class="turbo-block bg-purple"]]
[[div class="turbo-block bg-black"]]
[[div class="turbo-block bg-white"]]
ЦВЕТ ГРАНИЦЫ
There are two border color classes: "border-black" and "border-white". Turbo Blocks doesn't come with a border by default, so you'll have to pick one for each turbo-block.
Note that all divs created with the "turbo-block" class have a double-lined border. Blockquotes, tables and tabviews have a single-lined border.
ЦВЕТ ТЕКСТА
There are two text color classes: "text-black" and "text-white". They make the default text color in the turbo-block black and white respectively.
Each Turbo Block can have a title and a bunch of headings. The title is the text that appears right at the top — the title of this one is "HEADINGS". Do that by adding a "data-title" attribute to the block div:
[[div class="turbo-block ..." data-title="ВПИШИТЕ СЮДА ЗАГОЛОВОК"]]
To match the original Turbo Vision program, block titles should be in capitals, but this isn't enforced — you can put any text there you like.
However, do try to keep them short, because they look weird if they overflow:
Видите, что я имею ввиду?
The source code for that:
[[div class="turbo-block bg-grey border-black text-black" data-title="О, смотрите! Я слишком длинный заголовок!"]]
Видите, что я имею ввиду?
[[/div]]
Think of the poor mobile readers — keep your titles short.
ЗАГОЛОВКИ
Within a Turbo Block, you can create a subsection heading with the "heading" class — here's the code for the above one:
[[div class="heading"]]
ЗАГОЛОВКИ
[[/div]]
If you want to add a line like a heading but without any text in it, just add a horizontal rule with 4 or 5 hyphens:
↑ Just like that.
You can put anything you like inside a Turbo Block, including images. To add an image, the best way is to make a Turbo Block div and put the standard image block component inside it.
Here's the one for the image turbo-block used in the example earlier in this page:
[[div class="turbo-block bg-orange border-white text-white" data-title="ИЗОБРАЖЕНИЕ"]]
[[include component:image-block
| name=scpimage.png
| caption=Ага привет это текст
]]
[[/div]]
So far, these instructions have covered how to create Turbo Blocks. You can put a Turbo Block inside another Turbo Block, but just doing that won't create a cluttered feel, like a messy pile of notes on a disorganized researcher's desk — to do that, some of them need to be moved to the left and right.
That can be done using offset classes. The Turbo Vision theme provides classes for moving something to the left:
- "offset-left"
- "left-1"
- "left-2"
- "left-3"
- "left-4"
- "left-5"
...and to the right:
- "offset-right"
- "right-1"
- "right-2"
- "right-3"
- "right-4"
- "right-5"
To move something to the left, wrap it in a div with two classes: "offset-left", and then one of "left-1" through "left-5", depending on how far to the left you want it moved. "left-1" will only move it a little bit, but "left-5" will move it a lot — all the way to the left-hand side of the screen.
To move something to the right, it's exactly the same, but swap out "left" for "right".
СМЕЩЕНИЯ НА МОБИЛЬНЫХ УСТРОЙСТВАХ
If you've worked with CSS before, you're probably thinking that using up too much horizontal screen space is a very dangerous game — these offset divs are going to look terrible on mobile.
Have no fear! On small screen sizes, offset divs will be placed closer to the middle of the page, and on very small screen sizes, the offset will be turned off altogether.
For authors, this means that while mobile users will always see all of the content you put into offset divs, it might not look as cluttered as you intended it. Always test your design on mobile before you publish it to check that the reading experience is solid for everyone.
СОЗДАНИЕ БЛОКОВ СО СМЕЩЕНИЕМ
To create an offset block, combine two of the above classes, to determine the offset direction and intensity:
[[div class="offset-left left-3"]]
[[/div]]
If you want to offset a Turbo Block, put it inside the offset block (don't add the offset classes to the Turbo Block directly):
[[div class="offset-left left-3"]]
[[div class="turbo-block bg-white border-black text-black"]]
привет!
[[/div]]
[[/div]]
привет!
If you're on a wide browser (e.g. desktop), the above example is on the left. If you're on a thin browser (e.g. mobile), the above example is above this text.
Because the offset block is a different element to the Turbo Block, this means that you can actually offset anything you like, just by putting it inside a div with offset classes. Try offsetting an image turbo-block!
ОЧИСТКА FLOAT
Offset blocks work using the CSS "float" property. When a HTML element is floating, stuff underneath it is pulled upwards to fill the space that it leaves behind.
This isn't always desirable. Maybe you want a floating offset block, but you want the text underneath it to appear where it would be if the offset block wasn't floating. This would leave a big gap for you to put something else there, if you like.
You can do this using the CSS "clear" property — a practice that's commonly referred to as a "clearfix". Wikidot lets you do this with 4 tilde characters (~~~~):
[[div class="offset-left left-3"]]
[[div class="turbo-block bg-white border-black text-black"]]
привет!
[[/div]]
[[/div]]
~~~~
привет!
This text isn't pulled upwards to fill the space, resulting in a big gap on desktop. On mobile, of course, there is no change.
ПРИМЕРЫ
Here are examples for all the different offset combinations.
Your browser has a wide screen (or at least CSS says so), so take a look at the examples below and adjust your window size to see how the offset divs react.
Your browser has a thin screen (or at least CSS says so), which means you're likely on a mobile device. The offset examples below will appear as a bunch of boring, center-aligned divs. Try looking at this page in a wider browser later to see the offsets.
[[div class="offset-left left-5"]]
[[div class="offset-left left-4"]]
[[div class="offset-left left-3"]]
[[div class="offset-left left-2]]
[[div class="offset-left left-1"]]
[[div class="offset-right right-1"]]
[[div class="offset-right right-2"]]
[[div class="offset-right right-3"]]
[[div class="offset-right right-4"]]
[[div class="offset-right right-5"]]
There are certain circumstances in which you shouldn't use some of the offset classes. You still can, of course, but it will have an adverse effect on your page.
Which classes are available to you depends on the position of the sidebar and whether or not the page content is center-aligned with respect to the browser viewport. It also depends on whether you are using this theme in 'theme mode' or 'component mode' — please review the usage instructions at the very top of the page for a reminder of which is which.
РЕЖИМ ТЕМЫ
If you are using the Turbo Vision theme in 'theme mode', it comes with Скрываемый сайдбар для Sigma-9 , which center-aligns the page content and frees up as much horizontal space as possible. You may freely use all of the offset classes.
РЕЖИМ КОМПОНЕНТА
If you are using the Turbo Vision theme in 'component mode', it does not come with Скрываемый сайдбар для Sigma-9 by default. This limits the horizontal space.
If you are using Toggle Sidebar anyway, your page body is center-aligned. You may freely use all of the offset classes.
If you are not using Toggle Sidebar, the page body is on the right-hand side of the page. You should avoid using any of the right-hand offset classes, as they may go off the edge of the screen. You should also avoid using any left-hand offset classes near the start of the page, as they may overlap with the sidebar.
If you are using Тема Black Highlighter, the page body is centered, so you may freely use the right-hand offset classes. However, the sidebar is present throughout the entire document, so you should avoid using any of the left-hand offset classes.
If you are using BHL and Скрываемый сайдбар для Black Highlighter, this frees up the space on the left, so you may freely use the left-hand offset classes as well.
TL;DR
In short: avoid offsetting to the left if there is a sidebar, and avoid offsetting to the right if the page content is not centered.
Вот и вся тема.