style.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. /*
  2. * Title: Pure CSS3 Backend Panel
  3. * Author: Clear
  4. * Version: 1.0.0
  5. * Create: 2015-06-05
  6. * Update: 2015-06-05
  7. */
  8. /* CSS Reset */
  9. * {
  10. padding: 0;
  11. margin: 0;
  12. list-style: none;
  13. box-sizing: border-box;
  14. outline: none;
  15. font-weight: normal;
  16. }
  17. body {
  18. background: #1ABC9C;
  19. font-family: "Segoe UI","Microsoft YaHei";
  20. }
  21. a {
  22. color: #000;
  23. text-decoration: none;
  24. }
  25. header {
  26. color: #fff;
  27. text-align: center;
  28. min-height: 140px;
  29. margin-bottom: 60px;
  30. }
  31. header h1{
  32. /*margin-top: 100px;*/
  33. font-size: 50px;
  34. margin-bottom: 20px;
  35. font-weight: 100;
  36. }
  37. header a{
  38. font-size: 18px;
  39. margin-left: 20px;
  40. }
  41. .copyright {
  42. font-size: 25px;
  43. font-weight: 100;
  44. color: #fff;
  45. text-align: center;
  46. margin: 100px 0;
  47. }
  48. .copyright a {
  49. color: #fff;
  50. }
  51. .pb30{padding-bottom: 30px;}
  52. .fl {
  53. float: left
  54. }
  55. .fr {
  56. float: right
  57. }
  58. .ease {
  59. -webkit-transition: all .5s;
  60. -moz-transition: all .5s;
  61. -o-transition: all .5s;
  62. transition: all .5s;
  63. }
  64. .container {
  65. width: 100%;
  66. max-width: 1200px;
  67. margin: 0 auto;
  68. }
  69. /* Backend Panel Start */
  70. .clear-backend {
  71. background: #fff;
  72. width: 100%;
  73. /*height: 800px;*/
  74. height: 100%;
  75. /*position: relative;*/
  76. }
  77. .avatar {
  78. background: #f0f0f0;
  79. width: 200px;
  80. height: 200px;
  81. }
  82. .avatar div {
  83. width: 150px;
  84. height: 150px;
  85. border-radius: 50%;
  86. overflow: hidden;
  87. position: relative;
  88. top: 25px;
  89. left: 25px;
  90. }
  91. .avatar div img {
  92. width: 100%;
  93. height: auto;
  94. }
  95. .clear-backend > input {
  96. position: absolute;
  97. filter: alpha(opacity=0);
  98. opacity: 0;
  99. }
  100. .clear-backend > input:hover {
  101. cursor: pointer;
  102. }
  103. .clear-backend > input:hover + span,
  104. .clear-backend > input:checked + span {
  105. background: #fff;
  106. color: #1ABC9C;
  107. }
  108. .clear-backend > input:checked + span + i {
  109. color: #1ABC9C;
  110. }
  111. .clear-backend > i {
  112. position: absolute;
  113. margin-top: -40px;
  114. padding: 0 20px;
  115. font-size: 20px;
  116. }
  117. .clear-backend > span,
  118. .clear-backend > i {
  119. -webkit-transition: all .5s;
  120. -moz-transition: all .5s;
  121. -o-transition: all .5s;
  122. transition: all .5s;
  123. }
  124. .clear-backend > input,
  125. .clear-backend > span {
  126. background: #f0f0f0;
  127. display: block;
  128. width: 200px;
  129. height: 60px;
  130. line-height: 60px;
  131. text-align: center;
  132. z-index: 9;
  133. }
  134. .top-bar {
  135. background: #f0f0f0;
  136. color: #000;
  137. position: absolute;
  138. top: 0;
  139. right: 0;
  140. width: calc(100% - 200px);
  141. height: 60px;
  142. line-height: 60px;
  143. font-size: 20px;
  144. z-index: 9;
  145. }
  146. .top-bar li {
  147. float: right;
  148. }
  149. .top-bar a {
  150. display: block;
  151. padding: 0 20px;
  152. -webkit-transition: all .5s;
  153. -moz-transition: all .5s;
  154. -o-transition: all .5s;
  155. transition: all .5s;
  156. }
  157. .top-bar a:hover {
  158. color: #1ABC9C;
  159. }
  160. .top-bar li:hover {
  161. background: #fff;
  162. }
  163. .tab-content {
  164. position: absolute;
  165. top: 0;
  166. right: 0;
  167. width: calc(100% - 200px);
  168. height: 100%;
  169. padding-top: 60px;
  170. overflow: hidden;
  171. }
  172. .tab-content section {
  173. position: absolute;
  174. width: 100%;
  175. height: 100%;
  176. padding: 20px;
  177. display: none;
  178. }
  179. .clear-backend > input.tab-1:checked ~ .tab-content .tab-item-1 {
  180. display: block;
  181. }
  182. .clear-backend > input.tab-2:checked ~ .tab-content .tab-item-2 {
  183. display: block;
  184. }
  185. .clear-backend > input.tab-3:checked ~ .tab-content .tab-item-3 {
  186. display: block;
  187. }
  188. .clear-backend > input.tab-4:checked ~ .tab-content .tab-item-4 {
  189. display: block;
  190. }
  191. .clear-backend > input.tab-5:checked ~ .tab-content .tab-item-5 {
  192. display: block;
  193. }
  194. .clear-backend > input.tab-6:checked ~ .tab-content .tab-item-6 {
  195. display: block;
  196. }
  197. .clear-backend > input.tab-7:checked ~ .tab-content .tab-item-7 {
  198. display: block;
  199. }
  200. .clear-backend > input.tab-8:checked ~ .tab-content .tab-item-8 {
  201. display: block;
  202. }
  203. .clear-backend > input.tab-9:checked ~ .tab-content .tab-item-9 {
  204. display: block;
  205. }
  206. .clear-backend > input.tab-10:checked ~ .tab-content .tab-item-10 {
  207. display: block;
  208. }
  209. /* Responsive */
  210. @media screen and (max-width: 1367px) {
  211. }
  212. @media screen and (max-width: 1281px) {
  213. }
  214. @media screen and (max-width: 1025px) {
  215. }
  216. @media only screen and (max-width: 961px) {
  217. }
  218. @media only screen and (max-width: 641px) {
  219. .avatar,
  220. .clear-backend > input,
  221. .clear-backend > span {
  222. width: 60px;
  223. height: 60px;
  224. }
  225. .clear-backend > span {
  226. filter: alpha(opacity=0);
  227. opacity: 0;
  228. }
  229. .avatar div {
  230. width: 40px;
  231. height: 40px;
  232. border-radius: 50%;
  233. top: 5px;
  234. left: 5px;
  235. }
  236. .top-bar,
  237. .tab-content {
  238. width: calc(100% - 60px);
  239. }
  240. }
  241. @media only screen and (max-width: 481px) {
  242. }