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

Новая страница: «.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-botto...»
 
мНет описания правки
 
Строка 1: Строка 1:
.home-header {
.home-header {
position: relative;
  margin: 3rem 0;
margin-top: -1rem;
  display: flex;
margin-bottom: 2rem;
  justify-content: flex-start;
padding-top: 1rem;
  align-items: center;
line-height: 1.375;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  flex-wrap: wrap;
  position: relative;
}
}


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


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


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


.home-header__search {
.home-header__search {
padding: 1rem;
  display: inline-block;
margin-top: calc(1.25 * 1rem);
  justify-content: center;
margin-bottom: 1rem;
  align-items: center;
margin-left: auto;
  background: rgba(26, 32, 39, 0.9);
margin-right: auto;
  border-radius: 10px;
border: 1px solid;
  padding: 6px 12px;
border-color: rgba(255,255,255,0.08);
  font-size: 0.95rem;
border-radius: 9999px;
  color: #ccc;
cursor: pointer;
  cursor: text;
font-size: 0.875rem;
  transition: all 0.25s ease;
font-weight: 500;
  box-shadow: 0 0 10px rgba(127, 170, 217, 0.3);
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 {
background-color: rgba(255,255,255,0.07000000000000001);
  color: #fff;
  box-shadow: 0 0 15px rgba(127, 170, 217, 0.5);
  background: rgba(26, 32, 39, 0.95);
}
}


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


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


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


@media ( hover: none ) {
.home-header__searchText a:hover {
.desktoponly {
  text-decoration: underline;
display: none;
  color: #a4c8f4;
}
}
 
 
 
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;
    }
}
}

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

.home-header {
  margin: 3rem 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  flex-wrap: wrap;
  position: relative;
}

.home-header-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
    margin-right: 20px;
}

.home-header__pretitle {
  color: #7faad9;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.home-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0;
}

.home-header__subtitle {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 0;
}

.home-header__search {
  display: inline-block;
  justify-content: center;
  align-items: center;
  background: rgba(26, 32, 39, 0.9);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.95rem;
  color: #ccc;
  cursor: text;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(127, 170, 217, 0.3);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: auto;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

.home-header__searchText {
  display: inline;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #ccc;
}

.home-header__searchText a {
  color: #7faad9;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-header__searchText a:hover {
  text-decoration: underline;
  color: #a4c8f4;
}



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