日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

常用样式积累-scss

發布時間:2023/11/27 生活经验 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 常用样式积累-scss 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
/*** author ctj -- 自定義公用樣式*/
/*清除浮動*/
.clearfix:after {height: 0;content: '';display: block;clear: both;
}
.clearfix { /*兼容 IE*/zoom: 1;
}/*布局*/
//水平對齊
.flexh {display: -webkit-box;display: -ms-flexbox;display: flex;
}//垂直對齊
.flexv {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;
}//不擴展自身
.flex0 {-webkit-box-flex: 0;-ms-flex: none;flex: none;
}
// 盡可能占空余空間
.flex1 {-webkit-box-flex: 1;-ms-flex: 1;flex: 1;
}// 兩端向中間對齊
.flex-between {-webkit-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between;
}// 中間向兩端對齊
.flex-around {-ms-flex-pack: distribute;justify-content: space-around;
}
// 垂直排序
.flex-vstart {align-items: flex-start
}
// 水平排序
.flex-hstart {justify-content: flex-start
}// 多列 水平居中對齊
.flex-vcenter {-webkit-box-align: center;-ms-flex-align: center;align-items: center;
}// 多行垂直居中對齊
.flex-hcenter {-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;
}
// 垂直倒序
.flex-vend {-webkit-box-align: end;-ms-flex-align: end;align-items: flex-end;
}
// 水平倒序
.flex-hend {-webkit-box-pack: end;-ms-flex-pack: end;justify-content: flex-end;
}
// 自身重定對齊
.flex-self-start {-ms-flex-item-align: start;align-self: flex-start;
}
.flex-self-center {align-self: center;
}
.flex-self-end {-ms-flex-item-align: end;align-self: flex-end;
}/*flex換行*/
.flex-wrap {-ms-flex-wrap: wrap;flex-wrap: wrap;
}/*手形鼠標*/
.cur-pointer {cursor: pointer;
}/*陰影*/
.box-shadow {-webkit-box-shadow: 0 0 13px -5px #000;box-shadow: 0 0 13px -5px #000;
}
// 文本處理
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-nowrap { white-space: nowrap; }
.over-hide { overflow: hidden; }
/*文本換行*/
.break-all { word-break: break-all; }
/*文本pre顯示*/
.content-pro { white-space: pre-wrap; }
/*省略號*/
.ellipsis {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
}/*美化滾動條*/
.scrollbar {&::-webkit-scrollbar {width: 8px;height: 8px;}&::-webkit-scrollbar-track {background-color: transparent;border-radius: 4px;}&::-webkit-scrollbar-thumb {border-radius: 4px;background-color: #ddd;}&::-webkit-scrollbar-button {display: block;width: 1px;height: 1px;}&.auto-hide::-webkit-scrollbar-thumb {border-radius: 4px;background-color: transparent;}&.auto-hide {&:hover::-webkit-scrollbar-thumb {background-color: #c3c3c3;}&:hover::-webkit-scrollbar {width: 8px;height: 8px;}}
}
// 顏色class
.color-link { color: #459AE9; }
.color-grey { color: #8B97A4; }
.color-green { color: #4ee49b; }

學習自Flex布局?http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html

轉載于:https://www.cnblogs.com/chentingjun/p/10438919.html

總結

以上是生活随笔為你收集整理的常用样式积累-scss的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。