No Description

htmleaf-demo.css 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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, FreeSans, Arimo;
  47. }
  48. a{color: #2fa0ec;text-decoration: none;outline: none;}
  49. a:hover,a:focus{color:#74777b;}
  50. .htmleaf-container{
  51. margin: 0 auto;
  52. overflow: hidden;
  53. }
  54. .bgcolor-1 { background: #f0efee; }
  55. .bgcolor-2 { background: #f9f9f9; }
  56. .bgcolor-3 { background: #e8e8e8; }/*light grey*/
  57. .bgcolor-4 { background: #2f3238; color: #fff; }/*Dark grey*/
  58. .bgcolor-5 { background: #df6659; color: #521e18; }/*pink1*/
  59. .bgcolor-6 { background: #2fa8ec; }/*sky blue*/
  60. .bgcolor-7 { background: #d0d6d6; }/*White tea*/
  61. .bgcolor-8 { background: #3d4444; color: #fff; }/*Dark grey2*/
  62. .bgcolor-9 { background: #ef3f52; color: #fff;}/*pink2*/
  63. .bgcolor-10{ background: #64448f; color: #fff;}/*Violet*/
  64. .bgcolor-11{ background: #3755ad; color: #fff;}/*dark blue*/
  65. .bgcolor-12{ background: #3498DB; color: #fff;}/*light blue*/
  66. .bgcolor-20{ background: #494A5F;color: #D5D6E2;}
  67. /* Header */
  68. .htmleaf-header{
  69. padding: 1em 190px 1em;
  70. letter-spacing: -1px;
  71. text-align: center;
  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. font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
  80. }
  81. .htmleaf-header h1 span {
  82. font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
  83. display: block;
  84. font-size: 60%;
  85. font-weight: 400;
  86. padding: 0.8em 0 0.5em 0;
  87. color: #c3c8cd;
  88. }
  89. /*nav*/
  90. .htmleaf-demo a{color: #fff;text-decoration: none;}
  91. .htmleaf-demo{width: 100%;padding-bottom: 1.2em;}
  92. .htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em 1em;border: 3px solid #fff;font-weight: 700;}
  93. .htmleaf-demo a:hover{opacity: 0.6;}
  94. .htmleaf-demo a.current{background:#1d7db1;color: #fff; }
  95. /* Top Navigation Style */
  96. .htmleaf-links {
  97. position: relative;
  98. display: inline-block;
  99. white-space: nowrap;
  100. font-size: 1.5em;
  101. text-align: center;
  102. }
  103. .htmleaf-links::after {
  104. position: absolute;
  105. top: 0;
  106. left: 50%;
  107. margin-left: -1px;
  108. width: 2px;
  109. height: 100%;
  110. background: #dbdbdb;
  111. content: '';
  112. -webkit-transform: rotate3d(0,0,1,22.5deg);
  113. transform: rotate3d(0,0,1,22.5deg);
  114. }
  115. .htmleaf-icon {
  116. display: inline-block;
  117. margin: 0.5em;
  118. padding: 0em 0;
  119. width: 1.5em;
  120. text-decoration: none;
  121. }
  122. .htmleaf-icon span {
  123. display: none;
  124. }
  125. .htmleaf-icon:before {
  126. margin: 0 5px;
  127. text-transform: none;
  128. font-weight: normal;
  129. font-style: normal;
  130. font-variant: normal;
  131. font-family: 'icomoon';
  132. line-height: 1;
  133. speak: none;
  134. -webkit-font-smoothing: antialiased;
  135. }
  136. /* footer */
  137. .htmleaf-footer{width: 100%;padding-top: 10px;}
  138. .htmleaf-small{font-size: 0.8em;}
  139. .center{text-align: center;}
  140. /****/
  141. .related {
  142. color: #fff;
  143. background: #494A5F;
  144. text-align: center;
  145. font-size: 1.25em;
  146. padding: 0.5em 0;
  147. overflow: hidden;
  148. }
  149. .related > a {
  150. vertical-align: top;
  151. width: calc(100% - 20px);
  152. max-width: 340px;
  153. display: inline-block;
  154. text-align: center;
  155. margin: 20px 10px;
  156. padding: 25px;
  157. font-family: "Microsoft YaHei","宋体","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif, FreeSans, Arimo;
  158. }
  159. .related a {
  160. display: inline-block;
  161. text-align: left;
  162. margin: 20px auto;
  163. padding: 10px 20px;
  164. opacity: 0.8;
  165. -webkit-transition: opacity 0.3s;
  166. transition: opacity 0.3s;
  167. -webkit-backface-visibility: hidden;
  168. }
  169. .related a:hover,
  170. .related a:active {
  171. opacity: 1;
  172. }
  173. .related a img {
  174. max-width: 100%;
  175. opacity: 0.8;
  176. border-radius: 4px;
  177. }
  178. .related a:hover img,
  179. .related a:active img {
  180. opacity: 1;
  181. }
  182. .related h3{font-family: "Microsoft YaHei", sans-serif;}
  183. .related a h3 {
  184. font-weight: 300;
  185. margin-top: 0.15em;
  186. color: #fff;
  187. }
  188. /* icomoon */
  189. .icon-htmleaf-home-outline:before {
  190. content: "\e5000";
  191. }
  192. .icon-htmleaf-arrow-forward-outline:before {
  193. content: "\e5001";
  194. }
  195. @media screen and (max-width: 50em) {
  196. .htmleaf-header {
  197. padding: 3em 10% 4em;
  198. }
  199. .htmleaf-header h1 {
  200. font-size:2em;
  201. }
  202. }
  203. @media screen and (max-width: 40em) {
  204. .htmleaf-header h1 {
  205. font-size: 1.5em;
  206. }
  207. }
  208. @media screen and (max-width: 30em) {
  209. .htmleaf-header h1 {
  210. font-size:1.2em;
  211. }
  212. }