XChao's Blog
  • HOME
  • ARCHIVES
  • TAGS
  • CATEGORIES
  • LINKS
  • ABOUT
  • HOME
  • ARCHIVES
  • TAGS
  • CATEGORIES
  • LINKS
  • ABOUT
  • js跳出循环总结

    一.跳出一层循环1var arr = ["a", "b",'c','d']; 结束for循环1234567for(var i=0;i<arr.length;i+...
      2023-07-19  
    • javascript 
     
    • Array 
    • | 循环 
    Read more 
  • js经典排序算法

    1.冒泡排序(Bubble Sort)冒泡排序动图演示: 123定义: 比较相邻的前后二个数据,如果前面数据大于后面的数据,就将二个 数据交换。对数组的第0个数据到N-1个数据进行一次遍历后,最大的一个数据就“沉”到数组第N-1个位置。N=N-1...
      2023-07-19  
    • 算法 
     
    • Array 
    • | sort 
    Read more 
  • js 将对象数组中具有相同值的对象取出组成新的数组

    实现方法:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636...
      2023-07-19  
    • javascript 
     
    • js 
    • | Array 
    Read more 
  • js Date对象的详细使用

    前言:    最近发现Date对象在项目中真的是无处不在,几乎做过的所有项目中都有Date的各种用法,然而每次要使用的时候都是各种百度,自己既没有掌握Date的详细用法,也使得每次做项目都浪费很多时间,所以...
      2023-07-19  
    • javascript 
     
    • js 
    • | date 
    Read more 
  • git常用命令

    git的工作原理图解: 将指定文件添加到暂存区(stage) 将暂存区的所有内容提交到当前分支 分支的创建与合并 git的使用步骤:基本使用12345678910111213141516git add . //如果有删除的文件则:git a...
      2023-07-19  
    • 工具 
     
    • git 
    Read more 
  • Qiniu-image-tool-实现图片一键上传七牛云

        写博客当然少不了云储存了,那为什么推荐使用七牛云呢,当然是因为七牛云储存提供10G的免费空间,以及每月10G的流量,存放个人博客外链图片最好不过了,七牛云储存还有各种图形处理功能、缩略图、视频存放速...
      2023-07-19  
    • 云储存 
     
    • upload 
    Read more 
  • 使用gulp插件快速开发项目


      2023-07-19  
    • 工具 
     
    • gulp 
    Read more 
  • 使用gulp自动化构建前端项目


      2023-07-19  
    • 工具 
     
    • gulp 
    Read more 
  • css3伪类选择器nth-child和nth-of-type的区别


      2023-07-19  
    • javascript 
     
    • css 
    • | 伪类选择器 
    Read more 
  • Jquery Dom元素Index()方法的使用


      2023-07-19  
    • javascript 
     
    • jquery 
    Read more 
Prev Next
© 2017 - 2023    Chao
Visitor Count   Totalview 
Powered by Hexo | Theme Keep v3.6.1
鄂ICP证000000001号
$tools-item-width = 2.2rem $tools-item-font-size = 1.1rem $tools-item-border-radius = 0.1rem .side-tools-container { position relative .tools-item { width $tools-item-width height $tools-item-width margin-bottom 0.2rem color var(--text-color-3) font-size $tools-item-font-size background var(--background-color-1) border-right none border-radius $tools-item-border-radius box-shadow 0.1rem 0.1rem 0.2rem var(--shadow-color) cursor pointer i { color var(--text-color-3) } &:hover { color var(--background-color-1) background var(--primary-color) box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color) i { color var(--background-color-1) } } +keep-tablet() { width $tools-item-width * 0.9 height $tools-item-width * 0.9 margin-bottom 0.2rem font-size $tools-item-font-size * 0.9 } &.rss { a { width 100% height 100% border-radius $tools-item-border-radius &:hover { color var(--background-color-1) background var(--primary-color) box-shadow 0.2rem 0.2rem 0.4rem var(--shadow-color) } } } } .side-tools-list { transform translateX(100%) opacity 0 transition-t("transform, opacity", "0, 0", "0.2, 0.2", "linear, linear") &.show { transform translateX(0) opacity 1 } } .exposed-tools-list { if (hexo-config('style.scroll.percent') == true) { .tool-scroll-to-top { display none &.show { display flex } &:hover { .percent { display none } .arrow-up { display flex } } .arrow-up { display none } .percent { display flex font-size 1rem } } } } }
$icon-size = 1.2rem $search-header-height = 3rem .search-pop-overlay { position fixed top 0 left 0 z-index $z-index-8 display flex width 100% height 100% background rgba(0, 0, 0, 0) visibility hidden transition-t("visibility, background", "0, 0", "0.3, 0.3", "ease, ease") &.active { background rgba(0, 0, 0, 0.35) visibility visible .search-popup { transform scale(1) } } .search-popup { z-index $z-index-6 width 70% height 80% margin auto background var(--background-color-1) border-radius 0.4rem transform scale(0) transition-t("transform", "0", "0.3", "ease") +keep-tablet() { width 80% } +keep-mobile() { width 90% } .search-header { display flex align-items center height $search-header-height padding 0 1rem background var(--text-color-6) border-top-left-radius 0.2rem border-top-right-radius 0.2rem .search-input-field-pre { margin-right 0.2rem color var(--text-color-3) font-size 1.3rem cursor pointer } .search-input-container { flex-grow 1 padding 0.2rem .search-input { width 100% color var(--text-color-3) font-size 1.2rem background transparent border 0 outline 0 &::-webkit-search-cancel-button { display none } &::-webkit-input-placeholder { color var(--text-color-4) font-size 1rem } } } .close-popup-btn { color var(--text-color-3) font-size $icon-size cursor pointer &:hover { color var(--text-color-1) } } } #search-result { position relative display flex box-sizing border-box height 'calc(100% - %s)' % $search-header-height padding 0.3rem 1.5rem overflow auto .search-result-list { width 100% height 100% font-size 1rem li { box-sizing border-box margin 0.8rem 0 padding 0.8rem 0 border-bottom 0.1rem dashed var(--border-color) &:last-child { border-bottom none } .search-result-title { position relative display flex align-items center margin-bottom 0.8rem padding-left 1rem font-weight bold &::after { position absolute top 50% left 0 width 0.4rem height 0.4rem background var(--text-color-3) border-radius 50% transform translateY(-50%) content '' } } .search-result { margin 0 padding-left 1rem line-height 2rem word-wrap break-word } a { &:hover { color var(--text-color-3) } } .search-keyword { color var(--primary-color) font-weight bold border-bottom 0.1rem dashed var(--primary-color) } } } #no-result { margin auto color var(--text-color-4) } } } }