Шаблон:Main page/header/styles.css: различия между версиями

Материал из SS220 SS14 WIKI
Нет описания правки
мНет описания правки
 
Строка 1: Строка 1:
.home-header {
.home-header {
  margin: 3rem 0;
position: relative;
  display: flex;
margin-top: -1rem;
  justify-content: flex-start;
margin-bottom: 2rem;
  align-items: center;
padding-top: 1rem;
  width: 100%;
line-height: 1.375;
  box-sizing: border-box;
  padding: 0 20px;
  flex-wrap: wrap;
  position: relative;
}
}


.home-header-text-group {
.home-header:before {
     display: flex;
     content: "";
     flex-direction: column;
     position: absolute;
     text-align: left;
    top: 1rem;
     flex-grow: 1;
    bottom: 4.75rem;
     margin-right: 20px;
    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 {
.home-header__pretitle {
  color: #7faad9;
margin-bottom: calc(0.5 * 1rem);
  font-size: 0.9rem;
    color: hsl(220,25%,65%);
  letter-spacing: 1px;
font-size: 0.875rem;
  margin-bottom: 0.5rem;
text-transform: uppercase;
  text-transform: uppercase;
letter-spacing: 0.05em;
}
}


.home-header__title {
.home-header__title {
  font-size: 2.5rem;
margin: 0;
  font-weight: 700;
font-size: 3rem;
  color: #fff;
text-transform: uppercase;
  margin: 0.5rem 0;
letter-spacing: 0.025em;
line-height: 1;
}
}


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


.home-header__search {
.home-header__search {
  display: inline-block;
padding: 1rem;
  justify-content: center;
margin-top: calc(1.25 * 1rem);
  align-items: center;
margin-bottom: 1rem;
  background: rgba(26, 32, 39, 0.9);
margin-left: auto;
  border-radius: 10px;
margin-right: auto;
  padding: 6px 12px;
border: 1px solid;
  font-size: 0.95rem;
border-color: rgba(255,255,255,0.08);
  color: #ccc;
border-radius: 9999px;
  cursor: text;
cursor: pointer;
  transition: all 0.25s ease;
font-size: 0.875rem;
  box-shadow: 0 0 10px rgba(127, 170, 217, 0.3);
font-weight: 500;
  text-align: center;
text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: auto;
  margin: 0 auto;
  box-sizing: border-box;
}
}


.home-header__search:hover {
.home-header__search:hover {
  color: #fff;
background-color: rgba(255,255,255,0.07000000000000001);
  box-shadow: 0 0 15px rgba(127, 170, 217, 0.5);
  background: rgba(26, 32, 39, 0.95);
}
}


/* Отключаем иконку поиска, если она есть */
.home-header__searchIcon img {
.home-header__searchIcon {
margin-right: 1rem;
  display: none !important;
    opacity: 0.4;
}
}


.home-header__searchText {
/* Fix vertical alignment problem */
  display: inline;
.home-header__search .keyboard-key {
  text-align: center;
display: inline;
  margin: 0;
padding-top: 0.1em;
  padding: 0;
padding-bottom: 0.1em;
  color: #ccc;
}
}


.home-header__searchText a {
html.skin-citizen-dark .home-header:before,
  color: #7faad9;
html.skin-citizen-dark .home-header__searchIcon img {
  text-decoration: none;
filter: invert( 1 );
  transition: color 0.2s ease;
}
}


.home-header__searchText a:hover {
@media ( hover: none ) {
  text-decoration: underline;
.desktoponly {
  color: #a4c8f4;
display: none;
}
}
 
 
 
kbd {
  background: #2e3a46;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #eee;
  vertical-align: middle;
}
 
/* Медиа-запрос для адаптивности на маленьких экранах */
@media (max-width: 768px) {
    .home-header {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
 
    .home-header-text-group {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
        margin-right: 0;
    }
 
    .home-header__search {
        max-width: 90%;
        margin: 20px auto 0;
        padding: 10px 15px;
 
    }
    .home-header__searchText {
        text-align: center;
        margin-top: 0;
    }
}
}

Текущая версия от 12:55, 26 октября 2025

.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;
	}
}