ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
157 lines (145 loc) • 3.34 kB
text/less
/**
* 隐藏元素
* Turns off the display of an element
*/
.d-none {
display: none ;
}
/**
* 块级元素,此元素前后会带有换行符
* The element generates a block element box, generating line breaks both before and after the element when in the normal flow.
*/
.d-block {
display: block ;
}
/**
* 内联元素,元素前后没有换行符
* The element generates one or more inline element boxes that do not generate line breaks before or after themselves
*/
.d-inline-block {
display: inline-block ;
}
/**
* 设置弹性盒模型 `flex`
* The element behaves like a block element and lays out its content according to the flexbox model
*/
.d-flex {
display: flex ;
}
/**
* 设置弹性盒模型 `flex`,并使用内联元素
* The element behaves like an inline element and lays out its content according to the flexbox model
*/
.d-inline-flex {
display: inline-flex ;
}
.justify-content-start {
justify-content: flex-start ;
}
.justify-content-end {
justify-content: flex-end ;
}
.justify-content-center {
justify-content: center ;
}
.justify-content-between {
justify-content: space-between ;
}
.justify-content-around {
justify-content: space-around ;
}
.align-items-start {
align-items: flex-start ;
}
.align-items-end {
align-items: flex-end ;
}
.align-items-center {
align-items: center ;
}
.align-items-baseline {
align-items: baseline ;
}
.align-items-stretch {
align-items: stretch ;
}
.align-content-start {
align-content: flex-start ;
}
.align-content-end {
align-content: flex-end ;
}
.align-content-center {
align-content: center ;
}
.align-content-between {
align-content: space-between ;
}
.align-content-around {
align-content: space-around ;
}
.align-content-stretch {
align-content: stretch ;
}
.align-self-auto {
align-self: auto ;
}
.align-self-start {
align-self: flex-start ;
}
.align-self-end {
align-self: flex-end ;
}
.align-self-center {
align-self: center ;
}
.align-self-baseline {
align-self: baseline ;
}
.align-self-stretch {
align-self: stretch ;
}
.flex-1 {
flex: 1 ;
}
.flex-column {
flex-direction: column ;
}
.flex-column-reverse {
flex-direction: column-reverse ;
}
.flex-wrap {
flex-wrap: wrap ;
}
.flex-nowrap {
flex-wrap: nowrap ;
}
.flex-shrink-0 {
flex-shrink: 0 ;
}
.flex-shrink-1 {
flex-shrink: 1 ;
}
.flex-grow-0 {
flex-grow: 0 ;
}
.flex-grow-1 {
flex-grow: 1 ;
}
/**
* 垂直并居中
* Vertical and centered
*/
.flex-center {
display: flex ;
align-items: center ;
}
/**
* 垂直并居中,且主轴元素之间留有空白(例如:两个元素分别在左右两边,中间留空)
* Vertical and centered, and there is a space between the main axis elements (for example: the two elements are on the left and right sides, and the middle is left blank)
*/
.flex-center-between {
display: flex ;
align-items: center ;
justify-content: space-between ;
}