scss Flex Snippets
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss Flex Snippets相关的知识,希望对你有一定的参考价值。
// Centralizar icone no meio de uma imagem verticalmente e horizontalmente
// HTML
// <a href="/">
// <figure>
// <img src="./img/_cardhighlight1.png" alt="">
// </figure>
// <i class="fa fa-play-circle-o"></i>
// </a>
// SCSS
>a {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
>figure {
>img {}
}
>i {
position: absolute;
font-size: 3.5em;
}
}
以上是关于scss Flex Snippets的主要内容,如果未能解决你的问题,请参考以下文章
scss 垂直/水平中心显示表https://css-tricks.com/snippets/sass/centering-mixin/
scss 来自https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
scss flex mixin scss
scss _flex-img.scss
scss Flex卡
scss Sass Flex Grid