htmleaf-demo.css 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. @font-face {
  2. font-family: 'icomoon';
  3. src:url('../fonts/icomoon.eot?rretjt');
  4. src:url('../fonts/icomoon.eot?#iefixrretjt') format('embedded-opentype'),
  5. url('../fonts/icomoon.woff?rretjt') format('woff'),
  6. url('../fonts/icomoon.ttf?rretjt') format('truetype'),
  7. url('../fonts/icomoon.svg?rretjt#icomoon') format('svg');
  8. font-weight: normal;
  9. font-style: normal;
  10. }
  11. [class^="icon-"], [class*=" icon-"] {
  12. font-family: 'icomoon';
  13. speak: none;
  14. font-style: normal;
  15. font-weight: normal;
  16. font-variant: normal;
  17. text-transform: none;
  18. line-height: 1;
  19. /* Better Font Rendering =========== */
  20. -webkit-font-smoothing: antialiased;
  21. -moz-osx-font-smoothing: grayscale;
  22. }
  23. body, html { font-size: 100%; padding: 0; margin: 0;}
  24. /* Reset */
  25. *,
  26. *:after,
  27. *:before {
  28. -webkit-box-sizing: border-box;
  29. -moz-box-sizing: border-box;
  30. box-sizing: border-box;
  31. }
  32. /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
  33. .clearfix:before,
  34. .clearfix:after {
  35. content: " ";
  36. display: table;
  37. }
  38. .clearfix:after {
  39. clear: both;
  40. }
  41. body{
  42. background: #494A5F;
  43. font-weight: 500;
  44. font-size: 1.05em;
  45. font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
  46. }
  47. .htmleaf-links a{ color: rgba(255, 255, 255, 0.6);outline: none;text-decoration: none;-webkit-transition: 0.2s;transition: 0.2s;}
  48. .htmleaf-links a:hover,.htmleaf-links a:focus{color:#74777b;text-decoration: none;}
  49. .htmleaf-container{
  50. margin: 0 auto;
  51. }
  52. .bgcolor-1 { background: #f0efee; }
  53. .bgcolor-2 { background: #f9f9f9; }
  54. .bgcolor-3 { background: #e8e8e8; }/*light grey*/
  55. .bgcolor-4 { background: #2f3238; color: #fff; }/*Dark grey*/
  56. .bgcolor-5 { background: #df6659; color: #521e18; }/*pink1*/
  57. .bgcolor-6 { background: #2fa8ec; }/*sky blue*/
  58. .bgcolor-7 { background: #d0d6d6; }/*White tea*/
  59. .bgcolor-8 { background: #3d4444; color: #fff; }/*Dark grey2*/
  60. .bgcolor-9 { background: #ef3f52; color: #fff;}/*pink2*/
  61. .bgcolor-10{ background: #64448f; color: #fff;}/*Violet*/
  62. .bgcolor-11{ background: #3755ad; color: #fff;}/*dark blue*/
  63. .bgcolor-12{ background: #3498DB; color: #fff;}/*light blue*/
  64. .bgcolor-20{ background: #494A5F;color: #D5D6E2;}
  65. /* Header */
  66. .htmleaf-header{
  67. padding: 1em 190px 1em;
  68. letter-spacing: -1px;
  69. text-align: center;
  70. background: #66677c;
  71. }
  72. .htmleaf-header h1 {
  73. color: #D5D6E2;
  74. font-weight: 600;
  75. font-size: 2em;
  76. line-height: 1;
  77. margin-bottom: 0;
  78. }
  79. .htmleaf-header h1 span {
  80. display: block;
  81. font-size: 60%;
  82. font-weight: 400;
  83. padding: 0.8em 0 0.5em 0;
  84. color: #c3c8cd;
  85. }
  86. /*nav*/
  87. .htmleaf-demo a{color: #fff;text-decoration: none;}
  88. .htmleaf-demo{width: 100%;padding-bottom: 1.2em;}
  89. .htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em 1em;border: 3px solid #fff;font-weight: 700;}
  90. .htmleaf-demo a:hover{opacity: 0.6;}
  91. .htmleaf-demo a.current{background:#1d7db1;color: #fff; }
  92. /* Top Navigation Style */
  93. .htmleaf-links {
  94. position: relative;
  95. display: inline-block;
  96. white-space: nowrap;
  97. font-size: 1.5em;
  98. text-align: center;
  99. }
  100. .htmleaf-links::after {
  101. position: absolute;
  102. top: 0;
  103. left: 50%;
  104. margin-left: -1px;
  105. width: 2px;
  106. height: 100%;
  107. background: #dbdbdb;
  108. content: '';
  109. -webkit-transform: rotate3d(0,0,1,22.5deg);
  110. transform: rotate3d(0,0,1,22.5deg);
  111. }
  112. .htmleaf-icon {
  113. display: inline-block;
  114. margin: 0.5em;
  115. padding: 0em 0;
  116. width: 1.5em;
  117. text-decoration: none;
  118. }
  119. .htmleaf-icon span {
  120. display: none;
  121. }
  122. .htmleaf-icon:before {
  123. margin: 0 5px;
  124. text-transform: none;
  125. font-weight: normal;
  126. font-style: normal;
  127. font-variant: normal;
  128. font-family: 'icomoon';
  129. line-height: 1;
  130. speak: none;
  131. -webkit-font-smoothing: antialiased;
  132. }
  133. /* footer */
  134. .htmleaf-footer{width: 100%;padding-top: 10px;}
  135. .htmleaf-small{font-size: 0.8em;}
  136. .center{text-align: center;}
  137. /****/
  138. .related {
  139. color: #fff;
  140. background: #494A5F;
  141. text-align: center;
  142. font-size: 1.25em;
  143. padding: 0.5em 0;
  144. overflow: hidden;
  145. }
  146. .related > a {
  147. vertical-align: top;
  148. width: calc(100% - 20px);
  149. max-width: 340px;
  150. display: inline-block;
  151. text-align: center;
  152. margin: 20px 10px;
  153. padding: 25px;
  154. font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
  155. }
  156. .related a {
  157. display: inline-block;
  158. text-align: left;
  159. margin: 20px auto;
  160. padding: 10px 20px;
  161. opacity: 0.8;
  162. -webkit-transition: opacity 0.3s;
  163. transition: opacity 0.3s;
  164. -webkit-backface-visibility: hidden;
  165. text-decoration: none;
  166. }
  167. .related a:hover,
  168. .related a:active {
  169. opacity: 1;
  170. }
  171. .related a img {
  172. max-width: 100%;
  173. opacity: 0.8;
  174. border-radius: 4px;
  175. }
  176. .related a:hover img,
  177. .related a:active img {
  178. opacity: 1;
  179. }
  180. .related h3{font-family: "Microsoft YaHei", sans-serif;font-size: 1.2em}
  181. .related a h3 {
  182. font-size: 0.85em;
  183. font-weight: 300;
  184. margin-top: 0.15em;
  185. color: #fff;
  186. }
  187. /* icomoon */
  188. .icon-htmleaf-home-outline:before {
  189. content: "\e5000";
  190. }
  191. .icon-htmleaf-arrow-forward-outline:before {
  192. content: "\e5001";
  193. }
  194. @media screen and (max-width: 1024px) {
  195. .htmleaf-header {
  196. padding: 2em 10% 2em;
  197. }
  198. .htmleaf-header h1 {
  199. font-size:1.4em;
  200. }
  201. .htmleaf-links{font-size: 1.4em}
  202. }
  203. @media screen and (max-width: 960px) {
  204. .htmleaf-header {
  205. padding: 2em 10% 2em;
  206. }
  207. .htmleaf-header h1 {
  208. font-size:1.2em;
  209. }
  210. .htmleaf-links{font-size: 1.2em}
  211. .related h3{font-size: 1em;}
  212. .related a h3 {
  213. font-size: 0.8em;
  214. }
  215. }
  216. @media screen and (max-width: 766px) {
  217. .htmleaf-header h1 {
  218. font-size:1.3em;
  219. }
  220. .htmleaf-links{font-size: 1.3em}
  221. }
  222. @media screen and (max-width: 640px) {
  223. .htmleaf-header {
  224. padding: 2em 10% 2em;
  225. }
  226. .htmleaf-header h1 {
  227. font-size:1em;
  228. }
  229. .htmleaf-links{font-size: 1em}
  230. .related h3{font-size: 0.8em;}
  231. .related a h3 {
  232. font-size: 0.6em;
  233. }
  234. }