Jump to content
Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

MediaWiki:Common.css: различия между версиями

Страница интерфейса MediaWiki
Чтобы у таблиц фон не вылезал за рамку
Метка: отменено
Чтобы таблицы в квадратных карточках были без скругления
 
(не показано 6 промежуточных версий этого же участника)
Строка 210: Строка 210:
}
}


/* Рамка таблицы */
/* Таблицы*/
.wikitable {
.wikitable {
     --wt-border: var(--border-color-base, #3F3F46);
     --wt-border: var(--border-color-base, #3F3F46);
     margin: var(--space-md) 0;
     --wt-radius: var(--border-radius-medium, 8px);
    border: 1px solid var(--wt-border);
    border: 0 !important;
    border-radius: var(--border-radius--medium);
     border-collapse: separate !important;
     border-collapse: separate;   /* только при separate работает border-radius */
    border-spacing: 0 !important;
     border-spacing: 0;
     border-radius: var(--wt-radius);
     font-size: var(--font-size-small);
     font-size: var(--font-size-small, 0.875rem);
    overflow: hidden;
}
}


/* Внутренняя сетка: каждая ячейка рисует ТОЛЬКО верх и лево,
/* Сетка 1px */
  поэтому линии нигде не удваиваются */
.wikitable > tr > th,
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
.wikitable > * > tr > td {
     border: 0;
     border: 0 !important;
     border-top: 1px solid var(--wt-border);
     border-top: 1px solid var(--wt-border) !important;
     border-left: 1px solid var(--wt-border);
     border-left: 1px solid var(--wt-border) !important;
     padding: 8px;
     padding: 8px;
}
}


/* Первая строка: верх рисует сама таблица, не дублируем */
.wikitable > tr:first-child > th,
.wikitable > tr:first-child > th,
.wikitable > tr:first-child > td,
.wikitable > tr:first-child > td,
.wikitable > * > tr:first-child > th,
.wikitable > * > tr:first-child > th,
.wikitable > * > tr:first-child > td {
.wikitable > * > tr:first-child > td {
     border-top: 0;
     border-top: 0 !important;
}
}


/* Первый столбец: лево тоже рисует таблица */
.wikitable > tr > th:first-child,
.wikitable > tr > th:first-child,
.wikitable > tr > td:first-child,
.wikitable > tr > td:first-child,
.wikitable > * > tr > th:first-child,
.wikitable > * > tr > th:first-child,
.wikitable > * > tr > td:first-child {
.wikitable > * > tr > td:first-child {
     border-left: 0;
     border-left: 0 !important;
}
}


/* Шапка таблицы */
/* Скругление угловых ячеек */
.wikitable th {
.wikitable tr:first-of-type > th:first-child,
    background: rgba(127, 127, 127, 0.08);
.wikitable tr:first-of-type > td:first-child { border-top-left-radius: var(--wt-radius); }
    text-align: left;
.wikitable tr:first-of-type > th:last-child,
}
.wikitable tr:first-of-type > td:last-child { border-top-right-radius: var(--wt-radius); }
 
.wikitable tr:last-of-type > th:first-child,
/* Чтобы фон угловых ячеек не «вылезал» за скругление рамки */
.wikitable tr:last-of-type > td:first-child { border-bottom-left-radius: var(--wt-radius); }
.wikitable > tr:first-child > th:first-child,
.wikitable tr:last-of-type > th:last-child,
.wikitable > * > tr:first-child > th:first-child {
.wikitable tr:last-of-type > td:last-child { border-bottom-right-radius: var(--wt-radius); }
    border-top-left-radius: calc(var(--border-radius--medium) - 1px);
}


.wikitable > tr:first-child > th:last-child,
/* Шапка и зебра */
.wikitable > * > tr:first-child > th:last-child {
.wikitable th { background: rgba(127, 127, 127, 0.08); text-align: left; }
    border-top-right-radius: calc(var(--border-radius--medium) - 1px);
.wikitable > * > tr:nth-child(even) > td { background: rgba(127, 127, 127, 0.04); }
}
 
/* Зебра — лёгкое чередование строк */
.wikitable > * > tr:nth-child(even) > td {
    background: rgba(127, 127, 127, 0.04);
}


img {
img {
Строка 338: Строка 326:
     margin-top: 6px;
     margin-top: 6px;
     margin-bottom: 4px;
     margin-bottom: 4px;
}
/* ============================================================
  КВАДРАТНЫЙ РЕЖИМ: таблицы внутри карточных рамок
  («Нарушения» и т.п.). Рамку и скругление несёт сама
  карточка; таблица заполняет её встык, без своих скруглений.
  Включается классом wikitable--square; citizen-table-nowrap
  добавлен как алиас — все карточные таблицы уже несут его.
  ============================================================ */
.wikitable--square,
.wikitable.citizen-table-nowrap {
    border-radius: 0 !important;
}
.wikitable--square tr:first-of-type > th:first-child,
.wikitable--square tr:first-of-type > td:first-child,
.wikitable--square tr:first-of-type > th:last-child,
.wikitable--square tr:first-of-type > td:last-child,
.wikitable--square tr:last-of-type > th:first-child,
.wikitable--square tr:last-of-type > td:first-child,
.wikitable--square tr:last-of-type > th:last-child,
.wikitable--square tr:last-of-type > td:last-child,
.wikitable.citizen-table-nowrap tr:first-of-type > th:first-child,
.wikitable.citizen-table-nowrap tr:first-of-type > td:first-child,
.wikitable.citizen-table-nowrap tr:first-of-type > th:last-child,
.wikitable.citizen-table-nowrap tr:first-of-type > td:last-child,
.wikitable.citizen-table-nowrap tr:last-of-type > th:first-child,
.wikitable.citizen-table-nowrap tr:last-of-type > td:first-child,
.wikitable.citizen-table-nowrap tr:last-of-type > th:last-child,
.wikitable.citizen-table-nowrap tr:last-of-type > td:last-child {
    border-radius: 0 !important;
}
}

Текущая версия от 16:44, 18 октября 2026

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

/* Пример стилей для иконок */
.cdx-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}


body.page-Заглавная_страница .firstHeading,
body.page-Заглавная_страница #siteSub,
body.page-Заглавная_страница #contentSub
{display:none !important}
#firstHeading {
  display: none;
}


.home-header {
	position: relative;
	margin-top: -1rem;
	margin-bottom: 2rem;
	padding-top: 1rem;
	line-height: 1.375;
}

.home-header:before {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: 4.75rem;
    left: 0;
    right: 0;
    opacity: 0.1;
    /*background-image: url(https://starcitizen.tools/resources/assets/sitelogo.svg); */
    background-repeat: no-repeat;
    background-position: right;
}

.home-header__pretitle {
	margin-bottom: calc(0.5 * 1rem);
    color: hsl(220,25%,65%);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.home-header__title {
	margin: 0;
	font-size: 3rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	line-height: 1;
}

.home-header__subtitle {
	margin-top: calc(0.5 * 1rem);
	font-size: 0.875rem;
}

.home-header__search {
	padding: 1rem;
	margin-top: calc(1.25 * 1rem);
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
	border: 1px solid;
	border-color: rgba(255,255,255,0.08);
	border-radius: 9999px;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
}

.home-header__search:hover {
	background-color: rgba(255,255,255,0.07000000000000001);
}

.home-header__searchIcon img {
	margin-right: 1rem;
    opacity: 0.4;
}

/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
	display: inline;
	padding-top: 0.1em;
	padding-bottom: 0.1em;
}

html.skin-citizen-dark .home-header:before,
html.skin-citizen-dark .home-header__searchIcon img {
	filter: invert( 1 );
}

@media ( hover: none ) {
	.desktoponly {
		display: none;
	}
}

.home-grid {
	display: grid;
	grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
	grid-auto-rows: minmax( 3rem, auto );
	grid-gap: calc(0.5 * 1rem);
}

.home-grid--col2 {
	grid-template-columns: 1fr 1fr;
}

.home-grid a.external {
	background-image: none;
}

/* Фикс кликабельности карточек на главной странице */
.home-card__background:after,
.home-card__foreground {
    pointer-events: none;
}

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

html {
  --header-size: 3.5rem;
  --header-card-maxheight: 70vh;
  --width-layout: 1080px;
  --width-layout--extended: calc(var(--width-layout) * 1.5);
  --width-toc: 240px;
  --line-height: 1.6;
  --line-height-xs: 1.25;
  --line-height-sm: 1.375;
  --space-unit: 1rem;
  --space-xxs: calc(0.25 * var(--space-unit));
  --space-xs: calc(0.5 * var(--space-unit));
  --space-sm: calc(0.75 * var(--space-unit));
  --space-md: var(--space-unit);
  --space-lg: calc(1.25 * var(--space-unit));
  --space-xl: calc(1.5 * var(--space-unit));
  --space-xxl: calc(2 * var(--space-unit));
  --margin-layout: calc((100vw - var(--width-layout)) / 2);
  --padding-page: 16px;
}

@media screen {
  :root.skin-citizen-dark {
    --color-primary__l: 60%;
    --color-surface-0: hsl(205,20%,10%);
    --color-surface-1: hsl(205,25%,12%);
    --color-surface-2: hsl(205,25%,15%);
    --color-surface-3: hsl(205,15%,20%);
    --color-surface-4: hsl(205,15%,25%);
    --color-base--emphasized: hsl(205,80%,95%);
    --color-base: hsl(205,25%,80%);
    --color-base--subtle: hsl(205,25%,65%);
    --background-color-primary--hover: hsl(205,60%,15%);
    --background-color-primary--active: hsl(205,60%,20%);
    --background-color-overlay: hsla(205,20%,10%,0.95);
    --background-color-overlay--lighter: hsla(205,20%,10%,0.6);
    --color-surface-2--hover: hsl(205,30%,19%);
    --color-surface-2--active: hsl(205,30%,11%);
    --surface-shadow: 205,50%,3%;
    --shadow-strength: 0.8;
    --filter-invert: invert(1) hue-rotate(180deg);
    --font-grade: -25;
  }
}

@media screen and (min-width: 851px) {
    .mobile {
        display:none !important;
    }
    
    .desktoponly {
    }
}

@media screen and (max-width: 850px) {
    .nomobile {
        display:none !important;
    }
    
    .mobileonly{
    }
    
    .mobilefont {
        font-size: 80%
    }
}

/*@media screen and (min-width: 640px) {*/
/*	.mobile {*/
/*    	display: none !important;*/
/*	}*/
/*}*/

/*@media screen and (max-width: 640px) {*/
/*  .nomobile {*/
/*    	display: none !important;*/
/*	}*/
/*}*/

.home-link__button a {
  color: #fff !important;
}

/* Таблицы*/
.wikitable {
    --wt-border: var(--border-color-base, #3F3F46);
    --wt-radius: var(--border-radius-medium, 8px);
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--wt-radius);
    font-size: var(--font-size-small, 0.875rem);
}

/* Сетка 1px */
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
    border: 0 !important;
    border-top: 1px solid var(--wt-border) !important;
    border-left: 1px solid var(--wt-border) !important;
    padding: 8px;
}

.wikitable > tr:first-child > th,
.wikitable > tr:first-child > td,
.wikitable > * > tr:first-child > th,
.wikitable > * > tr:first-child > td {
    border-top: 0 !important;
}

.wikitable > tr > th:first-child,
.wikitable > tr > td:first-child,
.wikitable > * > tr > th:first-child,
.wikitable > * > tr > td:first-child {
    border-left: 0 !important;
}

/* Скругление угловых ячеек */
.wikitable tr:first-of-type > th:first-child,
.wikitable tr:first-of-type > td:first-child { border-top-left-radius: var(--wt-radius); }
.wikitable tr:first-of-type > th:last-child,
.wikitable tr:first-of-type > td:last-child { border-top-right-radius: var(--wt-radius); }
.wikitable tr:last-of-type > th:first-child,
.wikitable tr:last-of-type > td:first-child { border-bottom-left-radius: var(--wt-radius); }
.wikitable tr:last-of-type > th:last-child,
.wikitable tr:last-of-type > td:last-child { border-bottom-right-radius: var(--wt-radius); }

/* Шапка и зебра */
.wikitable th { background: rgba(127, 127, 127, 0.08); text-align: left; }
.wikitable > * > tr:nth-child(even) > td { background: rgba(127, 127, 127, 0.04); }

img {
  image-rendering: pixelated;
}

.toltip-block {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #888;
}

.toltip-popup-content {
    visibility: hidden;
    width: 250px;
    background-color: #2A2A2E;
    color: #FFFFFF;
    text-align: left;
    border: 1px solid #3F3F46;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1500;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.9em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Отображение подсказки при наведении */
.toltip-block:hover .toltip-popup-content {
    visibility: visible;
    opacity: 1;
}

/* Оформление заголовков */
h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFFFF;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
}

h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
}

h4 {
    font-size: 1em;
    font-weight: bold;
    color: #FFFFFF;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 4px;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* ============================================================
   КВАДРАТНЫЙ РЕЖИМ: таблицы внутри карточных рамок
   («Нарушения» и т.п.). Рамку и скругление несёт сама
   карточка; таблица заполняет её встык, без своих скруглений.
   Включается классом wikitable--square; citizen-table-nowrap
   добавлен как алиас — все карточные таблицы уже несут его.
   ============================================================ */
.wikitable--square,
.wikitable.citizen-table-nowrap {
    border-radius: 0 !important;
}

.wikitable--square tr:first-of-type > th:first-child,
.wikitable--square tr:first-of-type > td:first-child,
.wikitable--square tr:first-of-type > th:last-child,
.wikitable--square tr:first-of-type > td:last-child,
.wikitable--square tr:last-of-type > th:first-child,
.wikitable--square tr:last-of-type > td:first-child,
.wikitable--square tr:last-of-type > th:last-child,
.wikitable--square tr:last-of-type > td:last-child,
.wikitable.citizen-table-nowrap tr:first-of-type > th:first-child,
.wikitable.citizen-table-nowrap tr:first-of-type > td:first-child,
.wikitable.citizen-table-nowrap tr:first-of-type > th:last-child,
.wikitable.citizen-table-nowrap tr:first-of-type > td:last-child,
.wikitable.citizen-table-nowrap tr:last-of-type > th:first-child,
.wikitable.citizen-table-nowrap tr:last-of-type > td:first-child,
.wikitable.citizen-table-nowrap tr:last-of-type > th:last-child,
.wikitable.citizen-table-nowrap tr:last-of-type > td:last-child {
    border-radius: 0 !important;
}