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

Страница интерфейса MediaWiki
(Перезапись свойства с использованием !important)
(Селектор)
 
(не показано 17 промежуточных версий 1 участника)
Строка 19: Строка 19:


/*** Шаблон:Заглавная/СРП/Модуль ***/
/*** Шаблон:Заглавная/СРП/Модуль ***/
.mainpage-sop-mainrow, .mainpage-sop-row1, .mainpage-sop-row2 {
display: flex;
flex: 1 1 auto;
    justify-content: space-around;
flex-wrap: wrap;
}
.mainpage-sop-block {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  overflow: visible;
}
.mainpage-sop-book {
.mainpage-sop-book {
   display: flex;
   display: flex;
Строка 29: Строка 44:
}
}


.mainpage-sop-book:hover {
.mainpage-sop-text {
   width: 100% !important;;
  padding: 0 25px;
   background: #1f1b57b0;
  text-wrap: nowrap;
  align-self: stretch;
}
 
.mainpage-sop-text p {
   font-family: "Boxfont_Round";
  font-size: 2em;
  color: black;
  display: block;
  position: relative;
}
 
.mainpage-sop-text p:before,
.mainpage-sop-text p:after {
  content: attr(title);
   color: #ffffff80;
  position: absolute;
}
 
.mainpage-sop-text p:before {
  top: 1px;
  left: 1px
}
 
.mainpage-sop-text p:after {
  top: 2px;
  left: 2px
}
 
.mainpage-sop-book.right {
    float: right;
    right: 0;
    flex-direction: row-reverse;
}
}


Строка 43: Строка 90:
}
}


.mainpage-sop-test {
.mainpage-sop-book:hover:not(:has(div:hover)) {
  padding: 0 25px;
    width: fit-content !important;
  font-family: "Boxfont_Round";
    backdrop-filter: blur(20px);
  font-size: 32px;
background: #23232399;
   color: darkred;
    z-index: 1;
   text-shadow: 0 0 25px black, 0 0 5px black, 4px 4px 3px black;
    position: absolute;
   text-wrap: nowrap;
}
 
/** Мобильная адаптация**/
@media(max-width: 980px) {
div.mainpage-sop-book:hover:not(:has(div:hover)) {
    width: 100% !important;
}
.mainpage-sop-book:hover:not(:has(div:hover))::after {
    padding: 2px 4px;
    font-family: 'Boxfont_Round';
    font-size: 1em;
    line-height: 1.1em;
    text-align: center;
    bottom: 0;
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 40%;
    content: attr(title);
    background: hsla(var(--color-primary__h), var(--color-primary__s), 15%, 0.9);
    backdrop-filter: blur(10px);
}
}
 
 
/** Оформление отдельных элементов шаблона **/
/* Командование */
.cmd.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #0a117299;
}
 
.cmd .mainpage-sop-text p:before,
.cmd .mainpage-sop-text p:after {
color: #eeeeff80;
}
 
/* Служба безопасности */
.sec.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #B90E0A99;
}
 
.sec .mainpage-sop-text p:before,
.sec .mainpage-sop-text p:after {
  color: #ffeeee80;
}
 
/* Юридический отдел */
.jud.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #43261699;
}
 
.jud .mainpage-sop-text p:before,
.jud .mainpage-sop-text p:after {
  color: #ffeedd80;
}
 
/* Инженерный отдел */
.eng.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #E2631099;
}
 
.eng .mainpage-sop-text p:before,
.eng .mainpage-sop-text p:after {
  color: #ffe7d780;
}
 
/* Отдел снабжения */
.crg.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #B5672799;
}
 
.crg .mainpage-sop-text p:before,
.crg .mainpage-sop-text p:after {
  color: #ffead880;
}
 
/* Научный отдел */
.rnd.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #71019399;
}
 
.rnd .mainpage-sop-text p:before,
.rnd .mainpage-sop-text p:after {
  color: #f4ceff80;
}
 
/* Медицинский отдел */
.med.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #22819599;
}
 
.med .mainpage-sop-text p:before,
.med .mainpage-sop-text p:after {
   color: #82e9ff80;
}
 
/* Сервисный отдел */
.srv.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #3a385299;
}
 
.srv .mainpage-sop-text p:before,
.srv .mainpage-sop-text p:after {
   color: #a7a4c780;
}
 
/* Центральное командование */
.ccm.mainpage-sop-book:hover:not(:has(div:hover)) {
background: #166b16cf;
}
 
.ccm .mainpage-sop-text p:before,
.ccm .mainpage-sop-text p:after {
  color: #c6f9d380;
}
 
/*** Шаблон:ItemSlot ***/
.item-slot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-image: url("https://wiki.adventurestation.space/images/d/dd/SlotBackground.png");
  background-size: cover;
  width: 110px;
  height: 110px;
}
 
.item-slot.back {
background-image: url("https://wiki.adventurestation.space/images/3/38/Minimal-slot-back.png");
}
.item-slot.gloves {
background-image: url("https://wiki.adventurestation.space/images/0/03/Minimal-slot-gloves.png");
}
.item-slot.belt {
background-image: url("https://wiki.adventurestation.space/images/f/f8/Minimal-slot-belt.png");
}
.item-slot.ears {
background-image: url("https://wiki.adventurestation.space/images/6/6a/Minimal-slot-ears.png");
}
.item-slot.headset {
background-image: url("https://wiki.adventurestation.space/images/e/e1/Minimal-slot-ears_headset.png");
}
.item-slot.glasses {
background-image: url("https://wiki.adventurestation.space/images/a/aa/Minimal-slot-glasses.png");
}
.item-slot.lhand {
background-image: url("https://wiki.adventurestation.space/images/3/3c/Minimal-slot-hand_l.png");
}
.item-slot.rhand {
background-image: url("https://wiki.adventurestation.space/images/6/6f/Minimal-slot-hand_r.png");
}
.item-slot.head {
background-image: url("https://wiki.adventurestation.space/images/2/22/Minimal-slot-head.png");
}
.item-slot.id {
background-image: url("https://wiki.adventurestation.space/images/3/32/Minimal-slot-id.png");
}
.item-slot.mask {
background-image: url("https://wiki.adventurestation.space/images/c/c4/Minimal-slot-mask.png");
}
.item-slot.neck {
background-image: url("https://wiki.adventurestation.space/images/9/9b/Minimal-slot-neck.png");
}
.item-slot.pda {
background-image: url("https://wiki.adventurestation.space/images/6/69/Minimal-slot-pda.png");
}
.item-slot.pocket {
background-image: url("https://wiki.adventurestation.space/images/3/3c/Minimal-slot-pocket.png");
}
.item-slot.shoes {
background-image: url("https://wiki.adventurestation.space/images/3/30/Minimal-slot-shoes.png");
}
.item-slot.suit {
background-image: url("https://wiki.adventurestation.space/images/3/36/Minimal-slot-suit.png");
}
.item-slot.suit_storage {
background-image: url("https://wiki.adventurestation.space/images/4/44/Minimal-slot-suit_storage.png");
}
.item-slot.uniform {
background-image: url("https://wiki.adventurestation.space/images/d/dc/Minimal-slot-uniform.png");
}
 
.item-slot .item {
  position: relative;
}
 
.item-slot .popup {
  opacity: 0;
  position: absolute;
  width: 0%;
  max-width: 360px;
  max-height: 180px;
  min-width: 0px;
  min-height: 0px;
  left: 80%;
  top: 0%;
  padding: 2px 6px;
  overflow: hidden;
  border: 2px solid #464966;
  background-color: #25272cf2;
  transition: opacity 0.05s linear, min-width 0.1s cubic-bezier(0, 0, 0.2, 1), min-height 0.1s cubic-bezier(0, 0, 0.2, 1);
}
 
.item-slot .item:hover .popup {
  opacity: 1;
  z-index: 1;
  min-width: 150px;
   min-height: 50px;
}
 
.item-slot .item:hover>span img {
    opacity: 0.25;
    transition: opacity 0.1s linear;
}
}

Текущая версия от 20:59, 7 августа 2024

/*** Шаблон:JobBanWarn ***/
table.jobbanwarn {
    background: #ff000020;
    border-radius: 15px;
    text-align: center;
    margin: auto;
}

table.jobbanwarn td.first {
    font-size: 36px;
    color: red;
    padding: 7px;
    text-shadow: 0 0 black;
}

table.jobbanwarn td.second p {
	margin-bottom:0 ;
}

/*** Шаблон:Заглавная/СРП/Модуль ***/
 .mainpage-sop-mainrow, .mainpage-sop-row1, .mainpage-sop-row2 {
	display: flex;
	flex: 1 1 auto;
    justify-content: space-around;
	flex-wrap: wrap;
}

.mainpage-sop-block {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  overflow: visible;
}

.mainpage-sop-book {
  display: flex;
  align-items: center;
  max-width: fit-content;
  overflow: hidden;
  border-radius: var(--border-radius--medium);
  transition:	background 0.1s linear,
				width 0.15s cubic-bezier(1, 0, 1, 1);
}

.mainpage-sop-text {
  padding: 0 25px;
  text-wrap: nowrap;
  align-self: stretch;
}

.mainpage-sop-text p {
  font-family: "Boxfont_Round";
  font-size: 2em;
  color: black;
  display: block;
  position: relative;
}

.mainpage-sop-text p:before,
.mainpage-sop-text p:after {
  content: attr(title);
  color: #ffffff80;
  position: absolute;
}

.mainpage-sop-text p:before {
  top: 1px;
  left: 1px
}

.mainpage-sop-text p:after {
  top: 2px;
  left: 2px
}

.mainpage-sop-book.right {
    float: right;
    right: 0;
    flex-direction: row-reverse;
}

.mainpage-sop-book img {
  transition: all 0.15s;
}

.mainpage-sop-book img:hover {
  filter: brightness(1.5);
  transform: scale(1.2);
}

.mainpage-sop-book:hover:not(:has(div:hover)) {
    width: fit-content !important;
    backdrop-filter: blur(20px);
	background: #23232399;
    z-index: 1;
    position: absolute;
}

/** Мобильная адаптация**/
@media(max-width: 980px) {
	div.mainpage-sop-book:hover:not(:has(div:hover)) {
	    width: 100% !important;
	}
	
	.mainpage-sop-book:hover:not(:has(div:hover))::after {
	    padding: 2px 4px;
	    font-family: 'Boxfont_Round';
	    font-size: 1em;
	    line-height: 1.1em;
	    text-align: center;
	    bottom: 0;
	    position: absolute;
	    z-index: 3;
	    width: 100%;
	    height: 40%;
	    content: attr(title);
	    background: hsla(var(--color-primary__h), var(--color-primary__s), 15%, 0.9);
	    backdrop-filter: blur(10px);
	}
}


/** Оформление отдельных элементов шаблона **/
/* Командование */
.cmd.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #0a117299;
}

.cmd .mainpage-sop-text p:before,
.cmd .mainpage-sop-text p:after {
	color: #eeeeff80;
}

/* Служба безопасности */
.sec.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #B90E0A99;
}

.sec .mainpage-sop-text p:before,
.sec .mainpage-sop-text p:after {
  color: #ffeeee80;
}

/* Юридический отдел */
.jud.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #43261699;
}

.jud .mainpage-sop-text p:before,
.jud .mainpage-sop-text p:after {
  color: #ffeedd80;
}

/* Инженерный отдел */
.eng.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #E2631099;
}

.eng .mainpage-sop-text p:before,
.eng .mainpage-sop-text p:after {
  color: #ffe7d780;
}

/* Отдел снабжения */
.crg.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #B5672799;
}

.crg .mainpage-sop-text p:before,
.crg .mainpage-sop-text p:after {
  color: #ffead880;
}

/* Научный отдел */
.rnd.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #71019399;
}

.rnd .mainpage-sop-text p:before,
.rnd .mainpage-sop-text p:after {
  color: #f4ceff80;
}

/* Медицинский отдел */
.med.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #22819599;
}

.med .mainpage-sop-text p:before,
.med .mainpage-sop-text p:after {
  color: #82e9ff80;
}

/* Сервисный отдел */
.srv.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #3a385299;
}

.srv .mainpage-sop-text p:before,
.srv .mainpage-sop-text p:after {
  color: #a7a4c780;
}

/* Центральное командование */
.ccm.mainpage-sop-book:hover:not(:has(div:hover)) {
	background: #166b16cf;
}

.ccm .mainpage-sop-text p:before,
.ccm .mainpage-sop-text p:after {
  color: #c6f9d380;
}

/*** Шаблон:ItemSlot ***/
.item-slot {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-image: url("https://wiki.adventurestation.space/images/d/dd/SlotBackground.png");
  background-size: cover;
  width: 110px;
  height: 110px;
}

.item-slot.back {
	background-image: url("https://wiki.adventurestation.space/images/3/38/Minimal-slot-back.png");
}
.item-slot.gloves {
	background-image: url("https://wiki.adventurestation.space/images/0/03/Minimal-slot-gloves.png");
}
.item-slot.belt {
	background-image: url("https://wiki.adventurestation.space/images/f/f8/Minimal-slot-belt.png");
}
.item-slot.ears {
	background-image: url("https://wiki.adventurestation.space/images/6/6a/Minimal-slot-ears.png");
}
.item-slot.headset {
	background-image: url("https://wiki.adventurestation.space/images/e/e1/Minimal-slot-ears_headset.png");
}
.item-slot.glasses {
	background-image: url("https://wiki.adventurestation.space/images/a/aa/Minimal-slot-glasses.png");
}
.item-slot.lhand {
	background-image: url("https://wiki.adventurestation.space/images/3/3c/Minimal-slot-hand_l.png");
}
.item-slot.rhand {
	background-image: url("https://wiki.adventurestation.space/images/6/6f/Minimal-slot-hand_r.png");
}
.item-slot.head {
	background-image: url("https://wiki.adventurestation.space/images/2/22/Minimal-slot-head.png");
}
.item-slot.id {
	background-image: url("https://wiki.adventurestation.space/images/3/32/Minimal-slot-id.png");
}
.item-slot.mask {
	background-image: url("https://wiki.adventurestation.space/images/c/c4/Minimal-slot-mask.png");
}
.item-slot.neck {
	background-image: url("https://wiki.adventurestation.space/images/9/9b/Minimal-slot-neck.png");
}
.item-slot.pda {
	background-image: url("https://wiki.adventurestation.space/images/6/69/Minimal-slot-pda.png");
}
.item-slot.pocket {
	background-image: url("https://wiki.adventurestation.space/images/3/3c/Minimal-slot-pocket.png");
}
.item-slot.shoes {
	background-image: url("https://wiki.adventurestation.space/images/3/30/Minimal-slot-shoes.png");
}
.item-slot.suit {
	background-image: url("https://wiki.adventurestation.space/images/3/36/Minimal-slot-suit.png");
}
.item-slot.suit_storage {
	background-image: url("https://wiki.adventurestation.space/images/4/44/Minimal-slot-suit_storage.png");
}
.item-slot.uniform {
	background-image: url("https://wiki.adventurestation.space/images/d/dc/Minimal-slot-uniform.png");
}

.item-slot .item {
  position: relative;
}

.item-slot .popup {
  opacity: 0;
  position: absolute;
  width: 0%;
  max-width: 360px;
  max-height: 180px;
  min-width: 0px;
  min-height: 0px;
  left: 80%;
  top: 0%;
  padding: 2px 6px;
  overflow: hidden;
  border: 2px solid #464966;
  background-color: #25272cf2;
  transition: opacity 0.05s linear, min-width 0.1s cubic-bezier(0, 0, 0.2, 1), min-height 0.1s cubic-bezier(0, 0, 0.2, 1);
}

.item-slot .item:hover .popup {
  opacity: 1;
  z-index: 1;
  min-width: 150px;
  min-height: 50px;
}

.item-slot .item:hover>span img {
    opacity: 0.25;
    transition: opacity 0.1s linear;
}