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

Материал из МК14 | Space Station 14 Wiki
м (test)
мНет описания правки
Строка 111: Строка 111:
.center {
.center {
   text-align: left;
   text-align: left;
}
linya {
position: relative;
color: #00a650; /*задаём цвет ссылки*/
cursor: pointer;
line-height: 1; /*задаём высоту строки*/
text-decoration: none; /*убираем подчёркивание*/
}
linya:after {
display: block;
position: absolute;
left: 0; /*изменить на right:0;, чтобы изменить направление подчёркивания */
width: 0;/*задаём длинну линии до наведения курсора*/
height: 2px; /*задаём ширину линии*/
background-color: #00a650; /*задаём цвет линии*/
content: "";
transition: width 0.3s ease-out; /*задаём время анимации*/
}
linya:hover:after,
linya:focus:after {
width: 100%; /*устанавливаем значение 100% чтобы ссылка подчёркивалась полностью*/
}
}

Версия от 22:07, 3 августа 2024

@keyframes animationOne {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes text1 {
   0% {
      color: #000;
      margin-bottom: -40px;
   }

   85% {
      letter-spacing: 8px;
      margin-bottom: -40px;
   }
}

        .block-animation {
          width: 90px;
          height: 50px;
          background-color: #ffb90f;
          transition: width 1s cubic-bezier(0, 0, 1, 1) 50ms;
        }
        
        .block-animation:hover {
          width: 590px;
          background-color: red;
          animation: shake 0.5s;
          animation-iteration-count: infinite;
        }

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

h1 {
  font-family: Roboto, Geneva, Arial, Helvetica, sans-serif;
}


.underline-one {
	color: #00bfff; /* Цвет обычной ссылки */
    position: relative;
    cursor: pointer;
    text-decoration: none; /* Убираем подчеркивание */
}
.underline-one:after {
	content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 0;
    height: 1px; /* Высота линии */
    background-color: black; /* Цвет подчеркивания при исчезании линии*/
    transition: width 0.5s; /* Время эффекта */
}

.underline-one:hover:after {
	content: "";
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px; /* Высота линии */
    background-color: red; /* Цвет подчеркивания при появлении линии*/
    transition: width 0.5s;  /* Время эффекта */
}

.btn {
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: .3em 0.5em calc(.3em + 0.5px);
  background: #262626;
  transition: 0.2s;
  margin: 5px;
  border: solid;
  border-radius: 0.5px;
  border-width: 0.5px;
  border-color: #86c232;
  transition: width 1s cubic-bezier(0, 0, 1, 1) 500ms;
}
.btn:hover { 
    background: #86c232;
    color: black;
    border: 0.3px;
    width: 230px;
}
.btn:active {
  background: #CD2A19;
  box-shadow: 0 5px #9B111E inset;
}

.center {
  text-align: left;
}

linya {
	position: relative;
	color: #00a650; /*задаём цвет ссылки*/
	cursor: pointer;
	line-height: 1; /*задаём высоту строки*/
	text-decoration: none; /*убираем подчёркивание*/

}
linya:after {
	display: block;
	position: absolute;
	left: 0; /*изменить на right:0;, чтобы изменить направление подчёркивания */
	width: 0;/*задаём длинну линии до наведения курсора*/
	height: 2px; /*задаём ширину линии*/
	background-color: #00a650; /*задаём цвет линии*/
	content: "";
	transition: width 0.3s ease-out; /*задаём время анимации*/
}

linya:hover:after,
linya:focus:after {
	width: 100%; /*устанавливаем значение 100% чтобы ссылка подчёркивалась полностью*/
}