/*
 * @Author: lizilong
 * @Date: 2023-01-20 08:23:14
 * @LastEditors: lizilong
 * @LastEditTime: 2023-04-20 11:36:30
 * @FilePath: \blog\themes\butterfly\source\css\custom.css
 * @Description: 自定义CSS
 * Copyright (c) 2023 by lizilong | lizilong_whu@qq.com, All Rights Reserved. 
 */

/*自定义字体*/
@font-face {
  font-family: 'HarmonyOS_Sans_Medium';
  font-display: swap;
  src: url('HarmonyOS_Sans_Medium.ttf') format("truetype");  
}

/* weixin card begin */
[data-theme="light"] #aside-content .card-widget#card-wechat {
  background: #bde8de !important;
}
[data-theme="dark"] #aside-content .card-widget#card-wechat {
  background: #2d2d2d !important;
}
#aside-content .card-widget#card-wechat {
  background: var(--card-bg);
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 0;
  cursor: pointer !important;
  border: none;
  height: 110px;
}

/* 如果你设置了aside 的 mobile 为 false，记得放开下面这段注释；
   如果你设置了aside 的 mobile 为 true ，不需要改动。 */

@media screen and (max-width: 768px) {
  #aside-content .card-widget#card-wechat {
    display: none !important;
  }
}

@media screen and (min-width: 1300px) {
  #aside-content .card-widget {
    margin-top: 1rem;
  }
}

#flip-wrapper {
  -webkit-perspective: 1000;
  perspective: 1000;
  position: relative;
  width: 235px;
  height: 110px;
  z-index: 1;
}

#flip-wrapper:hover #flip-content {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

#flip-content {
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: cubic-bezier(0, 0, 0, 1.29) 0.3s;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: url("https://img.zhheo.com/i/2022/08/31/630efc6e3e794.png") center
    center no-repeat;
  background-size: 100%;
}

.back.face {
  display: block;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  box-sizing: border-box;
  background: url("https://lizilong.oss-cn-hangzhou.aliyuncs.com/typora/wechat_channel.png")
    center center no-repeat;
  background-size: 100%;
}
/* weixin card end */


/* iconfont自定义图标 */
/* 
.icon-gitee1:before {
  content: "\e60c";
  filter: brightness(100);
}
.icon-gitee2:before {
  content: "\e60c";
  font-size: 20px;
  filter: brightness(100);
}
.icon-gitee2:hover {
  transform: rotate(180deg);
}
.icon-recommend1:before {
  content: "\e62d";
  filter: brightness(100);
  font-size: 14px;
}
.icon-book1:before {
  content: "\e67c";
  filter: brightness(100);
}
.icon-wenzhang1:before {
  content: "\e643";
  filter: brightness(100);
  font-size: 14px;
} */
svg.icon {
  /* 这里定义svg.icon，避免和Butterfly自带的note标签冲突 */
   width: 1.5em; height: 1.5em;
   /* width和height定义图标的默认宽度和高度*/
   vertical-align: -0.15em;
   fill: currentColor;
   overflow: hidden;
}

/* 博客底部分页栏 */
nav {
  width: 100%;
}

