lowcode-test/apps/h5/src/style.css

122 lines
1.8 KiB
CSS

* {
box-sizing: border-box;
}
body {
margin: 0;
background: #fff;
color: #173d3a;
font-family: Arial, sans-serif;
}
.page-renderer {
min-height: 100vh;
background: #fff;
}
.page-renderer h2 {
margin: 0;
padding: 18px 20px 6px;
font-size: 23px;
letter-spacing: -0.5px;
}
.r-text {
padding: 3px 20px 14px;
line-height: 1.7;
color: #4d605d;
font-size: 14px;
}
.r-banner {
height: 180px;
position: relative;
overflow: hidden;
color: white;
}
.r-banner img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
.shade {
position: absolute;
inset: 0;
background: linear-gradient(90deg, #0b2624a8, transparent);
}
.banner-copy {
position: absolute;
left: 22px;
bottom: 22px;
}
.banner-copy p {
margin: 0 0 5px;
font-size: 12px;
}
.banner-copy h1 {
font-size: 28px;
margin: 0;
}
.r-image {
display: block;
width: 100%;
height: auto;
min-height: 150px;
object-fit: cover;
}
.r-button {
display: block;
margin: 12px 20px 22px;
width: calc(100% - 40px);
border: 0;
border-radius: 3px;
padding: 13px;
background: #dca74e;
color: #173d3a;
font-weight: bold;
}
.products {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 14px 20px;
}
.products article {
font-size: 13px;
}
.product-img {
height: 100px;
background: #dceae5;
margin-bottom: 8px;
}
.products b,
.products span {
display: block;
}
.products span {
color: #b77523;
margin-top: 4px;
}
.page-renderer hr {
border: 0;
border-top: 1px solid #e3e8e2;
margin: 12px 20px;
}
.cols {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 12px 20px;
}
.cols div {
background: #e9f0e9;
padding: 17px;
font-size: 13px;
}
.unknown,
.h5-error,
.loading {
padding: 32px;
text-align: center;
color: #6d7a77;
}
.h5-error {
color: #a75140;
}