Шаблон:Home/Styles.css: различия между версиями
Перейти к навигации
Перейти к поиску
Volas (обсуждение | вклад) Новая страница: «.wrap { border: 1px solid #b3b3b3; border-top: 0; } .header-image { height: 100px; border-top: 1px solid #b3b3b3; background-position: center; background-color: #120806; background-repeat: no-repeat; } .header-image p { padding-top: 20px; text-shadow: 1px 0 2px black, 0 1px 2px black, -1px 0 2px black, 0 -1px 2px black; color: white; font-size: 170%; text-align: center; } .header-field { background-color: #f0f0f0; border-top:...» |
Адаптируем главную страницу под темную тему: border-color: rgba() |
||
| (не показаны 2 промежуточные версии 2 участников) | |||
| Строка 1: | Строка 1: | ||
/* rgba() поменяем на css global vars */ | |||
.wrap { | .wrap { | ||
border: 1px solid | border: 1px solid rgba(120, 120, 120, 0.5); | ||
border-top: 0; | border-top: 0; | ||
} | } | ||
| Строка 6: | Строка 7: | ||
.header-image { | .header-image { | ||
height: 100px; | height: 100px; | ||
border-top: 1px solid | border-top: 1px solid rgba(120, 120, 120, 0.5); | ||
background- | background: url('https://wiki.taucetistation.org/images/tc_assets/home-header.png') center no-repeat; | ||
background-color: #120806; | background-color: #120806; | ||
} | } | ||
.header-image p { | .header-image p { | ||
padding-top: 20px; | padding-top: 20px; | ||
| Строка 21: | Строка 21: | ||
.header-field { | .header-field { | ||
background-color: | background-color: rgba(240, 240, 240, 0.1); | ||
border-top: 1px solid | border-top: 1px solid rgba(120, 120, 120, 0.5); | ||
border-bottom: 1px solid | border-bottom: 1px solid rgba(120, 120, 120, 0.5); | ||
} | } | ||
| Строка 33: | Строка 33: | ||
.footer-field { | .footer-field { | ||
background-color: | background-color: rgba(240, 240, 240, 0.1); | ||
border-top: 1px solid | border-top: 1px solid rgba(120, 120, 120, 0.5); | ||
} | } | ||
| Строка 54: | Строка 54: | ||
.center-content { | .center-content { | ||
width: 34%; | width: 34%; | ||
background-color: | background-color: rgba(240, 240, 240, 0.1); | ||
text-align: center; | text-align: center; | ||
padding-top: 25px; | padding-top: 25px; | ||
border-left: 1px solid | border-left: 1px solid rgba(120, 120, 120, 0.5); | ||
border-right: 1px solid | border-right: 1px solid rgba(120, 120, 120, 0.5); | ||
} | } | ||
Текущая версия от 21:42, 6 января 2026
/* rgba() поменяем на css global vars */
.wrap {
border: 1px solid rgba(120, 120, 120, 0.5);
border-top: 0;
}
.header-image {
height: 100px;
border-top: 1px solid rgba(120, 120, 120, 0.5);
background: url('https://wiki.taucetistation.org/images/tc_assets/home-header.png') center no-repeat;
background-color: #120806;
}
.header-image p {
padding-top: 20px;
text-shadow: 1px 0 2px black, 0 1px 2px black, -1px 0 2px black, 0 -1px 2px black;
color: white;
font-size: 170%;
text-align: center;
}
.header-field {
background-color: rgba(240, 240, 240, 0.1);
border-top: 1px solid rgba(120, 120, 120, 0.5);
border-bottom: 1px solid rgba(120, 120, 120, 0.5);
}
.header-field p {
margin: 0;
padding: 10px 0;
text-align: center;
}
.footer-field {
background-color: rgba(240, 240, 240, 0.1);
border-top: 1px solid rgba(120, 120, 120, 0.5);
}
.footer-field p {
margin: 0;
padding: 10px 0;
text-align: center;
font-weight: bold;
}
.main-field {
display: flex;
}
.left-content {
width: 33%;
}
.center-content {
width: 34%;
background-color: rgba(240, 240, 240, 0.1);
text-align: center;
padding-top: 25px;
border-left: 1px solid rgba(120, 120, 120, 0.5);
border-right: 1px solid rgba(120, 120, 120, 0.5);
}
.center-content .image-link {
display: inline-block;
padding: 5px;
transition: all linear 0.1s;
}
.center-content .image-link:hover {
transform: scale(1.05);
}
.right-content {
width: 33%;
}
.side-header {
font-family: "Century Gothic", CenturyGothic, Lucida Grande, sans-serif;
font-size: 115%;
font-weight: bold;
text-align: center;
}
.content-template-column {
padding-left: 10px;
padding-right: 10px;
}