scss 移动友好的所有评论页面
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss 移动友好的所有评论页面相关的知识,希望对你有一定的参考价值。
.orc-collectionControlsLabel {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.orc-collectionControls {
display: flex;
flex-wrap: wrap;
margin: 0;
width: 100%;
align-items: stretch;
}
.orc-collectionControls .orc-collectionControls-item-label {
cursor: pointer;
background-color: #f2f2f2;
border-radius: 0;
position: relative;
text-align: center;
padding: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin: 0;
overflow: hidden;
}
.orc-collectionControls-item-input:checked + .orc-collectionControls-item-label,
.orc-collectionControls-item-input--checked + .orc-collectionControls-item-label {
border: 0;
box-shadow: none;
border: 1px solid #000;
font-weight: bold;
}
.orc-collectionControls-item {
flex: 1 1 100%;
padding: 3px 0;
box-sizing: border-box;
}
.orc-collectionControls-item-label-heading {
display: block;
font-size: 18px;
font-weight: normal;
text-align: left;
flex-basis: 66.66%;
background-color: transparent;
padding: 16px;
line-height: 18px;
margin-bottom: 0;
}
.orc-collectionControls-item-input {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.orc-collectionControls-item-label-background {
display: block;
background-size: cover;
background-repeat: no-repeat;
background-position: center right;
height: 50px;
flex-basis: 33.33%;
margin: 0;
}
@media only screen and (min-width: 480px) {
.orc-collectionControls-item {
flex: 1 1 50%;
padding-right: 18px;
&:last-child {
padding-right: 0;
}
}
.orc-collectionControls .orc-collectionControls-item-label {
display: block;
height: 220px;
margin: 0;
background-color: transparent;
border-bottom: 3px solid transparent;
}
.orc-collectionControls-item-input:checked + .orc-collectionControls-item-label,
.orc-collectionControls-item-input--checked + .orc-collectionControls-item-label {
border: 0;
border-bottom: 3px solid #000;
}
.orc-collectionControls-item-label-heading {
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
background-color: rgba(255,255,255,0.9);
}
.orc-collectionControls-item-label-background {
background-position: center center;
height: 100%;
width: 100%;
margin-top: auto;
width: auto;
}
}
@media only screen and (min-width: 1060px) {
.orc-collectionControls-item {
flex: 1 1 25%;
}
}
.orc-collectionControlsLabel {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.orc-collectionControls {
display: flex;
flex-wrap: wrap;
margin: -9px;
align-items: stretch;
}
.orc-collectionControls .orc-collectionControls-item-label {
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
text-align: center;
padding: 8px 16px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-top: 0;
}
.orc-collectionControls-item-input:checked + .orc-collectionControls-item-label {
border: 1px solid #4a5973;
box-shadow: 0 0 0 1px #4a5973;
}
.orc-collectionControls-item {
flex: 1 1 100%;
padding: 3px 9px;
box-sizing: border-box;
}
.orc-collectionControls-item-label-heading {
display: block;
font-size: 18px;
font-weight: normal;
text-align: left;
flex-basis: 66.66%;
}
.orc-collectionControls-item-input {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.orc-collectionControls-item-label-background {
display: block;
background-size: contain;
background-repeat: no-repeat;
background-position: center right;
height: 50px;
flex-basis: 33.33%;
margin: 0;
}
@media only screen and (min-width: 480px) {
.orc-collectionControls-item {
flex: 1 1 50%;
padding: 9px;
}
.orc-collectionControls .orc-collectionControls-item-label {
flex-direction: column;
align-items: stretch;
padding: 16px;
height: auto;
}
.orc-collectionControls-item-label-heading {
text-align: center;
margin-bottom: 16px;
flex-basis: auto;
}
.orc-collectionControls-item-label-background {
background-position: center center;
height: 150px;
margin-top: auto;
width: auto;
flex-basis: auto;
}
}
@media only screen and (min-width: 1060px) {
.orc-collectionControls-item {
flex: 1 1 25%;
}
}
以上是关于scss 移动友好的所有评论页面的主要内容,如果未能解决你的问题,请参考以下文章