|
@@ -18,12 +18,56 @@
|
|
|
display: flex;
|
|
|
display: -webkit-flex; /* Safari */
|
|
|
}
|
|
|
-.f-right{
|
|
|
- flex-direction:row-reverse
|
|
|
-}
|
|
|
.f-item {
|
|
|
flex-grow: 1; /* default 0 */
|
|
|
}
|
|
|
+/* 排列方向 */
|
|
|
+.f-direction-row{
|
|
|
+ flex-direction: row/*主轴为水平方向,起点在左端。*/
|
|
|
+}
|
|
|
+.f-direction-row-reverse{
|
|
|
+ flex-direction: row-reverse;/*主轴为水平方向,起点在右端。*/
|
|
|
+}
|
|
|
+.f-direction-column{
|
|
|
+ flex-direction: column;/*主轴为垂直方向,起点在上端。*/
|
|
|
+}
|
|
|
+.f-direction-column-reverse{
|
|
|
+ flex-direction: column-reverse;/*主轴为垂直方向,起点在下端。*/
|
|
|
+}
|
|
|
+/*水平 对齐方向 */
|
|
|
+.f-justify-content-start{
|
|
|
+ justify-content: flex-start; /* 向左对齐 */
|
|
|
+}
|
|
|
+.f-justify-content-end{
|
|
|
+ justify-content: flex-end; /* 向右对齐 */
|
|
|
+}
|
|
|
+.f-justify-content-center{
|
|
|
+ justify-content: center; /* 居中对齐 */
|
|
|
+}
|
|
|
+.f-justify-content-between{
|
|
|
+ justify-content: space-between; /*两端对齐*/
|
|
|
+}
|
|
|
+.f-justify-content-around{
|
|
|
+ justify-content: space-around; /* 距离等比 */
|
|
|
+}
|
|
|
+
|
|
|
+/* 交叉轴对齐方向 */
|
|
|
+.f-align-items-start{
|
|
|
+ align-items: flex-start
|
|
|
+}
|
|
|
+.f-align-items-end{
|
|
|
+ align-items: flex-end
|
|
|
+}
|
|
|
+.f-align-items-center{
|
|
|
+ align-items:center;
|
|
|
+}
|
|
|
+.f-align-items-baseline{
|
|
|
+ align-items: baseline; /*项目的第一行文字的基线对齐。*/
|
|
|
+}
|
|
|
+.f-align-items-stretch{
|
|
|
+ align-items: stretch; /*如果项目未设置高度或设为auto,将占满整个容器的高度。*/
|
|
|
+}
|
|
|
+
|
|
|
/* color */
|
|
|
.c-green{
|
|
|
color:#00af66
|