Участник:Torgovec/песочница/Заглавная страница/styles.css
Материал из Space Station 14 | Время приключений Вики
Дополнительные действия
.mainpage-row {
display: flex;
flex-flow: row wrap;
align-items: stretch;
gap: 20px 25px;
}
.mainpage-man-row {
display: grid;
gap: 20px;
grid-template-columns: repeat(5, 1fr);
}
.mainpage-man-block {
display: flex;
padding: 4px 8px 4px 0;
position: relative;
border-radius: 8px;
overflow: hidden;
background-color: #2b323b;
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.4);
font-family: 'NotoSans', sans-serif;
font-weight: bold;
transition: all 0.1s cubic-bezier(0, 0, 0.2, 1);
}
.mainpage-man-block img {
display: block;
width: auto;
}
.mainpage-man-block:hover {
background-color: var(--color-surface-4, #3a424d);
box-shadow: 4px 4px 8px 2px rgba(0, 0, 0, 0.4);
transform: translate(-2px, -2px);
}
.mainpage-man-block:active {
background-color: var(--color-surface-0, #1f2328);
box-shadow: 3px 3px 6px 2px rgba(0, 0, 0, 0.4);
transform: translate(-1px, -1px);
}
@media (max-width: 1024px) and (min-width: 769px) {
.mainpage-man-row {
grid-template-columns: repeat(6, 1fr);
grid-template-rows: auto auto;
}
.mainpage-man-block {
grid-column: span 2;
}
.mainpage-man-block:nth-child(1),
.mainpage-man-block:nth-child(2) {
grid-column: span 3;
}
}
@media (max-width: 768px) {
.mainpage-man-row {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: auto auto auto;
}
.mainpage-man-block:nth-child(1) {
grid-column: span 2;
}
}
.social {
position: relative;
display: flex;
height: 100%;
flex-flow: row nowrap;
justify-content: space-evenly;
font-size: 2.5em;
border-radius: 8px;
background-color: var(--color-surface-2, #24282e);
padding: 4px 0;
}
.social-anim {
flex: 1 1 auto;
position: relative;
overflow: hidden;
background-color: transparent;
border-radius: 8px;
padding: 1px 0;
}
.social-anim::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(0deg, rgba(168, 239, 255, 0) 30%, rgba(168, 239, 255, 0.8) 50%, rgba(168, 239, 255, 0) 70%);
animation: mp-rotate 6s cubic-bezier(0.65, 0.05, 0.36, 1) alternate infinite;
}
@keyframes mp-rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(180deg);
}
}
/* Ругается */
/*.icon {*/
/* height: 1em;*/
/* fill: currentColor;*/
/* vertical-align: text-top;*/
/*} */
.social > div {
display: flex;
position: relative;
align-items: center;
margin: 4px 8px;
filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1)) drop-shadow(0 0 5px #000);
}
.social a:active .icon {
filter: brightness(0) contrast(0.5);
}
.social a:hover .fa-discord {
color: #7289da;
}
.social a:hover .fa-vk {
color: #4c75a3;
}
.social a:hover .fa-telegram {
color: #08c;
}
.social a:hover .fa-github {
color: #101411;
}
.social .boosty-icon {
font-family: 'boosty_icon', serif;
line-height: 1;
}
.social .boosty-icon::before {
content: '\E800';
}
.social a:hover .boosty-icon {
color: #ff4f00;
}
.info {
flex: 1 1 auto;
display: flex;
flex-direction: column;
text-align: center;
font-family: 'NotoSans', sans-serif;
border-radius: 8px;
background-color: #283038;
box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
}
.ss14-adt-link {
font-family: 'NotoSans', sans-serif;
font-size: x-large;
color: var(--color-base, #fff);
position: relative;
margin: 2px 8px;
}
.ss14-adt-link:hover {
color: #75a3ff;
cursor: pointer;
}
.server-status {
display: flex;
flex-flow: row nowrap;
justify-content: space-around;
align-items: center;
gap: 16px;
width: 100%;
padding: 2px 12px;
background-color: rgba(20, 25, 30, 0.55);
border-bottom: solid 0.2px #000;
text-align: center;
}
.server-status .indicator {
color: #848482;
margin-right: 2px;
}
.server-status i.fa-shield-halved {
position: relative;
color: rgba(255, 255, 255, 0.3);
}
.server-status .tooltip-text {
color: var(--color-base, #fff);
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, 0.4);
font-family: 'NotoSans', sans-serif;
font-weight: normal;
visibility: hidden;
width: 120px;
background-color: var(--color-surface-3, #333);
padding: 5px 0;
border-radius: 6px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.1s;
}
.server-status i.fa-shield-halved:hover .tooltip-text {
z-index: 1;
visibility: visible;
opacity: 1;
}
.current-map {
font-weight: normal;
}
.arc-slider {
flex: 0 0 100%;
position: relative;
display: flex;
flex-direction: row;
text-align: center;
font-family: 'NotoSans', sans-serif;
border-radius: 8px;
background-color: #283038;
box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.3);
}
.arc-slider__arrow {
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(20, 25, 30, 0.55);
width: 1.5em;
cursor: pointer;
transition: all 0.05s ease;
}
.arc-slider__arrow:hover {
background-color: #38424d;
}
.arc-slider__arrow:active {
background-color: #191f24;
color: rgba(230, 240, 255, 0.5);
}
.arc-slider__body {
flex: 1 1 auto;
display: flex;
flex-flow: column nowrap;
border-right: solid 1px #000;
border-left: solid 1px #000;
}
.arc-slider__nav {
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
background-color: rgba(20, 25, 30, 0.55);
height: 1.5em;
}
.arc-slider__nav-btn {
line-height: 0;
}
.arc-slider__nav-btn span > span {
vertical-align: middle;
}
.arc-slider__nav-btn span > span > img {
height: 1.2em;
width: auto;
padding: 0 0.25em;
cursor: pointer;
filter: contrast(0.4) brightness(0.7);
transition: all 0.05s cubic-bezier(0, 0, 0.2, 1);
}
.arc-slider__nav-btn--active span > span > img {
cursor: default;
filter: contrast(1) brightness(1);
transform: scale(1.1);
}
.arc-slider__nav-btn:hover span > span > img {
filter: brightness(1.25);
transform: scale(1.25);
}
.arc-slider__nav-btn:active span > span > img {
filter: brightness(0.75);
transform: scale(1.1);
}
.arc-slider__info {
background-color: rgba(20, 25, 30, 0.55);
}
.arc-slider__content {
box-shadow: inset 5px 0 10px -10px #000, inset -5px 0 10px -10px #000;
}
.arc-slider__slide {
display: none;
}
.arc-slider__slide--active {
display: block;
}
.arc-slider__content span > a > img {
cursor: pointer;
transition: all 0.05s cubic-bezier(0, 0, 0.2, 1);
}
.arc-slider__content span > a > img:hover {
filter: brightness(1.1);
transform: scale(1.1);
}
.arc-slider__content span > a > img:active {
filter: brightness(0.9);
transform: scale(0.95);
}
/*** Шаблон:Заглавная/СРП/Модуль ***/
.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: 8px;
transition: background 0.1s linear, width 0.15s cubic-bezier(1, 0, 1, 1);
}
.mainpage-sop-text {
padding: 0 25px;
white-space: 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: rgba(255, 255, 255, 0.5);
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 {
width: fit-content !important;
background: rgba(35, 35, 35, 0.9);
z-index: 1;
position: absolute;
}
/** Мобильная адаптация**/
@media (max-width: 980px) {
div.mainpage-sop-book:hover {
width: 100% !important;
}
.mainpage-sop-book: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: rgba(38, 38, 38, 0.95);
}
}
/** Оформление отдельных элементов шаблона **/
/* Командование */
.cmd.mainpage-sop-book:hover {
background: rgba(10, 17, 114, 0.9);
}
.cmd .mainpage-sop-text p:before,
.cmd .mainpage-sop-text p:after {
color: rgba(238, 238, 255, 0.5);
}
/* Служба безопасности */
.sec.mainpage-sop-book:hover {
background: rgba(185, 14, 10, 0.9);
}
.sec .mainpage-sop-text p:before,
.sec .mainpage-sop-text p:after {
color: rgba(255, 238, 238, 0.5);
}
/* Юридический отдел */
.jud.mainpage-sop-book:hover {
background: rgba(67, 38, 22, 0.9);
}
.jud .mainpage-sop-text p:before,
.jud .mainpage-sop-text p:after {
color: rgba(255, 238, 221, 0.5);
}
/* Инженерный отдел */
.eng.mainpage-sop-book:hover {
background: rgba(226, 99, 16, 0.9);
}
.eng .mainpage-sop-text p:before,
.eng .mainpage-sop-text p:after {
color: rgba(255, 231, 215, 0.5);
}
/* Отдел снабжения */
.crg.mainpage-sop-book:hover {
background: rgba(181, 103, 39, 0.9);
}
.crg .mainpage-sop-text p:before,
.crg .mainpage-sop-text p:after {
color: rgba(255, 234, 216, 0.5);
}
/* Научный отдел */
.rnd.mainpage-sop-book:hover {
background: rgba(113, 1, 147, 0.9);
}
.rnd .mainpage-sop-text p:before,
.rnd .mainpage-sop-text p:after {
color: rgba(244, 206, 255, 0.5);
}
/* Медицинский отдел */
.med.mainpage-sop-book:hover {
background: rgba(34, 129, 149, 0.9);
}
.med .mainpage-sop-text p:before,
.med .mainpage-sop-text p:after {
color: rgba(130, 233, 255, 0.5);
}
/* Сервисный отдел */
.srv.mainpage-sop-book:hover {
background: rgba(58, 56, 82, 0.9);
}
.srv .mainpage-sop-text p:before,
.srv .mainpage-sop-text p:after {
color: rgba(167, 164, 199, 0.5);
}
/* Центральное командование */
.ccm.mainpage-sop-book:hover {
background: rgba(22, 107, 22, 0.9);
}
.ccm .mainpage-sop-text p:before,
.ccm .mainpage-sop-text p:after {
color: rgba(198, 249, 211, 0.5);
}