123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- // 通用颜色
- // 上边框
- @title-top: #3181ff;
- @title-bg: #e0ecff;
- @body-bg: #2382ff;
- .show {
- display: block;
- }
- .noshow {
- display: none;
- }
- // 移动端下拉菜单动画
- @keyframes nav {
- from {height: 0;}
- to { height: calc(~"100vh - 90px");}
- }
- @-webkit-keyframes nav /* Safari and Chrome */
- {
- from {height: 0;}
- to { height: calc(~"100vh - 90px");}
- }
- @-moz-keyframes nav /* Safari and Chrome */
- {
- from {height: 0;}
- to { height: calc(~"100vh - 90px");}
- }
- @keyframes navc {
- from { height: calc(~"100vh - 90px");}
- to {height: 0;}
- }
- @-webkit-keyframes navc /* Safari and Chrome */
- {
- from { height: calc(~"100vh - 90px");}
- to {height: 0;}
- }
- @-moz-keyframes navc /* Safari and Chrome */
- {
- from { height: calc(~"100vh - 90px");}
- to {height: 0;}
- }
- body{
- height: 100vh;
- overflow-y: scroll;
- &::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 5px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 10px;
- }
- @media screen and (max-width:750px){
- &::-webkit-scrollbar {
- /*滚动条整体样式*/
- width: 0px;
- /*高宽分别对应横竖滚动条的尺寸*/
- height: 10px;
- }
- }
- &::-webkit-scrollbar-thumb {
- /*滚动条里面小方块*/
- border-radius: 10px;
- -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
- background: #999;
- }
- // 2382ff
- &::-webkit-scrollbar-thumb:hover {
- background: @body-bg;
- }
- &::-webkit-scrollbar-track {
- /*滚动条里面轨道*/
- -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
- border-radius: 10px;
- background: #eee;
- }
- }
- // 头部
- .header {
- width: 100%;
- background-color: #fff;
- border-bottom: 1px solid #f1f1f1;
- background-color: #fff;
- position: fixed;
- z-index: 1;
- .ha-item {
- margin-top: 10px;
- height: 70px;
- .img {
- height: 100%;
- span {
- font-size: 50px;
- font-weight: bold;
- color: @body-bg;
- }
- img {
- height: 100%;
- }
- }
- .button {
- display: none;
- @media screen and (max-width:750px) {
- & {
- display: block;
- }
- }
- .button {
- color: @body-bg;
- padding: 10px;
- border: 2px solid @body-bg;
- text-align: center;
- font-size: 30px;
- border-radius: 5px;
- }
- }
- .app {
- height: 100%;
- text-align: center;
- @media screen and (max-width:750px) {
- & {
- display: none;
- }
- }
- a {
- text-decoration: none;
- color: @body-bg;
- img {
- width: 50px;
- }
- }
- }
- }
- .hb-item {
- // 大屏下拉菜单
- .nav {
- display: flex;
- justify-content: flex-start;
- align-content: center;
- @media screen and (max-width:750px) {
- & {
- display: none;
- }
- }
- &>.nav-item:first-child>a{
- color: @body-bg;
- }
- .nav-item {
- padding: 0 20px;
- a {
- color: #777;
- font-weight: bold;
- text-decoration: none;
- line-height: 40px;
- display: table-cell;
- vertical-align: bottom;
- font-size: 18px;
- i {
- margin-left: 5px;
- }
- &:hover {
- color: @body-bg;
- }
- }
- .nav-ul {
- display: none;
- overflow: hidden;
- padding: 0;
- position: absolute;
- z-index: 1;
- background-color: #fff;
- overflow: auto !important;
- .nav-li {
- width: 100px;
- padding: 10px;
- list-style: none;
- &:hover {
- background-color: @body-bg;
- a {
- color: #fff;
- }
- }
- a {
- color: #777;
- line-height: 15px;
- font-size: small;
- }
- }
- }
- }
- }
- }
- }
- // 小屏幕下拉菜单
- // 移动端下拉菜单
- #nav-sm {
- position: fixed;
- z-index: 99;
- width: 100vw;
- overflow-y: scroll;
- @media screen and (max-width:768px) {
- & {
- border-top: 1px solid #eee;
- }
- }
- &::-webkit-scrollbar {
- height: 0;
- }
- box-sizing: border-box;
- background-color: #fff;
- margin-top: 80px;
- padding: 0;
- &>ul>li:first-child>a{
- color:@body-bg;
- }
- ul {
- li {
- list-style-type: none;
- a {
- font-weight: bold;
- font-size: 20px;
- font-size: 16px;
- line-height: 40px;
- color: #555;
- text-decoration: none;
- &:hover {
- color: @body-bg;
- }
- }
- .nav-sm-ul {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- flex-wrap: wrap;
- padding: 0;
- .nav-sm-li {
- padding: 0 10px;
- a {
- font-size: 14px;
- font-weight: normal;
- }
- }
- }
- }
- }
- }
- .nav-sm-noheight {
- height: 0px;
- }
- .nav-sm-show {
- height: calc(~"100vh - 80px");
- animation: nav 1s;
- -webkit-animation: nav 1s normal;
- -moz-animation: nav 1s;
- }
- .nav-sm-noshow {
- height: 0px;
- animation: navc 1s;
- -webkit-animation: navc 1s normal;
- -moz-animation: navc 1s;
- }
- .body {
- background-color: #fff;
- max-width: 1200px;
- overflow: hidden;
- position: relative;
- padding: 10px 15px 15px;
- margin: 141px 20px 20px;
- @media screen and (max-width:768px) {
- & {
- padding: 0px;
- border-radius: 10px 10px 0 0;
- margin: 100px 20px 20px;
- }
- }
- // 行头
- .row-style {
- margin-top: 20px;
- @media screen and (max-width:768px) {
- & {
- margin-top: 0px;
- border-radius: 10px;
- overflow: hidden;
- }
- }
- // 轮播图片
- .carousel-img-style {
- width: 100%;
- border-radius: 10px;
- }
- }
- // 消息通用样式模板
- .hotspot {
- padding: 0 20px 20px;
- h4 {
- margin-top: 0px;
- font-weight: normal;
- padding-bottom: 7px;
- border-bottom: 1px solid #eee;
- font-size: 16px;
- a {
- width: 100%;
- text-decoration: none;
- color: black;
- .icon-fire-style {
- margin-right: 10px;
- color: #a94442;
- }
- // 卡片底边颜色
- .b {
- border-bottom: 3px solid #a94442;
- padding: 5px 0;
- }
- .a {
- border-bottom: 3px solid #2382ff;
- padding: 5px 0;
- }
- }
- }
- ul {
- padding-left: 20px;
- li {
- list-style-type: square;
- color: #777;
- list-style-position: inherit;
- line-height: 36px;
- a {
- display: block;
- width: 100%;
- text-decoration: none;
- color: #777;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- border-bottom: 1px solid #f5f5f5;
- }
- }
- }
- }
- // 标题模板
- .title-style {
- width: 100%;
- margin-top: 20px;
- padding: 0 15px;
- .h4 {
- padding: 15px;
- border-top: 2px solid @title-top;
- background-color: @title-bg;
- vertical-align: middle;
- }
- }
- // 横向滚动
- .scroll-style {
- ul {
- padding: 0;
- width: 100%;
- display: flex;
- justify-content: space-between;
- flex-wrap: nowrap;
- align-items: center;
- overflow-x: auto;
- &::-webkit-scrollbar {
- // 滚动条整体
- background: none;
- }
- .scroll-li-style {
- // flex: 1;
- width: 19%;
- min-width: 160px;
- list-style-type: none;
- display: block;
- text-align: center;
- margin: 10px;
- a {
- color: #777;
- text-decoration: none;
- width: 100%;
- img {
- width: 100%;
- }
- h5 {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- }
- }
- }
- .footer {
- width: 100%;
- box-sizing: border-box;
- overflow: hidden;
- background-color: #fff;
- border-top: 1px solid #f1f1f1;
- text-align: center;
- color: #777;
- p {
- margin: 0;
- padding: 20px 0px 0px;
- }
- &>p:last-child {
- padding-bottom: 50px;
- }
- }
- // 顶部
- #top {
- position: fixed;
- bottom: 30px;
- right: 30px;
- padding: 20px;
- color: #fff;
- background-color: rgba(98, 96, 96, 0.3);
- border-radius: 10px;
- }
- // 分享功能
- #share{
- position: fixed;
- top: 60vh;
- right: 0px;
- box-sizing: border-box;
- display: flex;
- @media screen and (max-width:768px) {
- &{display: none;}
- }
- div{
- height: 132px;
- box-sizing: border-box;
- background-color: @body-bg;
- color: #fff;
- font-size: 15px;
- width: 30px;
- letter-spacing: 10px;
- text-align: center;
- line-height: 30px;
- border-radius: 5px 0 0 5px;
- writing-mode: vertical-lr;/*从左向右 从右向左是 writing-mode: vertical-rl;*/
- writing-mode: tb-lr;/*IE浏览器的从左向右 从右向左是 writing-mode: tb-rl;*/
- }
- ul{
- width: 0px;
- height: 132px;
- border: 1px solid #aaa;
- box-sizing: border-box;
- border-right: none;
- list-style: none;padding:0 ;
- box-sizing: border-box;
- &>li:first-child{
- background-color: #c6c6c6;
- line-height: 26px;
- font-weight: bold;
- }
- li{
- padding: 5px 10px;
- width: 100px;
- vertical-align: middle;
- img{
- width: 20px;
- vertical-align: middle;
- margin-right: 5px;
- }
- &:hover:not(ul>li:first-child){
- background-color: #e6e6e6;
- }
- }
- }
- // width: 100px;height: 100px;
- }
|