htmleaf-demo.css 5.5 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. color: #D5D6E2;
  44. font-weight: 500;
  45. font-size: 1.05em;
  46. font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
  47. }
  48. a{ color: rgba(255, 255, 255, 0.6);outline: none;text-decoration: none;-webkit-transition: 0.2s;transition: 0.2s;}
  49. a:hover,a:focus{color:#74777b;text-decoration: none;}
  50. .htmleaf-container{
  51. margin: 0 auto;
  52. }
  53. .bgcolor-1 { background: #f0efee; }
  54. .bgcolor-2 { background: #f9f9f9; }
  55. .bgcolor-3 { background: #e8e8e8; }/*light grey*/
  56. .bgcolor-4 { background: #2f3238; color: #fff; }/*Dark grey*/
  57. .bgcolor-5 { background: #df6659; color: #521e18; }/*pink1*/
  58. .bgcolor-6 { background: #2fa8ec; }/*sky blue*/
  59. .bgcolor-7 { background: #d0d6d6; }/*White tea*/
  60. .bgcolor-8 { background: #3d4444; color: #fff; }/*Dark grey2*/
  61. .bgcolor-9 { background: #ef3f52; color: #fff;}/*pink2*/
  62. .bgcolor-10{ background: #64448f; color: #fff;}/*Violet*/
  63. .bgcolor-11{ background: #3755ad; color: #fff;}/*dark blue*/
  64. .bgcolor-12{ background: #3498DB; color: #fff;}/*light blue*/
  65. .bgcolor-20{ background: #494A5F;color: #D5D6E2;}
  66. /* Header */
  67. .htmleaf-header{
  68. padding: 1em 190px 1em;
  69. letter-spacing: -1px;
  70. text-align: center;
  71. background: #66677c;
  72. }
  73. .htmleaf-header h1 {
  74. color: #D5D6E2;
  75. font-weight: 600;
  76. font-size: 2em;
  77. line-height: 1;
  78. margin-bottom: 0;
  79. }
  80. .htmleaf-header h1 span {
  81. display: block;
  82. font-size: 60%;
  83. font-weight: 400;
  84. padding: 0.8em 0 0.5em 0;
  85. color: #c3c8cd;
  86. }
  87. /*nav*/
  88. .htmleaf-demo a{color: #fff;text-decoration: none;}
  89. .htmleaf-demo{width: 100%;padding-bottom: 1.2em;}
  90. .htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em 1em;border: 3px solid #fff;font-weight: 700;}
  91. .htmleaf-demo a:hover{opacity: 0.6;}
  92. .htmleaf-demo a.current{background:#1d7db1;color: #fff; }
  93. /* Top Navigation Style */
  94. .htmleaf-links {
  95. position: relative;
  96. display: inline-block;
  97. white-space: nowrap;
  98. font-size: 1.5em;
  99. text-align: center;
  100. }
  101. .htmleaf-links::after {
  102. position: absolute;
  103. top: 0;
  104. left: 50%;
  105. margin-left: -1px;
  106. width: 2px;
  107. height: 100%;
  108. background: #dbdbdb;
  109. content: '';
  110. -webkit-transform: rotate3d(0,0,1,22.5deg);
  111. transform: rotate3d(0,0,1,22.5deg);
  112. }
  113. .htmleaf-icon {
  114. display: inline-block;
  115. margin: 0.5em;
  116. padding: 0em 0;
  117. width: 1.5em;
  118. text-decoration: none;
  119. }
  120. .htmleaf-icon span {
  121. display: none;
  122. }
  123. .htmleaf-icon:before {
  124. margin: 0 5px;
  125. text-transform: none;
  126. font-weight: normal;
  127. font-style: normal;
  128. font-variant: normal;
  129. font-family: 'icomoon';
  130. line-height: 1;
  131. speak: none;
  132. -webkit-font-smoothing: antialiased;
  133. }
  134. /* footer */
  135. .htmleaf-footer{width: 100%;padding-top: 10px;}
  136. .htmleaf-small{font-size: 0.8em;}
  137. .center{text-align: center;}
  138. /****/
  139. .related {
  140. color: #fff;
  141. background: #494A5F;
  142. text-align: center;
  143. font-size: 1.25em;
  144. padding: 0.5em 0;
  145. overflow: hidden;
  146. }
  147. .related > a {
  148. vertical-align: top;
  149. width: calc(100% - 20px);
  150. max-width: 340px;
  151. display: inline-block;
  152. text-align: center;
  153. margin: 20px 10px;
  154. padding: 25px;
  155. font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
  156. }
  157. .related a {
  158. display: inline-block;
  159. text-align: left;
  160. margin: 20px auto;
  161. padding: 10px 20px;
  162. opacity: 0.8;
  163. -webkit-transition: opacity 0.3s;
  164. transition: opacity 0.3s;
  165. -webkit-backface-visibility: hidden;
  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. }