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

Материал из SS220 SS14 WIKI
Нет описания правки
Нет описания правки
Строка 45: Строка 45:
   justify-content: center;
   justify-content: center;
   align-items: center;
   align-items: center;
   background: #1a2027;
   background: rgba(26, 32, 39, 0.85); /* чуть прозрачнее для лёгкости */
   border-radius: 0px;
   border-radius: 12px; /* скруглённые края */
   padding: 10px 18px;
   padding: 6px 14px; /* меньше отступов */
   font-size: 0.9rem;
   font-size: 0.9rem;
   color: #ccc;
   color: #ccc;
   cursor: text;
   cursor: text;
   transition: all 0.2s ease;
   transition: all 0.25s ease;
  max-width: none;
   width: auto;
   width: auto;
   box-sizing: border-box;
   box-sizing: border-box;
Строка 58: Строка 57:
   min-height: auto;
   min-height: auto;
   overflow: hidden;
   overflow: hidden;
  box-shadow: 0 0 10px rgba(127, 170, 217, 0.25); /* голубое свечение */
}
}


.home-header__search:hover {
.home-header__search:hover {
   color: #fff;
   color: #fff;
  box-shadow: 0 0 15px rgba(127, 170, 217, 0.45); /* усиление свечения при наведении */
  background: rgba(26, 32, 39, 0.95);
}
}


Строка 69: Строка 72:


.home-header__searchText {
.home-header__searchText {
    display: inline-block;
  display: inline-block;
    text-align: center;
  text-align: center;
    line-height: 1;
  line-height: 1;
    white-space: nowrap;
  white-space: nowrap;
    vertical-align: middle;
  vertical-align: middle;
    margin-top: -8px; /* Увеличиваем отрицательный margin-top */
  margin-top: 0;
}
}


Строка 80: Строка 83:
   color: #7faad9;
   color: #7faad9;
   text-decoration: none;
   text-decoration: none;
  transition: color 0.2s ease;
}
}


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


Строка 113: Строка 118:
         max-width: 90%;
         max-width: 90%;
         margin: 20px auto 0 auto;
         margin: 20px auto 0 auto;
         padding: 10px 15px;
         padding: 8px 12px;
        white-space: normal;
         justify-content: center;
         justify-content: center;
        box-shadow: 0 0 8px rgba(127, 170, 217, 0.2);
     }
     }
     .home-header__searchText {
     .home-header__searchText {

Версия от 23:42, 25 октября 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-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: rgba(26, 32, 39, 0.85); /* чуть прозрачнее для лёгкости */
  border-radius: 12px; /* скруглённые края */
  padding: 6px 14px; /* меньше отступов */
  font-size: 0.9rem;
  color: #ccc;
  cursor: text;
  transition: all 0.25s ease;
  width: auto;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(127, 170, 217, 0.25); /* голубое свечение */
}


.home-header__search:hover {
  color: #fff;
  box-shadow: 0 0 15px rgba(127, 170, 217, 0.45); /* усиление свечения при наведении */
  background: rgba(26, 32, 39, 0.95);
}

.home-header__searchIcon {
  display: none;
}

.home-header__searchText {
  display: inline-block;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  margin-top: 0;
}

.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 auto;
        padding: 8px 12px;
        justify-content: center;
        box-shadow: 0 0 8px rgba(127, 170, 217, 0.2);

    }
    .home-header__searchText {
        text-align: center;
        margin-top: 0;
    }
}