You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
2.4 KiB
Plaintext

2 years ago
@height: 20rem;
@text-size: 0.85rem;
.discover-card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid rgba(0,0,0,.125);
border-radius: .25rem;
.card-header {
height: 2.25rem;
padding: .75rem 1.25rem;
margin-bottom: 0;
background-color: rgba(0,0,0,.03);
border-bottom: 1px solid rgba(0,0,0,.125);
display: flex;
align-items: center;
&:first-child {
border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}
.card-header-text {
font-size: 1.25rem;
}
.card-header-buttons {
margin-left: auto;
}
}
.card-title {
margin: 1rem 0 0.75rem 1rem;
}
.card-body {
flex: 1 1 auto;
padding: 0.25rem;
font-size: 1.25rem;
.loading {
width: 100%;
height: @height;
font-size: @text-size;
margin-top: 1px;
display: flex;
.spinner {
margin: auto;
padding: 2rem;
width: 100%;
}
}
.card-content {
height: @height;
overflow-y: auto;
border-top: 1px solid #ccc;
padding: 0 0.6rem;
margin: 0 0.4rem;
font-size: @text-size;
}
}
&.discover-card-zh {
.card-header {
@media(max-width: 410px){
.card-header-buttons {
font-size: 0.9rem;
}
}
@media(max-width: 380px){
.card-header-buttons {
font-size: 0.8rem;
}
}
@media(max-width: 360px){
.card-header-text {
font-size: 1rem;
}
}
@media(max-width: 350px){
.card-header-text {
font-size: 1.25rem;
}
.card-header-buttons {
margin-left: 0;
margin-top: 0.8rem;
font-size: 1rem;
}
& {
flex-direction: column;
}
}
}
}
&.discover-card-en {
.card-header {
@media(max-width: 500px){
.card-header-text {
font-size: 1rem;
}
.card-header-buttons {
font-size: 0.8rem;
}
}
@media(max-width: 430px){
.card-header-text {
font-size: 1.25rem;
}
.card-header-buttons {
margin-left: 0;
margin-top: 0.8rem;
font-size: 1rem;
}
& {
flex-direction: column;
}
}
@media(max-width: 350px){
.card-header-text {
font-size: 1rem;
}
.card-header-buttons {
font-size: 0.8rem;
}
}
}
}
4 years ago
}