123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- @import 'global.scss';
- .search-wrap {
- max-width: 800px;
- padding: 0 15px;
- margin: 0 auto;
- overflow: hidden;
- }
- .search-box {
- margin: 30px 0 20px;
- position: relative;
- height: 40px;
- line-height: 40px;
- border-radius: 6px;
- overflow: hidden;
- @media(min-width: 768px) {
- margin: 80px 0 30px;
- height: 48px;
- line-height: 48px;
- }
- .input {
- position: relative;
- display: block;
- margin-right: 80px;
- height: 100%;
- @media(min-width: 768px) {
- margin-right:120px;
- }
- input {
- display: block;
- width: 100%;
- height: 100%;
- line-height: 24px;
- padding: 12px;
- padding-right: 40px;
- border: 0;
- border-width: 1px 0 1px 1px;
- border-color: #dedede;
- border-style: solid;
- border-top-left-radius: 6px;
- border-bottom-left-radius: 6px;
- }
- i {
- cursor: pointer;
- position: absolute;
- right: 0;
- top: 0;
- width: 40px;
- height: 100%;
- background: url("/assets/image/search-x.png") no-repeat center;
- background-size: 15px;
- display: none;
- }
- }
- a {
- display: block;
- position: absolute;
- width: 80px;
- height: 100%;
- text-align: center;
- background: $color;
- right: 0;
- top: 0;
- color: #fff;
- font-size: 14px;
- @media(min-width:768px) {
- width: 120px;
- font-size: 16px;
- }
- }
- }
- .search-tab {
- border-bottom: 1px solid #dedede;
- a {
- display: inline-block;
- margin-right: 20px;
- height: 48px;
- line-height: 48px;
- border-bottom: 1px solid #fff;
- color: #666;
- font-size: 14px;
- padding: 0 5px;
- transition: all .5s ease;
- @media(min-width: 768px) {
- margin-right: 70px;
- height: 54px;
- line-height: 54px;
- font-size: 16px;
- }
- &.cur,
- &:hover {
- color: $color;
- border-color: $color;
- }
- }
- }
- .search-tab-con {
- li {
- border-bottom: 1px solid #dedede;
- padding: 15px 0;
- transition: all .5s ease;
- @media(min-width: 768px) {
- padding: 25px 0;
- }
- &:hover,
- &:active {
- padding-left: 5px;
- }
- a {
- display: block;
- &:hover,
- &:active {
- h2 {
- color: $color;
- }
- }
- }
- span {
- color: #999;
- font-size: 14px;
- }
- h2 {
- color: #111;
- line-height: 1.6;
- margin: 10px 0;
- font-size: 16px;
- transition: all .5s ease;
- @media(min-width: 768px) {
- font-size: 24px;
- }
- @media(min-width:1200px) {
- font-size: 28px;
- }
- }
- }
- }
|