123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- @media screen and (min-width: 768px) {
- .title {
- font-size: 34px;
- text-align: center;
- margin-top: 100px;
- }
- .main {
- .case {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- &:nth-child(1) {
- padding-top: 80px !important;
- }
- &:nth-child(odd) {
- height: 690px;
- padding: 120px 0;
- .cover {
- width: 668px;
- height: 410px;
- }
- }
- &:nth-child(even) {
- height: 720px;
- padding: 162px 0;
- background: url(/img/case-bg.png) no-repeat center;
- background-size: auto 720px;
- .cover {
- width: 568px;
- height: 397px;
- }
- }
- .cover {
- background: pink;
- }
- .content {
- position: relative;
- background: skyblue;
- width: 490px;
- height: 410px;
- margin-top: 50px;
- img {
- display: block;
- width: 580px;
- height: 516px;
- position: absolute;
- left: 50%;
- top: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- }
- .cover {
- img {
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .footer {
- margin-top: 0;
- }
- }
- @media screen and (max-width: 768px) {
- .title {
- font-size: 0.34rem;
- text-align: center;
- margin-top: 0.8rem;
- }
- .main {
- .case {
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- &:nth-child(1){
- margin-top: 0.8rem;
- }
- .content {
- position: relative;
- margin: 0 auto;
- width: 6.14rem;
- height: 3.77rem;
- float: unset !important;
- -webkit-transform: translateY(-28%);
- transform: translateY(-28%);
- img {
- display: block;
- width: 6.14rem;
- height: 3.77rem;
- position: absolute;
- left: 50%;
- top: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
- }
- .cover {
- float: unset !important;
- margin: 0 auto;
- width: 6.14rem;
- height: 3.77rem;
- img {
- display: block;
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .footer {
- margin-top: 0;
- }
- }
|