style.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. import styled from "styled-components";
  2. export const Headers = styled.div`
  3. .ant-affix{
  4. z-index: 999;
  5. .nav-wrapper{
  6. background: rgba(255,255,255,.95);
  7. box-shadow: 0 1px 40px -8px rgba(0,0,0,.5);
  8. }
  9. }
  10. .search-form--modal {
  11. -webkit-transition: visibility .25s ease,opacity .25s ease;
  12. -moz-transition: visibility .25s ease,opacity .25s ease;
  13. -ms-transition: visibility .25s ease,opacity .25s ease;
  14. -o-transition: visibility .25s ease,opacity .25s ease;
  15. transition: visibility .25s ease,opacity .25s ease;
  16. overflow: hidden;
  17. z-index: 999;
  18. position: fixed;
  19. top: 0;
  20. right: 0;
  21. left: 0;
  22. bottom: 0;
  23. background: #fff;
  24. visibility: hidden;
  25. opacity: 0;
  26. }
  27. .search-form--modal .search-form__inner {
  28. max-width: 640px;
  29. padding: 0 20px;
  30. margin: auto;
  31. text-align: left;
  32. position: absolute;
  33. width: 100%;
  34. left: 0;
  35. right: 0;
  36. height: 285px;
  37. top: 0;
  38. bottom: 0;
  39. }
  40. .search-form .box {
  41. position: relative;
  42. }
  43. .search-form--modal .search-form__inner p {
  44. padding-left: 24px;
  45. color: #404040;
  46. font-size: 15px;
  47. line-height: 1.5;
  48. margin:15px 0 22px 0;
  49. }
  50. .search-form i {
  51. font-size: 32px;
  52. font-size: 2rem;
  53. line-height: 1;
  54. color: #ddd;
  55. position: absolute;
  56. bottom: 10px;
  57. margin-top: -16px;
  58. left: 16px;
  59. }
  60. .search-form input {
  61. font-size: 24px;
  62. font-size: 1.5rem;
  63. background: #fff;
  64. padding: 12px 24px 12px 64px;
  65. width: 100%;
  66. outline: none;
  67. border-radius: 50px;
  68. color: #666;
  69. border: 1px solid #ccc;
  70. }
  71. .search-form .search_close {
  72. position: absolute;
  73. width: 35px;
  74. height: 35px;
  75. background: 0 0;
  76. top: 20px;
  77. right: 15px;
  78. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  79. }
  80. .search_close:before, .search_close:after {
  81. background-color: #222;
  82. position: absolute;
  83. content: "";
  84. width: 30px;
  85. height: 2px;
  86. top: 17px;
  87. left: 2px;
  88. }
  89. .search_close:before {
  90. transform: rotate(-45deg);
  91. -webkit-transform: rotate(-45deg);
  92. }
  93. .search_close:after {
  94. transform: rotate(45deg);
  95. -webkit-transform: rotate(45deg);
  96. }
  97. .search-form.is-visible{
  98. visibility: visible;
  99. opacity: .99;
  100. animation: elastic .5s;
  101. background-image: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.2.1/img/other/iloli.gif);
  102. background-repeat: no-repeat;
  103. background-position: bottom right;
  104. }
  105. @keyframes elastic {
  106. 0% {
  107. transform: scale(0)
  108. }
  109. 55% {
  110. transform: scale(1)
  111. }
  112. 70% {
  113. transform: scale(.98)
  114. }
  115. 100% {
  116. transform: scale(1)
  117. }
  118. }
  119. @media (min-width: 768px){
  120. &:hover .nav-wrapper{
  121. background: rgba(255,255,255,.95);
  122. box-shadow: 0 1px 40px -8px rgba(0,0,0,.5);
  123. }
  124. }
  125. @media(max-width:768px){
  126. .search-form.is-visible{
  127. background-size: 30%;
  128. }
  129. .search-form--modal .search-form__inner p{
  130. padding-left: 10px;
  131. font-size: 14px;
  132. }
  133. .search-form i{
  134. font-size: 22px;
  135. bottom: 11px;
  136. }
  137. .search-form input{
  138. padding: 10px 10px 10px 45px;
  139. font-size: 18px;
  140. }
  141. }
  142. `;
  143. export const NavWrapper = styled.div`
  144. width: 100%;
  145. height: 75px;
  146. position:fixed;
  147. top:0;
  148. padding:0 30px
  149. z-index:999;
  150. transition: all .4s ease;
  151. @media (max-width: 768px){
  152. height: 50px;
  153. padding:0 15px
  154. }
  155. `;
  156. export const NavLeft = styled.div`
  157. float:left;
  158. height:75px;
  159. line-height:75px;
  160. max-width:120px;
  161. a{
  162. color: #464646;
  163. font-size: 20px;
  164. font-weight: 800;
  165. }
  166. i{
  167. font-size:22px;
  168. color:#666666;
  169. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  170. display:none;
  171. }
  172. i:hover{
  173. color:#fe9600;
  174. }
  175. a:hover{
  176. color:#fe9600;
  177. }
  178. @media (max-width: 768px){
  179. height:50px;
  180. line-height:50px;
  181. a{
  182. display:none;
  183. }
  184. i{
  185. display: inline-block;
  186. }
  187. }
  188. `;
  189. export const NavRight = styled.div`
  190. float:right;
  191. height:75px;
  192. .flex-items{
  193. height:75px;
  194. }
  195. @media (max-width: 768px){
  196. height:50px;
  197. .flex-items{
  198. height:50px;
  199. }
  200. }
  201. `;
  202. export const Nav = styled.ul`
  203. height:75px;
  204. @media (max-width: 768px){
  205. display:none;
  206. }
  207. `;
  208. export const NavItem = styled.li`
  209. padding:0 15px;
  210. .nav-item{
  211. display:block;
  212. color: #666666;
  213. font-size:16px;
  214. height:40px;
  215. line-height:40px;
  216. position: relative;
  217. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  218. }
  219. .nav-item i{
  220. margin-right:5px;
  221. }
  222. .nav-item:after{
  223. content: "";
  224. display: block;
  225. position: absolute;
  226. bottom: -17px;
  227. height: 6px;
  228. background-color: #fe9600;
  229. width: 0px;
  230. transition: width .25s ease-in-out;
  231. }
  232. &:hover .nav-item{
  233. color:#fe9600;
  234. }
  235. &:hover .nav-item:after{
  236. width:100%;
  237. }
  238. .NavDropdown ul{
  239. padding:10px;
  240. text-align: center;
  241. box-shadow: 0 1px 40px -8px rgba(0,0,0,.5);
  242. }
  243. .NavDropdown ul li:hover{
  244. background:none;
  245. }
  246. .NavDropdown ul li:hover a{
  247. color:#fe9600;
  248. }
  249. .NavDropdown ul:before{
  250. content: "";
  251. position: absolute;
  252. top: -20px;
  253. left: 50%;
  254. margin-left: -10px;
  255. border-width: 10px;
  256. border-style: solid;
  257. border-color: transparent transparent #fff transparent;
  258. }
  259. `;
  260. export const IconBox = styled.div`
  261. i{
  262. font-size:24px;
  263. margin-left:20px;
  264. color:#666666;
  265. cursor: url(${require('../../statics/images/ayuda.cur')}),auto !important;
  266. }
  267. i:hover{
  268. color:#fe9600;
  269. }
  270. img{
  271. width: 24px;
  272. height: 24px;
  273. border-radius: 50%;
  274. margin-left:20px;
  275. }
  276. `;
  277. export const Mask = styled.div`
  278. position: fixed;
  279. background-color: rgba(0, 0, 0, 0.5);
  280. top: 0;
  281. left: 0;
  282. bottom: 0;
  283. right: 0;
  284. z-index: 998;
  285. &.hidden{
  286. display:none;
  287. }
  288. &.show{
  289. display:block;
  290. }
  291. `;
  292. export const MoNav = styled.div`
  293. position: fixed;
  294. left: 0;
  295. bottom: 0;
  296. top: 0;
  297. background-color: #ffffff;
  298. width: 55%;
  299. z-index: 999;
  300. transition-duration: .5s;
  301. overflow-y: scroll;
  302. -webkit-transform: translateX(-100%) translateY(0px);
  303. transform: translateX(-100%) translateY(0px);
  304. &.open{
  305. transform: translateX(0px) translateY(0px);
  306. -webkit-transform: translateX(0px) translateY(0px);
  307. }
  308. .m-avatar {
  309. width:100%;
  310. height: auto;
  311. padding: 30px 0 20px;
  312. text-align: center;
  313. }
  314. .m-avatar img {
  315. width: 90px;
  316. height: 90px;
  317. max-width: 90px;
  318. border-radius: 100%;
  319. }
  320. .name{
  321. margin-bottom:10px;
  322. padding:0 15px;
  323. text-align: center;
  324. font-size: 13px;
  325. color: #333;
  326. }
  327. .info{
  328. margin-bottom:10px;
  329. padding:0 15px 15px 15px;
  330. text-align: center;
  331. font-size: 13px;
  332. color: #333;
  333. position: relative;
  334. &:after{
  335. position: absolute;
  336. right:0px;
  337. bottom: 0;
  338. left:0px;
  339. height: 1px;
  340. content: '';
  341. -webkit-transform: scaleY(.5);
  342. transform: scaleY(.5);
  343. background-color:#f1f1f1;
  344. }
  345. }
  346. .menu{
  347. .item{
  348. position: relative;
  349. padding:10px 15px;
  350. color: #333;
  351. font-size: 14px;
  352. span{
  353. margin-left:5px;
  354. }
  355. i{
  356. font-size: 12px;
  357. }
  358. &:after{
  359. position: absolute;
  360. right:0px;
  361. bottom: 0;
  362. left:0px;
  363. height: 1px;
  364. content: '';
  365. -webkit-transform: scaleY(.5);
  366. transform: scaleY(.5);
  367. background-color:#f1f1f1;
  368. }
  369. }
  370. }
  371. .sub-menu{
  372. padding-left:15px;
  373. .item{
  374. padding:5px 10px;
  375. font-size: 13px;
  376. }
  377. }
  378. `;