コンテンツにスキップ

利用者:Marine-Blue/メモ/テストケース2/styles.css

.mypage_icon_span {
  display: inline-block;
  width: 60px;
  height: 60px;
  text-align: center;
  text-decoration: none;
  line-height: 54px;
  outline: none;
  cursor: default;
}
.mypage_icon_span::before,
.mypage_icon_span::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: '';
}
.mypage_icon_span,
.mypage_icon_span::before,
.mypage_icon_span::after {
  box-sizing: border-box;
  transition: all .3s;
}
.mypage_icon_span {
  position: relative;
  z-index: 2;
  background-color: #fff;
  border: 2px solid #333;
  color: #333;
  line-height: 50px;
  overflow: hidden;
}
.mypage_icon_span:hover {
  color: #fff;
}
.mypage_icon_span::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(.5);
}
.mypage_icon_span:hover::after {
  background: #333;
  transform: scale(1);
}